diff --git a/main.js b/main.js index ba6ef5d140..f4f14e5e96 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(tt,W)=>{(function(f){const u=f.en=f.en||{};u.dictionary=Object.assign(u.dictionary||{},{"%0 of %1":"%0 of %1","Block quote":"Block quote",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Widget toolbar":"Widget toolbar"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window,tt.exports=function(f){var u={};function d(v){if(u[v])return u[v].exports;var g=u[v]={i:v,l:!1,exports:{}};return f[v].call(g.exports,g,g.exports,d),g.l=!0,g.exports}return d.m=f,d.c=u,d.d=function(v,g,t){d.o(v,g)||Object.defineProperty(v,g,{enumerable:!0,get:t})},d.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},d.t=function(v,g){if(1&g&&(v=d(v)),8&g||4&g&&"object"==typeof v&&v&&v.__esModule)return v;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:v}),2&g&&"string"!=typeof v)for(var T in v)d.d(t,T,function(U){return v[U]}.bind(null,T));return t},d.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return d.d(g,"a",g),g},d.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)},d.p="",d(d.s=96)}([function(f,u,d){"use strict";d.d(u,"b",function(){return v}),d.d(u,"a",function(){return g});class v extends Error{constructor(T,U,w){T=g(T),w&&(T+=" "+JSON.stringify(w)),super(T),this.name="CKEditorError",this.context=U,this.data=w}is(T){return"CKEditorError"===T}static rethrowUnexpectedError(T,U){if(T.is&&T.is("CKEditorError"))throw T;const w=new v(T.message,U);throw w.stack=T.stack,w}}function g(t){const T=t.match(/^([^:]+):/);return T?t+` Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-${T[1]}\n`:t}},function(f,u,d){"use strict";var v,lt,t=(lt={},function(Ct){if(void 0===lt[Ct]){var Dt=document.querySelector(Ct);if(window.HTMLIFrameElement&&Dt instanceof window.HTMLIFrameElement)try{Dt=Dt.contentDocument.head}catch{Dt=null}lt[Ct]=Dt}return lt[Ct]}),T=[];function U(lt){for(var Ct=-1,Dt=0;Dt:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(f,u,d){var v=d(1),g=d(20);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(f,u,d){var v=d(1),g=d(22);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(f,u,d){var v=d(1),g=d(24);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(f,u,d){var v=d(1),g=d(26);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(f,u,d){var v=d(1),g=d(28);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(f,u,d){var v=d(1),g=d(30);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(f,u,d){var v=d(1),g=d(32);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(f,u,d){var v=d(1),g=d(34);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(f,u,d){var v=d(1),g=d(36);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(f,u,d){var v=d(1),g=d(38);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(f,u,d){var v=d(1),g=d(40);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(f,u,d){var v=d(1),g=d(42);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(f,u,d){var v=d(1),g=d(44);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(f,u,d){var v=d(1),g=d(46);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(f,u,d){var v=d(1),g=d(48);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(f,u,d){var v=d(1),g=d(50);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(f,u,d){var v=d(1),g=d(52);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(f,u,d){var v=d(1),g=d(54);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(f,u,d){var v=d(1),g=d(56);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(f,u,d){var v=d(1),g=d(58);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(f,u,d){var v=d(1),g=d(60);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(f,u,d){var v=d(1),g=d(62);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(f,u,d){var v=d(1),g=d(64);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(f,u,d){var v=d(1),g=d(66);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(f,u,d){var v=d(1),g=d(68);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(f,u,d){var v=d(1),g=d(70);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(f,u){f.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(f,u,d){var v=d(1),g=d(73);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(f,u,d){var v=d(1),g=d(75);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(f,u,d){var v=d(1),g=d(77);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(f,u,d){var v=d(1),g=d(79);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(f,u,d){var v=d(1),g=d(81);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(f,u,d){var v=d(1),g=d(83);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(f,u,d){var v=d(1),g=d(85);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(f,u,d){var v=d(1),g=d(87);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(f,u,d){var v=d(1),g=d(89);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(f,u,d){var v=d(1),g=d(91);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(f,u,d){var v=d(1),g=d(93);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(f,u,d){var v=d(1),g=d(95);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(f,u,d){"use strict";d.r(u),d.d(u,"default",function(){return Kg});var v=d(3),g=v.a.Symbol,t=Object.prototype,T=t.hasOwnProperty,U=t.toString,w=g?g.toStringTag:void 0,O=Object.prototype.toString,N=g?g.toStringTag:void 0,B=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":N&&N in Object(b)?function(b){var r=T.call(b,w),l=b[w];try{b[w]=void 0;var p=!0}catch{}var x=U.call(b);return p&&(r?b[w]=l:delete b[w]),x}(b):function(b){return O.call(b)}(b)},K=function(b,r){return function(l){return b(r(l))}},et=K(Object.getPrototypeOf,Object),ct=function(b){return null!=b&&"object"==typeof b},Dt=Function.prototype.toString,Zt=Object.prototype.hasOwnProperty,Rt=Dt.call(Object),Gt=function(b){if(!ct(b)||"[object Object]"!=B(b))return!1;var r=et(b);if(null===r)return!0;var l=Zt.call(r,"constructor")&&r.constructor;return"function"==typeof l&&l instanceof l&&Dt.call(l)==Rt},Ut=function(b,r){return b===r||b!=b&&r!=r},bt=function(b,r){for(var l=b.length;l--;)if(Ut(b[l][0],r))return l;return-1},mt=Array.prototype.splice;function Vt(b){var r=-1,l=null==b?0:b.length;for(this.clear();++r-1},Vt.prototype.set=function(b,r){var l=this.__data__,p=bt(l,b);return p<0?(++this.size,l.push([b,r])):l[p][1]=r,this};var Ue,be=Vt,Qt=function(b){var r=typeof b;return null!=b&&("object"==r||"function"==r)},ie=function(b){if(!Qt(b))return!1;var r=B(b);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},Wt=v.a["__core-js_shared__"],se=(Ue=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ue:"",ae=Function.prototype.toString,De=function(b){if(null!=b){try{return ae.call(b)}catch{}try{return b+""}catch{}}return""},nn=/^\[object .+?Constructor\]$/,dn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pn=function(b){return!(!Qt(b)||function(b){return!!se&&se in b}(b))&&(ie(b)?dn:nn).test(De(b))},_i=function(b,r){var l=function(b,r){return b?.[r]}(b,r);return Pn(l)?l:void 0},oi=_i(v.a,"Map"),We=_i(Object,"create"),X=Object.prototype.hasOwnProperty,Ht=Object.prototype.hasOwnProperty;function Se(b){var r=-1,l=null==b?0:b.length;for(this.clear();++r-1&&b%1==0&&b-1&&b%1==0&&b<=9007199254740991},Ke={};Ke["[object Float32Array]"]=Ke["[object Float64Array]"]=Ke["[object Int8Array]"]=Ke["[object Int16Array]"]=Ke["[object Int32Array]"]=Ke["[object Uint8Array]"]=Ke["[object Uint8ClampedArray]"]=Ke["[object Uint16Array]"]=Ke["[object Uint32Array]"]=!0,Ke["[object Arguments]"]=Ke["[object Array]"]=Ke["[object ArrayBuffer]"]=Ke["[object Boolean]"]=Ke["[object DataView]"]=Ke["[object Date]"]=Ke["[object Error]"]=Ke["[object Function]"]=Ke["[object Map]"]=Ke["[object Number]"]=Ke["[object Object]"]=Ke["[object RegExp]"]=Ke["[object Set]"]=Ke["[object String]"]=Ke["[object WeakMap]"]=!1;var xi=function(b){return function(r){return b(r)}},co=d(5),Co=co.a&&co.a.isTypedArray,So=Co?xi(Co):function(b){return ct(b)&&_n(b.length)&&!!Ke[B(b)]},ma=Object.prototype.hasOwnProperty,Ta=function(b,r){var l=kn(b),p=!l&&He(b),x=!l&&!p&&Object(Ei.a)(b),Z=!l&&!p&&!x&&So(b),k=l||p||x||Z,H=k?function(b,r){for(var l=-1,p=Array(b);++l{this._setToTarget(r,x,l[x],p)})}}function Pr(b){return Cs(b,dc)}function dc(b){return ys(b)?b:void 0}class Ya{constructor(r,l){this.source=r,this.name=l,this.path=[],this.stop=function b(){b.called=!0},this.off=function b(){b.called=!0}}}const wr=new Array(256).fill().map((b,r)=>("0"+r.toString(16)).slice(-2));function xr(){const b=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,l=4294967296*Math.random()>>>0,p=4294967296*Math.random()>>>0;return"e"+wr[b>>0&255]+wr[b>>8&255]+wr[b>>16&255]+wr[b>>24&255]+wr[r>>0&255]+wr[r>>8&255]+wr[r>>16&255]+wr[r>>24&255]+wr[l>>0&255]+wr[l>>8&255]+wr[l>>16&255]+wr[l>>24&255]+wr[p>>0&255]+wr[p>>8&255]+wr[p>>16&255]+wr[p>>24&255]}var ns={get(b){return"number"!=typeof b?this[b]||this.normal:b},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},jn=(d(6),d(0));const zs=Symbol("listeningTo"),ds=Symbol("emitterId");var wa={on(b,r,l={}){this.listenTo(this,b,r,l)},once(b,r,l){let p=!1;this.listenTo(this,b,function(x,...Z){p||(p=!0,x.off(),r.call(this,x,...Z))},l)},off(b,r){this.stopListening(this,b,r)},listenTo(b,r,l,p={}){let x,Z;this[zs]||(this[zs]={});const k=this[zs];Ts(b)||is(b);const H=Ts(b);(x=k[H])||(x=k[H]={emitter:b,callbacks:{}}),(Z=x.callbacks[r])||(Z=x.callbacks[r]=[]),Z.push(l),function(Mt,he){const Je=As(Mt);if(Je[he])return;let fn=he,Mn=null;const In=[];for(;""!==fn&&!Je[fn];)Je[fn]={callbacks:[],childEvents:[]},In.push(Je[fn]),Mn&&Je[fn].childEvents.push(Mn),Mn=fn,fn=fn.substr(0,fn.lastIndexOf(":"));if(""!==fn){for(const Qn of In)Qn.callbacks=Je[fn].callbacks.slice();Je[fn].childEvents.push(Mn)}}(b,r);const G=ks(b,r),rt=ns.get(p.priority),ft={callback:l,priority:rt};for(const Mt of G){let he=!1;for(let Je=0;Je-1?Z(k,H.substr(0,H.lastIndexOf(":"))):null}(this,p);if(l.path.push(this),x){const Z=[l,...r];x=Array.from(x);for(let k=0;k{this._delegations||(this._delegations=new Map),b.forEach(p=>{const x=this._delegations.get(p);x?x.set(r,l):this._delegations.set(p,new Map([[r,l]]))})}}},stopDelegating(b,r){if(this._delegations)if(b)if(r){const l=this._delegations.get(b);l&&l.delete(r)}else this._delegations.delete(b);else this._delegations.clear()}};function is(b,r){b[ds]||(b[ds]=r||xr())}function Ts(b){return b[ds]}function As(b){return b._events||Object.defineProperty(b,"_events",{value:{}}),b._events}function ks(b,r){const l=As(b)[r];if(!l)return[];let p=[l.callbacks];for(let x=0;x{Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l)).forEach(p=>{if(p in b.prototype)return;const x=Object.getOwnPropertyDescriptor(l,p);x.enumerable=!1,Object.defineProperty(b.prototype,p,x)})})}class Er{constructor(r={},l={}){const p=za(r);if(p||(l=r),this._items=[],this._itemMap=new Map,this._idProperty=l.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],p)for(const x of r)this._items.push(x),this._itemMap.set(this._getItemIdBeforeAdding(x),x)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(r,l){return this.addMany([r],l)}addMany(r,l){if(void 0===l)l=this._items.length;else if(l>this._items.length||l<0)throw new jn.b("collection-add-item-invalid-index",this);for(let p=0;p{this._setUpBindToBinding(p=>new l(p))},using:l=>{this._setUpBindToBinding("function"==typeof l?p=>l(p):p=>p[l])}}}_setUpBindToBinding(r){const l=this._bindToCollection,p=(x,Z,k)=>{const H=l._bindToCollection==this,G=l._bindToInternalToExternalMap.get(Z);if(H&&G)this._bindToExternalToInternalMap.set(Z,G),this._bindToInternalToExternalMap.set(G,Z);else{const rt=r(Z);if(!rt)return void this._skippedIndexesFromExternal.push(k);let ft=k;for(const Mt of this._skippedIndexesFromExternal)k>Mt&&ft--;for(const Mt of l._skippedIndexesFromExternal)ft>=Mt&&ft++;this._bindToExternalToInternalMap.set(Z,rt),this._bindToInternalToExternalMap.set(rt,Z),this.add(rt,ft);for(let Mt=0;Mt{const H=this._bindToExternalToInternalMap.get(Z);H&&this.remove(H),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((G,rt)=>(krt&&G.push(rt),G),[])})}_getItemIdBeforeAdding(r){const l=this._idProperty;let p;if(l in r){if(p=r[l],"string"!=typeof p)throw new jn.b("collection-add-invalid-id",this);if(this.get(p))throw new jn.b("collection-add-item-already-exists",this)}else r[l]=p=xr();return p}_remove(r){let l,p,x,Z=!1;const k=this._idProperty;if("string"==typeof r?(p=r,x=this._itemMap.get(p),Z=!x,x&&(l=this._items.indexOf(x))):"number"==typeof r?(l=r,x=this._items[l],Z=!x,x&&(p=x[k])):(x=r,p=x[k],l=this._items.indexOf(x),Z=-1==l||!this._itemMap.get(p)),Z)throw new jn.b("collection-remove-404: Item not found.",this);this._items.splice(l,1),this._itemMap.delete(p);const H=this._bindToInternalToExternalMap.get(x);return this._bindToInternalToExternalMap.delete(x),this._bindToExternalToInternalMap.delete(H),this.fire("remove",x,l),[x,l]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}ao(Er,wa);class lr{constructor(r,l=[],p=[]){this._context=r,this._plugins=new Map,this._availablePlugins=new Map;for(const x of l)x.pluginName&&this._availablePlugins.set(x.pluginName,x);this._contextPlugins=new Map;for(const[x,Z]of p)this._contextPlugins.set(x,Z),this._contextPlugins.set(Z,x),x.pluginName&&this._availablePlugins.set(x.pluginName,x)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const l=this._plugins.get(r);if(!l){let x=r;throw"function"==typeof r&&(x=r.pluginName||r.name),new jn.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:x})}return l}has(r){return this._plugins.has(r)}init(r,l=[]){const p=this,x=this._context,Z=new Set,k=[],H=Je(r),G=Je(l),rt=function(fn){const Mn=[];for(const In of fn)he(In)||Mn.push(In);return Mn.length?Mn:null}(r);if(rt){const fn="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(jn.a)(fn),{plugins:rt}),Promise.reject(new jn.b(fn,x,{plugins:rt}))}return Promise.all(H.map(function ft(fn){if(!G.includes(fn)&&!p._plugins.has(fn)&&!Z.has(fn))return(Mn=fn,new Promise(In=>{Z.add(Mn),Mn.requires&&Mn.requires.forEach(Fi=>{const Ji=he(Fi);if(Mn.isContextPlugin&&!Ji.isContextPlugin)throw new jn.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:Ji.name,requiredBy:Mn.name});if(l.includes(Ji))throw new jn.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",x,{plugin:Ji.name,requiredBy:Mn.name});ft(Ji)});const Qn=p._contextPlugins.get(Mn)||new Mn(x);p._add(Mn,Qn),k.push(Qn),In()})).catch(Mn=>{throw console.error(Object(jn.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:fn}),Mn});var Mn})).then(()=>Mt(k,"init")).then(()=>Mt(k,"afterInit")).then(()=>k);function Mt(fn,Mn){return fn.reduce((In,Qn)=>Qn[Mn]?p._contextPlugins.has(Qn)?In:In.then(Qn[Mn].bind(Qn)):In,Promise.resolve())}function he(fn){return"function"==typeof fn?fn:p._availablePlugins.get(fn)}function Je(fn){return fn.map(Mn=>he(Mn)).filter(Mn=>!!Mn)}}destroy(){const r=[];for(const[,l]of this)"function"!=typeof l.destroy||this._contextPlugins.has(l)||r.push(l.destroy());return Promise.all(r)}_add(r,l){this._plugins.set(r,l);const p=r.pluginName;if(p){if(this._plugins.has(p))throw new jn.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:p,plugin1:this._plugins.get(p).constructor,plugin2:r});this._plugins.set(p,l)}}}ao(lr,wa),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const Ec=["ar","fa","he","ku","ug"];class cl{constructor(r={}){this.uiLanguage=r.uiLanguage||"en",this.contentLanguage=r.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Cc(this.uiLanguage),this.contentLanguageDirection=Cc(this.contentLanguage),this.t=(l,p)=>this._t(l,p)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,l=[]){return Array.isArray(l)||(l=[l]),"string"==typeof r&&(r={string:r}),x=function zr(b,r,l=1){if("number"!=typeof l)throw new jn.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:l});const p=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===p&&(b=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const x=r.id||r.string;if(0===p||(G=b,!window.CKEDITOR_TRANSLATIONS[G]||!window.CKEDITOR_TRANSLATIONS[G].dictionary[x]))return 1!==l?r.plural:r.string;var G;const Z=window.CKEDITOR_TRANSLATIONS[b].dictionary,k=window.CKEDITOR_TRANSLATIONS[b].getPluralForm||(G=>1===G?0:1);if("string"==typeof Z[x])return Z[x];const H=Number(k(l));return Z[x][H]}(this.uiLanguage,r,r.plural?l[0]:1),Z=l,x.replace(/%(\d+)/g,(k,H)=>Hr.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,l){if(this._contextOwner)throw new jn.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(r),l&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const l of this.config.names())["plugins","removePlugins","extraPlugins"].includes(l)||(r[l]=this.config.get(l));return r}static create(r){return new Promise(l=>{const p=new this(r);l(p.initPlugins().then(()=>p))})}}function ps(b,r){const l=Math.min(b.length,r.length);for(let p=0;pr.data.length)throw new jn.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(p<0||l+p>r.data.length)throw new jn.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+p),this.offsetInText=l}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(r){return"$textProxy"===r||"view:$textProxy"===r||"textProxy"===r||"view:textProxy"===r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const l=[];let p=r.includeSelf?this.textNode:this.parent;for(;null!==p;)l[r.parentFirst?"push":"unshift"](p),p=p.parent;return l}}function Qa(b){return za(b)?new Map(b):function(r){const l=new Map;for(const p in r)l.set(p,r[p]);return l}(b)}class re{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let l of r)("string"==typeof l||l instanceof RegExp)&&(l={name:l}),l.classes&&("string"==typeof l.classes||l.classes instanceof RegExp)&&(l.classes=[l.classes]),this._patterns.push(l)}match(...r){for(const l of r)for(const p of this._patterns){const x=$t(l,p);if(x)return{element:l,pattern:p,match:x}}return null}matchAll(...r){const l=[];for(const p of r)for(const x of this._patterns){const Z=$t(p,x);Z&&l.push({element:p,pattern:x,match:Z})}return l.length>0?l:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],l=r.name;return"function"==typeof r||!l||l instanceof RegExp?null:l}}function $t(b,r){if("function"==typeof r)return r(b);const l={};return r.name&&(l.name=(x=b.name,(p=r.name)instanceof RegExp?p.test(x):p===x),!l.name)||r.attributes&&(l.attributes=function(p,x){const Z=[];for(const k in p){const H=p[k];if(!x.hasAttribute(k))return null;{const G=x.getAttribute(k);if(!0===H)Z.push(k);else if(H instanceof RegExp){if(!H.test(G))return null;Z.push(k)}else{if(G!==H)return null;Z.push(k)}}}return Z}(r.attributes,b),!l.attributes)?null:!(r.classes&&(l.classes=function(p,x){const Z=[];for(const k of p)if(k instanceof RegExp){const H=x.getClassNames();for(const G of H)k.test(G)&&Z.push(G);if(0===Z.length)return null}else{if(!x.hasClass(k))return null;Z.push(k)}return Z}(r.classes,b),!l.classes))&&!(r.styles&&(l.styles=function(p,x){const Z=[];for(const k in p){const H=p[k];if(!x.hasStyle(k))return null;{const G=x.getStyle(k);if(H instanceof RegExp){if(!H.test(G))return null;Z.push(k)}else{if(G!==H)return null;Z.push(k)}}}return Z}(r.styles,b),!l.styles))&&l;var p,x}var Nt=function(b){return"symbol"==typeof b||ct(b)&&"[object Symbol]"==B(b)},nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wi=/^\w*$/;function Aa(b,r){if("function"!=typeof b||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var l=function(){var p=arguments,x=r?r.apply(this,p):p[0],Z=l.cache;if(Z.has(x))return Z.get(x);var k=b.apply(this,p);return l.cache=Z.set(x,k)||Z,k};return l.cache=new(Aa.Cache||xn),l}Aa.Cache=xn;var b,r,l,Fc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Nr=(b=function(b){var r=[];return 46===b.charCodeAt(0)&&r.push(""),b.replace(Fc,function(l,p,x,Z){r.push(x?Z.replace(Fr,"$1"):p||l)}),r},r=Aa(b,function(p){return 500===l.size&&l.clear(),p}),l=r.cache,r),Va=g?g.prototype:void 0,jc=Va?Va.toString:void 0,k1=function b(r){if("string"==typeof r)return r;if(kn(r))return function(b,r){for(var l=-1,p=null==b?0:b.length,x=Array(p);++lx?0:x+r),(l=l>x?x:l)<0&&(l+=x),x=r>l?0:l-r>>>0,r>>>=0;for(var Z=Array(x);++p0){if(++r>=800)return arguments[0]}else r=0;return b.apply(void 0,arguments)}}(vo),Si=function(b,r){return pi(function(b,r,l){return r=Da(void 0===r?b.length-1:r,0),function(){for(var p=arguments,x=-1,Z=Da(p.length-r,0),k=Array(Z);++x1?l[x-1]:void 0,k=x>2?l[2]:void 0;for(Z=b.length>3&&"function"==typeof Z?(x--,Z):void 0,k&&function(b,r,l){if(!Qt(l))return!1;var p=typeof r;return!!("number"==p?j(l)&&un(r,l.length):"string"==p&&r in l)&&Ut(l[r],b)}(l[0],l[1],k)&&(Z=x<3?void 0:Z,x=1),r=Object(r);++pp===r);return Array.isArray(l)}set(r,l){if(Qt(r))for(const[p,x]of Object.entries(r))this._styleProcessor.toNormalizedForm(p,x,this._styles);else this._styleProcessor.toNormalizedForm(r,l,this._styles)}remove(r){const l=bu(r);(function(b,r){null==b||rp(b,r)})(this._styles,l),delete this._styles[r],this._cleanEmptyObjectsOnPath(l)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Qt(this._styles[r]))return this._styles[r];const l=this._styleProcessor.getReducedForm(r,this._styles).find(([p])=>p===r);return Array.isArray(l)?l[1]:void 0}getStyleNames(){return this.isEmpty?[]:this._getStylesEntries().map(([r])=>r)}clear(){this._styles={}}_getStylesEntries(){const r=[],l=Object.keys(this._styles);for(const p of l)r.push(...this._styleProcessor.getReducedForm(p,this._styles));return r}_cleanEmptyObjectsOnPath(r){const l=r.split(".");if(!(l.length>1))return;const p=l.splice(0,l.length-1).join("."),x=yc(this._styles,p);!x||!Array.from(Object.keys(x)).length&&this.remove(p)}}class dl{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,l,p){if(Qt(l))Xa(p,bu(r),l);else if(this._normalizers.has(r)){const x=this._normalizers.get(r),{path:Z,value:k}=x(l);Xa(p,Z,k)}else Xa(p,r,l)}getNormalized(r,l){if(!r)return $o({},l);if(void 0!==l[r])return l[r];if(this._extractors.has(r)){const p=this._extractors.get(r);if("string"==typeof p)return yc(l,p);const x=p(r,l);if(x)return x}return yc(l,bu(r))}getReducedForm(r,l){const p=this.getNormalized(r,l);return void 0===p?[]:this._reducers.has(r)?this._reducers.get(r)(p):[[r,p]]}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,l){this._normalizers.set(r,l)}setExtractor(r,l){this._extractors.set(r,l)}setReducer(r,l){this._reducers.set(r,l)}setStyleRelation(r,l){this._mapStyleNames(r,l);for(const p of l)this._mapStyleNames(p,[r])}_mapStyleNames(r,l){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...l)}}function bu(b){return b.replace("-",".")}function Xa(b,r,l){let p=l;Qt(l)&&(p=$o({},yc(b,r),l)),gr(b,r,p)}class Xs extends la{constructor(r,l,p,x){if(super(r),this.name=l,this._attrs=function(Z){Z=Qa(Z);for(const[k,H]of Z)null===H?Z.delete(k):"string"!=typeof H&&Z.set(k,String(H));return Z}(p),this._children=[],x&&this._insertChild(0,x),this._classes=new Set,this._attrs.has("class")){const Z=this._attrs.get("class");Cu(this._classes,Z),this._attrs.delete("class")}this._styles=new Ko(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(r,l=null){return l?l===this.name&&("element"===r||"view:element"===r):"element"===r||"view:element"===r||"node"===r||"view:node"===r}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const l=this._styles.toString();return""==l?void 0:l}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Xs))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[l,p]of this._attrs)if(!r._attrs.has(l)||r._attrs.get(l)!==p)return!1;for(const l of this._classes)if(!r._classes.has(l))return!1;for(const l of this._styles.getStyleNames())if(!r._styles.has(l)||r._styles.getAsString(l)!==this._styles.getAsString(l))return!1;return!0}hasClass(...r){for(const l of r)if(!this._classes.has(l))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(){return this._styles.getStyleNames()}hasStyle(...r){for(const l of r)if(!this._styles.has(l))return!1;return!0}findAncestor(...r){const l=new re(...r);let p=this.parent;for(;p;){if(l.match(p))return p;p=p.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),l=this._styles.toString(),p=Array.from(this._attrs).map(x=>`${x[0]}="${x[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(l?` style="${l}"`:"")+(""==p?"":" "+p)}_clone(r=!1){const l=[];if(r)for(const x of this.getChildren())l.push(x._clone(r));const p=new this.constructor(this.document,this.name,this._attrs,l);return p._classes=new Set(this._classes),p._styles.set(this._styles.getNormalized()),p._customProperties=new Map(this._customProperties),p.getFillerOffset=this.getFillerOffset,p}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,l){this._fireChange("children",this);let p=0;const x=(Z=this.document,"string"==typeof(k=l)?[new or(Z,k)]:(za(k)||(k=[k]),Array.from(k).map(H=>"string"==typeof H?new or(Z,H):H instanceof Wr?new or(Z,H.data):H)));var Z,k;for(const Z of x)null!==Z.parent&&Z._remove(),Z.parent=this,Z.document=this.document,this._children.splice(r,0,Z),r++,p++;return p}_removeChildren(r,l=1){this._fireChange("children",this);for(let p=r;p0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(l=>this._classes.add(l))}_removeClass(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(l=>this._classes.delete(l))}_setStyle(r,l){this._fireChange("attributes",this),this._styles.set(r,l)}_removeStyle(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(l=>this._styles.remove(l))}_setCustomProperty(r,l){this._customProperties.set(r,l)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function Cu(b,r){const l=r.split(/\s+/);b.clear(),l.forEach(p=>b.add(p))}class ur extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=td}is(r,l=null){return l?l===this.name&&("containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}}function td(){const b=[...this.getChildren()],r=b[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const l of b)if(!l.is("uiElement"))return null;return this.childCount}var Pt=Lo(function(b,r){cn(r,Xi(r),b)});const me=Symbol("observableProperties"),Yt=Symbol("boundObservables"),Ge=Symbol("boundProperties"),En={set(b,r){if(Qt(b))return void Object.keys(b).forEach(p=>{this.set(p,b[p])},this);pe(this);const l=this[me];if(b in this&&!l.has(b))throw new jn.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,b,{enumerable:!0,configurable:!0,get:()=>l.get(b),set(p){const x=l.get(b);let Z=this.fire("set:"+b,b,p,x);void 0===Z&&(Z=p),x===Z&&l.has(b)||(l.set(b,Z),this.fire("change:"+b,b,Z,x))}}),this[b]=r},bind(...b){if(!b.length||!Tn(b))throw new jn.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(b).size!==b.length)throw new jn.b("observable-bind-duplicate-properties: Properties must be unique.",this);pe(this);const r=this[Ge];b.forEach(p=>{if(r.has(p))throw new jn.b("observable-bind-rebind: Cannot bind the same property more than once.",this)});const l=new Map;return b.forEach(p=>{const x={property:p,to:[]};r.set(p,x),l.set(p,x)}),{to:Te,toMany:Xe,_observable:this,_bindProperties:b,_to:[],_bindings:l}},unbind(...b){if(!this[me])return;const r=this[Ge],l=this[Yt];if(b.length){if(!Tn(b))throw new jn.b("observable-unbind-wrong-properties: Properties must be strings.",this);b.forEach(p=>{const x=r.get(p);if(!x)return;let Z,k,H,G;x.to.forEach(rt=>{Z=rt[0],k=rt[1],H=l.get(Z),G=H[k],G.delete(x),G.size||delete H[k],Object.keys(H).length||(l.delete(Z),this.stopListening(Z,"change"))}),r.delete(p)})}else l.forEach((p,x)=>{this.stopListening(x,"change")}),l.clear(),r.clear()},decorate(b){const r=this[b];if(!r)throw new jn.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:b});this.on(b,(l,p)=>{l.return=r.apply(this,p)}),this[b]=function(...l){return this.fire(b,l)}}};Pt(En,wa);var St=En;function pe(b){b[me]||(Object.defineProperty(b,me,{value:new Map}),Object.defineProperty(b,Yt,{value:new Map}),Object.defineProperty(b,Ge,{value:new Map}))}function Te(...b){const r=function(...Z){if(!Z.length)throw new jn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const k={to:[]};let H;return"function"==typeof Z[Z.length-1]&&(k.callback=Z.pop()),Z.forEach(G=>{if("string"==typeof G)H.properties.push(G);else{if("object"!=typeof G)throw new jn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);H={observable:G,properties:[]},k.to.push(H)}}),k}(...b),l=Array.from(this._bindings.keys()),p=l.length;if(!r.callback&&r.to.length>1)throw new jn.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(p>1&&r.callback)throw new jn.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);var x;r.to.forEach(Z=>{if(Z.properties.length&&Z.properties.length!==p)throw new jn.b("observable-bind-to-properties-length: The number of properties must match.",this);Z.properties.length||(Z.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(l[0]).callback=r.callback),x=this._observable,this._to.forEach(Z=>{const k=x[Yt];let H;k.get(Z.observable)||x.listenTo(Z.observable,"change",(G,rt)=>{H=k.get(Z.observable)[rt],H&&H.forEach(ft=>{Xn(x,ft.property)})})}),function(Z){let k;Z._bindings.forEach((H,G)=>{Z._to.forEach(rt=>{k=rt.properties[H.callback?0:Z._bindProperties.indexOf(G)],H.to.push([rt.observable,k]),function(ft,Mt,he,Je){const fn=ft[Yt],Mn=fn.get(he),In=Mn||{};In[Je]||(In[Je]=new Set),In[Je].add(Mt),Mn||fn.set(he,In)}(Z._observable,H,rt.observable,k)})})}(this),this._bindProperties.forEach(Z=>{Xn(this._observable,Z)})}function Xe(b,r,l){if(this._bindings.size>1)throw new jn.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(p,x){const Z=p.map(k=>[k,x]);return Array.prototype.concat.apply([],Z)}(b,r),l)}function Tn(b){return b.every(r=>"string"==typeof r)}function Xn(b,r){const l=b[Ge].get(r);let p;l.callback?p=l.callback.apply(b,l.to.map(x=>x[0][x[1]])):(p=l.to[0],p=p[0][p[1]]),Object.prototype.hasOwnProperty.call(b,r)?b[r]=p:b.set(r,p)}class ei extends ur{constructor(r,l,p,x){super(r,l,p,x),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",Z=>Z&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}is(r,l=null){return l?l===this.name&&("editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}destroy(){this.stopListening()}}ao(ei,St);const yi=Symbol("rootName");class Ui extends ei{constructor(r,l){super(r,l),this.rootName="main"}is(r,l=null){return l?l===this.name&&("rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}get rootName(){return this.getCustomProperty(yi)}set rootName(r){this._setCustomProperty(yi,r)}set _name(r){this.name=r}}class xo{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new jn.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new jn.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this.position=vi._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(r){let l,p,x;do{x=this.position,({done:l,value:p}=this.next())}while(!l&&r(p));l||(this.position=x)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const l=this.position,p=r.parent;if(null===p.parent&&r.offset===p.childCount)return{done:!0};if(p===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0};let x;if(p instanceof or){if(r.isAtEnd)return this.position=vi._createAfter(p),this._next();x=p.data[r.offset]}else x=p.getChild(r.offset);if(x instanceof Xs)return this.shallow?r.offset++:r=new vi(x,0),this.position=r,this._formatReturnValue("elementStart",x,l,r,1);if(x instanceof or){if(this.singleCharacters)return r=new vi(x,0),this.position=r,this._next();{let Z,k=x.data.length;return x==this._boundaryEndParent?(k=this.boundaries.end.offset,Z=new Wr(x,0,k),r=vi._createAfter(Z)):(Z=new Wr(x,0,x.data.length),r.offset++),this.position=r,this._formatReturnValue("text",Z,l,r,k)}}if("string"==typeof x){let Z;Z=this.singleCharacters?1:(p===this._boundaryEndParent?this.boundaries.end.offset:p.data.length)-r.offset;const k=new Wr(p,r.offset,Z);return r.offset+=Z,this.position=r,this._formatReturnValue("text",k,l,r,Z)}return r=vi._createAfter(p),this.position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",p,l,r)}_previous(){let r=this.position.clone();const l=this.position,p=r.parent;if(null===p.parent&&0===r.offset)return{done:!0};if(p==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0};let x;if(p instanceof or){if(r.isAtStart)return this.position=vi._createBefore(p),this._previous();x=p.data[r.offset-1]}else x=p.getChild(r.offset-1);if(x instanceof Xs)return this.shallow?(r.offset--,this.position=r,this._formatReturnValue("elementStart",x,l,r,1)):(r=new vi(x,x.childCount),this.position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",x,l,r));if(x instanceof or){if(this.singleCharacters)return r=new vi(x,x.data.length),this.position=r,this._previous();{let Z,k=x.data.length;if(x==this._boundaryStartParent){const H=this.boundaries.start.offset;Z=new Wr(x,H,x.data.length-H),k=Z.data.length,r=vi._createBefore(Z)}else Z=new Wr(x,0,x.data.length),r.offset--;return this.position=r,this._formatReturnValue("text",Z,l,r,k)}}if("string"==typeof x){let Z;Z=this.singleCharacters?1:r.offset-(p===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=Z;const k=new Wr(p,r.offset,Z);return this.position=r,this._formatReturnValue("text",k,l,r,Z)}return r=vi._createBefore(p),this.position=r,this._formatReturnValue("elementStart",p,l,r,1)}_formatReturnValue(r,l,p,x,Z){return l instanceof Wr&&(l.offsetInText+l.data.length==l.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?p=vi._createAfter(l.textNode):(x=vi._createAfter(l.textNode),this.position=x)),0===l.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?p=vi._createBefore(l.textNode):(x=vi._createBefore(l.textNode),this.position=x))),{done:!1,value:{type:r,item:l,previousPosition:p,nextPosition:x,length:Z}}}}class vi{constructor(r,l){this.parent=r,this.offset=l}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof ei);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const l=vi._createAt(this),p=l.offset+r;return l.offset=p<0?0:p,l}getLastMatchingPosition(r,l={}){l.startPosition=this;const p=new xo(l);return p.skip(r),p.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const l=this.getAncestors(),p=r.getAncestors();let x=0;for(;l[x]==p[x]&&l[x];)x++;return 0===x?null:l[x-1]}is(r){return"position"===r||"view:position"===r}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const l=this.parent.is("node")?this.parent.getPath():[],p=r.parent.is("node")?r.parent.getPath():[];l.push(this.offset),p.push(r.offset);const x=ps(l,p);switch(x){case"prefix":return"before";case"extension":return"after";default:return l[x]0?new this(p,x):new this(x,p)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const l=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(vi._createBefore(r),l)}}function ua(b){return!(!b.item.is("attributeElement")&&!b.item.is("uiElement"))}function ea(b){let r=0;for(const l of b)r++;return r}class ga{constructor(r=null,l,p){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(r,l,p)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const l of this._ranges)r&&!l.start.isBefore(r.start)||(r=l);return r?r.clone():null}getLastRange(){let r=null;for(const l of this._ranges)r&&!l.end.isAfter(r.end)||(r=l);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const l of this._ranges){let p=!1;for(const x of r._ranges)if(l.isEqual(x)){p=!0;break}if(!p)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const l=ea(this.getRanges());if(l!=ea(r.getRanges()))return!1;if(0==l)return!0;for(let p of this.getRanges()){p=p.getTrimmed();let x=!1;for(let Z of r.getRanges())if(Z=Z.getTrimmed(),p.start.isEqual(Z.start)&&p.end.isEqual(Z.end)){x=!0;break}if(!x)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(r,l,p){if(null===r)this._setRanges([]),this._setFakeOptions(l);else if(r instanceof ga||r instanceof $r)this._setRanges(r.getRanges(),r.isBackward),this._setFakeOptions({fake:r.isFake,label:r.fakeSelectionLabel});else if(r instanceof zi)this._setRanges([r],l&&l.backward),this._setFakeOptions(l);else if(r instanceof vi)this._setRanges([new zi(r)]),this._setFakeOptions(l);else if(r instanceof la){const x=!!p&&!!p.backward;let Z;if(void 0===l)throw new jn.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);Z="in"==l?zi._createIn(r):"on"==l?zi._createOn(r):new zi(vi._createAt(r,l)),this._setRanges([Z],x),this._setFakeOptions(p)}else{if(!za(r))throw new jn.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(r,l&&l.backward),this._setFakeOptions(l)}this.fire("change")}setFocus(r,l){if(null===this.anchor)throw new jn.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const p=vi._createAt(r,l);if("same"==p.compareWith(this.focus))return;const x=this.anchor;this._ranges.pop(),"before"==p.compareWith(x)?this._addRange(new zi(p,x),!0):this._addRange(new zi(x,p)),this.fire("change")}is(r){return"selection"===r||"view:selection"===r}_setRanges(r,l=!1){r=Array.from(r),this._ranges=[];for(const p of r)this._addRange(p);this._lastRangeBackward=!!l}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,l=!1){if(!(r instanceof zi))throw new jn.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(r),this._lastRangeBackward=!!l}_pushRange(r){for(const l of this._ranges)if(r.isIntersecting(l))throw new jn.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:r,intersectingRange:l});this._ranges.push(new zi(r.start,r.end))}}ao(ga,wa);class $r{constructor(r=null,l,p){this._selection=new ga,this._selection.delegate("change").to(this),this._selection.setTo(r,l,p)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}is(r){return"selection"===r||"documentSelection"==r||"view:selection"==r||"view:documentSelection"==r}_setTo(r,l,p){this._selection.setTo(r,l,p)}_setFocus(r,l){this._selection.setFocus(r,l)}}ao($r,wa);class fs{constructor(r){this.selection=new $r,this.roots=new Er({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let l=!1;do{for(const p of this._postFixers)if(l=p(r),l)break}while(l)}}ao(fs,St);class Us extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=Kr,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new jn.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}is(r,l=null){return l?l===this.name&&("attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r):"attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r){const l=super._clone(r);return l._priority=this._priority,l._id=this._id,l}}function Kr(){if(Vr(this))return null;let b=this.parent;for(;b&&b.is("attributeElement");){if(Vr(b)>1)return null;b=b.parent}return!b||Vr(b)>1?null:this.childCount}function Vr(b){return Array.from(b.getChildren()).filter(r=>!r.is("uiElement")).length}Us.DEFAULT_PRIORITY=10;class os extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=tc}is(r,l=null){return l?l===this.name&&("emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r):"emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,l){if(l&&(l instanceof la||Array.from(l).length>0))throw new jn.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,l])}}function tc(){return null}const ec=navigator.userAgent.toLowerCase();var ws_isMac=function(b){return b.indexOf("macintosh")>-1}(ec),ws_isGecko=function(b){return!!b.match(/gecko\/\d+/)}(ec),ws_isSafari=function(b){return b.indexOf(" applewebkit/")>-1&&-1===b.indexOf("chrome")}(ec),ws_isAndroid=function(b){return b.indexOf("android")>-1}(ec);!function(){let b=!1;try{b=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}();const o1={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},rr={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},na=function(){const b={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let r=65;r<=90;r++)b[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)b[r-48]=r;for(let r=112;r<=123;r++)b["f"+(r-111)]=r;return b}();function Ba(b){let r;if("string"==typeof b){if(r=na[b.toLowerCase()],!r)throw new jn.b("keyboard-unknown-key: Unknown key name.",null,{key:b})}else r=b.keyCode+(b.altKey?na.alt:0)+(b.ctrlKey?na.ctrl:0)+(b.shiftKey?na.shift:0);return r}function sp(b){return"string"==typeof b&&(b=cp(b)),b.map(r=>"string"==typeof r?Ba(r):r).reduce((r,l)=>l+r,0)}function L1(b){return ws_isMac?cp(b).map(r=>rr[r.toLowerCase()]||r).reduce((r,l)=>r.slice(-1)in o1?r+l:r+"+"+l):b}function ed(b){return b==na.arrowright||b==na.arrowleft||b==na.arrowup||b==na.arrowdown}function Wc(b,r){const l="ltr"===r;switch(b){case na.arrowleft:return l?"left":"right";case na.arrowright:return l?"right":"left";case na.arrowup:return"up";case na.arrowdown:return"down"}}function a1(b,r){const l=Wc(b,r);return"down"===l||"right"===l}function cp(b){return b.split(/\s*\+\s*/)}class yu extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=lp}is(r,l=null){return l?l===this.name&&("uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r):"uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,l){if(l&&(l instanceof la||Array.from(l).length>0))throw new jn.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}render(r){return this.toDomElement(r)}toDomElement(r){const l=r.createElement(this.name);for(const p of this.getAttributeKeys())l.setAttribute(p,this.getAttribute(p));return l}}function lp(){return null}class Au extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=pc}is(r,l=null){return l?l===this.name&&("rawElement"===r||"view:rawElement"===r||"element"===r||"view:element"===r):"rawElement"===r||"view:rawElement"===r||r===this.name||r==="view:"+this.name||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,l){if(l&&(l instanceof la||Array.from(l).length>0))throw new jn.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,l])}}function pc(){return null}class Gl{constructor(r,l){this.document=r,this._children=[],l&&this._insertChild(0,l)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(r){return"documentFragment"===r||"view:documentFragment"===r}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,l){this._fireChange("children",this);let p=0;const x=(Z=this.document,"string"==typeof(k=l)?[new or(Z,k)]:(za(k)||(k=[k]),Array.from(k).map(H=>"string"==typeof H?new or(Z,H):H instanceof Wr?new or(Z,H.data):H)));var Z,k;for(const Z of x)null!==Z.parent&&Z._remove(),Z.parent=this,this._children.splice(r,0,Z),r++,p++;return p}_removeChildren(r,l=1){this._fireChange("children",this);for(let p=r;p{}),x}setAttribute(r,l,p){p._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,p){Gt(r)&&void 0===p&&(p=l),p._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,p){p._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}breakAttributes(r){return r instanceof vi?this._breakAttributes(r):this._breakAttributesRange(r)}breakContainer(r){const l=r.parent;if(!l.is("containerElement"))throw new jn.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!l.parent)throw new jn.b("view-writer-break-root: Trying to break root element.",this.document);if(r.isAtStart)return vi._createBefore(l);if(!r.isAtEnd){const p=l._clone(!1);this.insert(vi._createAfter(l),p);const x=new zi(r,vi._createAt(l,"end")),Z=new vi(p,0);this.move(x,Z)}return vi._createAfter(l)}mergeAttributes(r){const l=r.offset,p=r.parent;if(p.is("$text"))return r;if(p.is("attributeElement")&&0===p.childCount){const k=p.parent,H=p.index;return p._remove(),this._removeFromClonedElementsGroup(p),this.mergeAttributes(new vi(k,H))}const x=p.getChild(l-1),Z=p.getChild(l);if(!x||!Z)return r;if(x.is("$text")&&Z.is("$text"))return nd(x,Z);if(x.is("attributeElement")&&Z.is("attributeElement")&&x.isSimilar(Z)){const k=x.childCount;return x._appendChild(Z.getChildren()),Z._remove(),this._removeFromClonedElementsGroup(Z),this.mergeAttributes(new vi(x,k))}return r}mergeContainers(r){const l=r.nodeBefore,p=r.nodeAfter;if(!(l&&p&&l.is("containerElement")&&p.is("containerElement")))throw new jn.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const x=l.getChild(l.childCount-1),Z=vi._createAt(x instanceof or?x:l,"end");return this.move(zi._createIn(p),vi._createAt(l,"end")),this.remove(zi._createOn(p)),Z}insert(r,l){!function G(rt,ft){for(const Mt of rt){if(!io.some(he=>Mt instanceof he))throw new jn.b("view-writer-insert-invalid-node",ft);Mt.is("$text")||G(Mt.getChildren(),ft)}}(l=za(l)?[...l]:[l],this.document);const p=ym(r);if(!p)throw new jn.b("view-writer-invalid-position-container",this.document);const x=this._breakAttributes(r,!0),Z=p._insertChild(x.offset,l);for(const G of l)this._addToClonedElementsGroup(G);const k=x.getShiftedBy(Z),H=this.mergeAttributes(x);if(0===Z)return new zi(H,H);{H.isEqual(x)||k.offset--;const G=this.mergeAttributes(k);return new zi(H,G)}}remove(r){const l=r instanceof zi?r:zi._createOn(r);if(Y(l,this.document),l.isCollapsed)return new Gl(this.document);const{start:p,end:x}=this._breakAttributesRange(l,!0),H=p.parent._removeChildren(p.offset,x.offset-p.offset);for(const rt of H)this._removeFromClonedElementsGroup(rt);const G=this.mergeAttributes(p);return l.start=G,l.end=G.clone(),new Gl(this.document,H)}clear(r,l){Y(r,this.document);const p=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const x of p){const Z=x.item;let k;if(Z.is("element")&&l.isSimilar(Z))k=zi._createOn(Z);else if(!x.nextPosition.isAfter(r.start)&&Z.is("$textProxy")){const H=Z.getAncestors().find(G=>G.is("element")&&l.isSimilar(G));H&&(k=zi._createIn(H))}k&&(k.end.isAfter(r.end)&&(k.end=r.end),k.start.isBefore(r.start)&&(k.start=r.start),this.remove(k))}}move(r,l){let p;if(l.isAfter(r.end)){const x=(l=this._breakAttributes(l,!0)).parent,Z=x.childCount;r=this._breakAttributesRange(r,!0),p=this.remove(r),l.offset+=x.childCount-Z}else p=this.remove(r);return this.insert(l,p)}wrap(r,l){if(!(l instanceof Us))throw new jn.b("view-writer-wrap-invalid-attribute",this.document);if(Y(r,this.document),r.isCollapsed){let x=r.start;x.parent.is("element")&&!Array.from(x.parent.getChildren()).some(k=>!k.is("uiElement"))&&(x=x.getLastMatchingPosition(k=>k.item.is("uiElement"))),x=this._wrapPosition(x,l);const Z=this.document.selection;return Z.isCollapsed&&Z.getFirstPosition().isEqual(r.start)&&this.setSelection(x),new zi(x)}return this._wrapRange(r,l)}unwrap(r,l){if(!(l instanceof Us))throw new jn.b("view-writer-unwrap-invalid-attribute",this.document);if(Y(r,this.document),r.isCollapsed)return r;const{start:p,end:x}=this._breakAttributesRange(r,!0),k=this._unwrapChildren(p.parent,p.offset,x.offset,l),H=this.mergeAttributes(k.start);H.isEqual(k.start)||k.end.offset--;const G=this.mergeAttributes(k.end);return new zi(H,G)}rename(r,l){const p=new ur(this.document,r,l.getAttributes());return this.insert(vi._createAfter(l),p),this.move(zi._createIn(l),vi._createAt(p,0)),this.remove(zi._createOn(l)),p}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,l){return vi._createAt(r,l)}createPositionAfter(r){return vi._createAfter(r)}createPositionBefore(r){return vi._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeOn(r){return zi._createOn(r)}createRangeIn(r){return zi._createIn(r)}createSelection(r,l,p){return new ga(r,l,p)}_wrapChildren(r,l,p,x){let Z=l;const k=[];for(;Z!1,r.parent._insertChild(r.offset,p);const x=new zi(r,r.getShiftedBy(1));this.wrap(x,l);const Z=new vi(p.parent,p.index);p._remove();const k=Z.nodeBefore,H=Z.nodeAfter;return k instanceof or&&H instanceof or?nd(k,H):Ml(Z)}_wrapAttributeElement(r,l){if(!ra(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const p of r.getAttributeKeys())if("class"!==p&&"style"!==p&&l.hasAttribute(p)&&l.getAttribute(p)!==r.getAttribute(p))return!1;for(const p of r.getStyleNames())if(l.hasStyle(p)&&l.getStyle(p)!==r.getStyle(p))return!1;for(const p of r.getAttributeKeys())"class"!==p&&"style"!==p&&(l.hasAttribute(p)||this.setAttribute(p,r.getAttribute(p),l));for(const p of r.getStyleNames())l.hasStyle(p)||this.setStyle(p,r.getStyle(p),l);for(const p of r.getClassNames())l.hasClass(p)||this.addClass(p,l);return!0}_unwrapAttributeElement(r,l){if(!ra(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const p of r.getAttributeKeys())if("class"!==p&&"style"!==p&&(!l.hasAttribute(p)||l.getAttribute(p)!==r.getAttribute(p)))return!1;if(!l.hasClass(...r.getClassNames()))return!1;for(const p of r.getStyleNames())if(!l.hasStyle(p)||l.getStyle(p)!==r.getStyle(p))return!1;for(const p of r.getAttributeKeys())"class"!==p&&"style"!==p&&this.removeAttribute(p,l);return this.removeClass(Array.from(r.getClassNames()),l),this.removeStyle(Array.from(r.getStyleNames()),l),!0}_breakAttributesRange(r,l=!1){const p=r.start,x=r.end;if(Y(r,this.document),r.isCollapsed){const G=this._breakAttributes(r.start,l);return new zi(G,G)}const Z=this._breakAttributes(x,l),k=Z.parent.childCount,H=this._breakAttributes(p,l);return Z.offset+=Z.parent.childCount-k,new zi(H,Z)}_breakAttributes(r,l=!1){const p=r.offset,x=r.parent;if(r.parent.is("emptyElement"))throw new jn.b("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new jn.b("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new jn.b("view-writer-cannot-break-raw-element: Cannot break inside a RawElement instance.",this.document);if(!l&&x.is("$text")&&sn(x.parent)||sn(x))return r.clone();if(x.is("$text"))return this._breakAttributes(On(r),l);if(p==x.childCount){const Z=new vi(x.parent,x.index+1);return this._breakAttributes(Z,l)}if(0===p){const Z=new vi(x.parent,x.index);return this._breakAttributes(Z,l)}{const Z=x.index+1,k=x._clone();x.parent._insertChild(Z,k),this._addToClonedElementsGroup(k);const G=x._removeChildren(p,x.childCount-p);k._appendChild(G);const rt=new vi(x.parent,Z);return this._breakAttributes(rt,l)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const x of r.getChildren())this._addToClonedElementsGroup(x);const l=r.id;if(!l)return;let p=this._cloneGroups.get(l);p||(p=new Set,this._cloneGroups.set(l,p)),p.add(r),r._clonesGroup=p}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const x of r.getChildren())this._removeFromClonedElementsGroup(x);const l=r.id;if(!l)return;const p=this._cloneGroups.get(l);p&&p.delete(r)}}function ym(b){let r=b.parent;for(;!sn(r);){if(!r)return;r=r.parent}return r}function Br(b,r){return b.priorityr.priority)&&b.getIdentity()b.createTextNode("\xa0"),f_=b=>{const r=b.createElement("br");return r.dataset.ckeFiller=!0,r},Sp=(()=>{let b="";for(let r=0;r<7;r++)b+="\u200b";return b})();function sa(b){return qr(b)&&b.data.substr(0,7)===Sp}function Ls(b){return 7==b.data.length&&sa(b)}function Tm(b){return sa(b)?b.data.slice(7):b.data}function Es(b,r){if(r.keyCode==na.arrowleft){const l=r.domTarget.ownerDocument.defaultView.getSelection();if(1==l.rangeCount&&l.getRangeAt(0).collapsed){const p=l.getRangeAt(0).startContainer,x=l.getRangeAt(0).startOffset;sa(p)&&x<=7&&l.collapse(p,0)}}}function kp(b,r,l,p=!1){l=l||function(Z,k){return Z===k},Array.isArray(b)||(b=Array.prototype.slice.call(b)),Array.isArray(r)||(r=Array.prototype.slice.call(r));const x=function(Z,k,H){const G=E1(Z,k,H);if(-1===G)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Mt=E1(h_(Z,G),h_(k,G),H);return{firstIndex:G,lastIndexOld:Z.length-Mt,lastIndexNew:k.length-Mt}}(b,r,l);return p?function(Z,k){const{firstIndex:H,lastIndexOld:G,lastIndexNew:rt}=Z;if(-1===H)return Array(k).fill("equal");let ft=[];return H>0&&(ft=ft.concat(Array(H).fill("equal"))),rt-H>0&&(ft=ft.concat(Array(rt-H).fill("insert"))),G-H>0&&(ft=ft.concat(Array(G-H).fill("delete"))),rt0&&H.push({index:G,type:"insert",values:Z.slice(G,ft)}),rt-G>0&&H.push({index:G+(ft-G),type:"delete",howMany:rt-G}),H}(r,x)}function E1(b,r,l){for(let p=0;p200||x>200||p+x>300)return qc.fastDiff(b,r,l,!0);let Z,k;if(xQn?-1:1;ft[Mn+Fi]&&(ft[Mn]=ft[Mn+Fi].slice(0)),ft[Mn]||(ft[Mn]=[]),ft[Mn].push(In>Qn?Z:k);let Ji=Math.max(In,Qn),Uo=Ji-Mn;for(;Uort;Je--)Mt[Je]=he(Je);Mt[rt]=he(rt),fn++}while(Mt[rt]!==G);return ft[rt].slice(1)}function mc(b,r,l){b.insertBefore(l,b.childNodes[r]||null)}function Tc(b){const r=b.parentNode;r&&r.removeChild(b)}function cu(b){if(b){if(b.defaultView)return b instanceof b.defaultView.Document;if(b.ownerDocument&&b.ownerDocument.defaultView)return b instanceof b.ownerDocument.defaultView.Node}return!1}qc.fastDiff=kp;class id{constructor(r,l){this.domDocuments=new Set,this.domConverter=r,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=l,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(r,l){if("text"===r)this.domConverter.mapViewToDom(l.parent)&&this.markedTexts.add(l);else{if(!this.domConverter.mapViewToDom(l))return;if("attributes"===r)this.markedAttributes.add(l);else{if("children"!==r)throw new jn.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(l)}}}render(){let r;for(const l of this.markedChildren)this._updateChildrenMappings(l);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent));for(const l of this.markedAttributes)this._updateAttrs(l);for(const l of this.markedChildren)this._updateChildren(l,{inlineFillerPosition:r});for(const l of this.markedTexts)!this.markedChildren.has(l.parent)&&this.domConverter.mapViewToDom(l.parent)&&this._updateText(l,{inlineFillerPosition:r});if(r){const l=this.domConverter.viewPositionToDom(r),p=l.parent.ownerDocument;this._inlineFiller=sa(l.parent)?l.parent:od(p,l.parent,l.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const l=this.domConverter.mapViewToDom(r);if(!l)return;const p=this.domConverter.mapViewToDom(r).childNodes,x=Array.from(this.domConverter.viewChildrenToDom(r,l.ownerDocument,{withChildren:!1})),Z=this._diffNodeLists(p,x),k=this._findReplaceActions(Z,p,x);if(-1!==k.indexOf("replace")){const H={equal:0,insert:0,delete:0};for(const G of k)if("replace"===G){const rt=H.equal+H.insert,ft=H.equal+H.delete,Mt=r.getChild(rt);!Mt||Mt.is("uiElement")||Mt.is("rawElement")||this._updateElementMappings(Mt,p[ft]),Tc(x[rt]),H.equal++}else H[G]++}}_updateElementMappings(r,l){this.domConverter.unbindDomElement(l),this.domConverter.bindElements(l,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?vi._createBefore(this.selection.getFirstPosition().parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),l=this.domConverter.viewPositionToDom(r);return!!(l&&qr(l.parent)&&sa(l.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!sa(r))throw new jn.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);Ls(r)?r.parentNode.removeChild(r):r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),l=r.parent,p=r.offset;return!!(this.domConverter.mapViewToDom(l.root)&&l.is("element")&&function(k){if("false"==k.getAttribute("contenteditable"))return!1;const H=k.findAncestor(G=>G.hasAttribute("contenteditable"));return!H||"true"==H.getAttribute("contenteditable")}(l)&&p!==l.getFillerOffset())&&!(r.nodeBefore instanceof or||r.nodeAfter instanceof or)}_updateText(r,l){const p=this.domConverter.findCorrespondingDomText(r),x=this.domConverter.viewToDom(r,p.ownerDocument),Z=p.data;let k=x.data;const H=l.inlineFillerPosition;if(H&&H.parent==r.parent&&H.offset==r.index&&(k=Sp+k),Z!=k){const G=kp(Z,k);for(const rt of G)"insert"===rt.type?p.insertData(rt.index,rt.values.join("")):p.deleteData(rt.index,rt.howMany)}}_updateAttrs(r){const l=this.domConverter.mapViewToDom(r);if(!l)return;const p=Array.from(l.attributes).map(Z=>Z.name),x=r.getAttributeKeys();for(const Z of x)l.setAttribute(Z,r.getAttribute(Z));for(const Z of p)r.hasAttribute(Z)||l.removeAttribute(Z)}_updateChildren(r,l){const p=this.domConverter.mapViewToDom(r);if(!p)return;const x=l.inlineFillerPosition,Z=this.domConverter.mapViewToDom(r).childNodes,k=Array.from(this.domConverter.viewChildrenToDom(r,p.ownerDocument,{bind:!0,inlineFillerPosition:x}));x&&x.parent===r&&od(p.ownerDocument,k,x.offset);const H=this._diffNodeLists(Z,k);let G=0;const rt=new Set;for(const ft of H)"delete"===ft?(rt.add(Z[G]),Tc(Z[G])):"equal"===ft&&G++;G=0;for(const ft of H)"insert"===ft?(mc(p,G,k[G]),G++):"equal"===ft&&(this._markDescendantTextToSync(this.domConverter.domToView(k[G])),G++);for(const ft of rt)ft.parentNode||this.domConverter.unbindDomElement(ft)}_diffNodeLists(r,l){return qc(r=function(p,x){const Z=Array.from(p);return 0==Z.length||!x||Z[Z.length-1]==x&&Z.pop(),Z}(r,this._fakeSelectionContainer),l,e2.bind(null,this.domConverter))}_findReplaceActions(r,l,p){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let x=[],Z=[],k=[];const H={equal:0,insert:0,delete:0};for(const G of r)"insert"===G?k.push(p[H.equal+H.insert]):"delete"===G?Z.push(l[H.equal+H.delete]):(x=x.concat(qc(Z,k,lu).map(rt=>"equal"===rt?"replace":rt)),x.push("equal"),Z=[],k=[]),H[G]++;return x.concat(qc(Z,k,lu).map(G=>"equal"===G?"replace":G))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const l of r.getChildren())this._markDescendantTextToSync(l)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):(this._removeFakeSelection(),this._updateDomSelection(r)))}_updateFakeSelection(r){const l=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(k){const H=k.createElement("div");return Object.assign(H.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),H.textContent="\xa0",H}(l));const p=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(p,this.selection),!this._fakeSelectionNeedsUpdate(r))return;p.parentElement&&p.parentElement==r||r.appendChild(p),p.textContent=this.selection.fakeSelectionLabel||"\xa0";const x=l.getSelection(),Z=l.createRange();x.removeAllRanges(),Z.selectNodeContents(p),x.addRange(Z)}_updateDomSelection(r){const l=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(l))return;const p=this.domConverter.viewPositionToDom(this.selection.anchor),x=this.domConverter.viewPositionToDom(this.selection.focus);r.focus(),l.collapse(p.parent,p.offset),l.extend(x.parent,x.offset),ws_isGecko&&function(Z,k){const H=Z.parent;if(H.nodeType!=Node.ELEMENT_NODE||Z.offset!=H.childNodes.length-1)return;const G=H.childNodes[Z.offset];G&&"BR"==G.tagName&&k.addRange(k.getRangeAt(0))}(x,l)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const l=r&&this.domConverter.domSelectionToView(r);return!(l&&this.selection.isEqual(l)||!this.selection.isCollapsed&&this.selection.isSimilar(l))}_fakeSelectionNeedsUpdate(r){const l=this._fakeSelectionContainer,p=r.ownerDocument.getSelection();return!l||l.parentElement!==r||p.anchorNode!==l&&!l.contains(p.anchorNode)||l.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments)if(r.getSelection().rangeCount){const l=r.activeElement,p=this.domConverter.mapDomToView(l);l&&p&&r.getSelection().removeAllRanges()}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function od(b,r,l){const p=r instanceof Array?r:r.childNodes,x=p[l];if(qr(x))return x.data=Sp+x.data,x;{const Z=b.createTextNode(Sp);return Array.isArray(r)?p.splice(l,0,Z):mc(r,l,Z),Z}}function lu(b,r){return cu(b)&&cu(r)&&!qr(b)&&!qr(r)&&b.nodeType!==Node.COMMENT_NODE&&r.nodeType!==Node.COMMENT_NODE&&b.tagName.toLowerCase()===r.tagName.toLowerCase()}function e2(b,r,l){return r===l||(qr(r)&&qr(l)?r.data===l.data:!(!b.isBlockFiller(r)||!b.isBlockFiller(l)))}ao(id,St);var ht={window,document};function vt(b){let r=0;for(;b.previousSibling;)b=b.previousSibling,r++;return r}function st(b){const r=[];for(;b&&b.nodeType!=Node.DOCUMENT_NODE;)r.unshift(b),b=b.parentNode;return r}const Ot=f_(document);class ne{constructor(r,l={}){this.document=r,this.blockFillerMode=l.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?f_:dr,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(r,l){this._fakeSelectionMapping.set(r,new ga(l))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,l){this._domToViewMapping.set(r,l),this._viewToDomMapping.set(l,r)}unbindDomElement(r){const l=this._domToViewMapping.get(r);if(l){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(l);for(const p of r.childNodes)this.unbindDomElement(p)}}bindDocumentFragments(r,l){this._domToViewMapping.set(r,l),this._viewToDomMapping.set(l,r)}viewToDom(r,l,p={}){if(r.is("$text")){const x=this._processDataFromViewText(r);return l.createTextNode(x)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let x;if(r.is("documentFragment"))x=l.createDocumentFragment(),p.bind&&this.bindDocumentFragments(x,r);else{if(r.is("uiElement"))return x=r.render(l),p.bind&&this.bindElements(x,r),x;x=r.hasAttribute("xmlns")?l.createElementNS(r.getAttribute("xmlns"),r.name):l.createElement(r.name),r.is("rawElement")&&r.render(x),p.bind&&this.bindElements(x,r);for(const Z of r.getAttributeKeys())x.setAttribute(Z,r.getAttribute(Z))}if(p.withChildren||void 0===p.withChildren)for(const Z of this.viewChildrenToDom(r,l,p))x.appendChild(Z);return x}}*viewChildrenToDom(r,l,p={}){const x=r.getFillerOffset&&r.getFillerOffset();let Z=0;for(const k of r.getChildren())x===Z&&(yield this._blockFiller(l)),yield this.viewToDom(k,l,p),Z++;x===Z&&(yield this._blockFiller(l))}viewRangeToDom(r){const l=this.viewPositionToDom(r.start),p=this.viewPositionToDom(r.end),x=document.createRange();return x.setStart(l.parent,l.offset),x.setEnd(p.parent,p.offset),x}viewPositionToDom(r){const l=r.parent;if(l.is("$text")){const p=this.findCorrespondingDomText(l);if(!p)return null;let x=r.offset;return sa(p)&&(x+=7),{parent:p,offset:x}}{let p,x,Z;if(0===r.offset){if(p=this.mapViewToDom(l),!p)return null;Z=p.childNodes[0]}else{const k=r.nodeBefore;if(x=k.is("$text")?this.findCorrespondingDomText(k):this.mapViewToDom(r.nodeBefore),!x)return null;p=x.parentNode,Z=x.nextSibling}return qr(Z)&&sa(Z)?{parent:Z,offset:7}:{parent:p,offset:x?vt(x)+1:0}}}domToView(r,l={}){if(this.isBlockFiller(r,this.blockFillerMode))return null;const p=this.getHostViewElement(r,this._domToViewMapping);if(p)return p;if(qr(r)){if(Ls(r))return null;{const x=this._processDataFromDomText(r);return""===x?null:new or(this.document,x)}}if(this.isComment(r))return null;{if(this.mapDomToView(r))return this.mapDomToView(r);let x;if(this.isDocumentFragment(r))x=new Gl(this.document),l.bind&&this.bindDocumentFragments(r,x);else{const Z=l.keepOriginalCase?r.tagName:r.tagName.toLowerCase();x=new Xs(this.document,Z),l.bind&&this.bindElements(r,x);const k=r.attributes;for(let H=k.length-1;H>=0;H--)x._setAttribute(k[H].name,k[H].value)}if(l.withChildren||void 0===l.withChildren)for(const Z of this.domChildrenToView(r,l))x._appendChild(Z);return x}}*domChildrenToView(r,l={}){for(let p=0;p{const{scrollLeft:H,scrollTop:G}=k;Z.push([H,G])}),l.focus(),de(l,k=>{const[H,G]=Z.shift();k.scrollLeft=H,k.scrollTop=G}),ht.window.scrollTo(p,x)}}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(r){return r&&r.nodeType==Node.COMMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(Ot):!("BR"!==r.tagName||!Jt(r,this.blockElements)||1!==r.parentNode.childNodes.length)||function(l,p){return qr(l)&&"\xa0"==l.data&&Jt(l,p)&&1===l.parentNode.childNodes.length}(r,this.blockElements)}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const l=document.createRange();l.setStart(r.anchorNode,r.anchorOffset),l.setEnd(r.focusNode,r.focusOffset);const p=l.collapsed;return l.detach(),p}getHostViewElement(r){const l=st(r);for(l.pop();l.length;){const p=l.pop(),x=this._domToViewMapping.get(p);if(x&&(x.is("uiElement")||x.is("rawElement")))return x}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}_isDomSelectionPositionCorrect(r,l){if(qr(r)&&sa(r)&&l<7||this.isElement(r)&&sa(r.childNodes[l]))return!1;const p=this.mapDomToView(r);return!p||!p.is("uiElement")&&!p.is("rawElement")}_processDataFromViewText(r){let l=r.data;if(r.getAncestors().some(p=>this.preElements.includes(p.name)))return l;if(" "==l.charAt(0)){const p=this._getTouchingViewTextNode(r,!1);(!p||!this._nodeEndsWithSpace(p))&&p||(l="\xa0"+l.substr(1))}if(" "==l.charAt(l.length-1)){const p=this._getTouchingViewTextNode(r,!0);" "!=l.charAt(l.length-2)&&p&&" "!=p.data.charAt(0)||(l=l.substr(0,l.length-1)+"\xa0")}return l.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(p=>this.preElements.includes(p.name)))return!1;const l=this._processDataFromViewText(r);return" "==l.charAt(l.length-1)}_processDataFromDomText(r){let l=r.data;if(fe(r,this.preElements))return Tm(r);l=l.replace(/[ \n\t\r]{1,}/g," ");const p=this._getTouchingInlineDomNode(r,!1),x=this._getTouchingInlineDomNode(r,!0),Z=this._checkShouldLeftTrimDomText(p),k=this._checkShouldRightTrimDomText(r,x);return Z&&(l=l.replace(/^ /,"")),k&&(l=l.replace(/ $/,"")),l=Tm(new Text(l)),l=l.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(l)||!x||x.data&&" "==x.data.charAt(0))&&(l=l.replace(/\u00A0$/," ")),Z&&(l=l.replace(/^\u00A0/," ")),l}_checkShouldLeftTrimDomText(r){return!r||!!ys(r)||/[^\S\u00A0]/.test(r.data.charAt(r.data.length-1))}_checkShouldRightTrimDomText(r,l){return!l&&!sa(r)}_getTouchingViewTextNode(r,l){const p=new xo({startPosition:l?vi._createAfter(r):vi._createBefore(r),direction:l?"forward":"backward"});for(const x of p){if(x.item.is("containerElement")||x.item.is("element","br"))return null;if(x.item.is("$textProxy"))return x.item}return null}_getTouchingInlineDomNode(r,l){if(!r.parentNode)return null;const p=l?"nextNode":"previousNode",x=r.ownerDocument,Z=st(r)[0],k=x.createTreeWalker(Z,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:G=>qr(G)||"BR"==G.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});k.currentNode=r;const H=k[p]();if(null!==H){const G=function(rt,ft){const Mt=st(rt),he=st(ft);let Je=0;for(;Mt[Je]==he[Je]&&Mt[Je];)Je++;return 0===Je?null:Mt[Je-1]}(r,H);if(G&&!fe(r,this.blockElements,G)&&!fe(H,this.blockElements,G))return H}return null}}function fe(b,r,l){let p=st(b);return l&&(p=p.slice(p.indexOf(l)+1)),p.some(x=>x.tagName&&r.includes(x.tagName.toLowerCase()))}function de(b,r){for(;b&&b!=ht.document;)r(b),b=b.parentNode}function Jt(b,r){const l=b.parentNode;return l&&l.tagName&&r.includes(l.tagName.toLowerCase())}function Cn(b){const r=Object.prototype.toString.apply(b);return"[object Window]"==r||"[object global]"==r}var Ri=Pt({},wa,{listenTo(b,...r){if(cu(b)||Cn(b)){const l=this._getProxyEmitter(b)||new po(b);l.attach(...r),b=l}wa.listenTo.call(this,b,...r)},stopListening(b,r,l){if(cu(b)||Cn(b)){const p=this._getProxyEmitter(b);if(!p)return;b=p}wa.stopListening.call(this,b,r,l),b instanceof po&&b.detach(r)},_getProxyEmitter(b){return r=this,l=Zi(b),r[zs]&&r[zs][l]?r[zs][l].emitter:null;var r,l}});class po{constructor(r){is(this,Zi(r)),this._domNode=r}}function Zi(b){return b["data-ck-expando"]||(b["data-ck-expando"]=xr())}Pt(po.prototype,wa,{attach(b,r,l={}){if(this._domListeners&&this._domListeners[b])return;const p=this._createDomListener(b,!!l.useCapture);this._domNode.addEventListener(b,p,!!l.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[b]=p},detach(b){let r;!this._domListeners[b]||(r=this._events[b])&&r.callbacks.length||this._domListeners[b].removeListener()},_createDomListener(b,r){const l=p=>{this.fire(b,p)};return l.removeListener=()=>{this._domNode.removeEventListener(b,l,r),delete this._domListeners[b]},l}});class ja{constructor(r){this.view=r,this.document=r.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}}ao(ja,Ri);function Kc(b){var r=-1,l=null==b?0:b.length;for(this.__data__=new xn;++rH))return!1;var rt=Z.get(b);if(rt&&Z.get(r))return rt==r;var ft=-1,Mt=!0,he=2&l?new pl:void 0;for(Z.set(b,r),Z.set(r,b);++ft{this.listenTo(r,l,(p,x)=>{this.isEnabled&&this.onDomEvent(x)},{useCapture:this.useCapture})})}fire(r,l,p){this.isEnabled&&this.document.fire(r,new F1(this.view,l,p))}}class up extends N1{constructor(r){super(r),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey||r.metaKey,shiftKey:r.shiftKey,get keystroke(){return Ba(this)}})}}var n2=function(){return v.a.Date.now()},v_=/^\s+|\s+$/g,ic=/^[-+]0x[0-9a-f]+$/i,s1=/^0b[01]+$/i,Ep=/^0o[0-7]+$/i,rd=parseInt,sd=function(b){if("number"==typeof b)return b;if(Nt(b))return NaN;if(Qt(b)){var r="function"==typeof b.valueOf?b.valueOf():b;b=Qt(r)?r+"":r}if("string"!=typeof b)return 0===b?b:+b;b=b.replace(v_,"");var l=s1.test(b);return l||Ep.test(b)?rd(b.slice(2),l?2:8):ic.test(b)?NaN:+b},c1=Math.max,Zd=Math.min,x_=function(b,r,l){var p,x,Z,k,H,G,rt=0,ft=!1,Mt=!1,he=!0;if("function"!=typeof b)throw new TypeError("Expected a function");function Je(Ji){var Uo=p,va=x;return p=x=void 0,rt=Ji,k=b.apply(va,Uo)}function fn(Ji){return rt=Ji,H=setTimeout(In,r),ft?Je(Ji):k}function Mn(Ji){var Uo=Ji-G;return void 0===G||Uo>=r||Uo<0||Mt&&Ji-rt>=Z}function In(){var Uo,va,Ji=n2();if(Mn(Ji))return Qn(Ji);H=setTimeout(In,(va=r-((Uo=Ji)-G),Mt?Zd(va,Z-(Uo-rt)):va))}function Qn(Ji){return H=void 0,he&&p?Je(Ji):(p=x=void 0,k)}function Fi(){var Ji=n2(),Uo=Mn(Ji);if(p=arguments,x=this,G=Ji,Uo){if(void 0===H)return fn(G);if(Mt)return clearTimeout(H),H=setTimeout(In,r),Je(G)}return void 0===H&&(H=setTimeout(In,r)),k}return r=sd(r)||0,Qt(l)&&(ft=!!l.leading,Z=(Mt="maxWait"in l)?c1(sd(l.maxWait)||0,r):Z,he="trailing"in l?!!l.trailing:he),Fi.cancel=function(){void 0!==H&&clearTimeout(H),rt=0,p=G=x=H=void 0},Fi.flush=function(){return void 0===H?k:Qn(n2())},Fi};class ml extends ja{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=x_(l=>this.document.fire("selectionChangeDone",l),200)}observe(){const r=this.document;r.on("keydown",(l,p)=>{var x;r.selection.isFake&&((x=p.keyCode)==na.arrowright||x==na.arrowleft||x==na.arrowup||x==na.arrowdown)&&this.isEnabled&&(p.preventDefault(),this._handleSelectionMove(p.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const l=this.document.selection,p=new ga(l.getRanges(),{backward:l.isBackward,fake:!1});r!=na.arrowleft&&r!=na.arrowup||p.setTo(p.getFirstPosition()),r!=na.arrowright&&r!=na.arrowdown||p.setTo(p.getLastPosition());const x={oldSelection:l,newSelection:p,domSelection:null};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}class o2 extends ja{constructor(r){super(r),this.mutationObserver=r.getObserver(ad),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=x_(l=>this.document.fire("selectionChangeDone",l),200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._loopbackCounter=0}observe(r){const l=r.ownerDocument;this._documents.has(l)||(this.listenTo(l,"selectionchange",()=>{this._handleSelectionChange(l)}),this._documents.add(l))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(r){if(!this.isEnabled)return;this.mutationObserver.flush();const l=r.defaultView.getSelection(),p=this.domConverter.domSelectionToView(l);if(0!=p.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(p)&&this.domConverter.isDomSelectionCorrect(l)||++this._loopbackCounter>60))if(this.selection.isSimilar(p))this.view.forceRender();else{const x={oldSelection:this.selection,newSelection:p,domSelection:l};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class A extends N1{constructor(r){super(r),this.domEventType=["focus","blur"],this.useCapture=!0;const l=this.document;l.on("focus",()=>{l.isFocused=!0,this._renderTimeoutId=setTimeout(()=>r.forceRender(),50)}),l.on("blur",(p,x)=>{const Z=l.selection.editableElement;null!==Z&&Z!==x.target||(l.isFocused=!1,r.forceRender())})}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class xt extends N1{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const l=this.document;l.on("compositionstart",()=>{l.isComposing=!0}),l.on("compositionend",()=>{l.isComposing=!1})}onDomEvent(r){this.fire(r.type,r)}}class Oi extends N1{constructor(r){super(r),this.domEventType=["beforeinput"]}onDomEvent(r){this.fire(r.type,r)}}function uu(b){return"[object Range]"==Object.prototype.toString.apply(b)}function l1(b){const r=b.ownerDocument.defaultView.getComputedStyle(b);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}const Md=["top","right","bottom","left","width","height"];class as{constructor(r){const l=uu(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),ys(r)||l)Um(this,l?as.getDomRangeRects(r)[0]:r.getBoundingClientRect());else if(Cn(r)){const{innerWidth:p,innerHeight:x}=r;Um(this,{top:0,right:p,bottom:x,left:0,width:p,height:x})}else Um(this,r)}clone(){return new as(this)}moveTo(r,l){return this.top=l,this.right=r+this.width,this.bottom=l+this.height,this.left=r,this}moveBy(r,l){return this.top+=l,this.right+=r,this.left+=r,this.bottom+=l,this}getIntersection(r){const l={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left)};return l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0||l.height<0?null:new as(l)}getIntersectionArea(r){const l=this.getIntersection(r);return l?l.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let l=this.clone();if(!Vs(r)){let p=r.parentNode||r.commonAncestorContainer;for(;p&&!Vs(p);){const x=new as(p),Z=l.getIntersection(x);if(!Z)return null;Z.getArea()Ie(b,p));const k=Ie(b,p);if(pp(p,k,r),p.parent!=p){if(x=p.frameElement,p=p.parent,!x)return}else p=null}}function pp(b,r,l){const p=r.clone().moveBy(0,l),x=r.clone().moveBy(0,-l),Z=new as(b).excludeScrollbarsAndBorders();if(![x,p].every(k=>Z.contains(k))){let{scrollX:k,scrollY:H}=b;pr(x,Z)?H-=Z.top-r.top+l:mp(p,Z)&&(H+=r.bottom-Z.bottom+l),R(r,Z)?k-=Z.left-r.left+l:pt(r,Z)&&(k+=r.right-Z.right+l),b.scrollTo(k,H)}}function I1(b,r){const l=Kt(b);let p,x;for(;b!=l.document.body;)x=r(),p=new as(b).excludeScrollbarsAndBorders(),p.contains(x)||(pr(x,p)?b.scrollTop-=p.top-x.top:mp(x,p)&&(b.scrollTop+=x.bottom-p.bottom),R(x,p)?b.scrollLeft-=p.left-x.left:pt(x,p)&&(b.scrollLeft+=x.right-p.right)),b=b.parentNode}function mp(b,r){return b.bottom>r.bottom}function pr(b,r){return b.topr.right}function Kt(b){return uu(b)?b.startContainer.ownerDocument.defaultView:b.ownerDocument.defaultView}function Ze(b){if(uu(b)){let r=b.commonAncestorContainer;return qr(r)&&(r=r.parentNode),r}return b.parentNode}function Ie(b,r){const l=Kt(b),p=new as(b);if(l===r)return p;{let x=l;for(;x!=r;){const k=new as(x.frameElement).excludeScrollbarsAndBorders();p.moveBy(k.left,k.top),x=x.parent}}return p}Object.assign({},{scrollViewportToShowTarget:dp,scrollAncestorsToShowTarget:function(b){I1(Ze(b),()=>new as(b))}});class ni{constructor(r){this.document=new fs(r),this.domConverter=new ne(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new id(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new su(this.document),this.addObserver(ad),this.addObserver(o2),this.addObserver(A),this.addObserver(up),this.addObserver(ml),this.addObserver(xt),ws_isAndroid&&this.addObserver(Oi),this.document.on("keydown",Es),function Tu(b){b.document.on("keydown",(r,l)=>function(p,x,Z){if(x.keyCode==na.arrowright){const k=x.domTarget.ownerDocument.defaultView.getSelection(),H=1==k.rangeCount&&k.getRangeAt(0).collapsed;if(H||x.shiftKey){const ft=Z.domPositionToView(k.focusNode,k.focusOffset);if(null===ft)return;let Mt=!1;const he=ft.getLastMatchingPosition(Je=>(Je.item.is("uiElement")&&(Mt=!0),!(!Je.item.is("uiElement")&&!Je.item.is("attributeElement"))));if(Mt){const Je=Z.viewPositionToDom(he);H?k.collapse(Je.parent,Je.offset):k.extend(Je.parent,Je.offset)}}}}(0,l,b.domConverter))}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(r,l="main"){const p=this.document.getRoot(l);p._name=r.tagName.toLowerCase();const x={};for(const{name:k,value:H}of Array.from(r.attributes))x[k]=H,"class"===k?this._writer.addClass(H.split(" "),p):this._writer.setAttribute(k,H,p);this._initialDomRootAttributes.set(r,x);const Z=()=>{this._writer.setAttribute("contenteditable",!p.isReadOnly,p),p.isReadOnly?this._writer.addClass("ck-read-only",p):this._writer.removeClass("ck-read-only",p)};Z(),this.domRoots.set(l,r),this.domConverter.bindElements(r,p),this._renderer.markToSync("children",p),this._renderer.markToSync("attributes",p),this._renderer.domDocuments.add(r.ownerDocument),p.on("change:children",(k,H)=>this._renderer.markToSync("children",H)),p.on("change:attributes",(k,H)=>this._renderer.markToSync("attributes",H)),p.on("change:text",(k,H)=>this._renderer.markToSync("text",H)),p.on("change:isReadOnly",()=>this.change(Z)),p.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const k of this._observers.values())k.observe(r,l)}detachDomRoot(r){const l=this.domRoots.get(r);Array.from(l.attributes).forEach(({name:x})=>l.removeAttribute(x));const p=this._initialDomRootAttributes.get(l);for(const x in p)l.setAttribute(x,p[x]);this.domRoots.delete(r),this.domConverter.unbindDomElement(l)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let l=this._observers.get(r);if(l)return l;l=new r(this),this._observers.set(r,l);for(const[p,x]of this.domRoots)l.observe(x,p);return l.enable(),l}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection(){const r=this.document.selection.getFirstRange();r&&dp({target:this.domConverter.viewRangeToDom(r),viewportOffset:20})}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new jn.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const l=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),l}catch(l){jn.b.rethrowUnexpectedError(l,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,l){return vi._createAt(r,l)}createPositionAfter(r){return vi._createAfter(r)}createPositionBefore(r){return vi._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeOn(r){return zi._createOn(r)}createRangeIn(r){return zi._createIn(r)}createSelection(r,l,p){return new ga(r,l,p)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}ao(ni,St);class qi{constructor(r){this.parent=null,this._attrs=Qa(r)}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new jn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new jn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let l=this;for(;l.parent;)r.unshift(l.startOffset),l=l.parent;return r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const l=[];let p=r.includeSelf?this:this.parent;for(;p;)l[r.parentFirst?"push":"unshift"](p),p=p.parent;return l}getCommonAncestor(r,l={}){const p=this.getAncestors(l),x=r.getAncestors(l);let Z=0;for(;p[Z]==x[Z]&&p[Z];)Z++;return 0===Z?null:p[Z-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const l=this.getPath(),p=r.getPath(),x=ps(l,p);switch(x){case"prefix":return!0;case"extension":return!1;default:return l[x](l[p[0]]=p[1],l),{})),r}is(r){return"node"===r||"model:node"===r}_clone(){return new qi(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,l){this._attrs.set(r,l)}_setAttributesTo(r){this._attrs=Qa(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}class Do extends qi{constructor(r,l){super(l),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}is(r){return"$text"===r||"model:$text"===r||"text"===r||"model:text"===r||"node"===r||"model:node"===r}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new Do(this.data,this.getAttributes())}static fromJSON(r){return new Do(r.data,r.attributes)}}class _a{constructor(r,l,p){if(this.textNode=r,l<0||l>r.offsetSize)throw new jn.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(p<0||l+p>r.offsetSize)throw new jn.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+p),this.offsetInText=l}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(r){return"$textProxy"===r||"model:$textProxy"===r||"textProxy"===r||"model:textProxy"===r}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const l=[];let p=r.includeSelf?this:this.parent;for(;p;)l[r.parentFirst?"push":"unshift"](p),p=p.parent;return l}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Zr{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,l)=>r+l.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const l=this._nodes.indexOf(r);return-1==l?null:l}getNodeStartOffset(r){const l=this.getNodeIndex(r);return null===l?null:this._nodes.slice(0,l).reduce((p,x)=>p+x.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const l=this._nodes[r];if(!l)throw new jn.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(l)}offsetToIndex(r){let l=0;for(const p of this._nodes){if(r>=l&&rr.toJSON())}}class qa extends qi{constructor(r,l,p){super(l),this.name=r,this._children=new Zr,p&&this._insertChild(0,p)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(r,l=null){return l?l===this.name&&("element"===r||"model:element"===r):"element"===r||"model:element"===r||"node"===r||"model:node"===r}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let l=this;for(const p of r)l=l.getChild(l.offsetToIndex(p));return l}findAncestor(r,l={includeSelf:!1}){let p=l.includeSelf?this:this.parent;for(;p;){if(p.name===r)return p;p=p.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const l of this._children)r.children.push(l.toJSON())}return r}_clone(r=!1){const l=r?Array.from(this._children).map(p=>p._clone(!0)):null;return new qa(this.name,this.getAttributes(),l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const p="string"==typeof(x=l)?[new Do(x)]:(za(x)||(x=[x]),Array.from(x).map(Z=>"string"==typeof Z?new Do(Z):Z instanceof _a?new Do(Z.data,Z.getAttributes()):Z));var x;for(const x of p)null!==x.parent&&x._remove(),x.parent=this;this._children._insertNodes(r,p)}_removeChildren(r,l=1){const p=this._children._removeNodes(r,l);for(const x of p)x.parent=null;return p}static fromJSON(r){let l=null;if(r.children){l=[];for(const p of r.children)l.push(p.name?qa.fromJSON(p):Do.fromJSON(p))}return new qa(r.name,r.attributes,l)}}class Xc{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new jn.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);const l=r.direction||"forward";if("forward"!=l&&"backward"!=l)throw new jn.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r,{direction:l});this.direction=l,this.boundaries=r.boundaries||null,this.position=r.startPosition?r.startPosition.clone():mo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(r){let l,p,x,Z;do{x=this.position,Z=this._visitedParent,({done:l,value:p}=this.next())}while(!l&&r(p));l||(this.position=x,this._visitedParent=Z)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,l=this.position.clone(),p=this._visitedParent;if(null===p.parent&&l.offset===p.maxOffset)return{done:!0};if(p===this._boundaryEndParent&&l.offset==this.boundaries.end.offset)return{done:!0};const x=l.parent,Z=b_(l,x),k=Z||mf(l,x,Z);if(k instanceof qa)return this.shallow?l.offset++:(l.path.push(0),this._visitedParent=k),this.position=l,Jl("elementStart",k,r,l,1);if(k instanceof Do){let H;if(this.singleCharacters)H=1;else{let ft=k.endOffset;this._boundaryEndParent==p&&this.boundaries.end.offsetft&&(ft=this.boundaries.start.offset),H=l.offset-ft}const rt=new _a(k,l.offset-k.startOffset-H,H);return l.offset-=H,this.position=l,Jl("text",rt,r,l,H)}return l.path.pop(),this.position=l,this._visitedParent=p.parent,Jl("elementStart",p,r,l,1)}}function Jl(b,r,l,p,x){return{done:!1,value:{type:b,item:r,previousPosition:l,nextPosition:p,length:x}}}class mo{constructor(r,l,p="toNone"){if(!r.is("element")&&!r.is("documentFragment"))throw new jn.b("model-position-root-invalid: Position root invalid.",r);if(!(l instanceof Array)||0===l.length)throw new jn.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",r,{path:l});r.is("rootElement")?l=l.slice():(l=[...r.getPath(),...l],r=r.root),this.root=r,this.path=l,this.stickiness=p}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let l=0;lp.path.length){if(l.offset!==x.maxOffset)return!1;l.path=l.path.slice(0,-1),x=x.parent,l.offset++}else{if(0!==p.offset)return!1;p.path=p.path.slice(0,-1)}}}is(r){return"position"===r||"model:position"===r}hasSameParentAs(r){return this.root===r.root&&"same"==ps(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let l;switch(r.type){case"insert":l=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":l=this._getTransformedByMoveOperation(r);break;case"split":l=this._getTransformedBySplitOperation(r);break;case"merge":l=this._getTransformedByMergeOperation(r);break;default:l=mo._createAt(this)}return l}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const l=r.movedRange;return l.containsPosition(this)||l.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const l=r.movedRange;let p;return l.containsPosition(this)||l.start.isEqual(this)?(p=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(p=p._getTransformedByDeletion(r.deletionPosition,1))):p=this.isEqual(r.deletionPosition)?mo._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),p}_getTransformedByDeletion(r,l){const p=mo._createAt(this);if(this.root!=r.root)return p;if("same"==ps(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;p.offset-=l}}else if("prefix"==ps(r.getParentPath(),this.getParentPath())){const x=r.path.length-1;if(r.offset<=this.path[x]){if(r.offset+l>this.path[x])return null;p.path[x]-=l}}return p}_getTransformedByInsertion(r,l){const p=mo._createAt(this);if(this.root!=r.root)return p;if("same"==ps(r.getParentPath(),this.getParentPath()))(r.offsetl+1;){const Z=x.maxOffset-p.offset;0!==Z&&r.push(new Vi(p,p.getShiftedBy(Z))),p.path=p.path.slice(0,-1),p.offset++,x=x.parent}for(;p.path.length<=this.end.path.length;){const Z=this.end.path[p.path.length-1],k=Z-p.offset;0!==k&&r.push(new Vi(p,p.getShiftedBy(k))),p.offset=Z,p.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Xc(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const l=new Xc(r);for(const p of l)yield p.item}*getPositions(r={}){r.boundaries=this;const l=new Xc(r);yield l.position;for(const p of l)yield p.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Vi(this.start,this.end)]}getTransformedByOperations(r){const l=[new Vi(this.start,this.end)];for(const p of r)for(let x=0;x0?new this(p,x):new this(x,p)}static _createIn(r){return new this(mo._createAt(r,0),mo._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(mo._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new jn.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==r.length)return r[0].clone();const l=r[0];r.sort((Z,k)=>Z.start.isAfter(k.start)?1:-1);const p=r.indexOf(l),x=new this(l.start,l.end);if(p>0)for(let Z=p-1;r[Z].end.isEqual(x.start);Z++)x.start=mo._createAt(r[Z].start);for(let Z=p+1;Z{if(l.viewPosition)return;const p=this._modelToViewMapping.get(l.modelPosition.parent);l.viewPosition=this.findPositionIn(p,l.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,l)=>{if(l.modelPosition)return;const p=this.findMappedViewAncestor(l.viewPosition),x=this._viewToModelMapping.get(p),Z=this._toModelOffset(l.viewPosition.parent,l.viewPosition.offset,p);l.modelPosition=mo._createAt(x,Z)},{priority:"low"})}bindElements(r,l){this._modelToViewMapping.set(r,l),this._viewToModelMapping.set(l,r)}unbindViewElement(r){const l=this.toModelElement(r);if(this._viewToModelMapping.delete(r),this._elementToMarkerNames.has(r))for(const p of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(p);this._modelToViewMapping.get(l)==r&&this._modelToViewMapping.delete(l)}unbindModelElement(r){const l=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(l)==r&&this._viewToModelMapping.delete(l)}bindElementToMarker(r,l){const p=this._markerNameToElements.get(l)||new Set;p.add(r);const x=this._elementToMarkerNames.get(r)||new Set;x.add(l),this._markerNameToElements.set(l,p),this._elementToMarkerNames.set(r,x)}unbindElementFromMarkerName(r,l){const p=this._markerNameToElements.get(l);p&&(p.delete(r),0==p.size&&this._markerNameToElements.delete(l));const x=this._elementToMarkerNames.get(r);x&&(x.delete(l),0==x.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Vi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new zi(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const l={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",l),l.modelPosition}toViewPosition(r,l={isPhantom:!1}){const p={modelPosition:r,mapper:this,isPhantom:l.isPhantom};return this.fire("modelToViewPosition",p),p.viewPosition}markerNameToElements(r){const l=this._markerNameToElements.get(r);if(!l)return null;const p=new Set;for(const x of l)if(x.is("attributeElement"))for(const Z of x.getElementsWithSameId())p.add(Z);else p.add(x);return p}registerViewToModelLength(r,l){this._viewToModelLengthCallbacks.set(r,l)}findMappedViewAncestor(r){let l=r.parent;for(;!this._viewToModelMapping.has(l);)l=l.parent;return l}_toModelOffset(r,l,p){if(p!=r)return this._toModelOffset(r.parent,r.index,p)+this._toModelOffset(r,l,r);if(r.is("$text"))return l;let x=0;for(let Z=0;Z1?r[0]+":"+r[1]:r[0]}class r2{constructor(r){this.conversionApi=Pt({dispatcher:this},r)}convertChanges(r,l,p){for(const x of r.getMarkersToRemove())this.convertMarkerRemove(x.name,x.range,p);for(const x of r.getChanges())"insert"==x.type?this.convertInsert(Vi._createFromPositionAndShift(x.position,x.length),p):"remove"==x.type?this.convertRemove(x.position,x.length,x.name,p):this.convertAttribute(x.range,x.attributeKey,x.attributeOldValue,x.attributeNewValue,p);for(const x of this.conversionApi.mapper.flushUnboundMarkerNames()){const Z=l.get(x).getRange();this.convertMarkerRemove(x,Z,p),this.convertMarkerAdd(x,Z,p)}for(const x of r.getMarkersToAdd())this.convertMarkerAdd(x.name,x.range,p)}convertInsert(r,l){this.conversionApi.writer=l,this.conversionApi.consumable=this._createInsertConsumable(r);for(const p of r){const x=p.item,Z={item:x,range:Vi._createFromPositionAndShift(p.previousPosition,p.length)};this._testAndFire("insert",Z);for(const k of x.getAttributeKeys())Z.attributeKey=k,Z.attributeOldValue=null,Z.attributeNewValue=x.getAttribute(k),this._testAndFire("attribute:"+k,Z)}this._clearConversionApi()}convertRemove(r,l,p,x){this.conversionApi.writer=x,this.fire("remove:"+p,{position:r,length:l},this.conversionApi),this._clearConversionApi()}convertAttribute(r,l,p,x,Z){this.conversionApi.writer=Z,this.conversionApi.consumable=this._createConsumableForRange(r,"attribute:"+l);for(const k of r){const H={item:k.item,range:Vi._createFromPositionAndShift(k.previousPosition,k.length),attributeKey:l,attributeOldValue:p,attributeNewValue:x};this._testAndFire("attribute:"+l,H)}this._clearConversionApi()}convertSelection(r,l,p){const x=Array.from(l.getMarkersAtPosition(r.getFirstPosition()));if(this.conversionApi.writer=p,this.conversionApi.consumable=this._createSelectionConsumable(r,x),this.fire("selection",{selection:r},this.conversionApi),r.isCollapsed){for(const Z of x){const k=Z.getRange();if(!mr(r.getFirstPosition(),Z,this.conversionApi.mapper))continue;const H={item:r,markerName:Z.name,markerRange:k};this.conversionApi.consumable.test(r,"addMarker:"+Z.name)&&this.fire("addMarker:"+Z.name,H,this.conversionApi)}for(const Z of r.getAttributeKeys()){const k={item:r,range:r.getFirstRange(),attributeKey:Z,attributeOldValue:null,attributeNewValue:r.getAttribute(Z)};this.conversionApi.consumable.test(r,"attribute:"+k.attributeKey)&&this.fire("attribute:"+k.attributeKey+":$text",k,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(r,l,p){if(!l.root.document||"$graveyard"==l.root.rootName)return;this.conversionApi.writer=p;const x="addMarker:"+r,Z=new wm;if(Z.add(l,x),this.conversionApi.consumable=Z,this.fire(x,{markerName:r,markerRange:l},this.conversionApi),Z.test(l,x)){this.conversionApi.consumable=this._createConsumableForRange(l,x);for(const k of l.getItems()){if(!this.conversionApi.consumable.test(k,x))continue;const H={item:k,range:Vi._createOn(k),markerName:r,markerRange:l};this.fire(x,H,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(r,l,p){l.root.document&&"$graveyard"!=l.root.rootName&&(this.conversionApi.writer=p,this.fire("removeMarker:"+r,{markerName:r,markerRange:l},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(r){const l=new wm;for(const p of r){const x=p.item;l.add(x,"insert");for(const Z of x.getAttributeKeys())l.add(x,"attribute:"+Z)}return l}_createConsumableForRange(r,l){const p=new wm;for(const x of r.getItems())p.add(x,l);return p}_createSelectionConsumable(r,l){const p=new wm;p.add(r,"selection");for(const x of l)p.add(r,"addMarker:"+x.name);for(const x of r.getAttributeKeys())p.add(r,"attribute:"+x);return p}_testAndFire(r,l){this.conversionApi.consumable.test(l.item,r)&&this.fire(r+":"+(l.item.name||"$text"),l,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}function mr(b,r,l){const p=r.getRange(),x=Array.from(b.getAncestors());return x.shift(),x.reverse(),!x.some(Z=>{if(p.containsItem(Z))return!!l.toViewElement(Z).getCustomProperty("addHighlight")})}ao(r2,wa);class q1{constructor(r,l,p){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,r&&this.setTo(r,l,p)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const l of this._ranges){let p=!1;for(const x of r._ranges)if(l.isEqual(x)){p=!0;break}if(!p)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Vi(r.start,r.end)}getFirstRange(){let r=null;for(const l of this._ranges)r&&!l.start.isBefore(r.start)||(r=l);return r?new Vi(r.start,r.end):null}getLastRange(){let r=null;for(const l of this._ranges)r&&!l.end.isAfter(r.end)||(r=l);return r?new Vi(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(r,l,p){if(null===r)this._setRanges([]);else if(r instanceof q1)this._setRanges(r.getRanges(),r.isBackward);else if(r&&"function"==typeof r.getRanges)this._setRanges(r.getRanges(),r.isBackward);else if(r instanceof Vi)this._setRanges([r],!!l&&!!l.backward);else if(r instanceof mo)this._setRanges([new Vi(r)]);else if(r instanceof qi){const x=!!p&&!!p.backward;let Z;if("in"==l)Z=Vi._createIn(r);else if("on"==l)Z=Vi._createOn(r);else{if(void 0===l)throw new jn.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,r]);Z=new Vi(mo._createAt(r,l))}this._setRanges([Z],x)}else{if(!za(r))throw new jn.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,r]);this._setRanges(r,l&&!!l.backward)}}_setRanges(r,l=!1){const p=(r=Array.from(r)).some(x=>{if(!(x instanceof Vi))throw new jn.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[this,r]);return this._ranges.every(Z=>!Z.isEqual(x))});if(r.length!==this._ranges.length||p){this._removeAllRanges();for(const x of r)this._pushRange(x);this._lastRangeBackward=!!l,this.fire("change:range",{directChange:!0})}}setFocus(r,l){if(null===this.anchor)throw new jn.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,r]);const p=mo._createAt(r,l);if("same"==p.compareWith(this.focus))return;const x=this.anchor;this._ranges.length&&this._popRange(),"before"==p.compareWith(x)?(this._pushRange(new Vi(p,x)),this._lastRangeBackward=!0):(this._pushRange(new Vi(x,p)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,l){this.getAttribute(r)!==l&&(this._attrs.set(r,l),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(r){return"selection"===r||"model:selection"===r}*getSelectedBlocks(){const r=new WeakSet;for(const l of this.getRanges()){const p=ff(l.start,r);p&&Jh(p,l)&&(yield p);for(const Z of l.getWalker()){const k=Z.item;"elementEnd"==Z.type&&Fp(k,r,l)&&(yield k)}const x=ff(l.end,r);x&&!l.end.isTouching(mo._createAt(x,0))&&Jh(x,l)&&(yield x)}}containsEntireContent(r=this.anchor.root){const l=mo._createAt(r,0),p=mo._createAt(r,"end");return l.isTouching(this.getFirstPosition())&&p.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Vi(r.start,r.end))}_checkRange(r){for(let l=0;l0;)this._popRange()}_popRange(){this._ranges.pop()}}function Gh(b,r){return!r.has(b)&&(r.add(b),b.root.document.model.schema.isBlock(b)&&b.parent)}function Fp(b,r,l){return Gh(b,r)&&Jh(b,l)}function ff(b,r){const l=b.parent.root.document.model.schema,p=b.parent.getAncestors({parentFirst:!0,includeSelf:!0});let x=!1;const Z=p.find(k=>!x&&(x=l.isLimit(k),!x&&Gh(k,r)));return p.forEach(k=>r.add(k)),Z}function Jh(b,r){const l=function(p){const x=p.root.document.model.schema;let Z=p.parent;for(;Z;){if(x.isBlock(Z))return Z;Z=Z.parent}}(b);return!l||!r.containsRange(Vi._createOn(l),!0)}ao(q1,wa);class Np extends Vi{constructor(r,l){super(r,l),cd.call(this)}detach(){this.stopListening()}is(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r}toRange(){return new Vi(this.start,this.end)}static fromRange(r){return new Np(r.start,r.end)}}function cd(){this.listenTo(this.root.document.model,"applyOperation",(b,r)=>{const l=r[0];l.isDocumentOperation&&E0.call(this,l)},{priority:"low"})}function E0(b){const r=this.getTransformedByOperation(b),l=Vi._createFromRanges(r),p=!l.isEqual(this),x=function(k,H){switch(H.type){case"insert":return k.containsPosition(H.position);case"move":case"remove":case"reinsert":case"merge":return k.containsPosition(H.sourcePosition)||k.start.isEqual(H.sourcePosition)||k.containsPosition(H.targetPosition);case"split":return k.containsPosition(H.splitPosition)||k.containsPosition(H.insertionPosition)}return!1}(this,b);let Z=null;if(p){"$graveyard"==l.root.rootName&&(Z="remove"==b.type?b.sourcePosition:b.deletionPosition);const k=this.toRange();this.start=l.start,this.end=l.end,this.fire("change:range",k,{deletionPosition:Z})}else x&&this.fire("change:content",this.toRange(),{deletionPosition:Z})}ao(Np,wa);class Pu{constructor(r){this._selection=new _l(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}is(r){return"selection"===r||"model:selection"==r||"documentSelection"==r||"model:documentSelection"==r}_setFocus(r,l){this._selection.setFocus(r,l)}_setTo(r,l,p){this._selection.setTo(r,l,p)}_setAttribute(r,l){this._selection.setAttribute(r,l)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return"selection:"+r}static _isStoreAttributeKey(r){return r.startsWith("selection:")}}ao(Pu,wa);class _l extends q1{constructor(r){super(),this.markers=new Er({idProperty:"name"}),this._model=r.model,this._document=r,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this.listenTo(this._model,"applyOperation",(l,p)=>{const x=p[0];x.isDocumentOperation&&"marker"!=x.type&&"rename"!=x.type&&"noop"!=x.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{for(const l of this.getRanges())if(!this._document._validateSelectionRange(l))throw new jn.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",this,{range:l})}),this.listenTo(this._model.markers,"update",()=>this._updateMarkers()),this.listenTo(this._document,"change",(l,p)=>{!function(x,Z){const k=x.document.differ;for(const H of k.getChanges()){if("insert"!=H.type)continue;const G=H.position.parent;H.length===G.maxOffset&&x.enqueueChange(Z,rt=>{const ft=Array.from(G.getAttributeKeys()).filter(Mt=>Mt.startsWith("selection:"));for(const Mt of ft)rt.removeAttribute(Mt,G)})}}(this._model,p)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,l.root==this._document.graveyard){this._selectionRestorePosition=Z.deletionPosition;const k=this._ranges.indexOf(l);this._ranges.splice(k,1),l.detach()}}),l}_updateMarkers(){const r=[];let l=!1;for(const x of this._model.markers){const Z=x.getRange();for(const k of this.getRanges())Z.containsRange(k,!k.isCollapsed)&&r.push(x)}const p=Array.from(this.markers);for(const x of r)this.markers.has(x)||(this.markers.add(x),l=!0);for(const x of Array.from(this.markers))r.includes(x)||(this.markers.remove(x),l=!0);l&&this.fire("change:marker",{oldMarkers:p,directChange:!1})}_updateAttributes(r){const l=Qa(this._getSurroundingAttributes()),p=Qa(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[Z,k]of this._attributePriority)"low"==k&&(this._attrs.delete(Z),this._attributePriority.delete(Z));this._setAttributesTo(l);const x=[];for(const[Z,k]of this.getAttributes())p.has(Z)&&p.get(Z)===k||x.push(Z);for(const[Z]of p)this.hasAttribute(Z)||x.push(Z);x.length>0&&this.fire("change:attribute",{attributeKeys:x,directChange:!1})}_setAttribute(r,l,p=!0){const x=p?"normal":"low";return("low"!=x||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==l&&(this._attrs.set(r,l),this._attributePriority.set(r,x),!0)}_removeAttribute(r,l=!0){const p=l?"normal":"low";return!("low"==p&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,p),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const l=new Set;for(const[p,x]of this.getAttributes())r.get(p)!==x&&this._removeAttribute(p,!1);for(const[p,x]of r)this._setAttribute(p,x,!1)&&l.add(p);return l}*_getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const l of r.getAttributeKeys())l.startsWith("selection:")&&(yield[l.substr(10),r.getAttribute(l)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),l=this._model.schema;let p=null;if(this.isCollapsed){const x=r.textNode?r.textNode:r.nodeBefore,Z=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(p=Zm(x)),p||(p=Zm(Z)),!this.isGravityOverridden&&!p){let k=x;for(;k&&!p;)k=k.previousSibling,p=Zm(k)}if(!p){let k=Z;for(;k&&!p;)k=k.nextSibling,p=Zm(k)}p||(p=this._getStoredAttributes())}else{const x=this.getFirstRange();for(const Z of x){if(Z.item.is("element")&&l.isObject(Z.item))break;if("text"==Z.type){p=Z.item.getAttributes();break}}}return p}_fixGraveyardSelection(r){const l=this._model.schema.getNearestSelectionRange(r);l&&this._pushRange(l)}}function Zm(b){return b instanceof _a||b instanceof Do?b.getAttributes():null}class hf{constructor(r){this._dispatchers=r}add(r){for(const l of this._dispatchers)r(l);return this}}var Bs=function(b){return ou(b,5)};class Zs extends hf{elementToElement(r){return this.add(function(l){return(l=Bs(l)).view=qp(l.view,"container"),p=>{var x;p.on("insert:"+l.model,(x=l.view,(Z,k,H)=>{const G=x(k.item,H.writer);if(!G||!H.consumable.consume(k.item,"insert"))return;const rt=H.mapper.toViewPosition(k.range.start);H.mapper.bindElements(k.item,G),H.writer.insert(rt,G)}),{priority:l.converterPriority||"normal"})}}(r))}attributeToElement(r){return this.add(function(l){let p="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(p+=":"+l.model.name),l.model.values)for(const Z of l.model.values)l.view[Z]=qp(l.view[Z],"attribute");else l.view=qp(l.view,"attribute");const x=Qh(l);return Z=>{var k;Z.on(p,(k=x,(H,G,rt)=>{const ft=k(G.attributeOldValue,rt.writer),Mt=k(G.attributeNewValue,rt.writer);if(!ft&&!Mt||!rt.consumable.consume(G.item,H.name))return;const he=rt.writer;if(G.item instanceof q1||G.item instanceof Pu)he.wrap(he.document.selection.getFirstRange(),Mt);else{let fn=rt.mapper.toViewRange(G.range);null!==G.attributeOldValue&&ft&&(fn=he.unwrap(fn,ft)),null!==G.attributeNewValue&&Mt&&he.wrap(fn,Mt)}}),{priority:l.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(l){let p="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(p+=":"+l.model.name),l.model.values)for(const Z of l.model.values)l.view[Z]=s2(l.view[Z]);else l.view=s2(l.view);const x=Qh(l);return Z=>{var k;Z.on(p,(k=x,(H,G,rt)=>{const ft=k(G.attributeOldValue,G),Mt=k(G.attributeNewValue,G);if(!ft&&!Mt||!rt.consumable.consume(G.item,H.name))return;const he=rt.mapper.toViewElement(G.item),Je=rt.writer;if(!he)throw new jn.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[G,rt]);if(null!==G.attributeOldValue&&ft)if("class"==ft.key){const fn=Array.isArray(ft.value)?ft.value:[ft.value];for(const Mn of fn)Je.removeClass(Mn,he)}else if("style"==ft.key){const fn=Object.keys(ft.value);for(const Mn of fn)Je.removeStyle(Mn,he)}else Je.removeAttribute(ft.key,he);if(null!==G.attributeNewValue&&Mt)if("class"==Mt.key){const fn=Array.isArray(Mt.value)?Mt.value:[Mt.value];for(const Mn of fn)Je.addClass(Mn,he)}else if("style"==Mt.key){const fn=Object.keys(Mt.value);for(const Mn of fn)Je.setStyle(Mn,Mt.value[Mn],he)}else Je.setAttribute(Mt.key,Mt.value,he)}),{priority:l.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(l){return(l=Bs(l)).view=qp(l.view,"ui"),p=>{var x;p.on("addMarker:"+l.model,(x=l.view,(Z,k,H)=>{k.isOpening=!0;const G=x(k,H.writer);k.isOpening=!1;const rt=x(k,H.writer);if(!G||!rt)return;const ft=k.markerRange;if(ft.isCollapsed&&!H.consumable.consume(ft,Z.name))return;for(const Je of ft)if(!H.consumable.consume(Je.item,Z.name))return;const Mt=H.mapper,he=H.writer;he.insert(Mt.toViewPosition(ft.start),G),H.mapper.bindElementToMarker(G,k.markerName),ft.isCollapsed||(he.insert(Mt.toViewPosition(ft.end),rt),H.mapper.bindElementToMarker(rt,k.markerName)),Z.stop()}),{priority:l.converterPriority||"normal"}),p.on("removeMarker:"+l.model,(Z,k,H)=>{const G=H.mapper.markerNameToElements(k.markerName);if(G){for(const rt of G)H.mapper.unbindElementFromMarkerName(rt,k.markerName),H.writer.clear(H.writer.createRangeOn(rt),rt);H.writer.clearClonedElementsGroup(k.markerName),Z.stop()}},{priority:l.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add(function(l){return p=>{var x,Z;p.on("addMarker:"+l.model,(x=l.view,(Z,k,H)=>{if(!k.item||!(k.item instanceof q1||k.item instanceof Pu||k.item.is("$textProxy")))return;const G=vf(x,k,H);if(!G||!H.consumable.consume(k.item,Z.name))return;const rt=H.writer,ft=Ip(rt,G),Mt=rt.document.selection;if(k.item instanceof q1||k.item instanceof Pu)rt.wrap(Mt.getFirstRange(),ft,Mt);else{const he=H.mapper.toViewRange(k.range),Je=rt.wrap(he,ft);for(const fn of Je.getItems())if(fn.is("attributeElement")&&fn.isSimilar(ft)){H.mapper.bindElementToMarker(fn,k.markerName);break}}}),{priority:l.converterPriority||"normal"}),p.on("addMarker:"+l.model,(Z=l.view,(k,H,G)=>{if(!(H.item&&H.item instanceof qa))return;const rt=vf(Z,H,G);if(!rt||!G.consumable.test(H.item,k.name))return;const ft=G.mapper.toViewElement(H.item);if(ft&&ft.getCustomProperty("addHighlight")){G.consumable.consume(H.item,k.name);for(const Mt of Vi._createIn(H.item))G.consumable.consume(Mt.item,k.name);ft.getCustomProperty("addHighlight")(ft,rt,G.writer),G.mapper.bindElementToMarker(ft,H.markerName)}}),{priority:l.converterPriority||"normal"}),p.on("removeMarker:"+l.model,function(Z){return(k,H,G)=>{if(H.markerRange.isCollapsed)return;const rt=vf(Z,H,G);if(!rt)return;const ft=Ip(G.writer,rt),Mt=G.mapper.markerNameToElements(H.markerName);if(Mt){for(const he of Mt)G.mapper.unbindElementFromMarkerName(he,H.markerName),he.is("attributeElement")?G.writer.unwrap(G.writer.createRangeOn(he),ft):he.getCustomProperty("removeHighlight")(he,rt.id,G.writer);G.writer.clearClonedElementsGroup(H.markerName),k.stop()}}}(l.view),{priority:l.converterPriority||"normal"})}}(r))}markerToData(r){return this.add(function(l){const p=(l=Bs(l)).model;return l.view||(l.view=x=>({group:p,name:x.substr(l.model.length+1)})),x=>{var Z,k;x.on("addMarker:"+p,(Z=l.view,(k,H,G)=>{const rt=Z(H.markerName);if(!rt)return;const ft=H.markerRange;G.consumable.consume(ft,k.name)&&(gf(ft,!1,G,H,rt),gf(ft,!0,G,H,rt),k.stop())}),{priority:l.converterPriority||"normal"}),x.on("removeMarker:"+p,(k=l.view,(H,G,rt)=>{const ft=k(G.markerName);if(!ft)return;const Mt=rt.mapper.markerNameToElements(G.markerName);if(Mt){for(const Je of Mt)rt.mapper.unbindElementFromMarkerName(Je,G.markerName),Je.is("containerElement")?(he(`data-${ft.group}-start-before`,Je),he(`data-${ft.group}-start-after`,Je),he(`data-${ft.group}-end-before`,Je),he(`data-${ft.group}-end-after`,Je)):rt.writer.clear(rt.writer.createRangeOn(Je),Je);rt.writer.clearClonedElementsGroup(G.markerName),H.stop()}function he(Je,fn){if(fn.hasAttribute(Je)){const Mn=new Set(fn.getAttribute(Je).split(","));Mn.delete(ft.name),0==Mn.size?rt.writer.removeAttribute(Je,fn):rt.writer.setAttribute(Je,Array.from(Mn).join(","),fn)}}}),{priority:l.converterPriority||"normal"})}}(r))}}function Ip(b,r){const l=b.createAttributeElement("span",r.attributes);return r.classes&&l._addClass(r.classes),r.priority&&(l._priority=r.priority),l._id=r.id,l}function gf(b,r,l,p,x){const Z=r?b.start:b.end;if(l.schema.checkChild(Z,"$text"))!function(k,H,G,rt,ft){const Je=G.writer.createUIElement(`${ft.group}-${H?"start":"end"}`,ft.name?{name:ft.name}:null);G.writer.insert(k,Je),G.mapper.bindElementToMarker(Je,rt.markerName)}(l.mapper.toViewPosition(Z),r,l,p,x);else{let k,H;r&&Z.nodeAfter||!r&&!Z.nodeBefore?(k=Z.nodeAfter,H=!0):(k=Z.nodeBefore,H=!1),function(G,rt,ft,Mt,he,Je){const fn=`data-${Je.group}-${rt?"start":"end"}-${ft?"before":"after"}`,Mn=G.hasAttribute(fn)?G.getAttribute(fn).split(","):[];Mn.unshift(Je.name),Mt.writer.setAttribute(fn,Mn.join(","),G),Mt.mapper.bindElementToMarker(G,he.markerName)}(l.mapper.toViewElement(k),r,H,l,p,x)}}function qp(b,r){return"function"==typeof b?b:(l,p)=>function(x,Z,k){let H;"string"==typeof x&&(x={name:x});const G=Object.assign({},x.attributes);if(H="container"==k?Z.createContainerElement(x.name,G):"attribute"==k?Z.createAttributeElement(x.name,G,{priority:x.priority||Us.DEFAULT_PRIORITY}):Z.createUIElement(x.name,G),x.styles){const rt=Object.keys(x.styles);for(const ft of rt)Z.setStyle(ft,x.styles[ft],H)}if(x.classes){const rt=x.classes;if("string"==typeof rt)Z.addClass(rt,H);else for(const ft of rt)Z.addClass(ft,H)}return H}(b,p,r)}function Qh(b){return b.model.values?(r,l)=>{const p=b.view[r];return p?p(r,l):null}:b.view}function s2(b){return"string"==typeof b?r=>({key:b,value:r}):"object"==typeof b?b.value?()=>b:r=>({key:b.key,value:r}):b}function vf(b,r,l){const p="function"==typeof b?b(r,l):b;return p?(p.priority||(p.priority=10),p.id||(p.id=r.markerName),p):null}class xf extends hf{elementToElement(r){return this.add(bf(r))}elementToAttribute(r){return this.add(function(l){_p(l=Bs(l));const p=C_(l,!1),x=u1(l.view),Z=x?"element:"+x:"element";return k=>{k.on(Z,p,{priority:l.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(l){let p=null;("string"==typeof(l=Bs(l)).view||l.view.key)&&(p=function(Z){"string"==typeof Z.view&&(Z.view={key:Z.view});const k=Z.view.key;let H;return H="class"==k||"style"==k?{["class"==k?"classes":"styles"]:Z.view.value}:{attributes:{[k]:void 0===Z.view.value?/[\s\S]*/:Z.view.value}},Z.view.name&&(H.name=Z.view.name),Z.view=H,k}(l)),_p(l,p);const x=C_(l,!0);return Z=>{Z.on("element",x,{priority:l.converterPriority||"low"})}}(r))}elementToMarker(r){return console.warn(Object(jn.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method has been deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(l){return function(p){const x=p.model;p.model=(Z,k)=>{const H="string"==typeof x?x:x(Z);return k.createElement("$marker",{"data-name":H})}}(l=Bs(l)),bf(l)}(r))}dataToMarker(r){return this.add(function(l){(l=Bs(l)).model||(l.model=Z=>Z?l.view+":"+Z:l.view);const p=Cf(c2(l,"start")),x=Cf(c2(l,"end"));return Z=>{Z.on("element:"+l.view+"-start",p,{priority:l.converterPriority||"normal"}),Z.on("element:"+l.view+"-end",x,{priority:l.converterPriority||"normal"});const k=ns.get("low"),H=ns.get("highest"),G=ns.get(l.converterPriority)/H;var rt;Z.on("element",(rt=l,(ft,Mt,he)=>{const Je="data-"+rt.view;function fn(Mn,In){for(const Qn of In){const Fi=rt.model(Qn),Ji=he.writer.createElement("$marker",{"data-name":Fi});he.writer.insert(Ji,Mn),Mt.modelCursor=Mt.modelCursor.isEqual(Mn)?Mt.modelCursor.getShiftedBy(1):Mt.modelCursor._getTransformedByInsertion(Mn,1),Mt.modelRange=Mt.modelRange._getTransformedByInsertion(Mn,1)[0]}}Mt.modelRange||(Mt=Object.assign(Mt,he.convertChildren(Mt.viewItem,Mt.modelCursor))),he.consumable.consume(Mt.viewItem,{attributes:Je+"-end-after"})&&fn(Mt.modelRange.end,Mt.viewItem.getAttribute(Je+"-end-after").split(",")),he.consumable.consume(Mt.viewItem,{attributes:Je+"-start-after"})&&fn(Mt.modelRange.end,Mt.viewItem.getAttribute(Je+"-start-after").split(",")),he.consumable.consume(Mt.viewItem,{attributes:Je+"-end-before"})&&fn(Mt.modelRange.start,Mt.viewItem.getAttribute(Je+"-end-before").split(",")),he.consumable.consume(Mt.viewItem,{attributes:Je+"-start-before"})&&fn(Mt.modelRange.start,Mt.viewItem.getAttribute(Je+"-start-before").split(","))}),{priority:k+G})}}(r))}}function bf(b){const r=Cf(b=Bs(b)),l=u1(b.view),p=l?"element:"+l:"element";return x=>{x.on(p,r,{priority:b.converterPriority||"normal"})}}function u1(b){return"string"==typeof b?b:"object"==typeof b&&"string"==typeof b.name?b.name:null}function Cf(b){const r=b.view?new re(b.view):null;return(l,p,x)=>{let Z={};if(r){const he=r.match(p.viewItem);if(!he)return;Z=he.match}Z.name=!0;const k=(rt=x.writer,(H=b.model)instanceof Function?H(p.viewItem,rt):rt.createElement(H));var H,rt;if(!k||!x.consumable.test(p.viewItem,Z))return;const ft=x.splitToAllowedParent(k,p.modelCursor);if(!ft)return;x.writer.insert(k,ft.position),x.convertChildren(p.viewItem,x.writer.createPositionAt(k,0)),x.consumable.consume(p.viewItem,Z);const Mt=x.getSplitParts(k);p.modelRange=new Vi(x.writer.createPositionBefore(k),x.writer.createPositionAfter(Mt[Mt.length-1])),p.modelCursor=ft.cursorParent?x.writer.createPositionAt(ft.cursorParent,0):p.modelRange.end}}function _p(b,r=null){b.model={key:"object"!=typeof b.model?b.model:b.model.key,value:"object"!=typeof b.model||void 0===b.model.value?null===r||(Z=>Z.getAttribute(r)):b.model.value}}function C_(b,r){const l=new re(b.view);return(p,x,Z)=>{const k=l.match(x.viewItem);if(!k)return;const H=b.model.key,G="function"==typeof b.model.value?b.model.value(x.viewItem):b.model.value;null!==G&&(function(rt,ft){const Mt="function"==typeof rt?rt(ft):rt;return!("object"==typeof Mt&&!u1(Mt)||Mt.classes||Mt.attributes||Mt.styles)}(b.view,x.viewItem)?k.match.name=!0:delete k.match.name,Z.consumable.test(x.viewItem,k.match)&&(x.modelRange||(x=Object.assign(x,Z.convertChildren(x.viewItem,x.modelCursor))),function(rt,ft,Mt,he){let Je=!1;for(const fn of Array.from(rt.getItems({shallow:Mt})))he.schema.checkAttribute(fn,ft.key)&&(he.writer.setAttribute(ft.key,ft.value,fn),Je=!0);return Je}(x.modelRange,{key:H,value:G},r,Z)&&Z.consumable.consume(x.viewItem,k.match)))}}function c2(b,r){const l={};return l.view=b.view+"-"+r,l.model=(p,x)=>{const Z=p.getAttribute("name"),k=b.model(Z);return x.createElement("$marker",{"data-name":k})},l}class yf{constructor(r,l){this.model=r,this.view=new ni(l),this.mapper=new a2,this.downcastDispatcher=new r2({mapper:this.mapper,schema:r.schema});const p=this.model.document,x=p.selection,Z=this.model.markers;var k,H;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(p,"change",()=>{this.view.change(k=>{this.downcastDispatcher.convertChanges(p.differ,Z,k),this.downcastDispatcher.convertSelection(x,Z,k)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(k=this.model,H=this.mapper,(G,rt)=>{const ft=rt.newSelection,Mt=new q1,he=[];for(const Je of ft.getRanges())he.push(H.toModelRange(Je));Mt.setTo(he,{backward:ft.isBackward}),Mt.isEqual(k.document.selection)||k.change(Je=>{Je.setSelection(Mt)})})),this.downcastDispatcher.on("insert:$text",(k,H,G)=>{if(!G.consumable.consume(H.item,"insert"))return;const rt=G.writer,ft=G.mapper.toViewPosition(H.range.start),Mt=rt.createText(H.item.data);rt.insert(ft,Mt)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(k,H,G)=>{const rt=G.mapper.toViewPosition(H.position),ft=H.position.getShiftedBy(H.length),Mt=G.mapper.toViewPosition(ft,{isPhantom:!0}),he=G.writer.createRange(rt,Mt),Je=G.writer.remove(he.getTrimmed());for(const fn of G.writer.createRangeIn(Je).getItems())G.mapper.unbindViewElement(fn)},{priority:"low"}),this.downcastDispatcher.on("selection",(k,H,G)=>{const rt=G.writer,ft=rt.document.selection;for(const Mt of ft.getRanges())Mt.isCollapsed&&Mt.end.parent.isAttached()&&G.writer.mergeAttributes(Mt.start);rt.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(k,H,G)=>{const rt=H.selection;if(rt.isCollapsed||!G.consumable.consume(rt,"selection"))return;const ft=[];for(const Mt of rt.getRanges()){const he=G.mapper.toViewRange(Mt);ft.push(he)}G.writer.setSelection(ft,{backward:rt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(k,H,G)=>{const rt=H.selection;if(!rt.isCollapsed||!G.consumable.consume(rt,"selection"))return;const ft=G.writer,Mt=rt.getFirstPosition(),he=G.mapper.toViewPosition(Mt),Je=ft.breakAttributes(he);ft.setSelection(Je)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(k=>{if("$graveyard"==k.rootName)return null;const H=new Ui(this.view.document,k.name);return H.rootName=k.rootName,this.mapper.bindElements(k,H),H})}destroy(){this.view.destroy(),this.stopListening()}}ao(yf,St);class Tf{constructor(){this._commands=new Map}add(r,l){this._commands.set(r,l)}get(r){return this._commands.get(r)}execute(r,...l){const p=this.get(r);if(!p)throw new jn.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:r});return p.execute(...l)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class Mm{constructor(){this._consumables=new Map}add(r,l){let p;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?p=this._consumables.get(r):(p=new Rp(r),this._consumables.set(r,p)),p.add(l))}test(r,l){const p=this._consumables.get(r);return void 0===p?null:r.is("$text")||r.is("documentFragment")?p:p.test(l)}consume(r,l){return!!this.test(r,l)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(l),!0)}revert(r,l){const p=this._consumables.get(r);void 0!==p&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):p.revert(l))}static consumablesFromElement(r){const l={element:r,name:!0,attributes:[],classes:[],styles:[]},p=r.getAttributeKeys();for(const k of p)"style"!=k&&"class"!=k&&l.attributes.push(k);const x=r.getClassNames();for(const k of x)l.classes.push(k);const Z=r.getStyleNames();for(const k of Z)l.styles.push(k);return l}static createFrom(r,l){if(l||(l=new Mm(r)),r.is("$text"))return l.add(r),l;r.is("element")&&l.add(r,Mm.consumablesFromElement(r)),r.is("documentFragment")&&l.add(r);for(const p of r.getChildren())l=Mm.createFrom(p,l);return l}}class Rp{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const l in this._consumables)l in r&&this._add(l,r[l])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const l in this._consumables)if(l in r){const p=this._test(l,r[l]);if(!0!==p)return p}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const l in this._consumables)l in r&&this._consume(l,r[l])}revert(r){r.name&&(this._canConsumeName=!0);for(const l in this._consumables)l in r&&this._revert(l,r[l])}_add(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p){if("attributes"===r&&("class"===Z||"style"===Z))throw new jn.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(x.set(Z,!0),"styles"===r)for(const k of this.element.document.stylesProcessor.getRelatedStyles(Z))x.set(k,!0)}}_test(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z){const k=x.get(Z);if(void 0===k)return null;if(!k)return!1}else{const k="class"==Z?"classes":"styles",H=this._test(k,[...this._consumables[k].keys()]);if(!0!==H)return H}return!0}_consume(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z){if(x.set(Z,!1),"styles"==r)for(const k of this.element.document.stylesProcessor.getRelatedStyles(Z))x.set(k,!1)}else{const k="class"==Z?"classes":"styles";this._consume(k,[...this._consumables[k].keys()])}}_revert(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z)!1===x.get(Z)&&x.set(Z,!0);else{const k="class"==Z?"classes":"styles";this._revert(k,[...this._consumables[k].keys()])}}}class l2{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,l)=>{l[0]=new fp(l[0])},{priority:"highest"}),this.on("checkChild",(r,l)=>{l[0]=new fp(l[0]),l[1]=this.getDefinition(l[1])},{priority:"highest"})}register(r,l){if(this._sourceDefinitions[r])throw new jn.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},l)],this._clearCache()}extend(r,l){if(!this._sourceDefinitions[r])throw new jn.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},l)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let l;return l="string"==typeof r?r:r.is&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[l]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const l=this.getDefinition(r);return!(!l||!l.isBlock)}isLimit(r){const l=this.getDefinition(r);return!(!l||!l.isLimit&&!l.isObject)}isObject(r){const l=this.getDefinition(r);return!(!l||!l.isObject)}isInline(r){const l=this.getDefinition(r);return!(!l||!l.isInline)}checkChild(r,l){return!!l&&this._checkContextMatch(l,r)}checkAttribute(r,l){const p=this.getDefinition(r.last);return!!p&&p.allowAttributes.includes(l)}checkMerge(r,l=null){if(r instanceof mo){const p=r.nodeBefore,x=r.nodeAfter;if(!(p instanceof qa))throw new jn.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(x instanceof qa))throw new jn.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(p,x)}for(const p of l.getChildren())if(!this.checkChild(r,p))return!1;return!0}addChildCheck(r){this.on("checkChild",(l,[p,x])=>{if(!x)return;const Z=r(p,x);"boolean"==typeof Z&&(l.stop(),l.return=Z)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(l,[p,x])=>{const Z=r(p,x);"boolean"==typeof Z&&(l.stop(),l.return=Z)},{priority:"high"})}setAttributeProperties(r,l){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),l)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let l;for(l=r instanceof mo?r.parent:(r instanceof Vi?[r]:Array.from(r.getRanges())).reduce((p,x)=>{const Z=x.getCommonAncestor();return p?p.getCommonAncestor(Z,{includeSelf:!0}):Z},null);!this.isLimit(l)&&l.parent;)l=l.parent;return l}checkAttributeInSelection(r,l){if(r.isCollapsed){const p=[...r.getFirstPosition().getAncestors(),new Do("",r.getAttributes())];return this.checkAttribute(p,l)}{const p=r.getRanges();for(const x of p)for(const Z of x)if(this.checkAttribute(Z.item,l))return!0}return!1}*getValidRanges(r,l){r=function*(p){for(const x of p)yield*x.getMinimalFlatRanges()}(r);for(const p of r)yield*this._getValidRangesForRange(p,l)}getNearestSelectionRange(r,l="both"){if(this.checkChild(r,"$text"))return new Vi(r);let p,x;const Z=r.getAncestors().reverse().find(k=>this.isLimit(k))||r.root;"both"!=l&&"backward"!=l||(p=new Xc({boundaries:Vi._createIn(Z),startPosition:r,direction:"backward"})),"both"!=l&&"forward"!=l||(x=new Xc({boundaries:Vi._createIn(Z),startPosition:r}));for(const k of function*(H,G){let rt=!1;for(;!rt;){if(rt=!0,H){const ft=H.next();ft.done||(rt=!1,yield{walker:H,value:ft.value})}if(G){const ft=G.next();ft.done||(rt=!1,yield{walker:G,value:ft.value})}}}(p,x)){const G=k.value;if(G.type==(k.walker==p?"elementEnd":"elementStart")&&this.isObject(G.item))return Vi._createOn(G.item);if(this.checkChild(G.nextPosition,"$text"))return new Vi(G.nextPosition)}return null}findAllowedParent(r,l){let p=r.parent;for(;p;){if(this.checkChild(p,l))return p;if(this.isLimit(p))return null;p=p.parent}return null}removeDisallowedAttributes(r,l){for(const p of r)if(p.is("$text"))te(this,p,l);else{const x=Vi._createIn(p).getPositions();for(const Z of x)te(this,Z.nodeBefore||Z.parent,l)}}createContext(r){return new fp(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},l=this._sourceDefinitions,p=Object.keys(l);for(const x of p)r[x]=jh(l[x],x);for(const x of p)Af(r,x);for(const x of p)Wh(r,x);for(const x of p)Gr(r,x),du(r,x);for(const x of p)$h(r,x),f3(r,x);this._compiledDefinitions=r}_checkContextMatch(r,l,p=l.length-1){const x=l.getItem(p);if(r.allowIn.includes(x.name)){if(0==p)return!0;{const Z=this.getDefinition(x);return this._checkContextMatch(Z,l,p-1)}}return!1}*_getValidRangesForRange(r,l){let p=r.start,x=r.start;for(const Z of r.getItems({shallow:!0}))Z.is("element")&&(yield*this._getValidRangesForRange(Vi._createIn(Z),l)),this.checkAttribute(Z,l)||(p.isEqual(x)||(yield new Vi(p,x)),p=mo._createAfter(Z)),x=mo._createAfter(Z);p.isEqual(x)||(yield new Vi(p,x))}}ao(l2,St);class fp{constructor(r){if(r instanceof fp)return r;"string"==typeof r?r=[r]:Array.isArray(r)||(r=r.getAncestors({includeSelf:!0})),r[0]&&"string"!=typeof r[0]&&r[0].is("documentFragment")&&r.shift(),this._items=r.map(Uc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const l=new fp([r]);return l._items=[...this._items,...l._items],l}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function jh(b,r){const l={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(p,x){for(const Z of p){const k=Object.keys(Z).filter(H=>H.startsWith("is"));for(const H of k)x[H]=Z[H]}}(b,l),hp(b,l,"allowIn"),hp(b,l,"allowContentOf"),hp(b,l,"allowWhere"),hp(b,l,"allowAttributes"),hp(b,l,"allowAttributesOf"),hp(b,l,"inheritTypesFrom"),function(p,x){for(const Z of p){const k=Z.inheritAllFrom;k&&(x.allowContentOf.push(k),x.allowWhere.push(k),x.allowAttributesOf.push(k),x.inheritTypesFrom.push(k))}}(b,l),l}function Af(b,r){for(const l of b[r].allowContentOf)b[l]&&Dd(b,l).forEach(p=>{p.allowIn.push(r)});delete b[r].allowContentOf}function Wh(b,r){for(const l of b[r].allowWhere){const p=b[l];p&&b[r].allowIn.push(...p.allowIn)}delete b[r].allowWhere}function Gr(b,r){for(const l of b[r].allowAttributesOf){const p=b[l];p&&b[r].allowAttributes.push(...p.allowAttributes)}delete b[r].allowAttributesOf}function du(b,r){const l=b[r];for(const p of l.inheritTypesFrom){const x=b[p];if(x){const Z=Object.keys(x).filter(k=>k.startsWith("is"));for(const k of Z)k in l||(l[k]=x[k])}}delete l.inheritTypesFrom}function $h(b,r){const l=b[r],p=l.allowIn.filter(x=>b[x]);l.allowIn=Array.from(new Set(p))}function f3(b,r){const l=b[r];l.allowAttributes=Array.from(new Set(l.allowAttributes))}function hp(b,r,l){for(const p of b)"string"==typeof p[l]?r[l].push(p[l]):Array.isArray(p[l])&&r[l].push(...p[l])}function Dd(b,r){const l=b[r];return(p=b,Object.keys(p).map(x=>p[x])).filter(x=>x.allowIn.includes(l.name));var p}function Uc(b){return"string"==typeof b?{name:b,*getAttributeKeys(){},getAttribute(){}}:{name:b.is("element")?b.name:"$text",*getAttributeKeys(){yield*b.getAttributeKeys()},getAttribute:r=>b.getAttribute(r)}}function te(b,r,l){for(const p of r.getAttributeKeys())b.checkAttribute(r,p)||l.removeAttribute(p,r)}class h3{constructor(r={}){this._splitParts=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},r),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(r,l,p=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(k,H){let G;for(const rt of new fp(k)){const ft={};for(const he of rt.getAttributeKeys())ft[he]=rt.getAttribute(he);const Mt=H.createElement(rt.name,ft);G&&H.append(Mt,G),G=mo._createAt(Mt,0)}return G}(p,l),this.conversionApi.writer=l,this.conversionApi.consumable=Mm.createFrom(r),this.conversionApi.store={};const{modelRange:x}=this._convertItem(r,this._modelCursor),Z=l.createDocumentFragment();if(x){this._removeEmptyElements();for(const k of Array.from(this._modelCursor.parent.getChildren()))l.append(k,Z);Z.markers=function(k,H){const G=new Set,rt=new Map,ft=Vi._createIn(k).getItems();for(const Mt of ft)"$marker"==Mt.name&&G.add(Mt);for(const Mt of G){const he=Mt.getAttribute("data-name"),Je=H.createPositionBefore(Mt);rt.has(he)?rt.get(he).end=Je.clone():rt.set(he,new Vi(Je.clone())),H.remove(Mt)}return rt}(Z,l)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,Z}_convertItem(r,l){const p=Object.assign({viewItem:r,modelCursor:l,modelRange:null});if(r.is("element")?this.fire("element:"+r.name,p,this.conversionApi):r.is("$text")?this.fire("text",p,this.conversionApi):this.fire("documentFragment",p,this.conversionApi),p.modelRange&&!(p.modelRange instanceof Vi))throw new jn.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:p.modelRange,modelCursor:p.modelCursor}}_convertChildren(r,l){const p=new Vi(l);let x=l;for(const Z of Array.from(r.getChildren())){const k=this._convertItem(Z,x);k.modelRange instanceof Vi&&(p.end=k.modelRange.end,x=k.modelCursor)}return{modelRange:p,modelCursor:x}}_splitToAllowedParent(r,l){const p=this.conversionApi.schema.findAllowedParent(l,r);if(!p)return null;if(p===l.parent)return{position:l};if(this._modelCursor.parent.getAncestors().includes(p))return null;const x=this.conversionApi.writer.split(l,p),Z=[];for(const k of x.range.getWalker())if("elementEnd"==k.type)Z.push(k.item);else{const H=Z.pop();this._registerSplitPair(H,k.item)}return{position:x.position,cursorParent:x.range.end.parent}}_registerSplitPair(r,l){this._splitParts.has(r)||this._splitParts.set(r,[r]);const p=this._splitParts.get(r);this._splitParts.set(l,p),p.push(l)}_getSplitParts(r){let l;return l=this._splitParts.has(r)?this._splitParts.get(r):[r],l}_removeEmptyElements(){let r=!1;for(const l of this._splitParts.keys())l.isEmpty&&(this.conversionApi.writer.remove(l),this._splitParts.delete(l),r=!0);r&&this._removeEmptyElements()}}ao(h3,wa);class Uf{constructor(r,l){this.model=r,this.stylesProcessor=l,this.mapper=new a2,this.downcastDispatcher=new r2({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(p,x,Z)=>{if(!Z.consumable.consume(x.item,"insert"))return;const k=Z.writer,H=Z.mapper.toViewPosition(x.range.start),G=k.createText(x.item.data);k.insert(H,G)},{priority:"lowest"}),this.upcastDispatcher=new h3({schema:r.schema}),this.viewDocument=new fs(l),this._viewWriter=new su(this.viewDocument),this.upcastDispatcher.on("text",(p,x,Z)=>{if(Z.schema.checkChild(x.modelCursor,"$text")&&Z.consumable.consume(x.viewItem)){const k=Z.writer.createText(x.viewItem.data);Z.writer.insert(k,x.modelCursor),x.modelRange=Vi._createFromPositionAndShift(x.modelCursor,k.offsetSize),x.modelCursor=x.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(p,x,Z)=>{if(!x.modelRange&&Z.consumable.consume(x.viewItem,{name:!0})){const{modelRange:k,modelCursor:H}=Z.convertChildren(x.viewItem,x.modelCursor);x.modelRange=k,x.modelCursor=H}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(p,x,Z)=>{if(!x.modelRange&&Z.consumable.consume(x.viewItem,{name:!0})){const{modelRange:k,modelCursor:H}=Z.convertChildren(x.viewItem,x.modelCursor);x.modelRange=k,x.modelCursor=H}},{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(r){const{rootName:l="main",trim:p="empty"}=r||{};if(!this._checkIfRootsExists([l]))throw new jn.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const x=this.model.document.getRoot(l);return"empty"!==p||this.model.hasContent(x,{ignoreWhitespaces:!0})?this.stringify(x):""}stringify(r){const l=this.toView(r);return this.processor.toData(l)}toView(r){const l=this.viewDocument,p=this._viewWriter;this.mapper.clearBindings();const x=Vi._createIn(r),Z=new Gl(l);if(this.mapper.bindElements(r,Z),this.downcastDispatcher.convertInsert(x,p),!r.is("documentFragment")){const k=function(H){const G=[],rt=H.root.document;if(!rt)return[];const ft=Vi._createIn(H);for(const Mt of rt.model.markers){const he=ft.getIntersection(Mt.getRange());he&&G.push([Mt.name,he])}return G}(r);for(const[H,G]of k)this.downcastDispatcher.convertMarkerAdd(H,G,p)}return Z}init(r){if(this.model.document.version)throw new jn.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);let l={};if("string"==typeof r?l.main=r:l=r,!this._checkIfRootsExists(Object.keys(l)))throw new jn.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",p=>{for(const x of Object.keys(l)){const Z=this.model.document.getRoot(x);p.insert(this.parse(l[x],Z),Z,0)}}),Promise.resolve()}set(r){let l={};if("string"==typeof r?l.main=r:l=r,!this._checkIfRootsExists(Object.keys(l)))throw new jn.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",p=>{p.setSelection(null),p.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const x of Object.keys(l)){const Z=this.model.document.getRoot(x);p.remove(p.createRangeIn(Z)),p.insert(this.parse(l[x],Z),Z,0)}})}parse(r,l="$root"){const p=this.processor.toView(r);return this.toModel(p,l)}toModel(r,l="$root"){return this.model.change(p=>this.upcastDispatcher.convert(r,p,l))}addStyleProcessorRules(r){r(this.stylesProcessor)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const l of r)if(!this.model.document.getRootNames().includes(l))return!1;return!0}}ao(Uf,St);class y_{constructor(r,l){this._helpers=new Map,this._downcast=Array.isArray(r)?r:[r],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(l)?l:[l],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,l){const p=this._downcast.includes(l);if(!this._upcast.includes(l)&&!p)throw new jn.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:r,dispatchers:[l],isDowncast:p})}for(r){if(!this._helpers.has(r))throw new jn.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:l,view:p}of Hp(r))this.for("upcast").elementToElement({model:l,view:p,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:l,view:p}of Hp(r))this.for("upcast").elementToAttribute({view:p,model:l,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:l,view:p}of Hp(r))this.for("upcast").attributeToAttribute({view:p,model:l})}_createConversionHelpers({name:r,dispatchers:l,isDowncast:p}){if(this._helpers.has(r))throw new jn.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const x=p?new Zs(l):new xf(l);this._helpers.set(r,x)}}function*Hp(b){if(b.model.values)for(const r of b.model.values){const l={key:b.model.key,value:r},p=b.view[r],x=b.upcastAlso?b.upcastAlso[r]:void 0;yield*Kh(l,p,x)}else yield*Kh(b.model,b.view,b.upcastAlso)}function*Kh(b,r,l){if(yield{model:b,view:r},l){l=Array.isArray(l)?l:[l];for(const p of l)yield{model:b,view:p}}}class Dm{constructor(r="default"){this.operations=[],this.type=r}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}class Su{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r){return new this(r.baseVersion)}}class ku{constructor(r){this.markers=new Map,this._children=new Zr,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(r){return"documentFragment"===r||"model:documentFragment"===r}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let l=this;for(const p of r)l=l.getChild(l.offsetToIndex(p));return l}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const l of this._children)r.push(l.toJSON());return r}static fromJSON(r){const l=[];for(const p of r)l.push(p.name?qa.fromJSON(p):Do.fromJSON(p));return new ku(l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const p="string"==typeof(x=l)?[new Do(x)]:(za(x)||(x=[x]),Array.from(x).map(Z=>"string"==typeof Z?new Do(Z):Z instanceof _a?new Do(Z.data,Z.getAttributes()):Z));var x;for(const x of p)null!==x.parent&&x._remove(),x.parent=this;this._children._insertNodes(r,p)}_removeChildren(r,l=1){const p=this._children._removeNodes(r,l);for(const x of p)x.parent=null;return p}}function u2(b,r){const l=(r=Pm(r)).reduce((Z,k)=>Z+k.offsetSize,0),p=b.parent;R1(b);const x=b.index;return p._insertChild(x,r),d1(p,x+r.length),d1(p,x),new Vi(b,b.getShiftedBy(l))}function oc(b){if(!b.isFlat)throw new jn.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const r=b.start.parent;R1(b.start),R1(b.end);const l=r._removeChildren(b.start.index,b.end.index-b.start.index);return d1(r,b.start.index),l}function br(b,r){if(!b.isFlat)throw new jn.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const l=oc(b);return u2(r=r._getTransformedByDeletion(b.start,b.end.offset-b.start.offset),l)}function Pm(b){const r=[];b instanceof Array||(b=[b]);for(let l=0;lr.maxOffset)throw new jn.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(r===l&&p=p&&this.targetPosition.path[Z]p._clone(!0))),l=new aa(this.position,r,this.baseVersion);return l.shouldReceiveAttributes=this.shouldReceiveAttributes,l}getReversed(){const l=new mo(this.position.root.document.graveyard,[0]);return new La(this.position,this.nodes.maxOffset,l,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetl._clone(!0))),u2(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,l){const p=[];for(const Z of r.nodes)p.push(Z.name?qa.fromJSON(Z):Do.fromJSON(Z));const x=new aa(mo.fromJSON(r.position,l),p,r.baseVersion);return x.shouldReceiveAttributes=r.shouldReceiveAttributes,x}}class Ql extends Su{constructor(r,l,p,x,Z,k){super(k),this.name=r,this.oldRange=l?l.clone():null,this.newRange=p?p.clone():null,this.affectsData=Z,this._markers=x}get type(){return"marker"}clone(){return new Ql(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Ql(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this._markers[this.newRange?"_set":"_remove"](this.name,this.newRange,!0,this.affectsData)}toJSON(){const r=super.toJSON();return this.oldRange&&(r.oldRange=this.oldRange.toJSON()),this.newRange&&(r.newRange=this.newRange.toJSON()),delete r._markers,r}static get className(){return"MarkerOperation"}static fromJSON(r,l){return new Ql(r.name,r.oldRange?Vi.fromJSON(r.oldRange,l):null,r.newRange?Vi.fromJSON(r.newRange,l):null,l.model.markers,r.affectsData,r.baseVersion)}}class Yr extends Su{constructor(r,l,p,x){super(x),this.position=r,this.position.stickiness="toNext",this.oldName=l,this.newName=p}get type(){return"rename"}clone(){return new Yr(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Yr(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const r=this.position.nodeAfter;if(!(r instanceof qa))throw new jn.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(r.name!==this.oldName)throw new jn.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r}static get className(){return"RenameOperation"}static fromJSON(r,l){return new Yr(mo.fromJSON(r.position,l),r.oldName,r.newName,r.baseVersion)}}class Ou extends Su{constructor(r,l,p,x,Z){super(Z),this.root=r,this.key=l,this.oldValue=p,this.newValue=x}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Ou(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Ou(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new jn.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new jn.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new jn.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const r=super.toJSON();return r.root=this.root.toJSON(),r}static get className(){return"RootAttributeOperation"}static fromJSON(r,l){if(!l.getRoot(r.root))throw new jn.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:r.root});return new Ou(l.getRoot(r.root),r.key,r.oldValue,r.newValue,r.baseVersion)}}class ac extends Su{constructor(r,l,p,x,Z){super(Z),this.sourcePosition=r.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=l,this.targetPosition=p.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=x.clone()}get type(){return"merge"}get deletionPosition(){return new mo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const r=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Vi(this.sourcePosition,r)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const r=this.targetPosition._getTransformedByMergeOperation(this),l=this.sourcePosition.path.slice(0,-1),p=new mo(this.sourcePosition.root,l)._getTransformedByMergeOperation(this),x=new Jr(r,this.howMany,this.graveyardPosition,this.baseVersion+1);return x.insertionPosition=p,x}_validate(){const r=this.sourcePosition.parent,l=this.targetPosition.parent;if(!r.parent)throw new jn.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!l.parent)throw new jn.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=r.maxOffset)throw new jn.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const r=this.sourcePosition.parent;br(Vi._createIn(r),this.targetPosition),br(Vi._createOn(r),this.graveyardPosition)}toJSON(){const r=super.toJSON();return r.sourcePosition=r.sourcePosition.toJSON(),r.targetPosition=r.targetPosition.toJSON(),r.graveyardPosition=r.graveyardPosition.toJSON(),r}static get className(){return"MergeOperation"}static fromJSON(r,l){const p=mo.fromJSON(r.sourcePosition,l),x=mo.fromJSON(r.targetPosition,l),Z=mo.fromJSON(r.graveyardPosition,l);return new this(p,r.howMany,x,Z,r.baseVersion)}}class Jr extends Su{constructor(r,l,p,x){super(x),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=l,this.insertionPosition=Jr.getInsertionPosition(r),this.insertionPosition.stickiness="toNone",this.graveyardPosition=p?p.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new mo(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Vi(this.splitPosition,r)}clone(){const r=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return r.insertionPosition=this.insertionPosition,r}getReversed(){const l=new mo(this.splitPosition.root.document.graveyard,[0]);return new ac(this.moveTargetPosition,this.howMany,this.splitPosition,l,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{for(const x of p.getAttributeKeys())this.removeAttribute(x,p)};if(r instanceof Vi)for(const p of r.getItems())l(p);else l(r)}move(r,l,p){if(this._assertWriterUsedCorrectly(),!(r instanceof Vi))throw new jn.b("writer-move-invalid-range: Invalid range to move.",this);if(!r.isFlat)throw new jn.b("writer-move-range-not-flat: Range to move is not flat.",this);const x=mo._createAt(l,p);if(x.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!Yp(r.root,x.root))throw new jn.b("writer-move-different-document: Range is going to be moved between different documents.",this);const k=new La(r.start,r.end.offset-r.start.offset,x,r.root.document?r.root.document.version:null);this.batch.addOperation(k),this.model.applyOperation(k)}remove(r){this._assertWriterUsedCorrectly();const l=(r instanceof Vi?r:Vi._createOn(r)).getMinimalFlatRanges().reverse();for(const p of l)this._addOperationForAffectedMarkers("move",p),H1(p.start,p.end.offset-p.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const l=r.nodeBefore,p=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(l instanceof qa))throw new jn.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(p instanceof qa))throw new jn.b("writer-merge-no-element-after: Node after merge position must be an element.",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,l,p){return this.model.createPositionFromPath(r,l,p)}createPositionAt(r,l){return this.model.createPositionAt(r,l)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,l){return this.model.createRange(r,l)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(r,l,p){return this.model.createSelection(r,l,p)}_mergeDetached(r){const l=r.nodeBefore,p=r.nodeAfter;this.move(Vi._createIn(p),mo._createAt(l,"end")),this.remove(p)}_merge(r){const l=mo._createAt(r.nodeBefore,"end"),p=mo._createAt(r.nodeAfter,0),Z=new mo(r.root.document.graveyard,[0]),H=new ac(p,r.nodeAfter.maxOffset,l,Z,r.root.document.version);this.batch.addOperation(H),this.model.applyOperation(H)}rename(r,l){if(this._assertWriterUsedCorrectly(),!(r instanceof qa))throw new jn.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const p=r.root.document?r.root.document.version:null,x=new Yr(mo._createBefore(r),r.name,l,p);this.batch.addOperation(x),this.model.applyOperation(x)}split(r,l){this._assertWriterUsedCorrectly();let p,x,Z=r.parent;if(!Z.parent)throw new jn.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(l||(l=Z.parent),!r.parent.getAncestors({includeSelf:!0}).includes(l))throw new jn.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const G=new Jr(r,Z.maxOffset-r.offset,null,Z.root.document?Z.root.document.version:null);this.batch.addOperation(G),this.model.applyOperation(G),p||x||(p=Z,x=r.parent.nextSibling),Z=(r=this.createPositionAfter(r.parent)).parent}while(Z!==l);return{position:r,range:new Vi(mo._createAt(p,"end"),mo._createAt(x,0))}}wrap(r,l){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new jn.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const p=l instanceof qa?l:new qa(l);if(p.childCount>0)throw new jn.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==p.parent)throw new jn.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(p,r.start);const x=new Vi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(x,mo._createAt(p,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new jn.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(Vi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,l){if(this._assertWriterUsedCorrectly(),!l||"boolean"!=typeof l.usingOperation)throw new jn.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const p=l.usingOperation,x=l.range,Z=void 0!==l.affectsData&&l.affectsData;if(this.model.markers.has(r))throw new jn.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!x)throw new jn.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return p?(_1(this,r,null,x,Z),this.model.markers.get(r)):this.model.markers._set(r,x,p,Z)}updateMarker(r,l){this._assertWriterUsedCorrectly();const p="string"==typeof r?r:r.name,x=this.model.markers.get(p);if(!x)throw new jn.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!l)return void this.model.markers._refresh(x);const Z="boolean"==typeof l.usingOperation,k="boolean"==typeof l.affectsData,H=k?l.affectsData:x.affectsData;if(!Z&&!l.range&&!k)throw new jn.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const G=x.getRange(),rt=l.range?l.range:G;Z&&l.usingOperation!==x.managedUsingOperations?l.usingOperation?_1(this,p,null,rt,H):(_1(this,p,G,null,H),this.model.markers._set(p,rt,void 0,H)):x.managedUsingOperations?_1(this,p,G,rt,H):this.model.markers._set(p,rt,void 0,H)}removeMarker(r){this._assertWriterUsedCorrectly();const l="string"==typeof r?r:r.name;if(!this.model.markers.has(l))throw new jn.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const p=this.model.markers.get(l);p.managedUsingOperations?_1(this,l,p.getRange(),null,p.affectsData):this.model.markers._remove(l)}setSelection(r,l,p){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(r,l,p)}setSelectionFocus(r,l){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,l)}setSelectionAttribute(r,l){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,l);else for(const[p,x]of Qa(r))this._setSelectionAttribute(p,x)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const l of r)this._removeSelectionAttribute(l)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,l){const p=this.model.document.selection;if(p.isCollapsed&&p.anchor.parent.isEmpty){const x=Pu._getStoreAttributeKey(r);this.setAttribute(x,l,p.anchor.parent)}p._setAttribute(r,l)}_removeSelectionAttribute(r){const l=this.model.document.selection;if(l.isCollapsed&&l.anchor.parent.isEmpty){const p=Pu._getStoreAttributeKey(r);this.removeAttribute(p,l.anchor.parent)}l._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new jn.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(r,l){for(const p of this.model.markers){if(!p.managedUsingOperations)continue;const x=p.getRange();let Z=!1;if("move"===r)Z=l.containsPosition(x.start)||l.start.isEqual(x.start)||l.containsPosition(x.end)||l.end.isEqual(x.end);else{const H=l.nodeAfter,rt=x.end.parent==H&&0==x.end.offset,ft=x.end.nodeAfter==H,Mt=x.start.nodeAfter==H;Z=x.start.parent==l.nodeBefore&&x.start.isAtEnd||rt||ft||Mt}Z&&this.updateMarker(p.name,{range:x})}}}function m1(b,r,l,p){const x=b.model,Z=x.document;let k,H,G,rt=p.start;for(const Mt of p.getWalker({shallow:!0}))G=Mt.item.getAttribute(r),k&&H!=G&&(H!=l&&ft(),rt=k),k=Mt.nextPosition,H=G;function ft(){const Mt=new Vi(rt,k),Je=new sr(Mt,r,H,l,Mt.root.document?Z.version:null);b.batch.addOperation(Je),x.applyOperation(Je)}k instanceof mo&&k!=rt&&H!=l&&ft()}function gp(b,r,l,p){const x=b.model,Z=x.document,k=p.getAttribute(r);let H,G;k!=l&&(p.root===p?G=new Ou(p,r,k,l,p.document?Z.version:null):(H=new Vi(mo._createBefore(p),b.createPositionAfter(p)),G=new sr(H,r,k,l,H.root.document?Z.version:null)),b.batch.addOperation(G),x.applyOperation(G))}function _1(b,r,l,p,x){const Z=b.model,H=new Ql(r,l,p,Z.markers,x,Z.document.version);b.batch.addOperation(H),Z.applyOperation(H)}function H1(b,r,l,p){let x;if(b.root.document){const Z=p.document,k=new mo(Z.graveyard,[0]);x=new La(b,r,k,Z.version)}else x=new fc(b,r);l.addOperation(x),p.applyOperation(x)}function Yp(b,r){return b===r||b instanceof ld&&r instanceof ld}class ba{constructor(r){this._markerCollection=r,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize);const l=Vi._createOn(r);for(const p of this._markerCollection.getMarkersIntersectingRange(l)){const x=p.getRange();this.bufferMarkerChange(p.name,x,x,p.affectsData)}this._cachedChanges=null}bufferOperation(r){switch(r.type){case"insert":if(this._isInInsertedElement(r.position.parent))return;this._markInsert(r.position.parent,r.position.offset,r.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const l of r.range.getItems({shallow:!0}))this._isInInsertedElement(l.parent)||this._markAttribute(l);break;case"remove":case"move":case"reinsert":{if(r.sourcePosition.isEqual(r.targetPosition)||r.sourcePosition.getShiftedBy(r.howMany).isEqual(r.targetPosition))return;const l=this._isInInsertedElement(r.sourcePosition.parent),p=this._isInInsertedElement(r.targetPosition.parent);l||this._markRemove(r.sourcePosition.parent,r.sourcePosition.offset,r.howMany),p||this._markInsert(r.targetPosition.parent,r.getMovedRangeStart().offset,r.howMany);break}case"rename":{if(this._isInInsertedElement(r.position.parent))return;this._markRemove(r.position.parent,r.position.offset,1),this._markInsert(r.position.parent,r.position.offset,1);const l=Vi._createFromPositionAndShift(r.position,1);for(const p of this._markerCollection.getMarkersIntersectingRange(l)){const x=p.getRange();this.bufferMarkerChange(p.name,x,x,p.affectsData)}break}case"split":{const l=r.splitPosition.parent;this._isInInsertedElement(l)||this._markRemove(l,r.splitPosition.offset,r.howMany),this._isInInsertedElement(r.insertionPosition.parent)||this._markInsert(r.insertionPosition.parent,r.insertionPosition.offset,1),r.graveyardPosition&&this._markRemove(r.graveyardPosition.parent,r.graveyardPosition.offset,1);break}case"merge":{const l=r.sourcePosition.parent;this._isInInsertedElement(l.parent)||this._markRemove(l.parent,l.startOffset,1),this._markInsert(r.graveyardPosition.parent,r.graveyardPosition.offset,1);const x=r.targetPosition.parent;this._isInInsertedElement(x)||this._markInsert(x,r.targetPosition.offset,l.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(r,l,p,x){const Z=this._changedMarkers.get(r);Z?(Z.newRange=p,Z.affectsData=x,null==Z.oldRange&&null==Z.newRange&&this._changedMarkers.delete(r)):this._changedMarkers.set(r,{oldRange:l,newRange:p,affectsData:x})}getMarkersToRemove(){const r=[];for(const[l,p]of this._changedMarkers)null!=p.oldRange&&r.push({name:l,range:p.oldRange});return r}getMarkersToAdd(){const r=[];for(const[l,p]of this._changedMarkers)null!=p.newRange&&r.push({name:l,range:p.newRange});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(r=>({name:r[0],data:{oldRange:r[1].oldRange,newRange:r[1].newRange}}))}hasDataChanges(){for(const[,r]of this._changedMarkers)if(r.affectsData)return!0;return this._changesInElement.size>0}getChanges(r={includeChangesInGraveyard:!1}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();const l=[];for(const p of this._changesInElement.keys()){const x=this._changesInElement.get(p).sort((ft,Mt)=>ft.offset===Mt.offset?ft.type!=Mt.type?"remove"==ft.type?-1:1:0:ft.offsetp.position.root!=x.position.root?p.position.root.rootNamep.offset){if(x>Z){const k={type:"attribute",offset:Z,howMany:x-Z,count:this._changeCount++};this._handleChange(k,l),l.push(k)}r.nodesToHandle=p.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=p.offset&&r.offsetZ?(r.nodesToHandle=x-Z,r.offset=Z):r.nodesToHandle=0);if("remove"==p.type&&r.offsetp.offset){const k={type:"attribute",offset:p.offset,howMany:x-p.offset,count:this._changeCount++};this._handleChange(k,l),l.push(k),r.nodesToHandle=p.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==p.type&&(r.offset>=p.offset&&x<=Z?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=p.offset&&x>=Z&&(p.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,l,p){return{type:"insert",position:mo._createAt(r,l),name:p,length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,l,p){return{type:"remove",position:mo._createAt(r,l),name:p,length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,l,p){const x=[];p=new Map(p);for(const[Z,k]of l){const H=p.has(Z)?p.get(Z):null;H!==k&&x.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:Z,attributeOldValue:k,attributeNewValue:H,changeCount:this._changeCount++}),p.delete(Z)}for(const[Z,k]of p)x.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:Z,attributeOldValue:null,attributeNewValue:k,changeCount:this._changeCount++});return x}_isInInsertedElement(r){const l=r.parent;if(!l)return!1;const p=this._changesInElement.get(l),x=r.startOffset;if(p)for(const Z of p)if("insert"==Z.type&&x>=Z.offset&&xp){for(let k=0;k{const x=p[0];if(x.isDocumentOperation&&x.baseVersion!==this.version)throw new jn.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:x})},{priority:"highest"}),this.listenTo(r,"applyOperation",(l,p)=>{const x=p[0];x.isDocumentOperation&&this.differ.bufferOperation(x)},{priority:"high"}),this.listenTo(r,"applyOperation",(l,p)=>{const x=p[0];x.isDocumentOperation&&(this.version++,this.history.addOperation(x))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(l,p,x,Z)=>{this.differ.bufferMarkerChange(p.name,x,Z,p.affectsData),null===x&&p.on("change",(k,H)=>{this.differ.bufferMarkerChange(p.name,H,p.getRange(),p.affectsData)})})}get graveyard(){return this.getRoot("$graveyard")}createRoot(r="$root",l="main"){if(this.roots.get(l))throw new jn.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:l});const p=new ld(this,r,l);return this.roots.add(p),p}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(){return Array.from(this.roots,r=>r.rootName).filter(r=>"$graveyard"!=r)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Qi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const r of this.roots)if(r!==this.graveyard)return r;return this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),l=this.model,p=l.schema,x=l.createPositionFromPath(r,[0]);return p.getNearestSelectionRange(x)||l.createRange(x)}_validateSelectionRange(r){return Zf(r.start)&&Zf(r.end)}_callPostFixers(r){let l=!1;do{for(const p of this._postFixers)if(this.selection.refresh(),l=p(r),l)break}while(l)}}function Zf(b){const r=b.textNode;if(r){const l=r.data,p=b.offset-r.startOffset;return!Pd(l,p)&&!U_(l,p)}return!0}ao(hs,wa);class Vp{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r)}get(r){return this._markers.get(r)||null}_set(r,l,p=!1,x=!1){const Z=r instanceof d2?r.name:r;if(Z.includes(","))throw new jn.b('markercollection-incorrect-marker-name: Marker name cannot contain "," character.',this);const k=this._markers.get(Z);if(k){const rt=k.getRange();let ft=!1;return rt.isEqual(l)||(k._attachLiveRange(Np.fromRange(l)),ft=!0),p!=k.managedUsingOperations&&(k._managedUsingOperations=p,ft=!0),"boolean"==typeof x&&x!=k.affectsData&&(k._affectsData=x,ft=!0),ft&&this.fire("update:"+Z,k,rt,l),k}const H=Np.fromRange(l),G=new d2(Z,H,p,x);return this._markers.set(Z,G),this.fire("update:"+Z,G,null,l),G}_remove(r){const l=r instanceof d2?r.name:r,p=this._markers.get(l);return!!p&&(this._markers.delete(l),this.fire("update:"+l,p,p.getRange(),null),this._destroyMarker(p),!0)}_refresh(r){const l=r instanceof d2?r.name:r,p=this._markers.get(l);if(!p)throw new jn.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const x=p.getRange();this.fire("update:"+l,p,x,x,p.managedUsingOperations,p.affectsData)}*getMarkersAtPosition(r){for(const l of this)l.getRange().containsPosition(r)&&(yield l)}*getMarkersIntersectingRange(r){for(const l of this)null!==l.getRange().getIntersection(r)&&(yield l)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const l of this._markers.values())l.name.startsWith(r+":")&&(yield l)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}ao(Vp,wa);class d2{constructor(r,l,p,x){this.name=r,this._liveRange=this._attachLiveRange(l),this._managedUsingOperations=p,this._affectsData=x}get managedUsingOperations(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}getStart(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}is(r){return"marker"===r||"model:marker"===r}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}ao(d2,wa);class Rc extends Su{get type(){return"noop"}clone(){return new Rc(this.baseVersion)}getReversed(){return new Rc(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const wc={};wc[sr.className]=sr,wc[aa.className]=aa,wc[Ql.className]=Ql,wc[La.className]=La,wc[Rc.className]=Rc,wc[Su.className]=Su,wc[Yr.className]=Yr,wc[Ou.className]=Ou,wc[Jr.className]=Jr,wc[ac.className]=ac;class tl extends mo{constructor(r,l,p="toNone"){if(super(r,l,p),!this.root.is("rootElement"))throw new jn.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",r);p2.call(this)}detach(){this.stopListening()}is(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r}toPosition(){return new mo(this.root,this.path.slice(),this.stickiness)}static fromPosition(r,l){return new this(r.root,r.path.slice(),l||r.stickiness)}}function p2(){this.listenTo(this.root.document.model,"applyOperation",(b,r)=>{const l=r[0];l.isDocumentOperation&&m2.call(this,l)},{priority:"low"})}function m2(b){const r=this.getTransformedByOperation(b);if(!this.isEqual(r)){const l=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",l)}}ao(tl,wa);class ud{constructor(r,l,p){this.model=r,this.writer=l,this.position=p,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(r,l){r=Array.from(r);for(let p=0;p!0);if(b.schema.checkChild(r.nextPosition,"$text"))return r.nextPosition}}function Dl(b,r){const p=mo._createAt(b.root,r?"end":0);return r?new Vi(b,p):new Vi(p,b)}function vp(b,r,l){return' ,.?!:;"-()'.includes(b.charAt(r+(l?0:-1)))}function Mf(b,r,l){return r===(l?b.endOffset:0)}function Df(b,r){const l=[];Array.from(b.getItems({direction:"backward"})).map(p=>r.createRangeOn(p)).filter(p=>(p.start.isAfter(b.start)||p.start.isEqual(b.start))&&(p.end.isBefore(b.end)||p.end.isEqual(b.end))).forEach(p=>{l.push(p.start.parent),r.remove(p)}),l.forEach(p=>{let x=p;for(;x.parent&&x.isEmpty;){const Z=r.createRangeOn(x);x=x.parent,r.remove(Z)}})}function kd(b,r){return b.isCollapsed?function(l,p){const x=l.start,Z=p.getNearestSelectionRange(x);if(!Z)return null;if(!Z.isCollapsed)return Z;const k=Z.start;return x.isEqual(k)?null:new Vi(k)}(b,r):function(l,p){const x=l.start,Z=l.end,k=p.checkChild(x,"$text"),H=p.checkChild(Z,"$text"),G=p.getLimitElement(x),rt=p.getLimitElement(Z);if(G===rt){if(k&&H)return null;if(function(he,Je,fn){const Mn=he.nodeAfter&&!fn.isLimit(he.nodeAfter)||fn.checkChild(he,"$text"),In=Je.nodeBefore&&!fn.isLimit(Je.nodeBefore)||fn.checkChild(Je,"$text");return Mn||In}(x,Z,p)){const he=x.nodeAfter&&p.isObject(x.nodeAfter)?null:p.getNearestSelectionRange(x,"forward"),Je=Z.nodeBefore&&p.isObject(Z.nodeBefore)?null:p.getNearestSelectionRange(Z,"backward");return new Vi(he?he.start:x,Je?Je.start:Z)}}const ft=G&&!G.is("rootElement"),Mt=rt&&!rt.is("rootElement");if(ft||Mt){const he=x.nodeAfter&&Z.nodeBefore&&x.nodeAfter.parent===Z.nodeBefore.parent,Je=ft&&(!he||!_2(x.nodeAfter,p)),fn=Mt&&(!he||!_2(Z.nodeBefore,p));let Mn=x,In=Z;return Je&&(Mn=mo._createBefore(Gp(G,p))),fn&&(In=mo._createAfter(Gp(rt,p))),new Vi(Mn,In)}return null}(b,r)}function Gp(b,r){let l=b,p=l;for(;r.isLimit(p)&&p.parent;)l=p,p=p.parent;return l}function _2(b,r){return b&&r.isObject(b)}class Pf{constructor(){this.markers=new Vp,this.document=new hs(this),this.schema=new l2,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,l)=>{l[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((r,l)=>{if("$marker"===l.name)return!0}),function h1(b){b.document.registerPostFixer(r=>function(l,p){const x=p.document.selection,Z=p.schema,k=[];let H=!1;for(const G of x.getRanges()){const rt=kd(G,Z);rt&&!rt.isEqual(G)?(k.push(rt),H=!0):k.push(G)}H&&l.setSelection(function(G){const rt=[];rt.push(G.shift());for(const ft of G){const Mt=rt.pop();if(ft.isIntersecting(Mt)){const he=Mt.start.isAfter(ft.start)?ft.start:Mt.start,Je=Mt.end.isAfter(ft.end)?Mt.end:ft.end,fn=new Vi(he,Je);rt.push(fn)}else rt.push(Mt),rt.push(ft)}return rt}(k),{backward:x.isBackward})}(r,b))}(this)}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Dm,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(l){jn.b.rethrowUnexpectedError(l,this)}}enqueueChange(r,l){try{"string"==typeof r?r=new Dm(r):"function"==typeof r&&(l=r,r=new Dm),this._pendingChanges.push({batch:r,callback:l}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(p){jn.b.rethrowUnexpectedError(p,this)}}applyOperation(r){r._execute()}insertContent(r,l,p){return Z=r,k=l,H=p,(x=this).change(G=>{let rt;rt=k?k instanceof q1||k instanceof Pu?k:G.createSelection(k,H):x.document.selection,rt.isCollapsed||x.deleteContent(rt,{doNotAutoparagraph:!0});const ft=new ud(x,G,rt.anchor);let Mt;Mt=Z.is("documentFragment")?Z.getChildren():[Z],ft.handleNodes(Mt,{isFirst:!0,isLast:!0});const he=ft.getSelectionRange();he&&(rt instanceof Pu?G.setSelection(he):rt.setTo(he));const Je=ft.getAffectedRange()||x.createRange(rt.anchor);return ft.destroy(),Je});var x,Z,k,H}deleteContent(r,l){!function jl(b,r,l={}){if(r.isCollapsed)return;const p=r.getFirstRange();if("$graveyard"==p.root.rootName)return;const x=b.schema;b.change(Z=>{if(!l.doNotResetEntireContent&&function(G,rt){const ft=G.getLimitElement(rt);if(!rt.containsEntireContent(ft))return!1;const Mt=rt.getFirstRange();return Mt.start.parent!=Mt.end.parent&&G.checkChild(ft,"paragraph")}(x,r))return void function(G,rt){const ft=G.model.schema.getLimitElement(rt);G.remove(G.createRangeIn(ft)),Bp(G,G.createPositionAt(ft,0),rt)}(Z,r);const[k,H]=function(G){const rt=G.root.document.model,ft=G.start;let Mt=G.end;if(rt.hasContent(G,{ignoreMarkers:!0})){const he=function(Je){const fn=Je.parent,Mn=fn.root.document.model.schema,In=fn.getAncestors({parentFirst:!0,includeSelf:!0});for(const Qn of In){if(Mn.isLimit(Qn))return null;if(Mn.isBlock(Qn))return Qn}}(Mt);if(he&&Mt.isTouching(rt.createPositionAt(he,0))){const Je=rt.createSelection(G);rt.modifySelection(Je,{direction:"backward"}),Mt=Je.getLastPosition()}}return[tl.fromPosition(ft,"toPrevious"),tl.fromPosition(Mt,"toNext")]}(p);p.start.isTouching(p.end)||Z.remove(p),l.leaveUnmerged||(function(G,rt,ft){const Mt=G.model;if(!Sd(G.model.schema,rt,ft))return;const[he,Je]=function(fn,Mn){const In=fn.getAncestors(),Qn=Mn.getAncestors();let Fi=0;for(;In[Fi]&&In[Fi]==Qn[Fi];)Fi++;return[In[Fi],Qn[Fi]]}(rt,ft);!Mt.hasContent(he,{ignoreMarkers:!0})&&Mt.hasContent(Je,{ignoreMarkers:!0})?function fn(Mn,In,Qn,Fi){const Ji=In.parent,Uo=Qn.parent;if(Ji!=Fi&&Uo!=Fi){for(In=Mn.createPositionAfter(Ji),(Qn=Mn.createPositionBefore(Uo)).isEqual(In)||Mn.insert(Ji,Qn);In.parent.isEmpty;){const va=In.parent;In=Mn.createPositionBefore(va),Mn.remove(va)}Qn=Mn.createPositionBefore(Uo),function(va,Rs){const Rr=Rs.nodeBefore,el=Rs.nodeAfter;Rr.name!=el.name&&va.rename(Rr,el.name),va.clearAttributes(Rr),va.setAttributes(Object.fromEntries(el.getAttributes()),Rr),va.merge(Rs)}(Mn,Qn),Sd(Mn.model.schema,In,Qn)&&fn(Mn,In,Qn,Fi)}}(G,rt,ft,he.parent):function fn(Mn,In,Qn,Fi){const Ji=In.parent,Uo=Qn.parent;if(Ji!=Fi&&Uo!=Fi){for(In=Mn.createPositionAfter(Ji),(Qn=Mn.createPositionBefore(Uo)).isEqual(In)||Mn.insert(Uo,In),Mn.merge(In);Qn.parent.isEmpty;){const va=Qn.parent;Qn=Mn.createPositionBefore(va),Mn.remove(va)}!Sd(Mn.model.schema,In,Qn)||fn(Mn,In,Qn,Fi)}}(G,rt,ft,he.parent)}(Z,k,H),x.removeDisallowedAttributes(k.parent.getChildren(),Z)),Y1(Z,r,k),!l.doNotAutoparagraph&&function(G,rt){const ft=G.checkChild(rt,"$text"),Mt=G.checkChild(rt,"paragraph");return!ft&&Mt}(x,k)&&Bp(Z,k,r),k.detach(),H.detach()})}(this,r,l)}modifySelection(r,l){!function(p,x,Z={}){const k=p.schema,H="backward"!=Z.direction,G=Z.unit?Z.unit:"character",ft=new Xc({boundaries:Dl(x.focus,H),singleCharacters:!0,direction:H?"forward":"backward"}),Mt={walker:ft,schema:k,isForward:H,unit:G};let he;for(;he=ft.next();){if(he.done)return;const Je=g3(Mt,he.value);if(Je)return void(x instanceof Pu?p.change(fn=>{fn.setSelectionFocus(Je)}):x.setFocus(Je))}}(this,r,l)}getSelectedContent(r){return function(l,p){return l.change(x=>{const Z=x.createDocumentFragment(),k=p.getFirstRange();if(!k||k.isCollapsed)return Z;const H=k.start.root,G=k.start.getCommonPath(k.end),rt=H.getNodeByPath(G);let ft;ft=k.start.parent==k.end.parent?k:x.createRange(x.createPositionAt(rt,k.start.path[G.length]),x.createPositionAt(rt,k.end.path[G.length]+1));const Mt=ft.end.offset-ft.start.offset;for(const he of ft.getItems({shallow:!0}))he.is("$textProxy")?x.appendText(he.data,he.getAttributes(),Z):x.append(x.cloneElement(he,!0),Z);if(ft!=k){const he=k._getTransformedByMove(ft.start,x.createPositionAt(Z,0),Mt)[0],Je=x.createRange(x.createPositionAt(Z,0),he.start);Df(x.createRange(he.end,x.createPositionAt(Z,"end")),x),Df(Je,x)}return Z})}(this,r)}hasContent(r,l={}){const p=r instanceof qa?Vi._createIn(r):r;if(p.isCollapsed)return!1;const{ignoreWhitespaces:x=!1,ignoreMarkers:Z=!1}=l;if(!Z)for(const k of this.markers.getMarkersIntersectingRange(p))if(k.affectsData)return!0;for(const k of p.getItems())if(k.is("$textProxy")){if(!x||-1!==k.data.search(/\S/))return!0}else if(this.schema.isObject(k))return!0;return!1}createPositionFromPath(r,l,p){return new mo(r,l,p)}createPositionAt(r,l){return mo._createAt(r,l)}createPositionAfter(r){return mo._createAfter(r)}createPositionBefore(r){return mo._createBefore(r)}createRange(r,l){return new Vi(r,l)}createRangeIn(r){return Vi._createIn(r)}createRangeOn(r){return Vi._createOn(r)}createSelection(r,l,p){return new q1(r,l,p)}createBatch(r){return new Dm(r)}createOperationFromJSON(r){return class{static fromJSON(l,p){return wc[l.__className].fromJSON(l,p)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new p1(this,this._pendingChanges[0].batch);const p=this._pendingChanges[0].callback(this._currentWriter);r.push(p),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),r}}ao(Pf,St);class Od{constructor(){this._listener=Object.create(Ri)}listenTo(r){this._listener.listenTo(r,"keydown",(l,p)=>{this._listener.fire("_keydown:"+Ba(p),p)})}set(r,l,p={}){const x=sp(r);this._listener.listenTo(this._listener,"_keydown:"+x,(k,H)=>{l(H,()=>{H.preventDefault(),H.stopPropagation(),k.stop()}),k.return=!0},{priority:p.priority})}press(r){return!!this._listener.fire("_keydown:"+Ba(r),r)}destroy(){this._listener.stopListening()}}class F0 extends Od{constructor(r){super(),this.editor=r}set(r,l,p={}){if("string"==typeof l){const x=l;l=(Z,k)=>{this.editor.execute(x),k()}}super.set(r,l,p)}}class w_{constructor(r={}){this._context=r.context||new Ud({language:r.language}),this._context._addEditor(this,!r.context);const l=Array.from(this.constructor.builtinPlugins||[]);this.config=new Vl(r,this.constructor.defaultConfig),this.config.define("plugins",l),this.config.define(this._context._getEditorConfig()),this.plugins=new lr(this,l,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Tf,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.set("isReadOnly",!1),this.model=new Pf;const p=new dl;this.data=new Uf(this.model,p),this.editing=new yf(this.model,p),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new y_([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new F0(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const r=this.config,l=r.get("plugins"),p=r.get("removePlugins")||[],x=r.get("extraPlugins")||[];return this.plugins.init(l.concat(x),p)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(l=>this.once("ready",l))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(...r){try{return this.commands.execute(...r)}catch(l){jn.b.rethrowUnexpectedError(l,this)}}}ao(w_,St);var Lu={setData(b){this.data.set(b)},getData(b){return this.data.get(b)}},Sm={updateSourceElement(){if(!this.sourceElement)throw new jn.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var b,r;b=this.sourceElement,r=this.data.get(),b instanceof HTMLTextAreaElement&&(b.value=r),b.innerHTML=r}};class Sf{getHtml(r){const l=document.implementation.createHTMLDocument("").createElement("div");return l.appendChild(r),l.innerHTML}}class kf{constructor(r){this._domParser=new DOMParser,this._domConverter=new ne(r,{blockFillerMode:"nbsp"}),this._htmlWriter=new Sf}toData(r){const l=this._domConverter.viewToDom(r,document);return this._htmlWriter.getHtml(l)}toView(r){const l=this._toDom(r);return this._domConverter.domToView(l)}_toDom(r){const l=this._domParser.parseFromString(r,"text/html"),p=l.createDocumentFragment(),x=l.body.childNodes;for(;x.length>0;)p.appendChild(x[0]);return p}}class Xh{constructor(r){this.editor=r,this._components=new Map}*names(){for(const r of this._components.values())yield r.originalName}add(r,l){if(this.has(r))throw new jn.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:r});this._components.set(Ld(r),{callback:l,originalName:r})}create(r){if(!this.has(r))throw new jn.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:r});return this._components.get(Ld(r)).callback(this.editor.locale)}has(r){return this._components.has(Ld(r))}}function Ld(b){return String(b).toLowerCase()}class Zc{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(r){if(this._elements.has(r))throw new jn.b("focusTracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(r),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}ao(Zc,Ri),ao(Zc,St);class fl{constructor(r){this.editor=r,this.componentFactory=new Xh(r),this.focusTracker=new Zc,this._editableElementsMap=new Map,this.listenTo(r.editing.view.document,"layoutChanged",()=>this.update())}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(r,l){this._editableElementsMap.set(r,l),l.ckeditorInstance||(l.ckeditorInstance=this.editor)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}ao(fl,wa),d(13);const Ed=new WeakMap;function Of(b){const{view:r,element:l,text:p,isDirectHost:x=!0}=b,Z=r.document;Ed.has(Z)||(Ed.set(Z,new Map),Z.registerPostFixer(k=>eg(Z,k))),Ed.get(Z).set(l,{text:p,isDirectHost:x}),r.change(k=>eg(Z,k))}function eg(b,r){const l=Ed.get(b);let p=!1;for(const[x,Z]of l)km(r,x,Z)&&(p=!0);return p}function km(b,r,l){const{text:p,isDirectHost:x}=l,Z=x?r:function(H){if(1===H.childCount){const G=H.getChild(0);if(G.is("element")&&!G.is("uiElement"))return G}return null}(r);let k=!1;return!!Z&&(l.hostElement=Z,Z.getAttribute("data-placeholder")!==p&&(b.setAttribute("data-placeholder",p,Z),k=!0),function(H){if(!H.isAttached())return!1;const G=!Array.from(H.getChildren()).some(Mt=>!Mt.is("uiElement")),rt=H.document;if(!rt.isFocused&&G)return!0;const ft=rt.selection.anchor;return!(!G||!ft||ft.parent===H)}(Z)?(H=b,!(G=Z).hasClass("ck-placeholder")&&(H.addClass("ck-placeholder",G),!0)&&(k=!0)):function tg(b,r){return!!r.hasClass("ck-placeholder")&&(b.removeClass("ck-placeholder",r),!0)}(b,Z)&&(k=!0),k);var H,G}class N0{constructor(){this._replacedElements=[]}replace(r,l){this._replacedElements.push({element:r,newElement:l}),r.style.display="none",l&&r.parentNode.insertBefore(l,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:l})=>{r.style.display="",l&&l.remove()}),this._replacedElements=[]}}class Lf extends fl{constructor(r,l){var p;super(r),this.view=l,this._toolbarConfig=(p=r.config.get("toolbar"),Array.isArray(p)?{items:p}:p?Object.assign({items:[]},p):{items:[]}),this._elementReplacer=new N0}get element(){return this.view.element}init(r){const p=this.view,x=this.editor.editing.view,Z=p.editable,k=x.document.getRoot();Z.name=k.rootName,p.render();const H=Z.element;this.setEditableElement(Z.name,H),this.focusTracker.add(H),p.editable.bind("isFocused").to(this.focusTracker),x.attachDomRoot(H),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const r=this.view,l=this.editor.editing.view;this._elementReplacer.restore(),l.detachDomRoot(r.editable.name),r.destroy(),super.destroy()}_initToolbar(){const r=this.editor,l=this.view,p=r.editing.view;l.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),l.stickyPanel.limiterElement=l.element,this._toolbarConfig.viewportTopOffset&&(l.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),l.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function({origin:x,originKeystrokeHandler:Z,originFocusTracker:k,toolbar:H,beforeFocus:G,afterBlur:rt}){k.add(H.element),Z.set("Alt+F10",(ft,Mt)=>{k.isFocused&&!H.focusTracker.isFocused&&(G&&G(),H.focus(),Mt())}),H.keystrokes.set("Esc",(ft,Mt)=>{H.focusTracker.isFocused&&(x.focus(),rt&&rt(),Mt())})}({origin:p,originFocusTracker:this.focusTracker,originKeystrokeHandler:r.keystrokes,toolbar:l.toolbar})}_initPlaceholder(){const r=this.editor,l=r.editing.view,p=l.document.getRoot(),x=r.sourceElement,Z=r.config.get("placeholder")||x&&"textarea"===x.tagName.toLowerCase()&&x.getAttribute("placeholder");Z&&Of({view:l,element:p,text:Z,isDirectHost:!1})}}class Eu extends Er{constructor(r=[]){super(r,{idProperty:"viewUid"}),this.on("add",(l,p,x)=>{this._renderViewIntoCollectionParent(p,x)}),this.on("remove",(l,p)=>{p.element&&this._parentElement&&p.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const l of this)this._renderViewIntoCollectionParent(l)}delegate(...r){if(!r.length||!r.every(l=>"string"==typeof l))throw new jn.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:l=>{for(const p of this)for(const x of r)p.delegate(x).to(l);this.on("add",(p,x)=>{for(const Z of r)x.delegate(Z).to(l)}),this.on("remove",(p,x)=>{for(const Z of r)x.stopDelegating(Z,l)})}}}_renderViewIntoCollectionParent(r,l){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[l])}}class g1{constructor(r){Object.assign(this,jo(Ff(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new jn.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(l){if(l.children)for(const p of l.children)Is(p)?yield p:h2(p)&&(yield*r(p))}(this)}static bind(r,l){return{to:(p,x)=>new f2({eventNameOrFunction:p,attribute:p,observable:r,emitter:l,callback:x}),if:(p,x,Z)=>new v3({observable:r,emitter:l,attribute:p,valueIfTrue:x,callback:Z})}}static extend(r,l){if(r._isRendered)throw new jn.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,r]);!function p(x,Z){if(Z.attributes&&(x.attributes||(x.attributes={}),Jp(x.attributes,Z.attributes)),Z.eventListeners&&(x.eventListeners||(x.eventListeners={}),Jp(x.eventListeners,Z.eventListeners)),Z.text&&x.text.push(...Z.text),Z.children&&Z.children.length){if(x.children.length!=Z.children.length)throw new jn.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",x);let k=0;for(const H of Z.children)p(x.children[k++],H)}}(r,jo(Ff(l)))}_renderNode(r){let l;if(l=r.node?this.tag&&this.text:this.tag?this.text:!this.text,l)throw new jn.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let l=r.node;return l||(l=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),l}_renderText(r){let l=r.node;return l?r.revertData.text=l.textContent:l=r.node=document.createTextNode(""),Z_(this.text)?this._bindToObservable({schema:this.text,updater:ig(l),data:r}):l.textContent=this.text.join(""),l}_renderAttributes(r){let l,p,x,Z;if(!this.attributes)return;const k=r.node,H=r.revertData;for(l in this.attributes)if(x=k.getAttribute(l),p=this.attributes[l],H&&(H.attributes[l]=x),Z=Qt(p[0])&&p[0].ns?p[0].ns:null,Z_(p)){const G=Z?p[0].value:p;H&&b3(l)&&G.unshift(x),this._bindToObservable({schema:G,updater:og(k,l,Z),data:r})}else"style"==l&&"string"!=typeof p[0]?this._renderStyleAttribute(p[0],r):(H&&x&&b3(l)&&p.unshift(x),p=p.map(G=>G&&G.value||G).reduce((G,rt)=>G.concat(rt),[]).reduce(Ns,""),Fu(p)||k.setAttributeNS(Z,l,p))}_renderStyleAttribute(r,l){const p=l.node;for(const x in r){const Z=r[x];Z_(Z)?this._bindToObservable({schema:[Z],updater:xp(p,x),data:l}):p.style[x]=Z}}_renderElementChildren(r){const l=r.node,p=r.intoFragment?document.createDocumentFragment():l,x=r.isApplying;let Z=0;for(const k of this.children)if(ag(k)){if(!x){k.setParent(l);for(const H of k)p.appendChild(H.element)}}else if(Is(k))x||(k.isRendered||k.render(),p.appendChild(k.element));else if(cu(k))p.appendChild(k);else if(x){const H={children:[],bindings:[],attributes:{}};r.revertData.children.push(H),k._renderNode({node:p.childNodes[Z++],isApplying:!0,revertData:H})}else p.appendChild(k.render());r.intoFragment&&l.appendChild(p)}_setUpListeners(r){if(this.eventListeners)for(const l in this.eventListeners){const p=this.eventListeners[l].map(x=>{const[Z,k]=l.split("@");return x.activateDomEventListener(Z,k,r)});r.revertData&&r.revertData.bindings.push(p)}}_bindToObservable({schema:r,updater:l,data:p}){const x=p.revertData;ng(r,l,p);const Z=r.filter(k=>!Fu(k)).filter(k=>k.observable).map(k=>k.activateAttributeListener(r,l,p));x&&x.bindings.push(Z)}_revertTemplateFromNode(r,l){for(const p of l.bindings)for(const x of p)x();if(l.text)r.textContent=l.text;else{for(const p in l.attributes){const x=l.attributes[p];null===x?r.removeAttribute(p):r.setAttribute(p,x)}for(let p=0;png(r,l,p);return this.emitter.listenTo(this.observable,"change:"+this.attribute,x),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,x)}}}class f2 extends Ef{activateDomEventListener(r,l,p){const x=(Z,k)=>{l&&!k.target.matches(l)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(k):this.observable.fire(this.eventNameOrFunction,k))};return this.emitter.listenTo(p.node,r,x),()=>{this.emitter.stopListening(p.node,r,x)}}}class v3 extends Ef{getValue(r){return!Fu(super.getValue(r))&&(this.valueIfTrue||!0)}}function Z_(b){return!!b&&(b.value&&(b=b.value),Array.isArray(b)?b.some(Z_):b instanceof Ef)}function ng(b,r,{node:l}){let p=(Z=l,b.map(k=>k instanceof Ef?k.getValue(Z):k));var Z;p=1==b.length&&b[0]instanceof v3?p[0]:p.reduce(Ns,""),Fu(p)?r.remove():r.set(p)}function ig(b){return{set(r){b.textContent=r},remove(){b.textContent=""}}}function og(b,r,l){return{set(p){b.setAttributeNS(l,r,p)},remove(){b.removeAttributeNS(l,r)}}}function xp(b,r){return{set(l){b.style[r]=l},remove(){b.style[r]=null}}}function Ff(b){return Cs(b,r=>{if(r&&(r instanceof Ef||h2(r)||Is(r)||ag(r)))return r})}function jo(b){if("string"==typeof b?b=function(r){return{text:[r]}}(b):b.text&&function(r){Array.isArray(r.text)||(r.text=[r.text])}(b),b.on&&(b.eventListeners=function(r){for(const l in r)x3(r,l);return r}(b.on),delete b.on),!b.text){b.attributes&&function(l){for(const p in l)l[p].value&&(l[p].value=[].concat(l[p].value)),x3(l,p)}(b.attributes);const r=[];if(b.children)if(ag(b.children))r.push(b.children);else for(const l of b.children)h2(l)||Is(l)||cu(l)?r.push(l):r.push(new g1(l));b.children=r}return b}function x3(b,r){Array.isArray(b[r])||(b[r]=[b[r]])}function Ns(b,r){return Fu(r)?b:Fu(b)?r:`${b} ${r}`}function Jp(b,r){for(const l in r)b[l]?b[l].push(...r[l]):b[l]=r[l]}function Fu(b){return!b&&0!==b}function Is(b){return b instanceof Ca}function h2(b){return b instanceof g1}function ag(b){return b instanceof Eu}function b3(b){return"class"==b||"style"==b}d(15);class Ca{constructor(r){this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new Er,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(l,p)=>{p.locale=r}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=g1.bind(this,this)}createCollection(r){const l=new Eu(r);return this._viewCollections.add(l),l}registerChild(r){za(r)||(r=[r]);for(const l of r)this._unboundChildren.add(l)}deregisterChild(r){za(r)||(r=[r]);for(const l of r)this._unboundChildren.remove(l)}setTemplate(r){this.template=new g1(r)}extendTemplate(r){g1.extend(this.template,r)}render(){if(this.isRendered)throw new jn.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}ao(Ca,Ri),ao(Ca,St);var rg=function(b){return"string"==typeof b||!kn(b)&&ct(b)&&"[object String]"==B(b)};class sg extends Eu{constructor(r,l=[]){super(l),this.locale=r}attachToDom(){this._bodyCollectionContainer=new g1({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=function(l,p,x={},Z=[]){const k=x&&x.xmlns,H=k?l.createElementNS(k,p):l.createElement(p);for(const G in x)H.setAttribute(G,x[G]);!rg(Z)&&za(Z)||(Z=[Z]);for(let G of Z)rg(G)&&(G=l.createTextNode(G)),H.appendChild(G);return H}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}d(17);class n6 extends Ca{constructor(r){super(r),this.body=new sg(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}d(19);class Nu extends Ca{constructor(r){super(r),this.set("text"),this.set("for"),this.id="ck-editor__label_"+xr();const l=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:l.to("for")},children:[{text:l.to("text")}]})}}class Om extends n6{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,l=new Nu;return l.text=r("Rich Text Editor"),l.extendTemplate({attributes:{class:"ck-voice-label"}}),l}}class Nf extends Ca{constructor(r,l,p){super(r),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=p,this._hasExternalElement=!!this._editableElement,this._editingView=l}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const r=this._editingView;function l(p){r.change(x=>{const Z=r.document.getRoot(p.name);x.addClass(p.isFocused?"ck-focused":"ck-blurred",Z),x.removeClass(p.isFocused?"ck-blurred":"ck-focused",Z)})}r.isRenderingInProgress?function p(x){r.once("change:isRenderingInProgress",(Z,k,H)=>{H?p(x):l(x)})}(this):l(this)}}class C3 extends Nf{constructor(r,l,p){super(r,l,p),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const r=this._editingView,l=this.t;r.change(p=>{const x=r.document.getRoot(this.name);p.setAttribute("aria-label",l("Rich Text Editor, %0",[this.name]),x)})}}function Lm(b){return r=>r+b}d(21);const z1=Lm("px");class I0 extends Ca{constructor(r){super(r);const l=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new g1({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:l.to("isSticky",p=>p?"block":"none"),height:l.to("isSticky",p=>p?z1(this._panelRect.height):null)}}}).render(),this._contentPanel=new g1({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",l.if("isSticky","ck-sticky-panel__content_sticky"),l.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:l.to("isSticky",p=>p?z1(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:l.to("_hasViewportTopOffset",p=>p?z1(this.viewportTopOffset):null),bottom:l.to("_isStickyToTheLimiter",p=>p?z1(this.limiterBottomOffset):null),marginLeft:l.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(ht.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const r=this._panelRect=this._contentPanel.getBoundingClientRect();let l;this.limiterElement?(l=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&l.top{this[l](),k()})}}get first(){return this.focusables.find(jp)||null}get last(){return this.focusables.filter(jp).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((l,p)=>{const x=l.element===this.focusTracker.focusedElement;return x&&(r=p),x}),r)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(r){r&&r.focus()}_getFocusableItem(r){const l=this.current,p=this.focusables.length;if(!p)return null;if(null===l)return this[1===r?"first":"last"];let x=(l+p+r)%p;do{const Z=this.focusables.get(x);if(jp(Z))return Z;x=(x+p+r)%p}while(x!==l);return null}}function jp(b){return!(!b.focus||"none"==ht.window.getComputedStyle(b.element).display)}class Em extends Ca{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class gs{constructor(r,l){gs._observerInstance||gs._createObserver(),this._element=r,this._callback=l,gs._addElementCallback(r,l),gs._observerInstance.observe(r)}destroy(){gs._deleteElementCallback(this._element,this._callback)}static _addElementCallback(r,l){gs._elementCallbacks||(gs._elementCallbacks=new Map);let p=gs._elementCallbacks.get(r);p||(p=new Set,gs._elementCallbacks.set(r,p)),p.add(l)}static _deleteElementCallback(r,l){const p=gs._getElementCallbacks(r);p&&(p.delete(l),p.size||(gs._elementCallbacks.delete(r),gs._observerInstance.unobserve(r))),gs._elementCallbacks&&!gs._elementCallbacks.size&&(gs._observerInstance=null,gs._elementCallbacks=null)}static _getElementCallbacks(r){return gs._elementCallbacks?gs._elementCallbacks.get(r):null}static _createObserver(){let r;r="function"==typeof ht.window.ResizeObserver?ht.window.ResizeObserver:Fm,gs._observerInstance=new r(l=>{for(const p of l){if(!p.target.offsetParent)continue;const x=gs._getElementCallbacks(p.target);if(x)for(const Z of x)Z(p)}})}}gs._observerInstance=null,gs._elementCallbacks=null;class Fm{constructor(r){this._callback=r,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(r){this._elements.add(r),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(r){this._elements.delete(r),this._previousRects.delete(r),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const r=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(r,100)};this.listenTo(ht.window,"resize",()=>{this._checkElementRectsAndExecuteCallback()}),this._periodicCheckTimeout=setTimeout(r,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const r=[];for(const l of this._elements)this._hasRectChanged(l)&&r.push({target:l,contentRect:this._previousRects.get(l)});r.length&&this._callback(r)}_hasRectChanged(r){if(!r.ownerDocument.body.contains(r))return!1;const l=new as(r),p=this._previousRects.get(r),x=!p||!p.isEqual(l);return this._previousRects.set(r,l),x}}ao(Fm,Ri);class g2 extends Ca{constructor(r){super(r);const l=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",l.to("position",p=>"ck-dropdown__panel_"+p),l.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:l.to(p=>p.preventDefault())}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}function If({element:b,target:r,positions:l,limiter:p,fitInViewport:x}){ie(r)&&(r=r()),ie(p)&&(p=p());const Z=(Mt=b)&&Mt.parentNode?Mt.offsetParent===ht.document.body?null:Mt.offsetParent:null,k=new as(b),H=new as(r);var Mt;let G,rt;[rt,G]=(p||x)&&function(he,Je){const{elementRect:fn,viewportRect:Mn}=Je,In=fn.getArea(),Qn=function(Fi,{targetRect:Ji,elementRect:Uo,limiterRect:va,viewportRect:Rs}){const Rr=[],el=Uo.getArea();for(const hr of Fi){const eu=qf(hr,Ji,Uo);if(!eu)continue;const[Yu,nl]=eu;let Z1=0,K1=0;if(va)if(Rs){const vd=va.getIntersection(Rs);vd&&(Z1=vd.getIntersectionArea(nl))}else Z1=va.getIntersectionArea(nl);Rs&&(K1=Rs.getIntersectionArea(nl));const gd={positionName:Yu,positionRect:nl,limiterIntersectArea:Z1,viewportIntersectArea:K1};if(Z1===el)return[gd];Rr.push(gd)}return Rr}(he,Je);if(Mn){const Fi=Wp(Qn.filter(({viewportIntersectArea:Ji})=>Ji===In),In);if(Fi)return Fi}return Wp(Qn,In)}(l,{targetRect:H,elementRect:k,limiterRect:p&&new as(p).getVisible(),viewportRect:x&&new as(ht.window)})||qf(l[0],H,k);let ft=cg(G);return Z&&(ft=function({left:Mt,top:he},Je){const fn=cg(new as(Je)),Mn=l1(Je);return Mt-=fn.left,he-=fn.top,Mt+=Je.scrollLeft,he+=Je.scrollTop,{left:Mt-=Mn.left,top:he-=Mn.top}}(ft,Z)),{left:ft.left,top:ft.top,name:rt}}function qf(b,r,l){const p=b(r,l);if(!p)return null;const{left:x,top:Z,name:k}=p;return[k,l.clone().moveTo(x,Z)]}function Wp(b,r){let l,p,x=0;for(const{positionName:Z,positionRect:k,limiterIntersectArea:H,viewportIntersectArea:G}of b){if(H===r)return[Z,k];const rt=G**2+H**2;rt>x&&(x=rt,l=k,p=Z)}return l?[p,l]:null}function cg({left:b,top:r}){const{scrollX:l,scrollY:p}=ht.window;return{left:b+l,top:r+p}}d(23);class $p extends Ca{constructor(r,l,p){super(r);const x=this.bindTemplate;this.buttonView=l,this.panelView=p,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Od,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",x.to("class"),x.if("isEnabled","ck-disabled",Z=>!Z)],id:x.to("id"),"aria-describedby":x.to("ariaDescribedById")},children:[l,p]}),l.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",()=>{this.isOpen&&(this.panelView.position="auto"===this.panelPosition?$p._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelPosition)}),this.keystrokes.listenTo(this.element);const r=(l,p)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,p())};this.keystrokes.set("arrowdown",(l,p)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,p())}),this.keystrokes.set("arrowright",(l,p)=>{this.isOpen&&p()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:r,southWest:l,northEast:p,northWest:x}=$p.defaultPanelPositions;return"ltr"===this.locale.uiLanguageDirection?[r,l,p,x]:[l,r,x,p]}}$p.defaultPanelPositions={southEast:b=>({top:b.bottom,left:b.left,name:"se"}),southWest:(b,r)=>({top:b.bottom,left:b.left-r.width+b.width,name:"sw"}),northEast:(b,r)=>({top:b.top-r.height,left:b.left,name:"ne"}),northWest:(b,r)=>({top:b.bottom-r.height,left:b.left-r.width+b.width,name:"nw"})},$p._getOptimalPosition=If,d(25);class Kp extends Ca{constructor(){super();const r=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const r=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),l=r.getAttribute("viewBox");for(l&&(this.viewBox=l),this.element.innerHTML="";r.childNodes.length>0;)this.element.appendChild(r.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(r=>{r.style.fill=this.fillColor})}}d(27);class y3 extends Ca{constructor(r){super(r),this.set("text",""),this.set("position","s");const l=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",l.to("position",p=>"ck-tooltip_"+p),l.if("text","ck-hidden",p=>!p.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:l.to("text")}]}]})}}d(29);class qs extends Ca{constructor(r){super(r);const l=this.bindTemplate,p=xr();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(p),this.iconView=new Kp,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",l.to("class"),l.if("isEnabled","ck-disabled",x=>!x),l.if("isVisible","ck-hidden",x=>!x),l.to("isOn",x=>x?"ck-on":"ck-off"),l.if("withText","ck-button_with-text"),l.if("withKeystroke","ck-button_with-keystroke")],type:l.to("type",x=>x||"button"),tabindex:l.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+p,"aria-disabled":l.if("isEnabled",!0,x=>!x),"aria-pressed":l.to("isOn",x=>!!this.isToggleable&&String(x))},children:this.children,on:{mousedown:l.to(x=>{x.preventDefault()}),click:l.to(x=>{this.isEnabled?this.fire("execute"):x.preventDefault()})}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const r=new y3;return r.bind("text").to(this,"_tooltipString"),r.bind("position").to(this,"tooltipPosition"),r}_createLabelView(r){const l=new Ca;return l.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:this.bindTemplate.to("labelStyle"),id:"ck-editor__aria-label_"+r},children:[{text:this.bindTemplate.to("label")}]}),l}_createKeystrokeView(){const r=new Ca;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",l=>L1(l))}]}),r}_getTooltipString(r,l,p){return r?"string"==typeof r?r:(p&&(p=L1(p)),r instanceof Function?r(l,p):`${l}${p?` (${p})`:""}`):""}}var Nm='';class V1 extends qs{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new Kp;return r.content=Nm,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}d(31);class Rf extends Ca{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Zc,this.keystrokes=new Od,this._focusCycler=new Qp({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,l)=>{this.focusTracker.add(l.element)}),this.items.on("remove",(r,l)=>{this.focusTracker.remove(l.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class lg extends Ca{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class q0 extends Ca{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}d(33);class M_ extends qs{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new Ca;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}function v2({emitter:b,activator:r,callback:l,contextElements:p}){b.listenTo(document,"mousedown",(x,{target:Z})=>{if(r()){for(const k of p)if(k.contains(Z))return;l()}})}function v1(b,r=V1){const l=new r(b),p=new g2(b),x=new $p(b,l,p);return l.bind("isEnabled").to(x),l instanceof V1?l.bind("isOn").to(x,"isOpen"):l.arrowView.bind("isOn").to(x,"isOpen"),(k=Z=x).on("render",()=>{v2({emitter:k,activator:()=>k.isOpen,callback:()=>{k.isOpen=!1},contextElements:[k.element]})}),function(k){k.on("execute",H=>{H.source instanceof M_||(k.isOpen=!1)})}(Z),function(k){k.keystrokes.set("arrowdown",(H,G)=>{k.isOpen&&(k.panelView.focus(),G())}),k.keystrokes.set("arrowup",(H,G)=>{k.isOpen&&(k.panelView.focusLast(),G())})}(Z),x;var Z,k}function T3(b,r){const l=b.locale,p=b.listView=new Rf(l);p.items.bindTo(r).using(({type:x,model:Z})=>{if("separator"===x)return new q0(l);if("button"===x||"switchbutton"===x){const k=new lg(l);let H;return H="button"===x?new qs(l):new M_(l),H.bind(...Object.keys(Z)).to(Z),H.delegate("execute").to(k),k.children.add(H),k}}),b.panelView.children.add(p),p.items.delegate("execute").to(b)}d(35),d(37),d(39);class x2 extends Ca{constructor(r,l){super(r);const p=this.bindTemplate,x=this.t;var Z;this.options=l||{},this.set("ariaLabel",x("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Zc,this.keystrokes=new Od,this.set("class"),this.set("isCompact",!1),this.itemsView=new R0(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new Qp({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",p.to("class"),p.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":p.to("ariaLabel"),style:{maxWidth:p.to("maxWidth")}},children:this.children,on:{mousedown:(Z=this,Z.bindTemplate.to(k=>{k.target===Z.element&&k.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new ug(this):new b2(this)}render(){super.render();for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,l)=>{this.focusTracker.add(l.element)}),this.items.on("remove",(r,l)=>{this.focusTracker.remove(l.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,l){this.items.addMany(r.map(p=>"|"==p?new Em:l.has(p)?l.create(p):void console.warn(Object(jn.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:p})).filter(p=>void 0!==p))}}class R0 extends Ca{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class b2{constructor(r){const l=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(p=>p),r.focusables.bindTo(r.items).using(p=>p),r.extendTemplate({attributes:{class:[l.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class ug{constructor(r){this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,r.itemsView.children.bindTo(this.ungroupedItems).using(l=>l),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),r.children.on("add",this._updateFocusCycleableItems.bind(this)),r.children.on("remove",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(l,p)=>{const x=p.index;for(const Z of p.removed)x>=this.ungroupedItems.length?this.groupedItems.remove(Z):this.ungroupedItems.remove(Z);for(let Z=x;Zthis.ungroupedItems.length?this.groupedItems.add(k,Z-this.ungroupedItems.length):this.ungroupedItems.add(k,Z)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);let r;for(;this._areItemsOverflowing;)this._groupLastItem(),r=!0;if(!r&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,l=this.viewLocale.uiLanguageDirection,p=new as(r.lastChild),x=new as(r);if(!this.cachedPadding){const Z=ht.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(Z["ltr"===l?"paddingRight":"paddingLeft"])}return"ltr"===l?p.right>x.right-this.cachedPadding:p.left{r&&r===l.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=l.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Em),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,l=r.t,p=v1(r);return p.class="ck-toolbar__grouped-dropdown",p.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",function(x,Z){const k=x.locale,H=k.t,G=x.toolbarView=new x2(k);G.set("ariaLabel",H("Dropdown toolbar")),x.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map(rt=>G.items.add(rt)),x.panelView.children.add(G),G.items.delegate("execute").to(x)}(p),p.buttonView.set({label:l("Show more items"),tooltip:!0,icon:''}),p.toolbarView.items.bindTo(this.groupedItems).using(x=>x),p}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}d(41);class Hf extends Om{constructor(r,l,p={}){super(r),this.stickyPanel=new I0(r),this.toolbar=new x2(r,{shouldGroupWhenFull:p.shouldToolbarGroupWhenFull}),this.editable=new C3(r,l)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class C2 extends w_{constructor(r,l){super(l),ys(r)&&(this.sourceElement=r),this.data.processor=new kf(this.data.viewDocument),this.model.document.createRoot();const p=!this.config.get("toolbar.shouldNotGroupWhenFull"),x=new Hf(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:p});this.ui=new Lf(this,x),function(Z){if(!ie(Z.updateSourceElement))throw new jn.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",Z);const k=Z.sourceElement;if(k&&"textarea"===k.tagName.toLowerCase()&&k.form){let H;const G=k.form,rt=()=>Z.updateSourceElement();ie(G.submit)&&(H=G.submit,G.submit=()=>{rt(),H.apply(G)}),G.addEventListener("submit",rt),Z.on("destroy",()=>{G.removeEventListener("submit",rt),H&&(G.submit=H)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,l={}){return new Promise(p=>{const x=new this(r,l);p(x.initPlugins().then(()=>x.ui.init(ys(r)?r:null)).then(()=>{if(!ys(r)&&l.initialData)throw new jn.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const Z=l.initialData||(ys(k=r)?(H=k)instanceof HTMLTextAreaElement?H.value:H.innerHTML:k);var k,H;return x.data.init(Z)}).then(()=>x.fire("ready")).then(()=>x))})}}ao(C2,Lu),ao(C2,Sm);class ko{constructor(r){this.editor=r,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",dg,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",dg),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function dg(b){b.return=!1,b.stop()}ao(ko,St);class D_{constructor(r){this.files=function(l){const p=l.files?Array.from(l.files):[],x=l.items?Array.from(l.items):[];return p.length?p:x.filter(Z=>"file"===Z.kind).map(Z=>Z.getAsFile())}(r),this._native=r}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,l){this._native.setData(r,l)}}class A3 extends N1{constructor(r){super(r);const l=this.document;function p(x,Z){Z.preventDefault();const k=Z.dropRange?[Z.dropRange]:Array.from(l.selection.getRanges()),H=new Ya(l,"clipboardInput");l.fire(H,{dataTransfer:Z.dataTransfer,targetRanges:k}),H.stop.called&&Z.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(l,"paste",p,{priority:"low"}),this.listenTo(l,"drop",p,{priority:"low"})}onDomEvent(r){const l={dataTransfer:new D_(r.clipboardData?r.clipboardData:r.dataTransfer)};"drop"==r.type&&(l.dropRange=function(p,x){const Z=x.target.ownerDocument,k=x.clientX,H=x.clientY;let G;return Z.caretRangeFromPoint&&Z.caretRangeFromPoint(k,H)?G=Z.caretRangeFromPoint(k,H):x.rangeParent&&(G=Z.createRange(),G.setStart(x.rangeParent,x.rangeOffset),G.collapse(!0)),G?p.domConverter.domRangeToView(G):p.document.selection.getFirstRange()}(this.view,r)),this.fire(r.type,r,l)}}const Im=["figcaption","li"];class qm extends ko{static get pluginName(){return"Clipboard"}init(){const r=this.editor,l=r.model.document,p=r.editing.view,x=p.document;function Z(k,H){const G=H.dataTransfer;H.preventDefault();const rt=r.data.toView(r.model.getSelectedContent(l.selection));x.fire("clipboardOutput",{dataTransfer:G,content:rt,method:k.name})}this._htmlDataProcessor=new kf(x),p.addObserver(A3),this.listenTo(x,"clipboardInput",k=>{r.isReadOnly&&k.stop()},{priority:"highest"}),this.listenTo(x,"clipboardInput",(k,H)=>{const G=H.dataTransfer;let rt="";var ft;G.getData("text/html")?rt=G.getData("text/html").replace(/(\s+)<\/span>/g,(Je,fn)=>1==fn.length?" ":fn):G.getData("text/plain")&&((ft=(ft=G.getData("text/plain")).replace(//g,">").replace(/\n/g,"

").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).indexOf("

")>-1&&(ft=`

${ft}

`),rt=ft),rt=this._htmlDataProcessor.toView(rt);const Mt=new Ya(this,"inputTransformation");this.fire(Mt,{content:rt,dataTransfer:G}),Mt.stop.called&&k.stop(),p.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(k,H)=>{if(!H.content.isEmpty){const rt=this.editor.model,ft=this.editor.data.toModel(H.content,"$clipboardHolder");if(0==ft.childCount)return;rt.insertContent(ft),k.stop()}},{priority:"low"}),this.listenTo(x,"copy",Z,{priority:"low"}),this.listenTo(x,"cut",(k,H)=>{r.isReadOnly?H.preventDefault():Z(k,H)},{priority:"low"}),this.listenTo(x,"clipboardOutput",(k,H)=>{H.content.isEmpty||(H.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(H.content)),H.dataTransfer.setData("text/plain",function G(rt){let ft="";if(rt.is("$text")||rt.is("$textProxy"))ft=rt.data;else if(rt.is("element","img")&&rt.hasAttribute("alt"))ft=rt.getAttribute("alt");else{let Mt=null;for(const he of rt.getChildren()){const Je=G(he);Mt&&(Mt.is("containerElement")||he.is("containerElement"))&&(Im.includes(Mt.name)||Im.includes(he.name)?ft+="\n":ft+="\n\n"),ft+=Je,Mt=he}}return ft}(H.content))),"cut"==H.method&&r.model.deleteContent(l.selection)},{priority:"low"})}}class tr{constructor(r){this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",l=>{this.isEnabled||l.stop()},{priority:"high"}),this.listenTo(r,"change:isReadOnly",(l,p,x)=>{x?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",oo,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",oo),this.refresh())}execute(){}destroy(){this.stopListening()}}function oo(b){b.return=!1,b.stop()}function*U3(b,r){for(const l of r)l&&b.getAttributeProperties(l[0]).copyOnEnter&&(yield l)}ao(tr,St);class H0 extends tr{execute(){const r=this.editor.model,l=r.document;r.change(p=>{(function(x,Z,k,H){const G=k.isCollapsed,rt=k.getFirstRange(),ft=rt.start.parent,Mt=rt.end.parent;if(H.isLimit(ft)||H.isLimit(Mt))G||ft!=Mt||x.deleteContent(k);else if(G){const he=U3(Z.model.schema,k.getAttributes());x1(Z,rt.start),Z.setSelectionAttribute(he)}else{const he=!(rt.start.isAtStart&&rt.end.isAtEnd),Je=ft==Mt;x.deleteContent(k,{leaveUnmerged:he}),he&&(Je?x1(Z,k.focus):Z.setSelection(Mt,0))}})(this.editor.model,p,l.selection,r.schema),this.fire("afterExecute",{writer:p})})}}function x1(b,r){b.split(r),b.setSelection(r.parent.nextSibling,0)}class pg extends ja{constructor(r){super(r);const l=this.document;l.on("keydown",(p,x)=>{if(this.isEnabled&&x.keyCode==na.enter){let Z;l.once("enter",k=>Z=k,{priority:"highest"}),l.fire("enter",new F1(l,x.domEvent,{isSoft:x.shiftKey})),Z&&Z.stop.called&&p.stop()}})}observe(){}}class Y0 extends ko{static get pluginName(){return"Enter"}init(){const r=this.editor,l=r.editing.view,p=l.document;l.addObserver(pg),r.commands.add("enter",new H0(r)),this.listenTo(p,"enter",(x,Z)=>{Z.preventDefault(),Z.isSoft||(r.execute("enter"),l.scrollToTheSelection())},{priority:"low"})}}class mg extends tr{execute(){const r=this.editor.model,l=r.document;r.change(p=>{(function(x,Z,k){const H=k.isCollapsed,G=k.getFirstRange(),ft=G.end.parent,Mt=G.start.parent==ft;if(H){const he=U3(x.schema,k.getAttributes());_g(x,Z,G.end),Z.removeSelectionAttribute(k.getAttributeKeys()),Z.setSelectionAttribute(he)}else{const he=!(G.start.isAtStart&&G.end.isAtEnd);x.deleteContent(k,{leaveUnmerged:he}),Mt?_g(x,Z,k.focus):he&&Z.setSelection(ft,0)}})(r,p,l.selection),this.fire("afterExecute",{writer:p})})}refresh(){const r=this.editor.model;this.isEnabled=function(p,x){if(x.rangeCount>1)return!1;const Z=x.anchor;if(!Z||!p.checkChild(Z,"softBreak"))return!1;const k=x.getFirstRange(),H=k.start.parent,G=k.end.parent;return!((y2(H,p)||y2(G,p))&&H!==G)}(r.schema,r.document.selection)}}function _g(b,r,l){const p=r.createElement("softBreak");b.insertContent(p,l),r.setSelection(p,"after")}function y2(b,r){return!b.is("rootElement")&&(r.isLimit(b)||y2(b.parent,r))}class Yf extends ko{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,p=r.conversion,x=r.editing.view,Z=x.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),p.for("upcast").elementToElement({model:"softBreak",view:"br"}),p.for("downcast").elementToElement({model:"softBreak",view:(k,H)=>H.createEmptyElement("br")}),x.addObserver(pg),r.commands.add("shiftEnter",new mg(r)),this.listenTo(Z,"enter",(k,H)=>{H.preventDefault(),H.isSoft&&(r.execute("shiftEnter"),x.scrollToTheSelection())},{priority:"low"})}}class fg extends tr{execute(){const r=this.editor.model,l=r.document.selection;let p=r.schema.getLimitElement(l);if(l.containsEntireContent(p)||!zf(r.schema,p))do{if(p=p.parent,!p)return}while(!zf(r.schema,p));r.change(x=>{x.setSelection(p,"in")})}}function zf(b,r){return b.isLimit(r)&&(b.checkChild(r,"$text")||b.checkChild(r,"paragraph"))}const bp=sp("Ctrl+A");class Cp extends ko{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,l=r.editing.view.document;r.commands.add("selectAll",new fg(r)),this.listenTo(l,"keydown",(p,x)=>{Ba(x)===bp&&(r.execute("selectAll"),x.preventDefault())})}}class z0 extends ko{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",l=>{const p=r.commands.get("selectAll"),x=new qs(l);return x.set({label:(0,l.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),x.bind("isOn","isEnabled").to(p,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),x})}}class w3 extends ko{static get requires(){return[Cp,z0]}static get pluginName(){return"SelectAll"}}class Z3{constructor(r,l=20){this.model=r,this.size=0,this.limit=l,this.isLocked=!1,this._changeCallback=(p,x)=>{"transparent"!=x.type&&x!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(r){this.size+=r,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r){this.isLocked&&!r||(this._batch=null,this.size=0)}}class M3 extends tr{constructor(r,l){super(r),this._buffer=new Z3(r.model,l),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const l=this.editor.model,p=l.document,x=r.text||"",Z=x.length,k=r.range?l.createSelection(r.range):p.selection,H=r.resultRange;l.enqueueChange(this._buffer.batch,G=>{this._buffer.lock(),this._batches.add(this._buffer.batch),l.deleteContent(k),x&&l.insertContent(G.createText(x,p.selection.getAttributes()),k),H?G.setSelection(H):k.is("documentSelection")||G.setSelection(k),this._buffer.unlock(),this._buffer.input(Z)})}}const Xp=[Ba("arrowUp"),Ba("arrowRight"),Ba("arrowDown"),Ba("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let b=112;b<=135;b++)Xp.push(b);function T2(b){return!!b.ctrlKey||Xp.includes(b.keyCode)}function hg(b){if(b.newChildren.length-b.oldChildren.length!=1)return;const r=function(p,x){const Z=[];let k,H=0;return p.forEach(ft=>{"equal"==ft?(G(),H++):"insert"==ft?(rt("insert")?k.values.push(x[H]):(G(),k={type:"insert",index:H,values:[x[H]]}),H++):rt("delete")?k.howMany++:(G(),k={type:"delete",index:H,howMany:1})}),G(),Z;function G(){k&&(Z.push(k),k=null)}function rt(ft){return k&&k.type==ft}}(qc(b.oldChildren,b.newChildren,Rm),b.newChildren);if(r.length>1)return;const l=r[0];return l.values[0]&&l.values[0].is("$text")?l:void 0}function Rm(b,r){return b&&b.is("$text")&&r&&r.is("$text")?b.data===r.data:b===r}class B1{constructor(r){this.editor=r,this.editing=this.editor.editing}handle(r,l){if(function(p){if(0==p.length)return!1;for(const x of p)if("children"===x.type&&!hg(x))return!0;return!1}(r))this._handleContainerChildrenMutations(r,l);else for(const p of r)this._handleTextMutation(p,l),this._handleTextNodeInsertion(p)}_handleContainerChildrenMutations(r,l){const p=function(el){const hr=el.map(eu=>eu.node).reduce((eu,Yu)=>eu.getCommonAncestor(Yu,{includeSelf:!0}));if(hr)return hr.getAncestors({includeSelf:!0,parentFirst:!0}).find(eu=>eu.is("containerElement")||eu.is("rootElement"))}(r);if(!p)return;const x=this.editor.editing.view.domConverter.mapViewToDom(p),Z=new ne(this.editor.editing.view.document),k=this.editor.data.toModel(Z.domToView(x)).getChild(0),H=this.editor.editing.mapper.toModelElement(p);if(!H)return;const G=Array.from(k.getChildren()),rt=Array.from(H.getChildren()),ft=G[G.length-1],Mt=rt[rt.length-1],he=ft&&ft.is("element","softBreak"),Je=Mt&&!Mt.is("element","softBreak");he&&Je&&G.pop();const fn=this.editor.model.schema;if(!D3(G,fn)||!D3(rt,fn))return;const Mn=G.map(el=>el.is("$text")?el.data:"@").join("").replace(/\u00A0/g," "),In=rt.map(el=>el.is("$text")?el.data:"@").join("").replace(/\u00A0/g," ");if(In===Mn)return;const Qn=qc(In,Mn),{firstChangeAt:Fi,insertions:Ji,deletions:Uo}=P3(Qn);let va=null;l&&(va=this.editing.mapper.toModelRange(l.getFirstRange()));const Rs=Mn.substr(Fi,Ji),Rr=this.editor.model.createRange(this.editor.model.createPositionAt(H,Fi),this.editor.model.createPositionAt(H,Fi+Uo));this.editor.execute("input",{text:Rs,range:Rr,resultRange:va})}_handleTextMutation(r,l){if("text"!=r.type)return;const p=r.newText.replace(/\u00A0/g," "),x=r.oldText.replace(/\u00A0/g," ");if(x===p)return;const Z=qc(x,p),{firstChangeAt:k,insertions:H,deletions:G}=P3(Z);let rt=null;l&&(rt=this.editing.mapper.toModelRange(l.getFirstRange()));const ft=this.editing.view.createPositionAt(r.node,k),Mt=this.editing.mapper.toModelPosition(ft),he=this.editor.model.createRange(Mt,Mt.getShiftedBy(G)),Je=p.substr(k,H);this.editor.execute("input",{text:Je,range:he,resultRange:rt})}_handleTextNodeInsertion(r){if("children"!=r.type)return;const l=hg(r),p=this.editing.view.createPositionAt(r.node,l.index),x=this.editing.mapper.toModelPosition(p);this.editor.execute("input",{text:l.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(x)})}}function D3(b,r){return b.every(l=>r.isInline(l))}function P3(b){let r=null,l=null;for(let Z=0;Z{Z.deleteContent(Z.document.selection)}),ft.unlock()}k.document.on(ws_isAndroid?"beforeinput":"keydown",(ft,Mt)=>function G(ft){const Mt=Z.document,he=k.document.isComposing,Je=x&&x.isEqual(Mt.selection);x=null,H.isEnabled&&(T2(ft)||Mt.selection.isCollapsed||he&&229===ft.keyCode||!he&&229===ft.keyCode&&Je||rt())}(Mt),{priority:"lowest"}),k.document.on("compositionstart",function(){const ft=Z.document,Mt=1!==ft.selection.rangeCount||ft.selection.getFirstRange().isFlat;ft.selection.isCollapsed||Mt||rt()},{priority:"lowest"}),k.document.on("compositionend",()=>{x=Z.createSelection(Z.document.selection)},{priority:"lowest"})}(r),(p=r).editing.view.document.on("mutations",(x,Z,k)=>{new B1(p).handle(Z,k)})}isInput(r){return this.editor.commands.get("input")._batches.has(r)}}class S3 extends tr{constructor(r,l){super(r),this.direction=l,this._buffer=new Z3(r.model,r.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(r={}){const l=this.editor.model,p=l.document;l.enqueueChange(this._buffer.batch,x=>{this._buffer.lock();const Z=x.createSelection(r.selection||p.selection),k=Z.isCollapsed;if(Z.isCollapsed&&l.modifySelection(Z,{direction:this.direction,unit:r.unit}),this._shouldEntireContentBeReplacedWithParagraph(r.sequence||1))return void this._replaceEntireContentWithParagraph(x);if(Z.isCollapsed)return;let H=0;Z.getFirstRange().getMinimalFlatRanges().forEach(G=>{H+=ea(G.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),l.deleteContent(Z,{doNotResetEntireContent:k,direction:this.direction}),this._buffer.input(H),x.setSelection(Z),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const l=this.editor.model,p=l.document.selection,x=l.schema.getLimitElement(p);if(!p.isCollapsed||!p.containsEntireContent(x)||!l.schema.checkChild(x,"paragraph"))return!1;const Z=x.getChild(0);return!Z||"paragraph"!==Z.name}_replaceEntireContentWithParagraph(r){const l=this.editor.model,x=l.schema.getLimitElement(l.document.selection),Z=r.createElement("paragraph");r.remove(r.createRangeIn(x)),r.insert(Z,x),r.setSelection(Z,0)}}class A2 extends ja{constructor(r){super(r);const l=r.document;let p=0;function x(Z,k,H){let G;l.once("delete",rt=>G=rt,{priority:Number.POSITIVE_INFINITY}),l.fire("delete",new F1(l,k,H)),G&&G.stop.called&&Z.stop()}l.on("keyup",(Z,k)=>{k.keyCode!=na.delete&&k.keyCode!=na.backspace||(p=0)}),l.on("keydown",(Z,k)=>{const H={};if(k.keyCode==na.delete)H.direction="forward",H.unit="character";else{if(k.keyCode!=na.backspace)return;H.direction="backward",H.unit="codePoint"}H.unit=(ws_isMac?k.altKey:k.ctrlKey)?"word":H.unit,H.sequence=++p,x(Z,k.domEvent,H)}),ws_isAndroid&&l.on("beforeinput",(Z,k)=>{if("deleteContentBackward"!=k.domEvent.inputType)return;const H={unit:"codepoint",direction:"backward",sequence:1},G=k.domTarget.ownerDocument.defaultView.getSelection();G.anchorNode==G.focusNode&&G.anchorOffset+1!=G.focusOffset&&(H.selectionToRemove=r.domConverter.domSelectionToView(G)),x(Z,k.domEvent,H)})}observe(){}}class b1 extends ko{static get pluginName(){return"Delete"}init(){const r=this.editor,l=r.editing.view,p=l.document;if(l.addObserver(A2),r.commands.add("forwardDelete",new S3(r,"forward")),r.commands.add("delete",new S3(r,"backward")),this.listenTo(p,"delete",(x,Z)=>{const k={unit:Z.unit,sequence:Z.sequence};if(Z.selectionToRemove){const H=r.model.createSelection(),G=[];for(const rt of Z.selectionToRemove.getRanges())G.push(r.editing.mapper.toModelRange(rt));H.setTo(G),k.selection=H}r.execute("forward"==Z.direction?"forwardDelete":"delete",k),Z.preventDefault(),l.scrollToTheSelection()}),ws_isAndroid){let x=null;this.listenTo(p,"delete",(Z,k)=>{const H=k.domTarget.ownerDocument.defaultView.getSelection();x={anchorNode:H.anchorNode,anchorOffset:H.anchorOffset,focusNode:H.focusNode,focusOffset:H.focusOffset}},{priority:"lowest"}),this.listenTo(p,"keyup",(Z,k)=>{if(x){const H=k.domTarget.ownerDocument.defaultView.getSelection();H.collapse(x.anchorNode,x.anchorOffset),H.extend(x.focusNode,x.focusOffset),x=null}})}}}class Fd extends ko{static get requires(){return[V0,b1]}static get pluginName(){return"Typing"}}const Nd=new Map;function Mr(b,r,l){let p=Nd.get(b);p||(p=new Map,Nd.set(b,p)),p.set(r,l)}function k3(b){return[b]}function U2(b,r,l={}){const p=function(x,Z){const k=Nd.get(x);return k&&k.has(Z)?k.get(Z):k3}(b.constructor,r.constructor);try{return p(b=b.clone(),r,l)}catch(x){throw x}}function P_(b,r,l){b=b.slice(),r=r.slice();const p=new tm(l.document,l.useRelations,l.forceWeakRemove);p.setOriginalOperations(b),p.setOriginalOperations(r);const x=p.originalOperations;if(0==b.length||0==r.length)return{operationsA:b,operationsB:r,originalOperations:x};const Z=new WeakMap;for(const G of b)Z.set(G,0);const k={nextBaseVersionA:b[b.length-1].baseVersion+1,nextBaseVersionB:r[r.length-1].baseVersion+1,originalOperationsACount:b.length,originalOperationsBCount:r.length};let H=0;for(;H{if(b.key===r.key&&b.range.start.hasSameParentAs(r.range.start)){const p=b.range.getDifference(r.range).map(Z=>new sr(Z,b.key,b.oldValue,b.newValue,0)),x=b.range.getIntersection(r.range);return x&&l.aIsStrong&&p.push(new sr(x,r.key,r.newValue,b.newValue,0)),0==p.length?[new Rc(0)]:p}return[b]}),Mr(sr,aa,(b,r)=>{if(b.range.start.hasSameParentAs(r.position)&&b.range.containsPosition(r.position)){const l=b.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(p=>new sr(p,b.key,b.oldValue,b.newValue,b.baseVersion));if(r.shouldReceiveAttributes){const p=Hm(r,b.key,b.oldValue);p&&l.unshift(p)}return l}return b.range=b.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[b]}),Mr(sr,ac,(b,r)=>{const l=[];b.range.start.hasSameParentAs(r.deletionPosition)&&(b.range.containsPosition(r.deletionPosition)||b.range.start.isEqual(r.deletionPosition))&&l.push(Vi._createFromPositionAndShift(r.graveyardPosition,1));const p=b.range._getTransformedByMergeOperation(r);return p.isCollapsed||l.push(p),l.map(x=>new sr(x,b.key,b.oldValue,b.newValue,b.baseVersion))}),Mr(sr,La,(b,r)=>function(l,p){const x=Vi._createFromPositionAndShift(p.sourcePosition,p.howMany);let Z=null,k=[];x.containsRange(l,!0)?Z=l:l.start.hasSameParentAs(x.start)?(k=l.getDifference(x),Z=l.getIntersection(x)):k=[l];const H=[];for(let G of k){G=G._getTransformedByDeletion(p.sourcePosition,p.howMany);const rt=p.getMovedRangeStart(),ft=G.start.hasSameParentAs(rt);G=G._getTransformedByInsertion(rt,p.howMany,ft),H.push(...G)}return Z&&H.push(Z._getTransformedByMove(p.sourcePosition,p.targetPosition,p.howMany,!1)[0]),H}(b.range,r).map(l=>new sr(l,b.key,b.oldValue,b.newValue,b.baseVersion))),Mr(sr,Jr,(b,r)=>{if(b.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||b.range.end.offset++,[b];if(b.range.start.hasSameParentAs(r.splitPosition)&&b.range.containsPosition(r.splitPosition)){const l=b.clone();return l.range=new Vi(r.moveTargetPosition.clone(),b.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),b.range.end=r.splitPosition.clone(),b.range.end.stickiness="toPrevious",[b,l]}return b.range=b.range._getTransformedBySplitOperation(r),[b]}),Mr(aa,sr,(b,r)=>{const l=[b];if(b.shouldReceiveAttributes&&b.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(b.position)){const p=Hm(b,r.key,r.newValue);p&&l.push(p)}return l}),Mr(aa,aa,(b,r,l)=>(b.position.isEqual(r.position)&&l.aIsStrong||(b.position=b.position._getTransformedByInsertOperation(r)),[b])),Mr(aa,La,(b,r)=>(b.position=b.position._getTransformedByMoveOperation(r),[b])),Mr(aa,Jr,(b,r)=>(b.position=b.position._getTransformedBySplitOperation(r),[b])),Mr(aa,ac,(b,r)=>(b.position=b.position._getTransformedByMergeOperation(r),[b])),Mr(Ql,aa,(b,r)=>(b.oldRange&&(b.oldRange=b.oldRange._getTransformedByInsertOperation(r)[0]),b.newRange&&(b.newRange=b.newRange._getTransformedByInsertOperation(r)[0]),[b])),Mr(Ql,Ql,(b,r,l)=>{if(b.name==r.name){if(!l.aIsStrong)return[new Rc(0)];b.oldRange=r.newRange?r.newRange.clone():null}return[b]}),Mr(Ql,ac,(b,r)=>(b.oldRange&&(b.oldRange=b.oldRange._getTransformedByMergeOperation(r)),b.newRange&&(b.newRange=b.newRange._getTransformedByMergeOperation(r)),[b])),Mr(Ql,La,(b,r,l)=>{if(b.oldRange&&(b.oldRange=Vi._createFromRanges(b.oldRange._getTransformedByMoveOperation(r))),b.newRange){if(l.abRelation){const p=Vi._createFromRanges(b.newRange._getTransformedByMoveOperation(r));if("left"==l.abRelation.side&&r.targetPosition.isEqual(b.newRange.start))return b.newRange.start.path=l.abRelation.path,b.newRange.end=p.end,[b];if("right"==l.abRelation.side&&r.targetPosition.isEqual(b.newRange.end))return b.newRange.start=p.start,b.newRange.end.path=l.abRelation.path,[b]}b.newRange=Vi._createFromRanges(b.newRange._getTransformedByMoveOperation(r))}return[b]}),Mr(Ql,Jr,(b,r,l)=>{if(b.oldRange&&(b.oldRange=b.oldRange._getTransformedBySplitOperation(r)),b.newRange){if(l.abRelation){const p=b.newRange._getTransformedBySplitOperation(r);return b.newRange.start.isEqual(r.splitPosition)&&l.abRelation.wasStartBeforeMergedElement?b.newRange.start=mo._createAt(r.insertionPosition):b.newRange.start.isEqual(r.splitPosition)&&!l.abRelation.wasInLeftElement&&(b.newRange.start=mo._createAt(r.moveTargetPosition)),b.newRange.end=b.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasInRightElement?mo._createAt(r.moveTargetPosition):b.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasEndBeforeMergedElement?mo._createAt(r.insertionPosition):p.end,[b]}b.newRange=b.newRange._getTransformedBySplitOperation(r)}return[b]}),Mr(ac,aa,(b,r)=>(b.sourcePosition.hasSameParentAs(r.position)&&(b.howMany+=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByInsertOperation(r),b.targetPosition=b.targetPosition._getTransformedByInsertOperation(r),[b])),Mr(ac,ac,(b,r,l)=>{if(b.sourcePosition.isEqual(r.sourcePosition)&&b.targetPosition.isEqual(r.targetPosition)){if(l.bWasUndone){const p=r.graveyardPosition.path.slice();return p.push(0),b.sourcePosition=new mo(r.graveyardPosition.root,p),b.howMany=0,[b]}return[new Rc(0)]}if(b.sourcePosition.isEqual(r.sourcePosition)&&!b.targetPosition.isEqual(r.targetPosition)&&!l.bWasUndone&&"splitAtSource"!=l.abRelation){const p="$graveyard"==b.targetPosition.root.rootName,x="$graveyard"==r.targetPosition.root.rootName;if(x&&!p||(!p||x)&&l.aIsStrong){const k=r.targetPosition._getTransformedByMergeOperation(r),H=b.targetPosition._getTransformedByMergeOperation(r);return[new La(k,b.howMany,H,0)]}return[new Rc(0)]}return b.sourcePosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByMergeOperation(r),b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),b.graveyardPosition.isEqual(r.graveyardPosition)&&l.aIsStrong||(b.graveyardPosition=b.graveyardPosition._getTransformedByMergeOperation(r)),[b]}),Mr(ac,La,(b,r,l)=>{const p=Vi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!l.bWasUndone&&!l.forceWeakRemove&&b.deletionPosition.hasSameParentAs(r.sourcePosition)&&p.containsPosition(b.sourcePosition)?[new Rc(0)]:(b.sourcePosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.sourcePosition.hasSameParentAs(r.sourcePosition)&&(b.howMany-=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByMoveOperation(r),b.targetPosition=b.targetPosition._getTransformedByMoveOperation(r),b.graveyardPosition.isEqual(r.targetPosition)||(b.graveyardPosition=b.graveyardPosition._getTransformedByMoveOperation(r)),[b])}),Mr(ac,Jr,(b,r,l)=>{if(r.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),b.deletionPosition.isEqual(r.graveyardPosition)&&(b.howMany=r.howMany)),b.targetPosition.isEqual(r.splitPosition)){const p=0!=r.howMany,x=r.graveyardPosition&&b.deletionPosition.isEqual(r.graveyardPosition);if(p||x||"mergeTargetNotMoved"==l.abRelation)return b.sourcePosition=b.sourcePosition._getTransformedBySplitOperation(r),[b]}if(b.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==l.abRelation)return b.howMany=0,b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b];if("mergeSameElement"==l.abRelation||b.sourcePosition.offset>0)return b.sourcePosition=r.moveTargetPosition.clone(),b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b]}return b.sourcePosition.hasSameParentAs(r.splitPosition)&&(b.howMany=r.splitPosition.offset),b.sourcePosition=b.sourcePosition._getTransformedBySplitOperation(r),b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b]}),Mr(La,aa,(b,r)=>{const l=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany)._getTransformedByInsertOperation(r,!1)[0];return b.sourcePosition=l.start,b.howMany=l.end.offset-l.start.offset,b.targetPosition.isEqual(r.position)||(b.targetPosition=b.targetPosition._getTransformedByInsertOperation(r)),[b]}),Mr(La,La,(b,r,l)=>{const p=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany),x=Vi._createFromPositionAndShift(r.sourcePosition,r.howMany);let Z,k=l.aIsStrong,H=!l.aIsStrong;if("insertBefore"==l.abRelation||"insertAfter"==l.baRelation?H=!0:"insertAfter"!=l.abRelation&&"insertBefore"!=l.baRelation||(H=!1),Z=b.targetPosition.isEqual(r.targetPosition)&&H?b.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):b.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),vg(b,r)&&vg(r,b))return[r.getReversed()];if(p.containsPosition(r.targetPosition)&&p.containsRange(x,!0))return p.start=p.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),p.end=p.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),S_([p],Z);if(x.containsPosition(b.targetPosition)&&x.containsRange(p,!0))return p.start=p.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),p.end=p.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),S_([p],Z);const G=ps(b.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==G||"extension"==G)return p.start=p.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),p.end=p.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),S_([p],Z);"remove"!=b.type||"remove"==r.type||l.aWasUndone||l.forceWeakRemove?"remove"==b.type||"remove"!=r.type||l.bWasUndone||l.forceWeakRemove||(k=!1):k=!0;const rt=[],ft=p.getDifference(x);for(const he of ft){he.start=he.start._getTransformedByDeletion(r.sourcePosition,r.howMany),he.end=he.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const Je="same"==ps(he.start.getParentPath(),r.getMovedRangeStart().getParentPath()),fn=he._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,Je);rt.push(...fn)}const Mt=p.getIntersection(x);return null!==Mt&&k&&(Mt.start=Mt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),Mt.end=Mt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===rt.length?rt.push(Mt):1==rt.length?x.start.isBefore(p.start)||x.start.isEqual(p.start)?rt.unshift(Mt):rt.push(Mt):rt.splice(1,0,Mt)),0===rt.length?[new Rc(b.baseVersion)]:S_(rt,Z)}),Mr(La,Jr,(b,r,l)=>{let p=b.targetPosition.clone();b.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=l.abRelation||(p=b.targetPosition._getTransformedBySplitOperation(r));const x=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany);if(x.end.isEqual(r.insertionPosition))return r.graveyardPosition||b.howMany++,b.targetPosition=p,[b];if(x.start.hasSameParentAs(r.splitPosition)&&x.containsPosition(r.splitPosition)){let k=new Vi(r.splitPosition,x.end);return k=k._getTransformedBySplitOperation(r),S_([new Vi(x.start,r.splitPosition),k],p)}b.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==l.abRelation&&(p=r.moveTargetPosition),b.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==l.abRelation&&(p=b.targetPosition);const Z=[x._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const k=x.start.isEqual(r.graveyardPosition)||x.containsPosition(r.graveyardPosition);b.howMany>1&&k&&!l.aWasUndone&&Z.push(Vi._createFromPositionAndShift(r.insertionPosition,1))}return S_(Z,p)}),Mr(La,ac,(b,r,l)=>{const p=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany);if(r.deletionPosition.hasSameParentAs(b.sourcePosition)&&p.containsPosition(r.sourcePosition))if("remove"!=b.type||l.forceWeakRemove){if(1==b.howMany)return l.bWasUndone?(b.sourcePosition=r.graveyardPosition.clone(),b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),[b]):[new Rc(0)]}else if(!l.aWasUndone){const Z=[];let k=r.graveyardPosition.clone(),H=r.targetPosition._getTransformedByMergeOperation(r);b.howMany>1&&(Z.push(new La(b.sourcePosition,b.howMany-1,b.targetPosition,0)),k=k._getTransformedByMove(b.sourcePosition,b.targetPosition,b.howMany-1),H=H._getTransformedByMove(b.sourcePosition,b.targetPosition,b.howMany-1));const G=r.deletionPosition._getCombined(b.sourcePosition,b.targetPosition),rt=new La(k,1,G,0),ft=rt.getMovedRangeStart().path.slice();ft.push(0);const Mt=new mo(rt.targetPosition.root,ft);H=H._getTransformedByMove(k,G,1);const he=new La(H,r.howMany,Mt,0);return Z.push(rt),Z.push(he),Z}const x=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany)._getTransformedByMergeOperation(r);return b.sourcePosition=x.start,b.howMany=x.end.offset-x.start.offset,b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),[b]}),Mr(Yr,aa,(b,r)=>(b.position=b.position._getTransformedByInsertOperation(r),[b])),Mr(Yr,ac,(b,r)=>b.position.isEqual(r.deletionPosition)?(b.position=r.graveyardPosition.clone(),b.position.stickiness="toNext",[b]):(b.position=b.position._getTransformedByMergeOperation(r),[b])),Mr(Yr,La,(b,r)=>(b.position=b.position._getTransformedByMoveOperation(r),[b])),Mr(Yr,Yr,(b,r,l)=>{if(b.position.isEqual(r.position)){if(!l.aIsStrong)return[new Rc(0)];b.oldName=r.newName}return[b]}),Mr(Yr,Jr,(b,r)=>{if("same"==ps(b.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const l=new Yr(b.position.getShiftedBy(1),b.oldName,b.newName,0);return[b,l]}return b.position=b.position._getTransformedBySplitOperation(r),[b]}),Mr(Ou,Ou,(b,r,l)=>{if(b.root===r.root&&b.key===r.key){if(!l.aIsStrong||b.newValue===r.newValue)return[new Rc(0)];b.oldValue=r.newValue}return[b]}),Mr(Jr,aa,(b,r)=>(b.splitPosition.hasSameParentAs(r.position)&&b.splitPosition.offset{if(!b.graveyardPosition&&!l.bWasUndone&&b.splitPosition.hasSameParentAs(r.sourcePosition)){const p=r.graveyardPosition.path.slice();p.push(0);const x=new mo(r.graveyardPosition.root,p),Z=Jr.getInsertionPosition(new mo(r.graveyardPosition.root,p)),k=new Jr(x,0,null,0);return k.insertionPosition=Z,b.splitPosition=b.splitPosition._getTransformedByMergeOperation(r),b.insertionPosition=Jr.getInsertionPosition(b.splitPosition),b.graveyardPosition=k.insertionPosition.clone(),b.graveyardPosition.stickiness="toNext",[k,b]}return b.splitPosition.hasSameParentAs(r.deletionPosition)&&!b.splitPosition.isAfter(r.deletionPosition)&&b.howMany--,b.splitPosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.splitPosition=b.splitPosition._getTransformedByMergeOperation(r),b.insertionPosition=Jr.getInsertionPosition(b.splitPosition),b.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedByMergeOperation(r)),[b]}),Mr(Jr,La,(b,r,l)=>{const p=Vi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(b.graveyardPosition){const x=p.start.isEqual(b.graveyardPosition)||p.containsPosition(b.graveyardPosition);if(!l.bWasUndone&&x){const Z=b.splitPosition._getTransformedByMoveOperation(r),k=b.graveyardPosition._getTransformedByMoveOperation(r),H=k.path.slice();H.push(0);const G=new mo(k.root,H);return[new La(Z,b.howMany,G,0)]}b.graveyardPosition=b.graveyardPosition._getTransformedByMoveOperation(r)}return b.splitPosition.hasSameParentAs(r.sourcePosition)&&p.containsPosition(b.splitPosition)?(b.howMany-=r.howMany-(b.splitPosition.offset-r.sourcePosition.offset),b.splitPosition.hasSameParentAs(r.targetPosition)&&b.splitPosition.offset{if(b.splitPosition.isEqual(r.splitPosition)){if(!b.graveyardPosition&&!r.graveyardPosition)return[new Rc(0)];if(b.graveyardPosition&&r.graveyardPosition&&b.graveyardPosition.isEqual(r.graveyardPosition))return[new Rc(0)];if("splitBefore"==l.abRelation)return b.howMany=0,b.graveyardPosition=b.graveyardPosition._getTransformedBySplitOperation(r),[b]}if(b.graveyardPosition&&r.graveyardPosition&&b.graveyardPosition.isEqual(r.graveyardPosition)){const p="$graveyard"==b.splitPosition.root.rootName,x="$graveyard"==r.splitPosition.root.rootName;if(x&&!p||(!p||x)&&l.aIsStrong){const k=[];return r.howMany&&k.push(new La(r.moveTargetPosition,r.howMany,r.splitPosition,0)),b.howMany&&k.push(new La(b.splitPosition,b.howMany,b.moveTargetPosition,0)),k}return[new Rc(0)]}if(b.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedBySplitOperation(r)),b.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==l.abRelation)return b.howMany++,[b];if(r.splitPosition.isEqual(b.insertionPosition)&&"splitBefore"==l.baRelation){const p=r.insertionPosition.path.slice();p.push(0);const x=new mo(r.insertionPosition.root,p);return[b,new La(b.insertionPosition,1,x,0)]}return b.splitPosition.hasSameParentAs(r.splitPosition)&&b.splitPosition.offsetthis.clearStack())}refresh(){this.isEnabled=this._stack.length>0}addBatch(r){const l=this.editor.model.document.selection,p={ranges:l.hasOwnRange?Array.from(l.getRanges()):[],isBackward:l.isBackward};this._stack.push({batch:r,selection:p}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,l,p){const x=this.editor.model,Z=x.document,k=[],H=r.map(rt=>rt.getTransformedByOperations(p)),G=H.flat();for(const rt of H){const ft=rt.filter(he=>!k_(he,G));w2(ft);const Mt=ft.find(he=>he.root!=Z.graveyard);Mt&&k.push(Mt)}k.length&&x.change(rt=>{rt.setSelection(k,{backward:l})})}_undo(r,l){const p=this.editor.model,x=p.document;this._createdBatches.add(l);const Z=r.operations.slice().filter(k=>k.isDocumentOperation);Z.reverse();for(const k of Z){const G=Array.from(x.history.getOperations(k.baseVersion+1)),rt=P_([k.getReversed()],G,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const ft of rt)l.addOperation(ft),p.applyOperation(ft),x.history.setOperationAsUndone(k,ft)}}}function w2(b){b.sort((r,l)=>r.start.isBefore(l.start)?-1:1);for(let r=1;rl!==b&&l.containsRange(b,!0))}class O3 extends xg{execute(r=null){const l=r?this._stack.findIndex(Z=>Z.batch==r):this._stack.length-1,p=this._stack.splice(l,1)[0],x=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(x,()=>{this._undo(p.batch,x);const Z=this.editor.model.document.history.getOperations(p.batch.baseVersion);this._restoreSelection(p.selection.ranges,p.selection.isBackward,Z),this.fire("revert",p.batch,x)}),this.refresh()}}class B0 extends xg{execute(){const r=this._stack.pop(),l=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(l,()=>{const x=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,x),this._undo(r.batch,l)}),this.refresh()}}class Vf extends ko{static get pluginName(){return"UndoEditing"}constructor(r){super(r),this._batchRegistry=new WeakSet}init(){const r=this.editor;this._undoCommand=new O3(r),this._redoCommand=new B0(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(l,p)=>{const x=p[0];if(!x.isDocumentOperation)return;const Z=x.batch,k=this._redoCommand._createdBatches.has(Z),H=this._undoCommand._createdBatches.has(Z);this._batchRegistry.has(Z)||"transparent"==Z.type&&!k&&!H||(k?this._undoCommand.addBatch(Z):H||(this._undoCommand.addBatch(Z),this._redoCommand.clearStack()),this._batchRegistry.add(Z))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(l,p,x)=>{this._redoCommand.addBatch(x)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Ea='',Bf='';class L3 extends ko{init(){const r=this.editor,l=r.locale,p=r.t,x="ltr"==l.uiLanguageDirection?Ea:Bf,Z="ltr"==l.uiLanguageDirection?Bf:Ea;this._addButton("undo",p("Undo"),"CTRL+Z",x),this._addButton("redo",p("Redo"),"CTRL+Y",Z)}_addButton(r,l,p,x){const Z=this.editor;Z.ui.componentFactory.add(r,k=>{const H=Z.commands.get(r),G=new qs(k);return G.set({label:l,icon:x,keystroke:p,tooltip:!0}),G.bind("isEnabled").to(H,"isEnabled"),this.listenTo(G,"execute",()=>{Z.execute(r),Z.editing.view.focus()}),G})}}class bg extends ko{static get requires(){return[Vf,L3]}static get pluginName(){return"Undo"}}class Z2{constructor(r){this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}ao(Z2,St);class Cg extends Z2{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Er({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new jn.b("pendingactions-add-invalid-message: The message must be a string.",this);const l=Object.create(St);return l.set("message",r),this._actions.add(l),this.hasAny=!0,l}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}class Gf{constructor(){const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=l=>{this.loaded=l.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const l=this._reader;return this.total=r.size,new Promise((p,x)=>{l.onload=()=>{const Z=l.result;this._data=Z,p(Z)},l.onerror=()=>{x("error")},l.onabort=()=>{x("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}ao(Gf,St);class pu extends ko{static get pluginName(){return"FileRepository"}static get requires(){return[Cg]}init(){this.loaders=new Er,this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,l)=>l?r/l*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return console.warn(Object(jn.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;const l=new M2(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(l),this._loadersMap.set(r,l),r instanceof Promise&&l.file.then(p=>{this._loadersMap.set(p,l)}).catch(()=>{}),l.on("change:uploaded",()=>{let p=0;for(const x of this.loaders)p+=x.uploaded;this.uploaded=p}),l.on("change:uploadTotal",()=>{let p=0;for(const x of this.loaders)x.uploadTotal&&(p+=x.uploadTotal);this.uploadTotal=p}),l}destroyLoader(r){const l=r instanceof M2?r:this.getLoader(r);l._destroy(),this.loaders.remove(l),this._loadersMap.forEach((p,x)=>{p===l&&this._loadersMap.delete(x)})}_updatePendingAction(){const r=this.editor.plugins.get(Cg);if(this.loaders.length){if(!this._pendingAction){const l=this.editor.t,p=x=>`${l("Upload in progress")} ${parseInt(x)}%.`;this._pendingAction=r.add(p(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",p)}}else r.remove(this._pendingAction),this._pendingAction=null}}ao(pu,St);class M2{constructor(r,l){this.id=xr(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=l(this),this._reader=new Gf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(p,x)=>x?p/x*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new jn.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new jn.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const l={};return l.promise=new Promise((p,x)=>{l.rejecter=x,l.isFulfilled=!1,r.then(Z=>{l.isFulfilled=!0,p(Z)}).catch(Z=>{l.isFulfilled=!0,x(Z)})}),l}}ao(M2,St);class yg extends ko{static get requires(){return[pu]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(pu).createUploadAdapter=l=>new E3(l,r,this.editor.t))}}class E3{constructor(r,l,p){this.loader=r,this.url=l,this.t=p}upload(){return this.loader.file.then(r=>new Promise((l,p)=>{this._initRequest(),this._initListeners(l,p,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,l,p){const x=this.xhr,Z=this.loader,k=(0,this.t)("Cannot upload file:")+` ${p.name}.`;x.addEventListener("error",()=>l(k)),x.addEventListener("abort",()=>l()),x.addEventListener("load",()=>{const H=x.response;if(!H||!H.uploaded)return l(H&&H.error&&H.error.message?H.error.message:k);r({default:H.url})}),x.upload&&x.upload.addEventListener("progress",H=>{H.lengthComputable&&(Z.uploadTotal=H.total,Z.uploaded=H.loaded)})}_sendRequest(r){const l=new FormData;l.append("upload",r),l.append("ckCsrfToken",function O_(){let b=function(p){p=p.toLowerCase();const x=document.cookie.split(";");for(const Z of x){const k=Z.split("=");if(decodeURIComponent(k[0].trim().toLowerCase())===p)return decodeURIComponent(k[1])}return null}("ckCsrfToken");var l;return b&&40==b.length||(b=function(p){let x="";const Z=new Uint8Array(40);window.crypto.getRandomValues(Z);for(let k=0;k.5?H.toUpperCase():H}return x}(),l=b,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(l)+";path=/"),b}()),this.xhr.send(l)}}function Wl(b){const r=b.next();return r.done?null:r.value}function Pl(b,r,l,p){let x,Z=null;"function"==typeof p?x=p:(Z=b.commands.get(p),x=()=>{b.execute(p)}),b.model.document.on("change:data",(k,H)=>{if(Z&&!Z.isEnabled||!r.isEnabled)return;const G=Wl(b.model.document.selection.getRanges());if(!G.isCollapsed||"transparent"==H.type)return;const rt=Array.from(b.model.document.differ.getChanges()),ft=rt[0];if(1!=rt.length||"insert"!==ft.type||"$text"!=ft.name||1!=ft.length)return;const Mt=ft.position.parent;if(Mt.is("element","codeBlock")||Z&&!0===Z.value)return;const he=Mt.getChild(0),Je=b.model.createRangeOn(he);if(!Je.containsRange(G)&&!G.end.isEqual(Je.end))return;const fn=l.exec(he.data.substr(0,G.end.offset));fn&&b.model.enqueueChange(Mn=>{const In=Mn.createPositionAt(Mt,0),Qn=Mn.createPositionAt(Mt,fn[0].length),Fi=new Np(In,Qn);!1!==x({match:fn})&&Mn.remove(Fi),Fi.detach()})})}function mu(b,r,l,p){let x,Z;l instanceof RegExp?x=l:Z=l,Z=Z||(k=>{let H;const G=[],rt=[];for(;null!==(H=x.exec(k))&&!(H&&H.length<4);){let{index:ft,1:Mt,2:he,3:Je}=H;ft+=H[0].length-(Mt+he+Je).length;const In=[ft+Mt.length+he.length,ft+Mt.length+he.length+Je.length];G.push([ft,ft+Mt.length]),G.push(In),rt.push([ft+Mt.length,ft+Mt.length+he.length])}return{remove:G,format:rt}}),b.model.document.on("change:data",(k,H)=>{if("transparent"==H.type||!r.isEnabled)return;const G=b.model,rt=G.document.selection;if(!rt.isCollapsed)return;const ft=Array.from(G.document.differ.getChanges()),Mt=ft[0];if(1!=ft.length||"insert"!==Mt.type||"$text"!=Mt.name||1!=Mt.length)return;const he=rt.focus,Je=he.parent,{text:fn,range:Mn}=function(Ji,Uo){let va=Ji.start;return{text:Array.from(Ji.getItems()).reduce((Rs,Rr)=>!Rr.is("$text")&&!Rr.is("$textProxy")||Rr.getAttribute("code")?(va=Uo.createPositionAfter(Rr),""):Rs+Rr.data,""),range:Uo.createRange(va,Ji.end)}}(G.createRange(G.createPositionAt(Je,0),he),G),In=Z(fn),Qn=F3(Mn.start,In.format,G),Fi=F3(Mn.start,In.remove,G);Qn.length&&Fi.length&&G.enqueueChange(Ji=>{if(!1!==p(Ji,Qn))for(const Uo of Fi.reverse())Ji.remove(Uo)})})}function F3(b,r,l){return r.filter(p=>void 0!==p[0]&&void 0!==p[1]).map(p=>l.createRange(b.getShiftedBy(p[0]),b.getShiftedBy(p[1])))}function Id(b,r){return(l,p)=>{if(!b.commands.get(r).isEnabled)return!1;const x=b.model.schema.getValidRanges(p,r);for(const Z of x)l.setAttribute(r,!0,Z);l.removeSelectionAttribute(r)}}class Pa extends tr{constructor(r,l){super(r),this.attributeKey=l}refresh(){const r=this.editor.model,l=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(l.selection,this.attributeKey)}execute(r={}){const l=this.editor.model,p=l.document.selection,x=void 0===r.forceValue?!this.value:r.forceValue;l.change(Z=>{if(p.isCollapsed)x?Z.setSelectionAttribute(this.attributeKey,!0):Z.removeSelectionAttribute(this.attributeKey);else{const k=l.schema.getValidRanges(p.getRanges(),this.attributeKey);for(const H of k)x?Z.setAttribute(this.attributeKey,x,H):Z.removeAttribute(this.attributeKey,H)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,l=r.schema,p=r.document.selection;if(p.isCollapsed)return p.hasAttribute(this.attributeKey);for(const x of p.getRanges())for(const Z of x.getItems())if(l.checkAttribute(Z,this.attributeKey))return Z.hasAttribute(this.attributeKey);return!1}}class Tg extends ko{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"bold"}),r.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",l=>{const p=l.getStyle("font-weight");return p?"bold"==p||Number(p)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),r.commands.add("bold",new Pa(r,"bold")),r.keystrokes.set("CTRL+B","bold")}}class Iu extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("bold",p=>{const x=r.commands.get("bold"),Z=new qs(p);return Z.set({label:l("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(x,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("bold"),r.editing.view.focus()}),Z})}}class Hc extends ko{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"italic"}),r.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add("italic",new Pa(r,"italic")),r.keystrokes.set("CTRL+I","italic")}}class Ag extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("italic",p=>{const x=r.commands.get("italic"),Z=new qs(p);return Z.set({label:l("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(x,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("italic"),r.editing.view.focus()}),Z})}}class em extends tr{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const l=this.editor.model,p=l.schema,Z=Array.from(l.document.selection.getSelectedBlocks()),k=void 0===r.forceValue?!this.value:r.forceValue;l.change(H=>{if(k){const G=Z.filter(rt=>L_(rt)||Ug(p,rt));this._applyQuote(H,G)}else this._removeQuote(H,Z.filter(L_))})}_getValue(){const r=Wl(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!L_(r))}_checkEnabled(){if(this.value)return!0;const l=this.editor.model.schema,p=Wl(this.editor.model.document.selection.getSelectedBlocks());return!!p&&Ug(l,p)}_removeQuote(r,l){N3(r,l).reverse().forEach(p=>{if(p.start.isAtStart&&p.end.isAtEnd)return void r.unwrap(p.start.parent);if(p.start.isAtStart){const Z=r.createPositionBefore(p.start.parent);return void r.move(p,Z)}p.end.isAtEnd||r.split(p.end);const x=r.createPositionAfter(p.end.parent);r.move(p,x)})}_applyQuote(r,l){const p=[];N3(r,l).reverse().forEach(x=>{let Z=L_(x.start);Z||(Z=r.createElement("blockQuote"),r.wrap(x,Z)),p.push(Z)}),p.reverse().reduce((x,Z)=>x.nextSibling==Z?(r.merge(r.createPositionAfter(x)),x):Z)}}function L_(b){return"blockQuote"==b.parent.name?b.parent:null}function N3(b,r){let l,p=0;const x=[];for(;p{if(p.endsWith("blockQuote")&&"blockQuote"==x.name)return!1}),r.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),r.model.document.registerPostFixer(p=>{const x=r.model.document.differ.getChanges();for(const Z of x)if("insert"==Z.type){const k=Z.position.nodeAfter;if(!k)continue;if(k.is("element","blockQuote")&&k.isEmpty)return p.remove(k),!0;if(k.is("element","blockQuote")&&!l.checkChild(Z.position,k))return p.unwrap(k),!0;if(k.is("element")){const H=p.createRangeIn(k);for(const G of H.getItems())if(G.is("element","blockQuote")&&!l.checkChild(p.createPositionBefore(G),G))return p.unwrap(G),!0}}else if("remove"==Z.type){const k=Z.position.parent;if(k.is("element","blockQuote")&&k.isEmpty)return p.remove(k),!0}return!1})}afterInit(){const r=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(l,p)=>{const x=this.editor.model.document,Z=x.selection.getLastPosition().parent;x.selection.isCollapsed&&Z.isEmpty&&r.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),p.preventDefault(),l.stop())})}}d(43);class E_ extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("blockQuote",p=>{const x=r.commands.get("blockQuote"),Z=new qs(p);return Z.set({label:l("Block quote"),icon:'',tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(x,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),Z})}}class G1 extends ko{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,p=r.t;r.ui.componentFactory.add("ckfinder",x=>{const Z=r.commands.get("ckfinder"),k=new qs(x);return k.set({label:p("Insert image or file"),icon:'',tooltip:!0}),k.bind("isEnabled").to(Z),k.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),k})}}class qd extends ja{observe(r){this.listenTo(r,"load",(l,p)=>{"IMG"==p.target.tagName&&this._fireEvents(p)},{useCapture:!0})}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}class Sl{constructor(){this._stack=[]}add(r,l){const p=this._stack,x=p[0];this._insertDescriptor(r);const Z=p[0];x===Z||D2(x,Z)||this.fire("change:top",{oldDescriptor:x,newDescriptor:Z,writer:l})}remove(r,l){const p=this._stack,x=p[0];this._removeDescriptor(r);const Z=p[0];x===Z||D2(x,Z)||this.fire("change:top",{oldDescriptor:x,newDescriptor:Z,writer:l})}_insertDescriptor(r){const l=this._stack,p=l.findIndex(Z=>Z.id===r.id);if(D2(r,l[p]))return;p>-1&&l.splice(p,1);let x=0;for(;l[x]&&Ym(l[x],r);)x++;l.splice(x,0,r)}_removeDescriptor(r){const l=this._stack,p=l.findIndex(x=>x.id===r);p>-1&&l.splice(p,1)}}function D2(b,r){return b&&r&&b.priority==r.priority&&vs(b.classes)==vs(r.classes)}function Ym(b,r){return b.priority>r.priority||!(b.priorityvs(r.classes)}function vs(b){return Array.isArray(b)?b.sort().join(","):b}ao(Sl,wa),d(45);const ms=Lm("px"),wg=ht.document.body;class er extends Ca{constructor(r){super(r);const l=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",l.to("position",p=>"ck-balloon-panel_"+p),l.if("isVisible","ck-balloon-panel_visible"),l.if("withArrow","ck-balloon-panel_with-arrow"),l.to("class")],style:{top:l.to("top",ms),left:l.to("left",ms)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const l=er.defaultPositions,p=Object.assign({},{element:this.element,positions:[l.southArrowNorth,l.southArrowNorthMiddleWest,l.southArrowNorthMiddleEast,l.southArrowNorthWest,l.southArrowNorthEast,l.northArrowSouth,l.northArrowSouthMiddleWest,l.northArrowSouthMiddleEast,l.northArrowSouthWest,l.northArrowSouthEast],limiter:wg,fitInViewport:!0},r),x=er._getOptimalPosition(p),Z=parseInt(x.left),k=parseInt(x.top);Object.assign(this,{top:k,left:Z,position:x.name})}pin(r){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(r):this._stopPinning()},this._startPinning(r),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(r){this.attachTo(r);const l=nm(r.target),p=r.limiter?nm(r.limiter):wg;this.listenTo(ht.document,"scroll",(x,Z)=>{const k=Z.target,H=l&&k.contains(l),G=p&&k.contains(p);!H&&!G&&l&&p||this.attachTo(r)},{useCapture:!0}),this.listenTo(ht.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(ht.document,"scroll"),this.stopListening(ht.window,"resize")}}function nm(b){return ys(b)?b:uu(b)?b.commonAncestorContainer:"function"==typeof b?nm(b()):null}function kl(b,r){return b.top-r.height-er.arrowVerticalOffset}function $l(b){return b.bottom+er.arrowVerticalOffset}function im(b,r,l){return b&&pd(b)&&!l.isInline(r)}function om(b){return b.getAttribute("widget-type-around")}function pd(b){return!!b.is("element")&&!!b.getCustomProperty("widget")}function Rd(b,r,l={}){if(!b.is("containerElement"))throw new jn.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:b});return r.setAttribute("contenteditable","false",b),r.addClass("ck-widget",b),r.setCustomProperty("widget",!0,b),b.getFillerOffset=qu,l.label&&r.setCustomProperty("widgetLabel",l.label,b),l.hasSelectionHandle&&function(x,Z){const k=Z.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(H){const G=this.toDomElement(H),rt=new Kp;return rt.set("content",''),rt.render(),G.appendChild(rt.element),G});Z.insert(Z.createPositionAt(x,0),k),Z.addClass(["ck-widget_with-selection-handle"],x)}(b,r),P2(b,r,(x,Z,k)=>k.addClass(p(Z.classes),x),(x,Z,k)=>k.removeClass(p(Z.classes),x)),b;function p(x){return Array.isArray(x)?x:[x]}}function P2(b,r,l,p){const x=new Sl;x.on("change:top",(Z,k)=>{k.oldDescriptor&&p(b,k.oldDescriptor,k.writer),k.newDescriptor&&l(b,k.newDescriptor,k.writer)}),r.setCustomProperty("addHighlight",(Z,k,H)=>x.add(k,H),b),r.setCustomProperty("removeHighlight",(Z,k,H)=>x.remove(k,H),b)}function G0(b){const r=b.getCustomProperty("widgetLabel");return r?"function"==typeof r?r():r:""}function C1(b,r){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],b),r.setAttribute("contenteditable",b.isReadOnly?"false":"true",b),b.on("change:isReadOnly",(l,p,x)=>{r.setAttribute("contenteditable",x?"false":"true",b)}),b.on("change:isFocused",(l,p,x)=>{x?r.addClass("ck-editor__nested-editable_focused",b):r.removeClass("ck-editor__nested-editable_focused",b)}),b}function J1(b,r){const l=b.getSelectedElement();if(l){const x=om(b);if(x)return r.createPositionAt(l,x);if(r.schema.isBlock(l))return r.createPositionAfter(l)}const p=b.getSelectedBlocks().next().value;if(p){if(p.isEmpty)return r.createPositionAt(p,0);const x=r.createPositionAfter(p);return b.focus.isTouching(x)?x:r.createPositionBefore(p)}return b.focus}function Ol(b,r){const l=new as(ht.window),p=l.getIntersection(b),x=r.height+er.arrowVerticalOffset;if(b.top-x>l.top||b.bottom+x!x.is("element","image"))}function Kl(b){const r=[];for(const l of b.getChildren())r.push(l),l.is("element")&&r.push(...l.getChildren());return r.find(l=>l.is("element","img"))}function S2(b){return l=>{l.on(`attribute:${b}:image`,r)};function r(l,p,x){if(!x.consumable.consume(p.item,l.name))return;const Z=x.writer,k=Kl(x.mapper.toViewElement(p.item));Z.setAttribute(p.attributeKey,p.attributeNewValue||"",k)}}er.arrowHorizontalOffset=25,er.arrowVerticalOffset=10,er._getOptimalPosition=If,er.defaultPositions={northWestArrowSouthWest:(b,r)=>({top:kl(b,r),left:b.left-er.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(b,r)=>({top:kl(b,r),left:b.left-.25*r.width-er.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(b,r)=>({top:kl(b,r),left:b.left-r.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(b,r)=>({top:kl(b,r),left:b.left-.75*r.width+er.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(b,r)=>({top:kl(b,r),left:b.left-r.width+er.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-er.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-.25*r.width-er.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-r.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-.75*r.width+er.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-r.width+er.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(b,r)=>({top:kl(b,r),left:b.right-er.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(b,r)=>({top:kl(b,r),left:b.right-.25*r.width-er.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(b,r)=>({top:kl(b,r),left:b.right-r.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(b,r)=>({top:kl(b,r),left:b.right-.75*r.width+er.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(b,r)=>({top:kl(b,r),left:b.right-r.width+er.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(b,r)=>({top:$l(b),left:b.left-er.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(b,r)=>({top:$l(b),left:b.left-.25*r.width-er.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(b,r)=>({top:$l(b),left:b.left-r.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(b,r)=>({top:$l(b),left:b.left-.75*r.width+er.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(b,r)=>({top:$l(b),left:b.left-r.width+er.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(b,r)=>({top:$l(b),left:b.left+b.width/2-er.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(b,r)=>({top:$l(b),left:b.left+b.width/2-.25*r.width-er.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(b,r)=>({top:$l(b),left:b.left+b.width/2-r.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(b,r)=>({top:$l(b),left:b.left+b.width/2-.75*r.width+er.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(b,r)=>({top:$l(b),left:b.left+b.width/2-r.width+er.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(b,r)=>({top:$l(b),left:b.right-er.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(b,r)=>({top:$l(b),left:b.right-.25*r.width-er.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(b,r)=>({top:$l(b),left:b.right-r.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(b,r)=>({top:$l(b),left:b.right-.75*r.width+er.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(b,r)=>({top:$l(b),left:b.right-r.width+er.arrowHorizontalOffset,name:"arrow_ne"})};class y1 extends tr{refresh(){this.isEnabled=zm(this.editor.model)}execute(r){const l=this.editor.model;l.change(p=>{const x=Array.isArray(r.source)?r.source:[r.source];for(const Z of x)Zg(p,l,{src:Z})})}}class Ra extends ko{static get pluginName(){return"ImageEditing"}init(){const r=this.editor,l=r.model.schema,p=r.t,x=r.conversion;r.editing.view.addObserver(qd),l.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),x.for("dataDowncast").elementToElement({model:"image",view:(Z,k)=>I3(k)}),x.for("editingDowncast").elementToElement({model:"image",view:(Z,k)=>{return H=I3(k),G=k,rt=p("image widget"),G.setCustomProperty("image",!0,H),Rd(H,G,{label:function(){const ft=Kl(H).getAttribute("alt");return ft?`${ft} ${rt}`:rt}});var H,G,rt}}),x.for("downcast").add(S2("src")).add(S2("alt")).add(function(){return k=>{k.on("attribute:srcset:image",Z)};function Z(k,H,G){if(!G.consumable.consume(H.item,k.name))return;const rt=G.writer,ft=Kl(G.mapper.toViewElement(H.item));if(null===H.attributeNewValue){const Mt=H.attributeOldValue;Mt.data&&(rt.removeAttribute("srcset",ft),rt.removeAttribute("sizes",ft),Mt.width&&rt.removeAttribute("width",ft))}else{const Mt=H.attributeNewValue;Mt.data&&(rt.setAttribute("srcset",Mt.data,ft),rt.setAttribute("sizes","100vw",ft),Mt.width&&rt.setAttribute("width",Mt.width,ft))}}}()),x.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(Z,k)=>k.createElement("image",{src:Z.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:Z=>{const k={data:Z.getAttribute("srcset")};return Z.hasAttribute("width")&&(k.width=Z.getAttribute("width")),k}}}).add(function(){return k=>{k.on("element:figure",Z)};function Z(k,H,G){if(!G.consumable.test(H.viewItem,{name:!0,classes:"image"}))return;const rt=Kl(H.viewItem);if(!rt||!rt.hasAttribute("src")||!G.consumable.test(rt,{name:!0}))return;const ft=G.convertItem(rt,H.modelCursor),Mt=Wl(ft.modelRange.getItems());Mt&&(G.convertChildren(H.viewItem,G.writer.createPositionAt(Mt,0)),H.modelRange=ft.modelRange,H.modelCursor=ft.modelCursor)}}()),r.commands.add("imageInsert",new y1(r))}}function I3(b){const r=b.createEmptyElement("img"),l=b.createContainerElement("figure",{class:"image"});return b.insert(b.createPositionAt(l,0),r),l}class _u extends N1{constructor(r){super(r),this.domEventType="mousedown"}onDomEvent(r){this.fire(r.type,r)}}class q3 extends ko{static get pluginName(){return"TwoStepCaretMovement"}constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}init(){const r=this.editor,x=r.locale,Z=r.model.document.selection;this.listenTo(r.editing.view.document,"keydown",(k,H)=>{if(!Z.isCollapsed||H.shiftKey||H.altKey||H.ctrlKey)return;const G=H.keyCode==na.arrowright,rt=H.keyCode==na.arrowleft;if(!G&&!rt)return;const ft=x.contentLanguageDirection;let Mt=!1;Mt="ltr"===ft&&G||"rtl"===ft&&rt?this._handleForwardMovement(H):this._handleBackwardMovement(H),!0===Mt&&k.stop()},{priority:ns.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(Z,"change:range",(k,H)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!H.directChange&&T1(Z.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const l=this.attributes,p=this.editor.model.document.selection,x=p.getFirstPosition();return!this._isGravityOverridden&&(!x.isAtStart||!Ap(p,l))&&(T1(x,l)?(Ll(r),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(r){const l=this.attributes,p=this.editor.model,x=p.document.selection,Z=x.getFirstPosition();return this._isGravityOverridden?(Ll(r),this._restoreGravity(),Cr(p,l,Z),!0):Z.isAtStart?!!Ap(x,l)&&(Ll(r),Cr(p,l,Z),!0):(H=l,T1(Z.getShiftedBy(-1),H)?Z.isAtEnd&&!Ap(x,l)&&T1(Z,l)?(Ll(r),Cr(p,l,Z),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0);var H}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function Ap(b,r){for(const l of r)if(b.hasAttribute(l))return!0;return!1}function Cr(b,r,l){const p=l.nodeBefore;b.change(x=>{p?x.setSelectionAttribute(p.getAttributes()):x.removeSelectionAttribute(r)})}function Ll(b){b.preventDefault()}function T1(b,r){const{nodeBefore:l,nodeAfter:p}=b;for(const x of r){const Z=l?l.getAttribute(x):void 0;if((p?p.getAttribute(x):void 0)!==Z)return!0}return!1}function Hd(b,r,l,p){return p.createRange(R3(b,r,l,!0,p),R3(b,r,l,!1,p))}function R3(b,r,l,p,x){let Z=b.textNode||(p?b.nodeBefore:b.nodeAfter),k=null;for(;Z&&Z.getAttribute(r)==l;)k=Z,Z=p?Z.previousSibling:Z.nextSibling;return k?x.createPositionAt(k,p?"before":"after"):b}class Jf{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(l=>this._definitions.add(l)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(l,p,x)=>{if(!x.consumable.test(p.item,"attribute:linkHref"))return;const Z=x.writer,k=Z.document.selection;for(const H of this._definitions){const G=Z.createAttributeElement("a",H.attributes,{priority:5});Z.setCustomProperty("link",!0,G),H.callback(p.attributeNewValue)?p.item.is("selection")?Z.wrap(k.getFirstRange(),G):Z.wrap(x.mapper.toViewRange(p.range),G):Z.unwrap(x.mapper.toViewRange(p.range),G)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:image",(l,p,x)=>{const Z=x.mapper.toViewElement(p.item),k=Array.from(Z.getChildren()).find(H=>"a"===H.name);for(const H of this._definitions){const G=Qa(H.attributes);if(H.callback(p.attributeNewValue))for(const[rt,ft]of G)"class"===rt?x.writer.addClass(ft,k):x.writer.setAttribute(rt,ft,k);else for(const[rt,ft]of G)"class"===rt?x.writer.removeClass(ft,k):x.writer.removeAttribute(rt,k)}})}}}var H3=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Y3=function(b){return H3.test(b)},jf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",z3="\\ud83c[\\udffb-\\udfff]",Wf="[^\\ud800-\\udfff]",$f="(?:\\ud83c[\\udde6-\\uddff]){2}",Vm="[\\ud800-\\udbff][\\udc00-\\udfff]",Bm="(?:"+jf+"|"+z3+")?",k2="[\\ufe0e\\ufe0f]?"+Bm+"(?:\\u200d(?:"+[Wf,$f,Vm].join("|")+")[\\ufe0e\\ufe0f]?"+Bm+")*",V3="(?:"+[Wf+jf+"?",jf,$f,Vm,"[\\ud800-\\udfff]"].join("|")+")",B3=RegExp(z3+"(?="+z3+")|"+V3+k2,"g"),o6=function(b){return Y3(b)?function(b){return b.match(B3)||[]}(b):function(b){return b.split("")}(b)},Q0=function(r){r=wd(r);var l=Y3(r)?o6(r):void 0,p=l?l[0]:r.charAt(0),x=l?function(b,r,l){var p=b.length;return l=void 0===l?p:l,!r&&l>=p?b:Ic(b,r,l)}(l,1).join(""):r.slice(1);return p.toUpperCase()+x};const El=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,_d=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function G3(b,r){const l=r.createAttributeElement("a",{href:b},{priority:5});return r.setCustomProperty("link",!0,l),l}function Kf(b){return function(r){return r.replace(El,"").match(_d)}(b=String(b))?b:"#"}function Q1(b,r){return!!b&&b.is("element","image")&&r.checkAttribute("image","linkHref")}class Xf extends tr{constructor(r){super(r),this.manualDecorators=new Er,this.automaticDecorators=new Jf}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,l=r.document,p=Wl(l.selection.getSelectedBlocks());Q1(p,r.schema)?(this.value=p.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(p,"linkHref")):(this.value=l.selection.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(l.selection,"linkHref"));for(const x of this.manualDecorators)x.value=this._getDecoratorStateFromModel(x.id)}execute(r,l={}){const p=this.editor.model,x=p.document.selection,Z=[],k=[];for(const H in l)l[H]?Z.push(H):k.push(H);p.change(H=>{if(x.isCollapsed){const G=x.getFirstPosition();if(x.hasAttribute("linkHref")){const rt=Hd(G,"linkHref",x.getAttribute("linkHref"),p);H.setAttribute("linkHref",r,rt),Z.forEach(ft=>{H.setAttribute(ft,!0,rt)}),k.forEach(ft=>{H.removeAttribute(ft,rt)}),H.setSelection(H.createPositionAfter(rt.end.nodeBefore))}else if(""!==r){const rt=Qa(x.getAttributes());rt.set("linkHref",r),Z.forEach(Mt=>{rt.set(Mt,!0)});const ft=H.createText(r,rt);p.insertContent(ft,G),H.setSelection(H.createPositionAfter(ft))}["linkHref",...Z,...k].forEach(rt=>{H.removeSelectionAttribute(rt)})}else{const G=p.schema.getValidRanges(x.getRanges(),"linkHref"),rt=[];for(const Mt of x.getSelectedBlocks())p.schema.checkAttribute(Mt,"linkHref")&&rt.push(H.createRangeOn(Mt));const ft=rt.slice();for(const Mt of G)this._isRangeToUpdate(Mt,rt)&&ft.push(Mt);for(const Mt of ft)H.setAttribute("linkHref",r,Mt),Z.forEach(he=>{H.setAttribute(he,!0,Mt)}),k.forEach(he=>{H.removeAttribute(he,Mt)})}})}_getDecoratorStateFromModel(r){const l=this.editor.model,p=l.document,x=Wl(p.selection.getSelectedBlocks());return Q1(x,l.schema)?x.getAttribute(r):p.selection.getAttribute(r)}_isRangeToUpdate(r,l){for(const p of l)if(p.containsRange(r))return!1;return!0}}class Dg extends tr{refresh(){const r=this.editor.model,l=r.document,p=Wl(l.selection.getSelectedBlocks());this.isEnabled=Q1(p,r.schema)?r.schema.checkAttribute(p,"linkHref"):r.schema.checkAttributeInSelection(l.selection,"linkHref")}execute(){const l=this.editor.model,p=l.document.selection,x=this.editor.commands.get("link");l.change(Z=>{const k=p.isCollapsed?[Hd(p.getFirstPosition(),"linkHref",p.getAttribute("linkHref"),l)]:p.getRanges();for(const H of k)if(Z.removeAttribute("linkHref",H),x)for(const G of x.manualDecorators)Z.removeAttribute(G.id,H)})}}class th{constructor({id:r,label:l,attributes:p,defaultValue:x}){this.id=r,this.set("value"),this.defaultValue=x,this.label=l,this.attributes=p}}ao(th,St),d(47);const O2=/^(https?:)?\/\//;class eh extends ko{static get pluginName(){return"LinkEditing"}static get requires(){return[q3,V0,qm]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:G3}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(p,x)=>G3(Kf(p),x)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:p=>p.getAttribute("href")}}),r.commands.add("link",new Xf(r)),r.commands.add("unlink",new Dg(r));const l=function(p,x){const Z={"Open in a new tab":p("Open in a new tab"),Downloadable:p("Downloadable")};return x.forEach(k=>(k.label&&Z[k.label]&&(k.label=Z[k.label]),k)),x}(r.t,function(p){const x=[];if(p)for(const[Z,k]of Object.entries(p)){const H=Object.assign({},k,{id:"link"+Q0(Z)});x.push(H)}return x}(r.config.get("link.decorators")));this._enableAutomaticDecorators(l.filter(p=>"automatic"===p.mode)),this._enableManualDecorators(l.filter(p=>"manual"===p.mode)),r.plugins.get(q3).registerAttribute("linkHref"),function(p,x,Z,k){const H=p.editing.view,G=new Set;H.document.registerPostFixer(rt=>{const ft=p.model.document.selection;let Mt=!1;if(ft.hasAttribute(x)){const he=Hd(ft.getFirstPosition(),x,ft.getAttribute(x),p.model),Je=p.editing.mapper.toViewRange(he);for(const fn of Je.getItems())fn.is("element","a")&&!fn.hasClass(k)&&(rt.addClass(k,fn),G.add(fn),Mt=!0)}return Mt}),p.conversion.for("editingDowncast").add(rt=>{function ft(){H.change(Mt=>{for(const he of G.values())Mt.removeClass(k,he),G.delete(he)})}rt.on("insert",ft,{priority:"highest"}),rt.on("remove",ft,{priority:"highest"}),rt.on("attribute",ft,{priority:"highest"}),rt.on("selection",ft,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(r){const l=this.editor,p=l.commands.get("link").automaticDecorators;l.config.get("link.addTargetToExternalLinks")&&p.add({id:"linkIsExternal",mode:"automatic",callback:x=>O2.test(x),attributes:{target:"_blank",rel:"noopener noreferrer"}}),p.add(r),p.length&&l.conversion.for("downcast").add(p.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const l=this.editor,p=l.commands.get("link").manualDecorators;r.forEach(x=>{l.model.schema.extend("$text",{allowAttributes:x.id}),p.add(new th(x)),l.conversion.for("downcast").attributeToElement({model:x.id,view:(Z,k)=>{if(Z){const H=p.get(x.id).attributes,G=k.createAttributeElement("a",H,{priority:5});return k.setCustomProperty("link",!0,G),G}}}),l.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:p.get(x.id).attributes},model:{key:x.id}})})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor,l=r.model,p=l.document.selection,x=r.commands.get("link");this.listenTo(l,"insertContent",()=>{const Z=p.anchor.nodeBefore,k=p.anchor.nodeAfter;p.hasAttribute("linkHref")&&Z&&Z.hasAttribute("linkHref")&&(k&&k.hasAttribute("linkHref")||l.change(H=>{am(H,x.manualDecorators)}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,l=r.commands.get("link");r.editing.view.addObserver(_u);let p=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{p=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!p)return;p=!1;const x=r.model.document.selection;if(!x.isCollapsed||!x.hasAttribute("linkHref"))return;const Z=x.getFirstPosition(),k=Hd(Z,"linkHref",x.getAttribute("linkHref"),r.model);(Z.isTouching(k.start)||Z.isTouching(k.end))&&r.model.change(H=>{am(H,l.manualDecorators)})})}_enableTypingOverLink(){const r=this.editor;let p,x;this.listenTo(r.editing.view.document,"delete",()=>{x=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const Z=r.model.document.selection;Z.isCollapsed||(x?x=!1:J3(r)&&function(k){const H=k.document.selection,G=H.getFirstPosition(),rt=H.getLastPosition(),ft=G.nodeAfter;return!!(ft&&ft.is("$text")&&ft.hasAttribute("linkHref"))&&(ft===(rt.textNode||rt.nodeBefore)||Hd(G,"linkHref",ft.getAttribute("linkHref"),k).containsRange(k.createRange(G,rt),!0))}(r.model)&&(p=Z.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(Z,[k])=>{x=!1,J3(r)&&p&&(r.model.change(H=>{for(const[G,rt]of p)H.setAttribute(G,rt,k)}),p=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,l=r.model,p=l.document.selection,x=r.editing.view,Z=r.commands.get("link");let k=!1,H=!1;this.listenTo(x.document,"delete",(G,rt)=>{H=rt.domEvent.keyCode===na.backspace},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{k=!1;const G=p.getFirstPosition(),rt=p.getAttribute("linkHref");if(!rt)return;const ft=Hd(G,"linkHref",rt,l);k=ft.containsPosition(G)||ft.end.isEqual(G)},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{H&&(H=!1,k||r.model.enqueueChange(G=>{am(G,Z.manualDecorators)}))},{priority:"low"})}}function am(b,r){b.removeSelectionAttribute("linkHref");for(const l of r)b.removeSelectionAttribute(l.id)}function J3(b){return b.plugins.get("Input").isInput(b.model.change(r=>r.batch))}class Yd extends Z2{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,l)=>{window.alert(l.message)},{priority:"lowest"})}showSuccess(r,l={}){this._showNotification({message:r,type:"success",namespace:l.namespace,title:l.title})}showInfo(r,l={}){this._showNotification({message:r,type:"info",namespace:l.namespace,title:l.title})}showWarning(r,l={}){this._showNotification({message:r,type:"warning",namespace:l.namespace,title:l.title})}_showNotification(r){this.fire("show:"+r.type+(r.namespace?":"+r.namespace:""),{message:r.message,type:r.type,title:r.title||""})}}class nh extends tr{constructor(r){super(r),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("imageInsert"),l=this.editor.commands.get("link");this.isEnabled=r.isEnabled||l.isEnabled}execute(){const r=this.editor,l=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=l&&"modal"!=l)throw new jn.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',r);const p=this.editor.config.get("ckfinder.options")||{};p.chooseFiles=!0;const x=p.onInit;p.language||(p.language=r.locale.uiLanguage),p.onInit=Z=>{x&&x(Z),Z.on("files:choose",k=>{const H=k.data.files.toArray(),G=H.filter(Mt=>!Mt.isImage()),rt=H.filter(Mt=>Mt.isImage());for(const Mt of G)r.execute("link",Mt.getUrl());const ft=[];for(const Mt of rt){const he=Mt.getUrl();ft.push(he||Z.request("file:getProxyUrl",{file:Mt}))}ft.length&&ih(r,ft)}),Z.on("file:choose:resizedImage",k=>{const H=k.data.resizedUrl;if(H)ih(r,[H]);else{const G=r.plugins.get("Notification"),rt=r.locale.t;G.showWarning(rt("Could not obtain resized image URL."),{title:rt("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[l](p)}}function ih(b,r){if(b.commands.get("imageInsert").isEnabled)b.execute("imageInsert",{source:r});else{const l=b.plugins.get("Notification"),p=b.locale.t;l.showWarning(p("Could not insert image at the current position."),{title:p("Inserting image failed"),namespace:"ckfinder"})}}class Q3 extends ko{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Yd,Ra,eh]}init(){const r=this.editor;r.commands.add("ckfinder",new nh(r))}}const oh=/^data:(\S*?);base64,/;class j3{constructor(r,l,p){if(!r)throw new jn.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!l)throw new jn.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!p)throw new jn.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(x){if("string"!=typeof x)return!1;const Z=x.match(oh);return!(!Z||!Z.length)}(r)?function(x,Z=512){try{const k=x.match(oh)[1],H=atob(x.replace(oh,"")),G=[];for(let rt=0;rtr(p)),this}onError(r){return this.once("error",(l,p)=>r(p)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this,l=this.xhr;function p(x){return()=>r.fire("error",x)}l.addEventListener("error",p("Network Error")),l.addEventListener("abort",p("Abort")),l.upload&&l.upload.addEventListener("progress",x=>{x.lengthComputable&&this.fire("progress",{total:x.total,uploaded:x.loaded})}),l.addEventListener("load",()=>{const x=l.status,Z=l.response;if(x<200||x>299)return this.fire("error",Z.message||Z.error)})}_sendRequest(){const r=new FormData,l=this.xhr;return r.append("file",this.file),new Promise((p,x)=>{l.addEventListener("load",()=>{const Z=l.status,k=l.response;return Z<200||Z>299?x(k.message?new jn.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:k.message}):k.error):p(k)}),l.addEventListener("error",()=>x(new Error("Network Error"))),l.addEventListener("abort",()=>x(new Error("Abort"))),l.send(r)})}}ao(j3,wa);const Pg={refreshInterval:36e5,autoRefresh:!0};class zd{constructor(r,l=Pg){if(!r)throw new jn.b("token-missing-token-url: A `tokenUrl` must be provided as the first constructor argument.",this);this.set("value",l.initValue),this._refresh="function"==typeof r?r:()=>{return p=r,new Promise((x,Z)=>{const k=new XMLHttpRequest;k.open("GET",p),k.addEventListener("load",()=>{const H=k.status,G=k.response;return H<200||H>299?Z(new jn.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):x(G)}),k.addEventListener("error",()=>Z(new Error("Network Error"))),k.addEventListener("abort",()=>Z(new Error("Abort"))),k.send()});var p},this._options=Object.assign({},Pg,l)}init(){return new Promise((r,l)=>{this._options.autoRefresh&&this._startRefreshing(),this.value?r(this):this.refreshToken().then(r).catch(l)})}refreshToken(){return this._refresh().then(r=>this.set("value",r)).then(()=>this)}destroy(){this._stopRefreshing()}_startRefreshing(){this._refreshInterval=setInterval(()=>this.refreshToken(),this._options.refreshInterval)}_stopRefreshing(){clearInterval(this._refreshInterval)}static create(r,l=Pg){return new zd(r,l).init()}}ao(zd,St);var Gm=zd;let L2=(()=>{class b extends Z2{static get pluginName(){return"CloudServices"}init(){const l=this.context.config.get("cloudServices")||{};for(const p in l)this[p]=l[p];if(this.tokenUrl)return this.token=new b.Token(this.tokenUrl),this.token.init();this.token=null}destroy(){super.destroy(),this.token&&this.token.destroy()}}return b.Token=Gm,b})();class j1 extends ko{static get requires(){return[pu,L2]}init(){const r=this.editor,l=r.plugins.get(L2),p=l.token;p&&(this._uploadGateway=new j1._UploadGateway(p,l.uploadUrl),r.plugins.get(pu).createUploadAdapter=Z=>new ah(this._uploadGateway,Z))}}class ah{constructor(r,l){this.uploadGateway=r,this.loader=l}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(l,p)=>{this.loader.uploadTotal=p.total,this.loader.uploaded=p.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}j1._UploadGateway=class{constructor(b,r){if(!b)throw new jn.b("uploadgateway-missing-token: Token must be provided.",null);if(!r)throw new jn.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=b,this._apiAddress=r}upload(b){return new j3(b,this._token,this._apiAddress)}},d(49);const Up=["before","after"],rh=(new DOMParser).parseFromString('\n',"image/svg+xml").firstChild;class sh extends ko{static get pluginName(){return"WidgetTypeAround"}constructor(r){super(r),this._currentFakeCaretModelElement=null}init(){const r=this.editor,l=r.editing.view;this.on("change:isEnabled",(p,x,Z)=>{l.change(k=>{for(const H of l.document.roots)Z?k.removeClass("ck-widget__type-around_disabled",H):k.addClass("ck-widget__type-around_disabled",H)}),Z||r.model.change(k=>{k.removeSelectionAttribute("widget-type-around")})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(r,l){const p=this.editor,x=p.editing.view;p.execute("insertParagraph",{position:p.model.createPositionAt(r,l)}),x.focus(),x.scrollToTheSelection()}_listenToIfEnabled(r,l,p,x){this.listenTo(r,l,(...Z)=>{this.isEnabled&&p(...Z)},x)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,l=om(r);if(!l)return!1;const p=r.getSelectedElement();return this._insertParagraph(p,l),!0}_enableTypeAroundUIInjection(){const r=this.editor,l=r.model.schema,p=r.locale.t,x={before:p("Insert paragraph before block"),after:p("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(Z,k,H)=>{const G=H.mapper.toViewElement(k.item);im(G,k.item,l)&&function(rt,ft,Mt){const he=rt.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(Je){const fn=this.toDomElement(Je);return function(Mn,In){for(const Qn of Up){const Fi=new g1({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+Qn],title:In[Qn]},children:[Mn.ownerDocument.importNode(rh,!0)]});Mn.appendChild(Fi.render())}}(fn,ft),function(Mn){const In=new g1({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Mn.appendChild(In.render())}(fn),fn});rt.insert(rt.createPositionAt(Mt,"end"),he)}(H.writer,x,G)},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,l=r.model,p=l.document.selection,x=l.schema;function k(H){return"ck-widget_type-around_show-fake-caret_"+H}this._listenToIfEnabled(r.editing.view.document,"keydown",(H,G)=>{ed(G.keyCode)&&this._handleArrowKeyPress(H,G)},{priority:ns.get("high")+10}),this._listenToIfEnabled(p,"change:range",(H,G)=>{G.directChange&&r.model.change(rt=>{rt.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(l.document,"change:data",()=>{const H=p.getSelectedElement();H&&im(r.editing.mapper.toViewElement(H),H,x)||r.model.change(G=>{G.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(H,G,rt)=>{const ft=rt.writer;if(this._currentFakeCaretModelElement){const fn=rt.mapper.toViewElement(this._currentFakeCaretModelElement);fn&&(ft.removeClass(Up.map(k),fn),this._currentFakeCaretModelElement=null)}const Mt=G.selection.getSelectedElement();if(!Mt)return;const he=rt.mapper.toViewElement(Mt);if(!im(he,Mt,x))return;const Je=om(G.selection);Je&&(ft.addClass(k(Je),he),this._currentFakeCaretModelElement=Mt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(H,G,rt)=>{rt||r.model.change(ft=>{ft.removeSelectionAttribute("widget-type-around")})})}_handleArrowKeyPress(r,l){const p=this.editor,x=p.model,Z=x.document.selection,k=x.schema,H=p.editing.view,G=a1(l.keyCode,p.locale.contentLanguageDirection),rt=H.document.selection.getSelectedElement();let ft;im(rt,p.editing.mapper.toModelElement(rt),k)?ft=this._handleArrowKeyPressOnSelectedWidget(G):Z.isCollapsed&&(ft=this._handleArrowKeyPressWhenSelectionNextToAWidget(G)),ft&&(l.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const l=this.editor.model,p=om(l.document.selection);return l.change(x=>p?p!==(r?"after":"before")&&(x.removeSelectionAttribute("widget-type-around"),!0):(x.setSelectionAttribute("widget-type-around",r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const l=this.editor,p=l.model,x=p.schema,Z=l.plugins.get("Widget"),k=Z._getObjectElementNextToSelection(r);return!!im(l.editing.mapper.toViewElement(k),k,x)&&(p.change(H=>{Z._setSelectionOverElement(k),H.setSelectionAttribute("widget-type-around",r?"before":"after")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"mousedown",(p,x)=>{const Z=x.domTarget.closest(".ck-widget__type-around__button");if(!Z)return;const k=Z.classList.contains("ck-widget__type-around__button_before")?"before":"after",H=function(rt,ft){const Mt=rt.closest(".ck-widget");return ft.mapDomToView(Mt)}(Z,l.domConverter),G=r.editing.mapper.toModelElement(H);this._insertParagraph(G,k),x.preventDefault(),p.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"enter",(p,x)=>{const Z=l.document.selection.getSelectedElement(),k=r.editing.mapper.toModelElement(Z),H=r.model.schema;let G;this._insertParagraphAccordingToFakeCaretPosition()?G=!0:im(Z,k,H)&&(this._insertParagraph(k,x.isSoft?"before":"after"),G=!0),G&&(x.preventDefault(),p.stop())})}_enableInsertingParagraphsOnTypingKeystroke(){const l=[na.enter,na.delete,na.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(p,x)=>{l.includes(x.keyCode)||T2(x)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:ns.get("high")+1})}_enableDeleteIntegration(){const r=this.editor,p=r.model,x=p.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(Z,k)=>{const H=om(p.document.selection);if(!H)return;const G=k.direction,rt=p.document.selection.getSelectedElement(),ft="forward"==G;if("before"===H===ft)r.execute("delete",{selection:p.createSelection(rt,"on")});else{const Mt=x.getNearestSelectionRange(p.createPositionAt(rt,H),G);if(Mt)if(Mt.isCollapsed){const he=p.createSelection(Mt.start);if(p.modifySelection(he,{direction:G}),he.focus.isEqual(Mt.start)){const Je=function(fn,Mn){let In=Mn;for(const Qn of Mn.getAncestors({parentFirst:!0})){if(Qn.childCount>1||fn.isLimit(Qn))break;In=Qn}return In}(x,Mt.start.parent);p.deleteContent(p.createSelection(Je,"on"),{doNotAutoparagraph:!0})}else p.change(Je=>{Je.setSelection(Mt),r.execute(ft?"forwardDelete":"delete")})}else p.change(he=>{he.setSelection(Mt),r.execute(ft?"forwardDelete":"delete")})}k.preventDefault(),Z.stop()},{priority:ns.get("high")+1})}_enableInsertContentIntegration(){const l=this.editor.model,p=l.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(x,[Z,k])=>{if(k&&!k.is("documentSelection"))return;const H=om(p);return H?(x.stop(),l.change(G=>{const rt=p.getSelectedElement(),ft=l.createPositionAt(rt,H),Mt=G.createSelection(ft),he=l.insertContent(Z,Mt);return G.setSelection(Mt),he})):void 0},{priority:"high"})}}d(51);class Jm extends ko{static get pluginName(){return"Widget"}static get requires(){return[sh]}init(){const r=this.editor.editing.view,l=r.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(p,x,Z)=>{this._clearPreviouslySelectedWidgets(Z.writer);const k=Z.writer,H=k.document.selection,G=H.getSelectedElement();let rt=null;for(const ft of H.getRanges())for(const Mt of ft){const he=Mt.item;pd(he)&&!Sg(he,rt)&&(k.addClass("ck-widget_selected",he),this._previouslySelected.add(he),rt=he,he==G&&k.setSelection(H.getRanges(),{fake:!0,label:G0(G)}))}},{priority:"low"}),r.addObserver(_u),this.listenTo(l,"mousedown",(...p)=>this._onMousedown(...p)),this.listenTo(l,"keydown",(...p)=>{this._handleSelectionChangeOnArrowKeyPress(...p)},{priority:"high"}),this.listenTo(l,"keydown",(...p)=>{this._preventDefaultOnArrowKeyPress(...p)},{priority:ns.get("high")-20}),this.listenTo(l,"delete",(p,x)=>{this._handleDelete("forward"==x.direction)&&(x.preventDefault(),p.stop())},{priority:"high"})}_onMousedown(r,l){const p=this.editor,x=p.editing.view,Z=x.document;let k=l.target;if(function(G){for(;G;){if(G.is("editableElement")&&!G.is("rootElement"))return!0;if(pd(G))return!1;G=G.parent}return!1}(k)){if((ws_isSafari||ws_isGecko)&&l.domEvent.detail>=3){const G=p.editing.mapper,rt=k.is("attributeElement")?k.findAncestor(Mt=>!Mt.is("attributeElement")):k,ft=G.toModelElement(rt);l.preventDefault(),this.editor.model.change(Mt=>{Mt.setSelection(ft,"in")})}return}if(!pd(k)&&(k=k.findAncestor(pd),!k))return;l.preventDefault(),Z.isFocused||x.focus();const H=p.editing.mapper.toModelElement(k);this._setSelectionOverElement(H)}_handleSelectionChangeOnArrowKeyPress(r,l){const p=l.keyCode;if(!ed(p))return;const x=this.editor.model,Z=x.schema,k=x.document.selection,H=k.getSelectedElement(),G=a1(p,this.editor.locale.contentLanguageDirection);if(H&&Z.isObject(H)){const ft=G?k.getLastPosition():k.getFirstPosition(),Mt=Z.getNearestSelectionRange(ft,G?"forward":"backward");return void(Mt&&(x.change(he=>{he.setSelection(Mt)}),l.preventDefault(),r.stop()))}if(!k.isCollapsed)return;const rt=this._getObjectElementNextToSelection(G);rt&&Z.isObject(rt)&&(this._setSelectionOverElement(rt),l.preventDefault(),r.stop())}_preventDefaultOnArrowKeyPress(r,l){if(!ed(l.keyCode))return;const p=this.editor.model,x=p.schema,Z=p.document.selection.getSelectedElement();Z&&x.isObject(Z)&&(l.preventDefault(),r.stop())}_handleDelete(r){if(this.editor.isReadOnly)return;const l=this.editor.model.document.selection;if(!l.isCollapsed)return;const p=this._getObjectElementNextToSelection(r);return p?(this.editor.model.change(x=>{let Z=l.anchor.parent;for(;Z.isEmpty;){const k=Z;Z=k.parent,x.remove(k)}this._setSelectionOverElement(p)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(l=>{l.setSelection(l.createRangeOn(r))})}_getObjectElementNextToSelection(r){const l=this.editor.model,p=l.schema,Z=l.createSelection(l.document.selection);l.modifySelection(Z,{direction:r?"forward":"backward"});const k=r?Z.focus.nodeBefore:Z.focus.nodeAfter;return k&&p.isObject(k)?k:null}_clearPreviouslySelectedWidgets(r){for(const l of this._previouslySelected)r.removeClass("ck-widget_selected",l);this._previouslySelected.clear()}}function Sg(b,r){return!!r&&Array.from(b.getAncestors()).includes(r)}class W3 extends tr{refresh(){const r=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Tp(r),this.value=!(!Tp(r)||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const l=this.editor.model,p=l.document.selection.getSelectedElement();l.change(x=>{x.setAttribute("alt",r.newValue,p)})}}class Xr extends ko{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new W3(this.editor))}}d(53);class F_ extends Ca{constructor(r,l){super(r);const p="ck-labeled-field-view-"+xr(),x="ck-labeled-field-view-status-"+xr();this.fieldView=l(this,p,x),this.set("label"),this.set("isEnabled",!0),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.labelView=this._createLabelView(p),this.statusView=this._createStatusView(x),this.bind("_statusText").to(this,"errorText",this,"infoText",(k,H)=>k||H);const Z=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",Z.to("class"),Z.if("isEnabled","ck-disabled",k=>!k)]},children:[this.labelView,this.fieldView,this.statusView]})}_createLabelView(r){const l=new Nu(this.locale);return l.for=r,l.bind("text").to(this,"label"),l}_createStatusView(r){const l=new Ca(this.locale),p=this.bindTemplate;return l.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",p.if("errorText","ck-labeled-field-view__status_error"),p.if("_statusText","ck-hidden",x=>!x)],id:r,role:p.if("errorText","alert")},children:[{text:p.to("_statusText")}]}),l}focus(){this.fieldView.focus()}}d(55);class a6 extends Ca{constructor(r){super(r),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById");const l=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",l.if("hasError","ck-error")],id:l.to("id"),placeholder:l.to("placeholder"),readonly:l.to("isReadOnly"),"aria-invalid":l.if("hasError",!0),"aria-describedby":l.to("ariaDescribedById")},on:{input:l.to("input")}})}render(){super.render();const r=l=>{this.element.value=l||0===l?l:""};r(this.value),this.on("change:value",(l,p,x)=>{r(x)})}select(){this.element.select()}focus(){this.element.focus()}}function kg(b,r,l){const p=new a6(b.locale);return p.set({id:r,ariaDescribedById:l}),p.bind("isReadOnly").to(b,"isEnabled",x=>!x),p.bind("hasError").to(b,"errorText",x=>!!x),p.on("input",()=>{b.errorText=null}),p}function E2({view:b}){b.listenTo(b.element,"submit",(r,l)=>{l.preventDefault(),b.fire("submit")},{useCapture:!0})}var ch='',F2='';d(57);class $3 extends Ca{constructor(r){super(r);const l=this.locale.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(l("Save"),ch,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(l("Cancel"),F2,"ck-button-cancel","cancel"),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),E2({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}_createButton(r,l,p,x){const Z=new qs(this.locale);return Z.set({label:r,icon:l,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),x&&Z.delegate("execute").to(this,x),Z}_createLabeledInputView(){const r=this.locale.t,l=new F_(this.locale,kg);return l.label=r("Text alternative"),l.fieldView.placeholder=r("Text alternative"),l}}d(59),d(61);const lh=Lm("px");class Xl extends ko{static get pluginName(){return"ContextualBalloon"}constructor(r){super(r),this.positionLimiter=()=>{const l=this.editor.editing.view,p=l.document.selection.editableElement;return p?l.domConverter.mapViewToDom(p.root):null},this.set("visibleView",null),this.view=new er(r.locale),r.ui.view.body.add(this.view),r.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this.hasView(r.view))throw new jn.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,r]);const l=r.stackId||"main";if(!this._idToStack.has(l))return this._idToStack.set(l,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(l)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(l));const p=this._idToStack.get(l);r.singleViewMode&&this.showStack(l),p.set(r.view,r),this._viewToStack.set(r.view,p),p===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new jn.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,r]);const l=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===l.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(l.values())[l.size-2])),1===l.size?(this._idToStack.delete(this._getStackId(l)),this._numberOfStacks=this._idToStack.size):l.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const l=this._idToStack.get(r);if(!l)throw new jn.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==l&&this._showView(Array.from(l.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(l=>l[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let l=r.indexOf(this._visibleStack)+1;r[l]||(l=0),this.showStack(this._getStackId(r[l]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let l=r.indexOf(this._visibleStack)-1;r[l]||(l=r.length-1),this.showStack(this._getStackId(r[l]))}_createRotatorView(){const r=new uh(this.editor.locale),l=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(p,x)=>!x&&p>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(p,x)=>{if(x<2)return"";const Z=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return l("%0 of %1",[Z,x])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new K3(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(l,p)=>!p&&l>=2?Math.min(l-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:l="",withArrow:p=!0,singleViewMode:x=!1}){this.view.class=l,this.view.withArrow=p,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),x&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&!r.limiter&&(r=Object.assign({},r,{limiter:this.positionLimiter})),r}}class uh extends Ca{constructor(r){super(r);const l=r.t,p=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Zc,this.buttonPrevView=this._createButtonView(l("Previous"),''),this.buttonNextView=this._createButtonView(l("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",p.to("isNavigationVisible",x=>x?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:p.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,l){const p=new qs(this.locale);return p.set({label:r,icon:l,tooltip:!0}),p}}class K3 extends Ca{constructor(r,l){super(r);const p=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=l,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",p.to("numberOfPanels",x=>x?"":"ck-hidden")],style:{top:p.to("top",lh),left:p.to("left",lh),width:p.to("width",lh),height:p.to("height",lh)}},children:this.content}),this.on("change:numberOfPanels",(x,Z,k,H)=>{k>H?this._addPanels(k-H):this._removePanels(H-k),this.updatePosition()})}_addPanels(r){for(;r--;){const l=new Ca;l.setTemplate({tag:"div"}),this.content.add(l),this.registerChild(l)}}_removePanels(r){for(;r--;){const l=this.content.last;this.content.remove(l),this.deregisterChild(l),l.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:l}=this._balloonPanelView,{width:p,height:x}=new as(this._balloonPanelView.element);Object.assign(this,{top:r,left:l,width:p,height:x})}}}function X3(b){const r=b.editing.view,l=er.defaultPositions;return{target:r.domConverter.viewToDom(r.document.selection.getSelectedElement()),positions:[l.northArrowSouth,l.northArrowSouthWest,l.northArrowSouthEast,l.southArrowNorth,l.southArrowNorthWest,l.southArrowNorthEast]}}class j0 extends ko{static get requires(){return[Xl]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const r=this.editor,l=r.t;r.ui.componentFactory.add("imageTextAlternative",p=>{const x=r.commands.get("imageTextAlternative"),Z=new qs(p);return Z.set({label:l("Change image text alternative"),icon:'',tooltip:!0}),Z.bind("isEnabled").to(x,"isEnabled"),this.listenTo(Z,"execute",()=>{this._showForm()}),Z})}_createForm(){const r=this.editor,l=r.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new $3(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(p,x)=>{this._hideForm(!0),x()}),this.listenTo(r.ui,"update",()=>{md(l.selection)?this._isVisible&&function(p){const x=p.plugins.get("ContextualBalloon");if(md(p.editing.view.document.selection)){const Z=X3(p);x.updatePosition(Z)}}(r):this._hideForm(!0)}),v2({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const r=this.editor,l=r.commands.get("imageTextAlternative"),p=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:X3(r)}),p.fieldView.value=p.fieldView.element.value=l.value||"",this._form.labeledInput.fieldView.select()}_hideForm(r){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class dh extends ko{static get requires(){return[Xr,j0]}static get pluginName(){return"ImageTextAlternative"}}d(63);class Og extends ko{static get requires(){return[Ra,Jm,dh]}static get pluginName(){return"Image"}}class Ms extends Ca{constructor(r){super(r),this.buttonView=new qs(r),this._fileInputView=new rm(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class rm extends Ca{constructor(r){super(r),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const l=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:l.to("acceptedType"),multiple:l.to("allowMultipleFiles")},on:{change:l.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}function W0(b){const r=b.map(l=>l.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}class ph extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("imageUpload",p=>{const x=new Ms(p),Z=r.commands.get("imageUpload"),k=r.config.get("image.upload.types"),H=W0(k);return x.set({acceptedType:k.map(G=>"image/"+G).join(","),allowMultipleFiles:!0}),x.buttonView.set({label:l("Insert image"),icon:'',tooltip:!0}),x.buttonView.bind("isEnabled").to(Z),x.on("done",(G,rt)=>{const ft=Array.from(rt).filter(Mt=>H.test(Mt.type));ft.length&&r.execute("imageUpload",{file:ft})}),x})}}d(65),d(67),d(69);class N2 extends ko{constructor(r){super(r),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('')}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(...r)=>this.uploadStatusChange(...r))}uploadStatusChange(r,l,p){const x=this.editor,Z=l.item,k=Z.getAttribute("uploadId");if(!p.consumable.consume(l.item,r.name))return;const H=x.plugins.get(pu),G=k?l.attributeNewValue:null,rt=this.placeholder,ft=x.editing.mapper.toViewElement(Z),Mt=p.writer;if("reading"==G)return mh(ft,Mt),void _h(rt,ft,Mt);if("uploading"==G){const he=H.loaders.get(k);return mh(ft,Mt),void(he?(fh(ft,Mt),function(Je,fn,Mn,In){const Qn=function(Fi){const Ji=Fi.createUIElement("div",{class:"ck-progress-bar"});return Fi.setCustomProperty("progressBar",!0,Ji),Ji}(fn);fn.insert(fn.createPositionAt(Je,"end"),Qn),Mn.on("change:uploadedPercent",(Fi,Ji,Uo)=>{In.change(va=>{va.setStyle("width",Uo+"%",Qn)})})}(ft,Mt,he,x.editing.view),function(Je,fn,Mn){if(Mn.data){const In=Kl(Je);fn.setAttribute("src",Mn.data,In)}}(ft,Mt,he)):_h(rt,ft,Mt))}"complete"==G&&H.loaders.get(k)&&function(he,Je,fn){const Mn=Je.createUIElement("div",{class:"ck-image-upload-complete-icon"});Je.insert(Je.createPositionAt(he,"end"),Mn),setTimeout(()=>{fn.change(In=>In.remove(In.createRangeOn(Mn)))},3e3)}(ft,Mt,x.editing.view),Qm(ft,Mt,"progressBar"),fh(ft,Mt),Mt.removeClass("ck-appear",ft)}}function mh(b,r){b.hasClass("ck-appear")||r.addClass("ck-appear",b)}function _h(b,r,l){r.hasClass("ck-image-upload-placeholder")||l.addClass("ck-image-upload-placeholder",r);const p=Kl(r);p.getAttribute("src")!==b&&l.setAttribute("src",b,p),sm(r,"placeholder")||l.insert(l.createPositionAfter(p),function(x){const Z=x.createUIElement("div",{class:"ck-upload-placeholder-loader"});return x.setCustomProperty("placeholder",!0,Z),Z}(l))}function fh(b,r){b.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",b),Qm(b,r,"placeholder")}function sm(b,r){for(const l of b.getChildren())if(l.getCustomProperty(r))return l}function Qm(b,r,l){const p=sm(b,l);p&&r.remove(r.createRangeOn(p))}class hh{constructor(r){this.document=r}createDocumentFragment(r){return new Gl(this.document,r)}createElement(r,l,p){return new Xs(this.document,r,l,p)}createText(r){return new or(this.document,r)}clone(r,l=!1){return r._clone(l)}appendChild(r,l){return l._appendChild(r)}insertChild(r,l,p){return p._insertChild(r,l)}removeChildren(r,l,p){return p._removeChildren(r,l)}remove(r){const l=r.parent;return l?this.removeChildren(l.getChildIndex(r),1,l):[]}replace(r,l){const p=r.parent;if(p){const x=p.getChildIndex(r);return this.removeChildren(x,1,p),this.insertChild(x,l,p),!0}return!1}unwrapElement(r){const l=r.parent;if(l){const p=l.getChildIndex(r);this.remove(r),this.insertChild(p,r.getChildren(),l)}}rename(r,l){const p=new Xs(this.document,r,l.getAttributes(),l.getChildren());return this.replace(l,p)?p:null}setAttribute(r,l,p){p._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,p){Gt(r)&&void 0===p&&(p=l),p._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,p){p._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}createPositionAt(r,l){return vi._createAt(r,l)}createPositionAfter(r){return vi._createAfter(r)}createPositionBefore(r){return vi._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeOn(r){return zi._createOn(r)}createRangeIn(r){return zi._createIn(r)}createSelection(r,l,p){return new ga(r,l,p)}}class W1 extends tr{refresh(){this.isEnabled=zm(this.editor.model)}execute(r){const l=this.editor,p=l.model,x=l.plugins.get(pu);p.change(Z=>{const k=Array.isArray(r.file)?r.file:[r.file];for(const H of k)I2(Z,p,x,H)})}}function I2(b,r,l,p){const x=l.createLoader(p);x&&Zg(b,r,{uploadId:x.id})}class t0 extends ko{static get requires(){return[pu,Yd,qm]}static get pluginName(){return"ImageUploadEditing"}constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}})}init(){const r=this.editor,l=r.model.document,p=r.model.schema,x=r.conversion,Z=r.plugins.get(pu),k=W0(r.config.get("image.upload.types"));p.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),r.commands.add("imageUpload",new W1(r)),x.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(H,G)=>{if(rt=G.dataTransfer,Array.from(rt.types).includes("text/html")&&""!==rt.getData("text/html"))return;var rt;const ft=Array.from(G.dataTransfer.files).filter(he=>!!he&&k.test(he.type)),Mt=G.targetRanges.map(he=>r.editing.mapper.toModelRange(he));r.model.change(he=>{he.setSelection(Mt),ft.length&&(H.stop(),r.model.enqueueChange("default",()=>{r.execute("imageUpload",{file:ft})}))})}),this.listenTo(r.plugins.get(qm),"inputTransformation",(H,G)=>{const rt=Array.from(r.editing.view.createRangeIn(G.content)).filter(Mt=>{return!(!(he=Mt.item).is("element","img")||!he.getAttribute("src"))&&(he.getAttribute("src").match(/^data:image\/\w+;base64,/g)||he.getAttribute("src").match(/^blob:/g))&&!Mt.item.getAttribute("uploadProcessed");var he}).map(Mt=>{return{promise:(he=Mt.item,new Promise((Je,fn)=>{const Mn=he.getAttribute("src");fetch(Mn).then(In=>In.blob()).then(In=>{const Qn=(va=Mn,(Uo=In).type?Uo.type:va.match(/data:(image\/\w+);base64/)?va.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"),Fi=Qn.replace("image/",""),Ji=new File([In],"image."+Fi,{type:Qn});var Uo,va;Je(Ji)}).catch(fn)})),imageElement:Mt.item};var he});if(!rt.length)return;const ft=new hh(r.editing.view.document);for(const Mt of rt){ft.setAttribute("uploadProcessed",!0,Mt.imageElement);const he=Z.createLoader(Mt.promise);he&&(ft.setAttribute("src","",Mt.imageElement),ft.setAttribute("uploadId",he.id,Mt.imageElement))}}),r.editing.view.document.on("dragover",(H,G)=>{G.preventDefault()}),l.on("change",()=>{const H=l.differ.getChanges({includeChangesInGraveyard:!0});for(const G of H)if("insert"==G.type&&"$text"!=G.name){const rt=G.position.nodeAfter,ft="$graveyard"==G.position.root.rootName;for(const Mt of gh(r,rt)){const he=Mt.getAttribute("uploadId");if(!he)continue;const Je=Z.loaders.get(he);Je&&(ft?Je.abort():"idle"==Je.status&&this._readAndUpload(Je,Mt))}}})}_readAndUpload(r,l){const p=this.editor,x=p.model,Z=p.locale.t,k=p.plugins.get(pu),H=p.plugins.get(Yd);return x.enqueueChange("transparent",rt=>{rt.setAttribute("uploadStatus","reading",l)}),r.read().then(()=>{const rt=r.upload();if(ws_isSafari){const ft=Kl(p.editing.mapper.toViewElement(l));p.editing.view.once("render",()=>{if(!ft.parent)return;const Mt=p.editing.view.domConverter.mapViewToDom(ft.parent);if(!Mt)return;const he=Mt.style.display;Mt.style.display="none",Mt._ckHack=Mt.offsetHeight,Mt.style.display=he})}return x.enqueueChange("transparent",ft=>{ft.setAttribute("uploadStatus","uploading",l)}),rt}).then(rt=>{x.enqueueChange("transparent",ft=>{ft.setAttributes({uploadStatus:"complete",src:rt.default},l),this._parseAndSetSrcsetAttributeOnImage(rt,l,ft)}),G()}).catch(rt=>{if("error"!==r.status&&"aborted"!==r.status)throw rt;"error"==r.status&&rt&&H.showWarning(rt,{title:Z("Upload failed"),namespace:"upload"}),G(),x.enqueueChange("transparent",ft=>{ft.remove(l)})});function G(){x.enqueueChange("transparent",rt=>{rt.removeAttribute("uploadId",l),rt.removeAttribute("uploadStatus",l)}),k.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,l,p){let x=0;const Z=Object.keys(r).filter(k=>{const H=parseInt(k,10);if(!isNaN(H))return x=Math.max(x,H),!0}).map(k=>`${r[k]} ${k}w`).join(", ");""!=Z&&p.setAttribute("srcset",{data:Z,width:x},l)}}function gh(b,r){return Array.from(b.model.createRangeOn(r)).filter(l=>l.item.is("element","image")).map(l=>l.item)}class jm extends ko{static get pluginName(){return"ImageUpload"}static get requires(){return[t0,ph,N2]}}class fu extends tr{refresh(){const r=this.editor.model,l=Wl(r.document.selection.getSelectedBlocks());this.value=!!l&&l.is("element","paragraph"),this.isEnabled=!!l&&N_(l,r.schema)}execute(r={}){const l=this.editor.model,p=l.document;l.change(x=>{const Z=(r.selection||p.selection).getSelectedBlocks();for(const k of Z)!k.is("element","paragraph")&&N_(k,l.schema)&&x.rename(k,"paragraph")})}}function N_(b,r){return r.checkChild(b.parent,"paragraph")&&!r.isObject(b)}class Lg extends tr{execute(r){const l=this.editor.model;let p=r.position;l.change(x=>{const Z=x.createElement("paragraph");if(!l.schema.checkChild(p.parent,Z)){const k=l.schema.findAllowedParent(p,Z);if(!k)return;p=x.split(p,k).position}l.insertContent(Z,p),x.setSelection(Z,"in")})}}class I_ extends ko{static get pluginName(){return"Paragraph"}init(){const r=this.editor,l=r.model,p=r.data;r.commands.add("paragraph",new fu(r)),r.commands.add("insertParagraph",new Lg(r)),l.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(x,Z)=>I_.paragraphLikeElements.has(x.name)?x.isEmpty?null:Z.createElement("paragraph"):null,converterPriority:"low"}),p.upcastDispatcher.on("element",(x,Z,k)=>{k.consumable.test(Z.viewItem,{name:Z.viewItem.name})&&e0(Z.viewItem,Z.modelCursor,k.schema)&&Object.assign(Z,Wm(Z.viewItem,Z.modelCursor,k))},{priority:"low"}),p.upcastDispatcher.on("text",(x,Z,k)=>{Z.modelRange||e0(Z.viewItem,Z.modelCursor,k.schema)&&Object.assign(Z,Wm(Z.viewItem,Z.modelCursor,k))},{priority:"lowest"}),l.document.registerPostFixer(x=>this._autoparagraphEmptyRoots(x)),r.data.on("ready",()=>{l.enqueueChange("transparent",x=>this._autoparagraphEmptyRoots(x))},{priority:"lowest"})}_autoparagraphEmptyRoots(r){const l=this.editor.model;for(const p of l.document.getRootNames()){const x=l.document.getRoot(p);if(x.isEmpty&&"$graveyard"!=x.rootName&&l.schema.checkChild(x,"paragraph"))return r.insertElement("paragraph",x),!0}}}function Wm(b,r,l){const p=l.writer.createElement("paragraph");return l.writer.insert(p,r),l.convertItem(b,l.writer.createPositionAt(p,0))}function e0(b,r,l){const p=l.createContext(r);return!!l.checkChild(p,"paragraph")&&!!l.checkChild(p.push("paragraph"),b)}I_.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class q2 extends tr{constructor(r,l){super(r),this.modelElements=l}refresh(){const r=Wl(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(l=>$m(r,l,this.editor.model.schema))}execute(r){const l=this.editor.model,p=l.document,x=r.value;l.change(Z=>{const k=Array.from(p.selection.getSelectedBlocks()).filter(H=>$m(H,x,l.schema));for(const H of k)H.is("element",x)||Z.rename(H,x)})}}function $m(b,r,l){return l.checkChild(b.parent,r)&&!l.isObject(b)}class q_ extends ko{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[I_]}init(){const r=this.editor,l=r.config.get("heading.options"),p=[];for(const x of l)"paragraph"!==x.model&&(r.model.schema.register(x.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(x),p.push(x.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new q2(r,p))}afterInit(){const r=this.editor,l=r.commands.get("enter"),p=r.config.get("heading.options");l&&this.listenTo(l,"afterExecute",(x,Z)=>{const k=r.model.document.selection.getFirstPosition().parent;p.some(H=>k.is("element",H.model))&&!k.is("element","paragraph")&&0===k.childCount&&Z.writer.rename(k,"paragraph")})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:ns.get("low")+1})}}class R_{constructor(r,l){l&&Pt(this,l),r&&this.set(r)}}ao(R_,St),d(11);class r6 extends ko{init(){const r=this.editor,l=r.t,p=function(k){const H=k.t,G={Paragraph:H("Paragraph"),"Heading 1":H("Heading 1"),"Heading 2":H("Heading 2"),"Heading 3":H("Heading 3"),"Heading 4":H("Heading 4"),"Heading 5":H("Heading 5"),"Heading 6":H("Heading 6")};return k.config.get("heading.options").map(rt=>{const ft=G[rt.title];return ft&&ft!=rt.title&&(rt.title=ft),rt})}(r),x=l("Choose heading"),Z=l("Heading");r.ui.componentFactory.add("heading",k=>{const H={},G=new Er,rt=r.commands.get("heading"),ft=r.commands.get("paragraph"),Mt=[rt];for(const Je of p){const fn={type:"button",model:new R_({label:Je.title,class:Je.class,withText:!0})};"paragraph"===Je.model?(fn.model.bind("isOn").to(ft,"value"),fn.model.set("commandName","paragraph"),Mt.push(ft)):(fn.model.bind("isOn").to(rt,"value",Mn=>Mn===Je.model),fn.model.set({commandName:"heading",commandValue:Je.model})),G.add(fn),H[Je.model]=Je.title}const he=v1(k);return T3(he,G),he.buttonView.set({isOn:!1,withText:!0,tooltip:Z}),he.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),he.bind("isEnabled").toMany(Mt,"isEnabled",(...Je)=>Je.some(fn=>fn)),he.buttonView.bind("label").to(rt,"value",ft,"value",(Je,fn)=>{const Mn=Je||fn&&"paragraph";return H[Mn]?H[Mn]:x}),this.listenTo(he,"execute",Je=>{r.execute(Je.source.commandName,Je.source.commandValue?{value:Je.source.commandValue}:void 0),r.editing.view.focus()}),he})}}function Km(b){for(const r of b.getChildren())if(r&&r.is("element","caption"))return r;return null}function vh(b){const r=b.parent;return"figcaption"==b.name&&r&&"figure"==r.name&&r.hasClass("image")?{name:!0}:null}class H_ extends ko{static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,l=r.editing.view,x=r.data,Z=r.editing,k=r.t;r.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),r.model.document.registerPostFixer(G=>this._insertMissingModelCaptionElement(G)),r.conversion.for("upcast").elementToElement({view:vh,model:"caption"}),x.downcastDispatcher.on("insert:caption",xh(G=>G.createContainerElement("figcaption"),!1));const H=(G=l,rt=k("Enter image caption"),ft=>{const Mt=ft.createEditableElement("figcaption");return ft.setCustomProperty("imageCaption",!0,Mt),Of({view:G,element:Mt,text:rt}),C1(Mt,ft)});var G,rt;Z.downcastDispatcher.on("insert:caption",xh(H)),Z.downcastDispatcher.on("insert",this._fixCaptionVisibility(G=>G.item),{priority:"high"}),Z.downcastDispatcher.on("remove",this._fixCaptionVisibility(G=>G.position.parent),{priority:"high"}),l.document.registerPostFixer(G=>this._updateCaptionVisibility(G))}_updateCaptionVisibility(r){const l=this.editor.editing.mapper,p=this._lastSelectedCaption;let x;const Z=this.editor.model.document.selection,k=Z.getSelectedElement();if(k&&k.is("element","image")){const G=Km(k);x=l.toViewElement(G)}const H=Eg(Z.getFirstPosition().parent);if(H&&(x=l.toViewElement(H)),x)return p?(p===x||(Y_(p,r),this._lastSelectedCaption=x),z_(x,r)):(this._lastSelectedCaption=x,z_(x,r));if(p){const G=Y_(p,r);return this._lastSelectedCaption=null,G}return!1}_fixCaptionVisibility(r){return(l,p,x)=>{const Z=Eg(r(p)),H=x.writer;if(Z){const G=this.editor.editing.mapper.toViewElement(Z);G&&(Z.childCount?H.removeClass("ck-hidden",G):H.addClass("ck-hidden",G))}}}_insertMissingModelCaptionElement(r){const l=this.editor.model,p=l.document.differ.getChanges(),x=[];for(const Z of p)if("insert"==Z.type&&"$text"!=Z.name){const k=Z.position.nodeAfter;if(k.is("element","image")&&!Km(k)&&x.push(k),!k.is("element","image")&&k.childCount)for(const H of l.createRangeIn(k).getItems())H.is("element","image")&&!Km(H)&&x.push(H)}for(const Z of x)r.appendElement("caption",Z);return!!x.length}}function xh(b,r=!0){return(l,p,x)=>{const Z=p.item;if((Z.childCount||r)&&Tp(Z.parent)){if(!x.consumable.consume(p.item,"insert"))return;const k=x.mapper.toViewElement(p.range.start.parent),H=b(x.writer),G=x.writer;Z.childCount||G.addClass("ck-hidden",H),function(rt,ft,Mt,he){const Je=he.writer.createPositionAt(Mt,"end");he.writer.insert(Je,rt),he.mapper.bindElements(ft,rt)}(H,p.item,k,x)}}}function Eg(b){const r=b.getAncestors({includeSelf:!0}).find(l=>"caption"==l.name);return r&&r.parent&&"image"==r.parent.name?r:null}function Y_(b,r){return!b.childCount&&!b.hasClass("ck-hidden")&&(r.addClass("ck-hidden",b),!0)}function z_(b,r){return!!b.hasClass("ck-hidden")&&(r.removeClass("ck-hidden",b),!0)}d(72);class Vd extends tr{constructor(r,l){super(r),this.defaultStyle=!1,this.styles=l.reduce((p,x)=>(p[x.name]=x,x.isDefault&&(this.defaultStyle=x.name),p),{})}refresh(){const r=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Tp(r),r)if(r.hasAttribute("imageStyle")){const l=r.getAttribute("imageStyle");this.value=!!this.styles[l]&&l}else this.value=this.defaultStyle;else this.value=!1}execute(r){const l=r.value,p=this.editor.model,x=p.document.selection.getSelectedElement();p.change(Z=>{this.styles[l].isDefault?Z.removeAttribute("imageStyle",x):Z.setAttribute("imageStyle",l,x)})}}function R2(b,r){for(const l of r)if(l.name===b)return l}var V_='',B_='',n0='',Xm='';const H2={full:{name:"full",title:"Full size image",icon:V_,isDefault:!0},side:{name:"side",title:"Side image",icon:Xm,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:B_,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:n0,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Xm,className:"image-style-align-right"}},Y2={full:V_,left:B_,right:Xm,center:n0};function bh(b=[]){return b.map(z2)}function z2(b){if("string"==typeof b){const r=b;H2[r]?b=Object.assign({},H2[r]):(console.warn(Object(jn.a)("image-style-not-found: There is no such image style of given name."),{name:r}),b={name:r})}else if(H2[b.name]){const r=H2[b.name],l=Object.assign({},b);for(const p in r)Object.prototype.hasOwnProperty.call(b,p)||(l[p]=r[p]);b=l}return"string"==typeof b.icon&&Y2[b.icon]&&(b.icon=Y2[b.icon]),b}class Ch extends ko{static get pluginName(){return"ImageStyleEditing"}init(){const r=this.editor,l=r.model.schema,p=r.data,x=r.editing;r.config.define("image.styles",["full","side"]);const Z=bh(r.config.get("image.styles"));l.extend("image",{allowAttributes:"imageStyle"});const k=(H=Z,(G,rt,ft)=>{if(!ft.consumable.consume(rt.item,G.name))return;const Mt=R2(rt.attributeNewValue,H),he=R2(rt.attributeOldValue,H),Je=ft.mapper.toViewElement(rt.item),fn=ft.writer;he&&fn.removeClass(he.className,Je),Mt&&fn.addClass(Mt.className,Je)});var H;x.downcastDispatcher.on("attribute:imageStyle:image",k),p.downcastDispatcher.on("attribute:imageStyle:image",k),p.upcastDispatcher.on("element:figure",function(H){const G=H.filter(rt=>!rt.isDefault);return(rt,ft,Mt)=>{if(!ft.modelRange)return;const he=ft.viewItem,Je=Wl(ft.modelRange.getItems());if(Mt.schema.checkAttribute(Je,"imageStyle"))for(const fn of G)Mt.consumable.consume(he,{classes:fn.className})&&Mt.writer.setAttribute("imageStyle",fn.name,Je)}}(Z),{priority:"low"}),r.commands.add("imageStyle",new Vd(r,Z))}}d(74);class fd extends ko{static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=function(l,p){for(const x of l)p[x.title]&&(x.title=p[x.title]);return l}(bh(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles);for(const l of r)this._createButton(l)}_createButton(r){const l=this.editor;l.ui.componentFactory.add("imageStyle:"+r.name,x=>{const Z=l.commands.get("imageStyle"),k=new qs(x);return k.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),k.bind("isEnabled").to(Z,"isEnabled"),k.bind("isOn").to(Z,"value",H=>H===r.name),this.listenTo(k,"execute",()=>{l.execute("imageStyle",{value:r.name}),l.editing.view.focus()}),k})}}class t_ extends ko{static get requires(){return[Xl]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const l=r.plugins.get("BalloonToolbar");this.listenTo(l,"show",p=>{(function(x){const Z=x.getSelectedElement();return!(!Z||!pd(Z))})(r.editing.view.document.selection)&&p.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:l,items:p,getRelatedElement:x,balloonClassName:Z="ck-toolbar-container"}){if(!p.length)return void console.warn(Object(jn.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:r});const k=this.editor,H=k.t,G=new x2(k.locale);if(G.ariaLabel=l||H("Widget toolbar"),this._toolbarDefinitions.has(r))throw new jn.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:r});G.fillFromConfig(p,k.ui.componentFactory),this._toolbarDefinitions.set(r,{view:G,getRelatedElement:x,balloonClassName:Z})}_updateToolbarsVisibility(){let r=0,l=null,p=null;for(const x of this._toolbarDefinitions.values()){const Z=x.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&Z)if(this.editor.ui.focusTracker.isFocused){const k=Z.getAncestors().length;k>r&&(r=k,l=Z,p=x)}else this._isToolbarVisible(x)&&this._hideToolbar(x);else this._isToolbarInBalloon(x)&&this._hideToolbar(x)}p&&this._showToolbar(p,l)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,l){this._isToolbarVisible(r)?yh(this.editor,l):this._isToolbarInBalloon(r)||(this._balloon.add({view:r.view,position:Fg(this.editor,l),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const p of this._toolbarDefinitions.values())if(this._isToolbarVisible(p)){const x=p.getRelatedElement(this.editor.editing.view.document.selection);yh(this.editor,x)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function yh(b,r){const l=b.plugins.get("ContextualBalloon"),p=Fg(b,r);l.updatePosition(p)}function Fg(b,r){const p=er.defaultPositions;return{target:b.editing.view.domConverter.mapViewToDom(r),positions:[p.northArrowSouth,p.northArrowSouthWest,p.northArrowSouthEast,p.southArrowNorth,p.southArrowNorthWest,p.southArrowNorthEast,Ol]}}class Th extends tr{constructor(r){super(r),this._childCommands=[]}refresh(){}execute(...r){return this._getFirstEnabledCommand().execute(r)}registerChildCommand(r){this._childCommands.push(r),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){return this._childCommands.find(r=>r.isEnabled)}}class Ah extends ko{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new Th(r)),r.commands.add("outdent",new Th(r))}}var Ng='',Uh='';class G_ extends ko{static get pluginName(){return"IndentUI"}init(){const r=this.editor,l=r.locale,p=r.t,x="ltr"==l.uiLanguageDirection?Ng:Uh,Z="ltr"==l.uiLanguageDirection?Uh:Ng;this._defineButton("indent",p("Increase indent"),x),this._defineButton("outdent",p("Decrease indent"),Z)}_defineButton(r,l,p){const x=this.editor;x.ui.componentFactory.add(r,Z=>{const k=x.commands.get(r),H=new qs(Z);return H.set({label:l,icon:p,tooltip:!0}),H.bind("isOn","isEnabled").to(k,"value","isEnabled"),this.listenTo(H,"execute",()=>{x.execute(r),x.editing.view.focus()}),H})}}class V2 extends N1{constructor(r){super(r),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}d(76);class $0 extends Ca{constructor(r,l,p){super(r);const x=r.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.urlInputView=this._createUrlInput(p),this.saveButtonView=this._createButton(x("Save"),ch,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(x("Cancel"),F2,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(l),this.children=this._createFormChildren(l.manualDecorators),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const Z=["ck","ck-link-form"];l.manualDecorators.length&&Z.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:Z,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,l)=>(r[l.name]=l.isOn,r),{})}render(){super.render(),E2({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(r="https://"){const l=this.locale.t,p=new F_(this.locale,kg);return p.label=l("Link URL"),p.fieldView.placeholder=r+"example.com",p}_createButton(r,l,p,x){const Z=new qs(this.locale);return Z.set({label:r,icon:l,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),x&&Z.delegate("execute").to(this,x),Z}_createManualDecoratorSwitches(r){const l=this.createCollection();for(const p of r.manualDecorators){const x=new M_(this.locale);x.set({name:p.id,label:p.label,withText:!0}),x.bind("isOn").toMany([p,r],"value",(Z,k)=>void 0===k&&void 0===Z?p.defaultValue:Z),x.on("execute",()=>{p.set("value",!x.isOn)}),l.add(x)}return l}_createFormChildren(r){const l=this.createCollection();if(l.add(this.urlInputView),r.length){const p=new Ca;p.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(x=>({tag:"li",children:[x],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),l.add(p)}return l.add(this.saveButtonView),l.add(this.cancelButtonView),l}}d(78);class D extends Ca{constructor(r){super(r);const l=r.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(l("Unlink"),'',"unlink"),this.editButtonView=this._createButton(l("Edit link"),'',"edit"),this.set("href"),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(r,l,p){const x=new qs(this.locale);return x.set({label:r,icon:l,tooltip:!0}),x.delegate("execute").to(this,p),x}_createPreviewButton(){const r=new qs(this.locale),l=this.bindTemplate,p=this.t;return r.set({withText:!0,tooltip:p("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:l.to("href",x=>x&&Kf(x)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",x=>x||p("This link has no URL")),r.bind("isEnabled").to(this,"href",x=>!!x),r.template.tag="a",r.template.eventListeners={},r}}const I=/^((\w+:(\/{2,})?)|(\W))/i,it=/[\w-]+@[\w-]+\.+[\w-]+/i;class jt extends ko{static get requires(){return[Xl]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(V2),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=r.plugins.get(Xl),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),r.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const r=this.editor,l=new D(r.locale),p=r.commands.get("link"),x=r.commands.get("unlink");return l.bind("href").to(p,"value"),l.editButtonView.bind("isEnabled").to(p),l.unlinkButtonView.bind("isEnabled").to(x),this.listenTo(l,"edit",()=>{this._addFormView()}),this.listenTo(l,"unlink",()=>{r.execute("unlink"),this._hideUI()}),l.keystrokes.set("Esc",(Z,k)=>{this._hideUI(),k()}),l.keystrokes.set("Ctrl+K",(Z,k)=>{this._addFormView(),k()}),l}_createFormView(){const r=this.editor,l=r.commands.get("link"),p=r.config.get("link.defaultProtocol"),x=new $0(r.locale,l,p);return x.urlInputView.fieldView.bind("value").to(l,"value"),x.urlInputView.bind("isReadOnly").to(l,"isEnabled",Z=>!Z),x.saveButtonView.bind("isEnabled").to(l),this.listenTo(x,"submit",()=>{const{value:Z}=x.urlInputView.fieldView.element,k=!!p&&!I.test(Z),H=it.test(Z);r.execute("link",Z&&k?(H?"mailto:":p)+Z:Z,x.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(x,"cancel",()=>{this._closeFormView()}),x.keystrokes.set("Esc",(Z,k)=>{this._closeFormView(),k()}),x}_createToolbarLinkButton(){const r=this.editor,l=r.commands.get("link"),p=r.t;r.keystrokes.set("Ctrl+K",(x,Z)=>{Z(),this._showUI(!0)}),r.ui.componentFactory.add("link",x=>{const Z=new qs(x);return Z.isEnabled=!0,Z.label=p("Link"),Z.icon='',Z.keystroke="Ctrl+K",Z.tooltip=!0,Z.isToggleable=!0,Z.bind("isEnabled").to(l,"isEnabled"),Z.bind("isOn").to(l,"value",k=>!!k),this.listenTo(Z,"execute",()=>this._showUI(!0)),Z})}_enableUserBalloonInteractions(){this.listenTo(this.editor.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(l,p)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),p())},{priority:"high"}),this.editor.keystrokes.set("Esc",(l,p)=>{this._isUIVisible&&(this._hideUI(),p())}),v2({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const r=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView(),this._showFakeVisualSelection()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,l=r.editing.view.document;let p=this._getSelectedLinkElement(),x=k();const Z=()=>{const H=this._getSelectedLinkElement(),G=k();p&&!H||!p&&G!==x?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),p=H,x=G};function k(){return l.selection.focus.getAncestors().reverse().find(H=>H.is("element"))}this.listenTo(r.ui,"update",Z),this.listenTo(this._balloon,"change:visibleView",Z)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,l=r.document,p=this._getSelectedLinkElement();return{target:p?r.domConverter.mapViewToDom(p):r.domConverter.viewRangeToDom(l.selection.getFirstRange())}}_getSelectedLinkElement(){const r=this.editor.editing.view,l=r.document.selection;if(l.isCollapsed)return Ee(l.getFirstPosition());{const p=l.getFirstRange().getTrimmed(),x=Ee(p.start),Z=Ee(p.end);return x&&x==Z&&r.createRangeIn(x).getTrimmed().isEqual(p)?x:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(l=>{r.markers.has("link-ui")?l.updateMarker("link-ui",{range:r.document.selection.getFirstRange()}):l.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:r.document.selection.getFirstRange()})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has("link-ui")&&r.change(l=>{l.removeMarker("link-ui")})}}function Ee(b){return b.getAncestors().find(r=>{return(l=r).is("attributeElement")&&!!l.getCustomProperty("link");var l})}class pn extends tr{constructor(r,l){super(r),this.type=l}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model,p=Array.from(r.document.selection.getSelectedBlocks()).filter(Z=>ci(Z,r.schema)),x=!0===this.value;r.change(Z=>{if(x){let k=p[p.length-1].nextSibling,H=Number.POSITIVE_INFINITY,G=[];for(;k&&"listItem"==k.name&&0!==k.getAttribute("listIndent");){const rt=k.getAttribute("listIndent");rt=l;)Z>x.getAttribute("listIndent")&&(Z=x.getAttribute("listIndent")),x.getAttribute("listIndent")==Z&&b[r?"unshift":"push"](x),x=x[r?"previousSibling":"nextSibling"]}}function ci(b,r){return r.checkChild(b.parent,"listItem")&&!r.isObject(b)}class fi extends tr{constructor(r,l){super(r),this._indentBy="forward"==l?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let p=Array.from(r.document.selection.getSelectedBlocks());r.change(x=>{const Z=p[p.length-1];let k=Z.nextSibling;for(;k&&"listItem"==k.name&&k.getAttribute("listIndent")>Z.getAttribute("listIndent");)p.push(k),k=k.nextSibling;this._indentBy<0&&(p=p.reverse());for(const H of p){const G=H.getAttribute("listIndent")+this._indentBy;G<0?x.rename(H,"paragraph"):x.setAttribute("listIndent",G,H)}})}_checkEnabled(){const r=Wl(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const l=r.getAttribute("listIndent"),p=r.getAttribute("listType");let x=r.previousSibling;for(;x&&x.is("element","listItem")&&x.getAttribute("listIndent")>=l;){if(x.getAttribute("listIndent")==l)return x.getAttribute("listType")==p;x=x.previousSibling}return!1}return!0}}function to(b,r,l,p){const x=r.parent,Z=l.mapper,k=l.writer;let H=Z.toViewPosition(p.createPositionBefore(b));const G=Go(b.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:b.getAttribute("listIndent")}),rt=b.previousSibling;if(G&&G.getAttribute("listIndent")==b.getAttribute("listIndent")){const ft=Z.toViewElement(G);H=k.breakContainer(k.createPositionAfter(ft))}else if(rt&&"listItem"==rt.name){H=Z.toViewPosition(p.createPositionAt(rt,"end"));const ft=Z.findMappedViewAncestor(H),Mt=function(he){for(const Je of he.getChildren())if("ul"==Je.name||"ol"==Je.name)return Je;return null}(ft);H=Mt?k.createPositionBefore(Mt):k.createPositionAt(ft,"end")}else H=Z.toViewPosition(p.createPositionBefore(b));if(H=Fo(H),k.insert(H,x),rt&&"listItem"==rt.name){const ft=Z.toViewElement(rt),Mt=k.createRange(k.createPositionAt(ft,0),H).getWalker({ignoreElementEnd:!0});for(const he of Mt)if(he.item.is("element","li")){const Je=k.breakContainer(k.createPositionBefore(he.item)),fn=he.item.parent,Mn=k.createPositionAt(r,"end");Ki(k,Mn.nodeBefore,Mn.nodeAfter),k.move(k.createRangeOn(fn),Mn),Mt.position=Je}}else{const ft=x.nextSibling;if(ft&&(ft.is("element","ul")||ft.is("element","ol"))){let Mt=null;for(const he of ft.getChildren()){const Je=Z.toModelElement(he);if(!(Je&&Je.getAttribute("listIndent")>b.getAttribute("listIndent")))break;Mt=he}Mt&&(k.breakContainer(k.createPositionAfter(Mt)),k.move(k.createRangeOn(Mt.parent),k.createPositionAt(r,"end")))}}Ki(k,x,x.nextSibling),Ki(k,x.previousSibling,x)}function Ki(b,r,l){return!r||!l||"ul"!=r.name&&"ol"!=r.name||r.name!=l.name||r.getAttribute("class")!==l.getAttribute("class")?null:b.mergeContainers(b.createPositionAfter(r))}function Fo(b){return b.getLastMatchingPosition(r=>r.item.is("uiElement"))}function Go(b,r){const l=!!r.sameIndent,p=!!r.smallerIndent,x=r.listIndent;let Z=b;for(;Z&&"listItem"==Z.name;){const k=Z.getAttribute("listIndent");if(l&&x==k||p&&x>k)return Z;Z=Z.previousSibling}return null}function da(b,r,l,p){b.ui.componentFactory.add(r,x=>{const Z=b.commands.get(r),k=new qs(x);return k.set({label:l,icon:p,tooltip:!0,isToggleable:!0}),k.bind("isOn","isEnabled").to(Z,"value","isEnabled"),k.on("execute",()=>{b.execute(r),b.editing.view.focus()}),k})}function fa(){const b=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||b?0:td.call(this)}function ca(b){return(r,l,p)=>{const x=p.consumable;if(!x.test(l.item,"insert")||!x.test(l.item,"attribute:listType")||!x.test(l.item,"attribute:listIndent"))return;x.consume(l.item,"insert"),x.consume(l.item,"attribute:listType"),x.consume(l.item,"attribute:listIndent");const Z=l.item;to(Z,function eo(b,r){const l=r.mapper,p=r.writer,x="numbered"==b.getAttribute("listType")?"ol":"ul",Z=function(H){const G=H.createContainerElement("li");return G.getFillerOffset=fa,G}(p),k=p.createContainerElement(x,null);return p.insert(p.createPositionAt(k,0),Z),l.bindElements(b,Z),Z}(Z,p),p,b)}}function Wa(b,r,l){if(!l.consumable.consume(r.item,"attribute:listType"))return;const p=l.mapper.toViewElement(r.item),x=l.writer;x.breakContainer(x.createPositionBefore(p)),x.breakContainer(x.createPositionAfter(p)),x.rename("numbered"==r.attributeNewValue?"ol":"ul",p.parent)}function Fa(b,r,l){const p=l.mapper.toViewElement(r.item).parent,x=l.writer;Ki(x,p,p.nextSibling),Ki(x,p.previousSibling,p);for(const Z of r.item.getChildren())l.consumable.consume(Z,"insert")}function tu(b,r,l){if("listItem"!=r.item.name){let p=l.mapper.toViewPosition(r.range.start);const x=l.writer,Z=[];for(;("ul"==p.parent.name||"ol"==p.parent.name)&&(p=x.breakContainer(p),"li"==p.parent.name);){const k=p,H=x.createPositionAt(p.parent,"end");if(!k.isEqual(H)){const G=x.remove(x.createRange(k,H));Z.push(G)}p=x.createPositionAfter(p.parent)}if(Z.length>0){for(let k=0;k0){const G=Ki(x,H,H.nextSibling);G&&G.parent==H&&p.offset--}}Ki(x,p.nodeBefore,p.nodeAfter)}}}function hc(b,r,l){const p=l.mapper.toViewPosition(r.position);Ki(l.writer,p.nodeBefore,p.nodeAfter)}function hl(b,r,l){if(l.consumable.consume(r.viewItem,{name:!0})){const p=l.writer,x=p.createElement("listItem"),Z=function(rt){let ft=0,Mt=rt.parent;for(;Mt;){if(Mt.is("element","li"))ft++;else{const he=Mt.previousSibling;he&&he.is("element","li")&&ft++}Mt=Mt.parent}return ft}(r.viewItem);p.setAttribute("listIndent",Z,x),p.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",x);const H=l.splitToAllowedParent(x,r.modelCursor);if(!H)return;p.insert(x,H.position);const G=function(rt,ft,Mt){const{writer:he,schema:Je}=Mt;let fn=he.createPositionAfter(rt);for(const Mn of ft)if("ul"==Mn.name||"ol"==Mn.name)fn=Mt.convertItem(Mn,fn).modelCursor;else{const In=Mt.convertItem(Mn,he.createPositionAt(rt,"end")),Qn=In.modelRange.start.nodeAfter;Qn&&Qn.is("element")&&!Je.checkChild(rt,Qn.name)&&(rt=In.modelCursor.parent.is("element","listItem")?In.modelCursor.parent:wh(In.modelCursor),fn=he.createPositionAfter(rt))}return fn}(x,r.viewItem.getChildren(),l);r.modelRange=p.createRange(r.modelCursor,G),r.modelCursor=H.cursorParent?p.createPositionAt(H.cursorParent,0):r.modelRange.end}}function xs(b,r,l){if(l.consumable.test(r.viewItem,{name:!0})){const p=Array.from(r.viewItem.getChildren());for(const x of p)!x.is("element","li")&&!A1(x)&&x._remove()}}function gl(b,r,l){if(l.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const p=[...r.viewItem.getChildren()];let x=!1,Z=!0;for(const k of p)x&&!A1(k)&&k._remove(),k.is("$text")?(Z&&(k._data=k.data.replace(/^\s+/,"")),k.nextSibling&&!A1(k.nextSibling)||(k._data=k.data.replace(/\s+$/,""))):A1(k)&&(x=!0),Z=!1}}function vl(b){return(r,l)=>{if(l.isPhantom)return;const p=l.modelPosition.nodeBefore;if(p&&p.is("element","listItem")){const x=l.mapper.toViewElement(p),Z=x.getAncestors().find(A1),k=b.createPositionAt(x,0).getWalker();for(const H of k){if("elementStart"==H.type&&H.item.is("element","li")){l.viewPosition=H.previousPosition;break}if("elementEnd"==H.type&&H.item==Z){l.viewPosition=H.nextPosition;break}}}}}function cm(b,[r,l]){let p,x=r.is("documentFragment")?r.getChild(0):r;if(p=l?this.createSelection(l):this.document.selection,x&&x.is("element","listItem")){const Z=p.getFirstPosition();let k=null;if(Z.parent.is("element","listItem")?k=Z.parent:Z.nodeBefore&&Z.nodeBefore.is("element","listItem")&&(k=Z.nodeBefore),k){const H=k.getAttribute("listIndent");if(H>0)for(;x&&x.is("element","listItem");)x._setAttribute("listIndent",x.getAttribute("listIndent")+H),x=x.nextSibling}}}function wh(b){const r=new Xc({startPosition:b});let l;do{l=r.next()}while(!l.value.item.is("element","listItem"));return l.value.item}function B2(b,r,l,p,x,Z){const k=Go(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:b,foo:"b"}),H=x.mapper,G=x.writer,rt=k?k.getAttribute("listIndent"):null;let ft;if(k)if(rt==b){const Mt=H.toViewElement(k).parent;ft=G.createPositionAfter(Mt)}else{const Mt=Z.createPositionAt(k,"end");ft=H.toViewPosition(Mt)}else ft=l;ft=Fo(ft);for(const Mt of[...p.getChildren()])A1(Mt)&&(ft=G.move(G.createRangeOn(Mt),ft).end,Ki(G,Mt,Mt.nextSibling),Ki(G,Mt.previousSibling,Mt))}function A1(b){return b.is("element","ol")||b.is("element","ul")}class K0 extends ko{static get pluginName(){return"ListEditing"}static get requires(){return[I_]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const l=r.data,p=r.editing;var x;r.model.document.registerPostFixer(H=>function(G,rt){const ft=G.document.differ.getChanges(),Mt=new Map;let he=!1;for(const In of ft)if("insert"==In.type&&"listItem"==In.name)Je(In.position);else if("insert"==In.type&&"listItem"!=In.name){if("$text"!=In.name){const Qn=In.position.nodeAfter;Qn.hasAttribute("listIndent")&&(rt.removeAttribute("listIndent",Qn),he=!0),Qn.hasAttribute("listType")&&(rt.removeAttribute("listType",Qn),he=!0);for(const Fi of Array.from(G.createRangeIn(Qn)).filter(Ji=>Ji.item.is("element","listItem")))Je(Fi.previousPosition)}Je(In.position.getShiftedBy(In.length))}else"remove"==In.type&&"listItem"==In.name?Je(In.position):("attribute"==In.type&&"listIndent"==In.attributeKey||"attribute"==In.type&&"listType"==In.attributeKey)&&Je(In.range.start);for(const In of Mt.values())fn(In),Mn(In);return he;function Je(In){const Qn=In.nodeBefore;if(Qn&&Qn.is("element","listItem")){let Fi=Qn;if(Mt.has(Fi))return;for(let Ji=Fi.previousSibling;Ji&&Ji.is("element","listItem");Ji=Fi.previousSibling)if(Fi=Ji,Mt.has(Fi))return;Mt.set(Qn,Fi)}else{const Fi=In.nodeAfter;Fi&&Fi.is("element","listItem")&&Mt.set(Fi,Fi)}}function fn(In){let Qn=0,Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Ji>Qn){let Uo;null===Fi?(Fi=Ji-Qn,Uo=Qn):(Fi>Ji&&(Fi=Ji),Uo=Ji-Fi),rt.setAttribute("listIndent",Uo,In),he=!0}else Fi=null,Qn=In.getAttribute("listIndent")+1;In=In.nextSibling}}function Mn(In){let Qn=[],Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Fi&&Fi.getAttribute("listIndent")>Ji&&(Qn=Qn.slice(0,Ji+1)),0!=Ji)if(Qn[Ji]){const Uo=Qn[Ji];In.getAttribute("listType")!=Uo&&(rt.setAttribute("listType",Uo,In),he=!0)}else Qn[Ji]=In.getAttribute("listType");Fi=In,In=In.nextSibling}}}(r.model,H)),p.mapper.registerViewToModelLength("li",Ig),l.mapper.registerViewToModelLength("li",Ig),p.mapper.on("modelToViewPosition",vl(p.view)),p.mapper.on("viewToModelPosition",(x=r.model,(H,G)=>{const rt=G.viewPosition,ft=rt.parent,Mt=G.mapper;if("ul"==ft.name||"ol"==ft.name){if(rt.isAtEnd){const he=Mt.toModelElement(rt.nodeBefore),Je=Mt.getModelLength(rt.nodeBefore);G.modelPosition=x.createPositionBefore(he).getShiftedBy(Je)}else{const he=Mt.toModelElement(rt.nodeAfter);G.modelPosition=x.createPositionBefore(he)}H.stop()}else if("li"==ft.name&&rt.nodeBefore&&("ul"==rt.nodeBefore.name||"ol"==rt.nodeBefore.name)){const he=Mt.toModelElement(ft);let Je=1,fn=rt.nodeBefore;for(;fn&&A1(fn);)Je+=Mt.getModelLength(fn),fn=fn.previousSibling;G.modelPosition=x.createPositionBefore(he).getShiftedBy(Je),H.stop()}})),l.mapper.on("modelToViewPosition",vl(p.view)),r.conversion.for("editingDowncast").add(H=>{var G;H.on("insert",tu,{priority:"high"}),H.on("insert:listItem",ca(r.model)),H.on("attribute:listType:listItem",Wa,{priority:"high"}),H.on("attribute:listType:listItem",Fa,{priority:"low"}),H.on("attribute:listIndent:listItem",(G=r.model,(rt,ft,Mt)=>{if(!Mt.consumable.consume(ft.item,"attribute:listIndent"))return;const he=Mt.mapper.toViewElement(ft.item),Je=Mt.writer;Je.breakContainer(Je.createPositionBefore(he)),Je.breakContainer(Je.createPositionAfter(he));const fn=he.parent,Mn=fn.previousSibling,In=Je.createRangeOn(fn);Je.remove(In),Mn&&Mn.nextSibling&&Ki(Je,Mn,Mn.nextSibling),B2(ft.attributeOldValue+1,ft.range.start,In.start,he,Mt,G),to(ft.item,he,Mt,G);for(const Qn of ft.item.getChildren())Mt.consumable.consume(Qn,"insert")})),H.on("remove:listItem",function(G){return(rt,ft,Mt)=>{const he=Mt.mapper.toViewPosition(ft.position).getLastMatchingPosition(Fi=>!Fi.item.is("element","li")).nodeAfter,Je=Mt.writer;Je.breakContainer(Je.createPositionBefore(he)),Je.breakContainer(Je.createPositionAfter(he));const fn=he.parent,Mn=fn.previousSibling,In=Je.createRangeOn(fn),Qn=Je.remove(In);Mn&&Mn.nextSibling&&Ki(Je,Mn,Mn.nextSibling),B2(Mt.mapper.toModelElement(he).getAttribute("listIndent")+1,ft.position,In.start,he,Mt,G);for(const Fi of Je.createRangeIn(Qn).getItems())Mt.mapper.unbindViewElement(Fi);rt.stop()}}(r.model)),H.on("remove",hc,{priority:"low"})}),r.conversion.for("dataDowncast").add(H=>{H.on("insert",tu,{priority:"high"}),H.on("insert:listItem",ca(r.model))}),r.conversion.for("upcast").add(H=>{H.on("element:ul",xs,{priority:"high"}),H.on("element:ol",xs,{priority:"high"}),H.on("element:li",gl,{priority:"high"}),H.on("element:li",hl)}),r.model.on("insertContent",cm,{priority:"high"}),r.commands.add("numberedList",new pn(r,"numbered")),r.commands.add("bulletedList",new pn(r,"bulleted")),r.commands.add("indentList",new fi(r,"forward")),r.commands.add("outdentList",new fi(r,"backward"));const Z=p.view.document;this.listenTo(Z,"enter",(H,G)=>{const rt=this.editor.model.document,ft=rt.selection.getLastPosition().parent;rt.selection.isCollapsed&&"listItem"==ft.name&&ft.isEmpty&&(this.editor.execute("outdentList"),G.preventDefault(),H.stop())}),this.listenTo(Z,"delete",(H,G)=>{if("backward"!==G.direction)return;const rt=this.editor.model.document.selection;if(!rt.isCollapsed)return;const ft=rt.getFirstPosition();if(!ft.isAtStart)return;const Mt=ft.parent;"listItem"===Mt.name&&(Mt.previousSibling&&"listItem"===Mt.previousSibling.name||(this.editor.execute("outdentList"),G.preventDefault(),H.stop()))},{priority:"high"});const k=H=>(G,rt)=>{this.editor.commands.get(H).isEnabled&&(this.editor.execute(H),rt())};r.keystrokes.set("Tab",k("indentList")),r.keystrokes.set("Shift+Tab",k("outdentList"))}afterInit(){const r=this.editor.commands,l=r.get("indent"),p=r.get("outdent");l&&l.registerChildCommand(r.get("indentList")),p&&p.registerChildCommand(r.get("outdentList"))}}function Ig(b){let r=1;for(const l of b.getChildren())if("ul"==l.name||"ol"==l.name)for(const p of l.getChildren())r+=Ig(p);return r}class s6 extends ko{init(){const r=this.editor.t;da(this.editor,"numberedList",r("Numbered List"),''),da(this.editor,"bulletedList",r("Bulleted List"),'')}}function qg(b,r){return p=>{p.on("attribute:url:media",l)};function l(p,x,Z){if(!Z.consumable.consume(x.item,p.name))return;const k=x.attributeNewValue,H=Z.writer,G=Z.mapper.toViewElement(x.item),rt=[...G.getChildren()].find(Mt=>Mt.getCustomProperty("media-content"));H.remove(rt);const ft=b.getMediaViewElement(H,k,r);H.insert(H.createPositionAt(G,0),ft)}}function o0(b,r,l,p){const x=b.createContainerElement("figure",{class:"media"});return b.insert(b.createPositionAt(x,0),r.getMediaViewElement(b,l,p)),x}function a0(b){const r=b.getSelectedElement();return r&&r.is("element","media")?r:null}function X0(b,r,l){b.change(p=>{const x=p.createElement("media",{url:r});b.insertContent(x,l),p.setSelection(x,"on")})}class r0 extends tr{refresh(){const r=this.editor.model,l=r.document.selection,p=r.schema,x=l.getFirstPosition(),Z=a0(l);let k=x.parent;k!=k.root&&(k=k.parent),this.value=Z?Z.getAttribute("url"):null,this.isEnabled=p.checkChild(k,"media")}execute(r){const l=this.editor.model,p=l.document.selection,x=a0(p);if(x)l.change(Z=>{Z.setAttribute("url",r,x)});else{const Z=J1(p,l);X0(l,r,Z)}}}class t4{constructor(r,l){const p=l.providers,x=l.extraProviders||[],Z=new Set(l.removeProviders),k=p.concat(x).filter(H=>{const G=H.name;return G?!Z.has(G):(console.warn(Object(jn.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:H}),!1)});this.locale=r,this.providerDefinitions=k}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,l,p){return this._getMedia(l).getViewElement(r,p)}_getMedia(r){if(!r)return new c6(this.locale);r=r.trim();for(const l of this.providerDefinitions){const p=l.html;let x=l.url;Array.isArray(x)||(x=[x]);for(const Z of x){const k=this._getUrlMatches(r,Z);if(k)return new c6(this.locale,r,k,p)}}return null}_getUrlMatches(r,l){let p=r.match(l);if(p)return p;let x=r.replace(/^https?:\/\//,"");return p=x.match(l),p||(x=x.replace(/^www\./,""),p=x.match(l),p||null)}}class c6{constructor(r,l,p,x){this.url=this._getValidUrl(l),this._t=r.t,this._match=p,this._previewRenderer=x}getViewElement(r,l){const p={};let x;if(l.renderForEditingView||l.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(p["data-oembed-url"]=this.url),l.renderForEditingView&&(p.class="ck-media__wrapper");const Z=this._getPreviewHtml(l);x=r.createRawElement("div",p,function(k){k.innerHTML=Z})}else this.url&&(p.url=this.url),x=r.createEmptyElement("oembed",p);return r.setCustomProperty("media-content",!0,x),x}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new y3,l=new Kp;return r.text=this._t("Open media in new tab"),l.content='',l.viewBox="0 0 64 42",new g1({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[l]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},r]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}d(80);class Bd extends ko{static get pluginName(){return"MediaEmbedEditing"}constructor(r){super(r),r.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:l=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:l=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:l=>`
`},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:l=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new t4(r.locale,r.config.get("mediaEmbed"))}init(){const r=this.editor,l=r.model.schema,p=r.t,x=r.conversion,Z=r.config.get("mediaEmbed.previewsInData"),k=this.registry;r.commands.add("mediaEmbed",new r0(r)),l.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),x.for("dataDowncast").elementToElement({model:"media",view:(H,G)=>{const rt=H.getAttribute("url");return o0(G,k,rt,{renderMediaPreview:rt&&Z})}}),x.for("dataDowncast").add(qg(k,{renderMediaPreview:Z})),x.for("editingDowncast").elementToElement({model:"media",view:(H,G)=>{const rt=H.getAttribute("url");return Mt=o0(G,k,rt,{renderForEditingView:!0}),he=G,Je=p("media widget"),he.setCustomProperty("media",!0,Mt),Rd(Mt,he,{label:Je});var Mt,he,Je}}),x.for("editingDowncast").add(qg(k,{renderForEditingView:!0})),x.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(H,G)=>{const rt=H.getAttribute("url");if(k.hasMedia(rt))return G.createElement("media",{url:rt})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(H,G)=>{const rt=H.getAttribute("data-oembed-url");if(k.hasMedia(rt))return G.createElement("media",{url:rt})}})}}const Rg=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;class s0 extends ko{static get requires(){return[qm,bg]}static get pluginName(){return"AutoMediaEmbed"}constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}init(){const r=this.editor,l=r.model.document;this.listenTo(r.plugins.get(qm),"inputTransformation",()=>{const p=l.selection.getFirstRange(),x=tl.fromPosition(p.start);x.stickiness="toPrevious";const Z=tl.fromPosition(p.end);Z.stickiness="toNext",l.once("change:data",()=>{this._embedMediaBetweenPositions(x,Z),x.detach(),Z.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(ht.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,l){const p=this.editor,x=p.plugins.get(Bd).registry,Z=new Np(r,l),k=Z.getWalker({ignoreElementEnd:!0});let H="";for(const G of k)G.item.is("$textProxy")&&(H+=G.item.data);H=H.trim(),H.match(Rg)&&x.hasMedia(H)&&p.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=tl.fromPosition(r),this._timeoutId=ht.window.setTimeout(()=>{p.model.change(G=>{let rt;this._timeoutId=null,G.remove(Z),Z.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(rt=this._positionToInsert),X0(p.model,H,rt),this._positionToInsert.detach(),this._positionToInsert=null})},100)):Z.detach()}}d(82);class $1 extends Ca{constructor(r,l){super(l);const p=l.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(p("Save"),ch,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(p("Cancel"),F2,"ck-button-cancel","cancel"),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),E2({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element);const r=l=>l.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(this.urlInputView.element,"selectstart",(l,p)=>{p.stopPropagation()},{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const l=r(this);if(l)return this.urlInputView.errorText=l,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,l=new F_(this.locale,kg),p=l.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),l.label=r("Media URL"),l.infoText=this._urlInputViewInfoDefault,p.placeholder="https://example.com",p.on("input",()=>{l.infoText=p.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),l}_createButton(r,l,p,x){const Z=new qs(this.locale);return Z.set({label:r,icon:l,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),x&&Z.delegate("execute").to(this,x),Z}}class wp extends ko{static get requires(){return[Bd]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,l=r.commands.get("mediaEmbed"),p=r.plugins.get(Bd).registry;r.ui.componentFactory.add("mediaEmbed",x=>{const Z=v1(x),k=new $1((H=r.t,G=p,[rt=>{if(!rt.url.length)return H("The URL must not be empty.")},rt=>{if(!G.hasMedia(rt.url))return H("This media URL is not supported.")}]),r.locale);var H,G;return this._setUpDropdown(Z,k,l,r),this._setUpForm(Z,k,l),Z})}_setUpDropdown(r,l,p){const x=this.editor,Z=x.t,k=r.buttonView;function H(){x.editing.view.focus(),r.isOpen=!1}r.bind("isEnabled").to(p),r.panelView.children.add(l),k.set({label:Z("Insert media"),icon:'',tooltip:!0}),k.on("open",()=>{l.url=p.value||"",l.urlInputView.fieldView.select(),l.focus()},{priority:"low"}),r.on("submit",()=>{l.isValid()&&(x.execute("mediaEmbed",l.url),H())}),r.on("change:isOpen",()=>l.resetFormStatus()),r.on("cancel",()=>H())}_setUpForm(r,l,p){l.delegate("submit","cancel").to(r),l.urlInputView.bind("value").to(p,"value"),l.urlInputView.bind("isReadOnly").to(p,"isEnabled",x=>!x),l.saveButtonView.bind("isEnabled").to(p)}}function n4(b,r,l){const p=r.parent,x=l.createElement(b.type),Z=p.getChildIndex(r)+1;return l.insertChild(Z,x,p),x}function Hg(b){const r={},l=b.getStyle("mso-list");if(l){const p=l.match(/(^|\s+)l(\d+)/i),x=l.match(/\s*lfo(\d+)/i),Z=l.match(/\s*level(\d+)/i);p&&x&&Z&&(r.id=p[2],r.order=x[1],r.indent=Z[1])}return r}d(84);const Yg=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class c0{constructor(r){this.document=r}isActive(r){return Yg.test(r)}execute(r){const l=new hh(this.document);(function(p,x){for(const Z of p.getChildren())if(Z.is("element","b")&&"normal"===Z.getStyle("font-weight")){const k=p.getChildIndex(Z);x.remove(Z),x.insertChild(k,Z.getChildren(),p)}})(r.content,l),function(p,x){for(const Z of x.createRangeIn(p)){const k=Z.item;if(k.is("element","li")){const H=k.getChild(0);H.is("element","p")&&x.unwrapElement(H)}}}(r.content,l)}}function l6(b){return b.replace(/(\s+)<\/span>/g,(r,l)=>1===l.length?" ":Array(l.length+1).join("\xa0 ").substr(0,l.length))}const J2=//i,i4=/xmlns:o="urn:schemas-microsoft-com/i;class o4{constructor(r){this.document=r}isActive(r){return J2.test(r)||i4.test(r)}execute(r){const{body:l,stylesString:p}=function zg(b,r){const l=new DOMParser,p=l6(l6(function(G){const rt=G.match(/<\/body>(.*?)(<\/html>|$)/);return rt&&rt[1]&&(G=G.slice(0,rt.index)+G.slice(rt.index).replace(rt[1],"")),G}(b=b.replace(//)>-1||t[O].search(/\]>/)>-1||t[O].search(/!DOCTYPE/)>-1)&&(U=!1)):t[O].search(/-->/)>-1||t[O].search(/\]>/)>-1?(P+=t[O],U=!1):/^<\w/.exec(t[O-1])&&/^<\/\w/.exec(t[O])&&/^<[\w:\-\.\,]+/.exec(t[O-1])==/^<\/[\w:\-\.\,]+/.exec(t[O])[0].replace("/","")?(P+=t[O],U||w--):t[O].search(/<\w/)>-1&&-1==t[O].search(/<\//)&&-1==t[O].search(/\/>/)?P=P+=U?t[O]:L[w++]+t[O]:t[O].search(/<\w/)>-1&&t[O].search(/<\//)>-1?P=P+=U?t[O]:L[w]+t[O]:t[O].search(/<\//)>-1?P=P+=U?t[O]:L[--w]+t[O]:t[O].search(/\/>/)>-1?P=P+=U?t[O]:L[w]+t[O]:t[O].search(/<\?/)>-1||t[O].search(/xmlns\:/)>-1||t[O].search(/xmlns\=/)>-1?P+=L[w]+t[O]:P+=t[O];return"\n"==P[0]?P.slice(1):P},f.prototype.json=function(v,t){return t=t||this.step,typeof JSON>"u"?v:"string"==typeof v?JSON.stringify(JSON.parse(v),null,t):"object"==typeof v?JSON.stringify(v,null,t):v},f.prototype.css=function(v,g){var t=v.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),T=t.length,U=0,w="",P=0,O=g?W(g):this.shift;for(P=0;P/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},f.prototype.jsonmin=function(v){return typeof JSON>"u"?v:JSON.stringify(JSON.parse(v),null,0)},f.prototype.cssmin=function(v,g){return(g?v:v.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},f.prototype.sqlmin=function(v){return v.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},tt.exports=new f},67824:(tt,W,f)=>{"use strict";function u(d){for(var v in d)W.hasOwnProperty(v)||(W[v]=d[v])}Object.defineProperty(W,"__esModule",{value:!0}),u(f(95085)),u(f(26243)),u(f(91786)),u(f(30225)),u(f(76767)),u(f(30345)),u(f(15675)),u(f(86461)),u(f(58802)),u(f(33900)),u(f(88866)),u(f(94655)),u(f(4068)),u(f(33858)),u(f(98237)),u(f(83292))},95085:function(tt,W,f){"use strict";var t,u=this&&this.__extends||(t=function(T,U){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,P){w.__proto__=P}||function(w,P){for(var O in P)P.hasOwnProperty(O)&&(w[O]=P[O])})(T,U)},function(T,U){function w(){this.constructor=T}t(T,U),T.prototype=null===U?Object.create(U):(w.prototype=U.prototype,new w)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(15675),v=function(t){function T(U){var w=t.call(this)||this,O=U;return O.trigger&&(w.trigger=O.trigger),O.kick&&(w.kick=O.kick),O.drag&&(w.drag=O.drag),O.on&&(w.on=O.on),w.dragstart=w.dragStart=d.Layout.dragStart,w.dragend=w.dragEnd=d.Layout.dragEnd,w}return u(T,t),T.prototype.trigger=function(U){},T.prototype.kick=function(){},T.prototype.drag=function(){},T.prototype.on=function(U,w){return this},T}(d.Layout);W.LayoutAdaptor=v,W.adaptor=function g(t){return new v(t)}},83292:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(15675),d=f(76767);W.gridify=function v(T,U,w,P){T.cola.start(0,0,0,10,!1);var O=function g(T,U,w,P){T.forEach(function(L){L.routerNode={name:L.name,bounds:L.bounds.inflate(-w)}}),U.forEach(function(L){L.routerNode={bounds:L.bounds.inflate(-P),children:(typeof L.groups<"u"?L.groups.map(function(N){return T.length+N.id}):[]).concat(typeof L.leaves<"u"?L.leaves.map(function(N){return N.index}):[])}});var O=T.concat(U).map(function(L,N){return L.routerNode.id=N,L.routerNode});return new d.GridRouter(O,{getChildren:function(L){return L.children},getBounds:function(L){return L.bounds}},w-P)}(T.cola.nodes(),T.cola.groups(),w,P);return O.routeEdges(T.powerGraph.powerEdges,U,function(L){return L.source.routerNode.id},function(L){return L.target.routerNode.id})},W.powerGraphGridLayout=function t(T,U,w){var P;T.nodes.forEach(function(B,K){return B.index=K}),(new u.Layout).avoidOverlaps(!1).nodes(T.nodes).links(T.links).powerGraphGroups(function(B){(P=B).groups.forEach(function(K){return K.padding=w})});var O=T.nodes.length,L=[],N=T.nodes.slice(0);return N.forEach(function(B,K){return B.index=K}),P.groups.forEach(function(B){var K=B.index=B.id+O;N.push(B),typeof B.leaves<"u"&&B.leaves.forEach(function(et){return L.push({source:K,target:et.index})}),typeof B.groups<"u"&&B.groups.forEach(function(et){return L.push({source:K,target:et.id+O})})}),P.powerEdges.forEach(function(B){L.push({source:B.source.index,target:B.target.index})}),(new u.Layout).size(U).nodes(N).links(L).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new u.Layout).convergenceThreshold(.001).size(U).avoidOverlaps(!0).nodes(T.nodes).links(T.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(B){(P=B).groups.forEach(function(K){K.padding=w})}).start(50,0,100,0,!1),powerGraph:P}}},26243:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(49346),d=f(22487);W.d3adaptor=function v(t){return!t||function g(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new u.D3StyleLayoutAdaptor:new d.D3StyleLayoutAdaptor(t)}},49346:function(tt,W,f){"use strict";var t,u=this&&this.__extends||(t=function(T,U){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,P){w.__proto__=P}||function(w,P){for(var O in P)P.hasOwnProperty(O)&&(w[O]=P[O])})(T,U)},function(T,U){function w(){this.constructor=T}t(T,U),T.prototype=null===U?Object.create(U):(w.prototype=U.prototype,new w)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(15675),v=function(t){function T(){var U=t.call(this)||this;U.event=d3.dispatch(d.EventType[d.EventType.start],d.EventType[d.EventType.tick],d.EventType[d.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=d3.behavior.drag().origin(d.Layout.dragOrigin).on("dragstart.d3adaptor",d.Layout.dragStart).on("drag.d3adaptor",function(L){d.Layout.drag(L,d3.event),w.resume()}).on("dragend.d3adaptor",d.Layout.dragEnd);if(!arguments.length)return O;this.call(O)},U}return u(T,t),T.prototype.trigger=function(U){var w={type:d.EventType[U.type],alpha:U.alpha,stress:U.stress};this.event[w.type](w)},T.prototype.kick=function(){var U=this;d3.timer(function(){return t.prototype.tick.call(U)})},T.prototype.on=function(U,w){return this.event.on("string"==typeof U?U:d.EventType[U],w),this},T}(d.Layout);W.D3StyleLayoutAdaptor=v,W.d3adaptor=function g(){return new v}},22487:function(tt,W,f){"use strict";var g,u=this&&this.__extends||(g=function(t,T){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,w){U.__proto__=w}||function(U,w){for(var P in w)w.hasOwnProperty(P)&&(U[P]=w[P])})(t,T)},function(t,T){function U(){this.constructor=t}g(t,T),t.prototype=null===T?Object.create(T):(U.prototype=T.prototype,new U)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(15675),v=function(g){function t(T){var U=g.call(this)||this;U.d3Context=T,U.event=T.dispatch(d.EventType[d.EventType.start],d.EventType[d.EventType.tick],d.EventType[d.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=T.drag().subject(d.Layout.dragOrigin).on("start.d3adaptor",d.Layout.dragStart).on("drag.d3adaptor",function(L){d.Layout.drag(L,T.event),w.resume()}).on("end.d3adaptor",d.Layout.dragEnd);if(!arguments.length)return O;arguments[0].call(O)},U}return u(t,g),t.prototype.trigger=function(T){var U={type:d.EventType[T.type],alpha:T.alpha,stress:T.stress};this.event.call(U.type,U)},t.prototype.kick=function(){var T=this,U=this.d3Context.timer(function(){return g.prototype.tick.call(T)&&U.stop()})},t.prototype.on=function(T,U){return this.event.on("string"==typeof T?T:d.EventType[T],U),this},t}(d.Layout);W.D3StyleLayoutAdaptor=v},91786:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function(){function v(){this.locks={}}return v.prototype.add=function(g,t){this.locks[g]=t},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var g in this.locks)return!1;return!0},v.prototype.apply=function(g){for(var t in this.locks)g(Number(t),this.locks[t])},v}();W.Locks=f;var u=function(){function v(g,t,T){void 0===T&&(T=null),this.D=t,this.G=T,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new d,this.project=null,this.x=g,this.k=g.length;var U=this.n=g[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new f,this.minD=Number.MAX_VALUE;for(var P,w=U;w--;)for(P=U;--P>w;){var O=t[w][P];O>0&&O1e-9)break;var lt=this.offsetDir();for(U=0;U1&&Ct>Dt||!isFinite(Dt)){for(U=0;U1&&(Zt=1);var Rt=Dt*Dt,Gt=2*Zt*(Ct-Dt)/(Rt*Ct),Tt=Ct*Ct*Ct,Ut=2*-Zt/(Rt*Tt);for(isFinite(Gt)||console.log(Gt),U=0;U0?le-(ge+1)*mt:le-(ge-1)*mt)&&ct<=bt&&(this.scaleSnapByMaxH?(this.g[U][N]+=L*Bt*ct,this.H[U][N][N]+=L*Bt):(this.g[U][N]+=Bt*ct,this.H[U][N][N]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(qe,je){for(U=0;U0;)for(var w=t;w-- >0;)T(U,w)},v.prototype.matrixApply=function(g){v.mApply(this.k,this.n,g)},v.prototype.computeNextPosition=function(g,t){var T=this;this.computeDerivatives(g);var U=this.computeStepSize(this.g);if(this.stepAndProject(g,t,this.g,U),this.project){this.matrixApply(function(P,O){return T.e[P][O]=g[P][O]-t[P][O]});var w=this.computeStepSize(this.e);w=Math.max(.2,Math.min(w,1)),this.stepAndProject(g,t,this.e,w)}},v.prototype.run=function(g){for(var t=Number.MAX_VALUE,T=!1;!T&&g-- >0;){var U=this.rungeKutta();T=Math.abs(t/U-1)>16)/this.range},v.prototype.getNextBetween=function(g,t){return g+this.getNext()*(t-g)},v}();W.PseudoRandom=d},30225:function(tt,W,f){"use strict";var be,u=this&&this.__extends||(be=function(ge,Fe){return(be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,je){qe.__proto__=je}||function(qe,je){for(var Qt in je)je.hasOwnProperty(Qt)&&(qe[Qt]=je[Qt])})(ge,Fe)},function(ge,Fe){function qe(){this.constructor=ge}be(ge,Fe),ge.prototype=null===Fe?Object.create(Fe):(qe.prototype=Fe.prototype,new qe)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(4068),v=function be(){};W.Point=v;var g=function be(ge,Fe,qe,je){this.x1=ge,this.y1=Fe,this.x2=qe,this.y2=je};W.LineSegment=g;var t=function(be){function ge(){return null!==be&&be.apply(this,arguments)||this}return u(ge,be),ge}(v);function T(be,ge,Fe){return(ge.x-be.x)*(Fe.y-be.y)-(Fe.x-be.x)*(ge.y-be.y)}function U(be,ge,Fe){return T(be,ge,Fe)>0}function w(be,ge,Fe){return T(be,ge,Fe)<0}function B(be,ge){var Fe=ge.slice(0);return Fe.push(ge[0]),{rtan:K(be,Fe),ltan:et(be,Fe)}}function K(be,ge){var qe,je,Qt,ie,Fe=ge.length-1;if(w(be,ge[1],ge[0])&&!U(be,ge[Fe-1],ge[0]))return 0;for(qe=0,je=Fe;;){if(je-qe==1)return U(be,ge[qe],ge[je])?qe:je;if((ie=w(be,ge[(Qt=Math.floor((qe+je)/2))+1],ge[Qt]))&&!U(be,ge[Qt-1],ge[Qt]))return Qt;U(be,ge[qe+1],ge[qe])?ie||U(be,ge[qe],ge[Qt])?je=Qt:qe=Qt:ie&&w(be,ge[qe],ge[Qt])?je=Qt:qe=Qt}}function et(be,ge){var qe,je,Qt,ie,Fe=ge.length-1;if(U(be,ge[Fe-1],ge[0])&&!w(be,ge[1],ge[0]))return 0;for(qe=0,je=Fe;;){if(je-qe==1)return w(be,ge[qe],ge[je])?qe:je;if(ie=w(be,ge[(Qt=Math.floor((qe+je)/2))+1],ge[Qt]),U(be,ge[Qt-1],ge[Qt])&&!ie)return Qt;w(be,ge[qe+1],ge[qe])?ie?w(be,ge[qe],ge[Qt])?je=Qt:qe=Qt:je=Qt:ie?qe=Qt:U(be,ge[qe],ge[Qt])?je=Qt:qe=Qt}}function ct(be,ge,Fe,qe,je,Qt){var Ue,ie;ie=qe(be[Ue=Fe(ge[0],be)],ge);for(var Wt=!1;!Wt;){for(Wt=!0;Ue===be.length-1&&(Ue=0),!je(ge[ie],be[Ue],be[Ue+1]);)++Ue;for(;0===ie&&(ie=ge.length-1),!Qt(be[Ue],ge[ie],ge[ie-1]);)--ie,Wt=!1}return{t1:Ue,t2:ie}}function Ct(be,ge){return ct(be,ge,K,et,U,w)}W.PolyPoint=t,W.isLeft=T,W.ConvexHull=function P(be){var qe,ge=be.slice(0).sort(function(De,nn){return De.x!==nn.x?nn.x-De.x:nn.y-De.y}),Fe=be.length,Qt=ge[0].x;for(qe=1;qe=0&&ge[qe].x===Xt;qe--);for(Wt=qe+1,qe=Ue;++qe<=Wt;)if(!(T(ge[0],ge[Wt],ge[qe])>=0&&qe1&&!(T(ie[ie.length-2],ie[ie.length-1],ge[qe])>0);)ie.length-=1;0!=qe&&ie.push(ge[qe])}se!=Wt&&ie.push(ge[se]);var ae=ie.length;for(qe=Wt;--qe>=Ue;)if(!(T(ge[se],ge[Ue],ge[qe])>=0&&qe>Ue)){for(;ie.length>ae&&!(T(ie[ie.length-2],ie[ie.length-1],ge[qe])>0);)ie.length-=1;0!=qe&&ie.push(ge[qe])}}return ie},W.clockwiseRadialSweep=function O(be,ge,Fe){ge.slice(0).sort(function(qe,je){return Math.atan2(qe.y-be.y,qe.x-be.x)-Math.atan2(je.y-be.y,je.x-be.x)}).forEach(Fe)},W.tangent_PolyPolyC=ct,W.LRtangent_PolyPolyC=function lt(be,ge){var Fe=Ct(ge,be);return{t1:Fe.t2,t2:Fe.t1}},W.RLtangent_PolyPolyC=Ct,W.LLtangent_PolyPolyC=function Dt(be,ge){return ct(be,ge,et,et,w,w)},W.RRtangent_PolyPolyC=function Zt(be,ge){return ct(be,ge,K,K,U,U)};var Rt=function be(ge,Fe){this.t1=ge,this.t2=Fe};W.BiTangent=Rt;var Gt=function be(){};W.BiTangents=Gt;var Tt=function(be){function ge(){return null!==be&&be.apply(this,arguments)||this}return u(ge,be),ge}(v);W.TVGPoint=Tt;var Ut=function be(ge,Fe,qe,je){this.id=ge,this.polyid=Fe,this.polyvertid=qe,this.p=je,je.vv=this};W.VisibilityVertex=Ut;var bt=function(){function be(ge,Fe){this.source=ge,this.target=Fe}return be.prototype.length=function(){var ge=this.source.p.x-this.target.p.x,Fe=this.source.p.y-this.target.p.y;return Math.sqrt(ge*ge+Fe*Fe)},be}();W.VisibilityEdge=bt;var mt=function(){function be(ge,Fe){if(this.P=ge,this.V=[],this.E=[],Fe)this.V=Fe.V.slice(0),this.E=Fe.E.slice(0);else{for(var qe=ge.length,je=0;je0&&this.E.push(new bt(Qt[Ue-1].vv,Wt))}Qt.length>1&&this.E.push(new bt(Qt[0].vv,Qt[Qt.length-1].vv))}for(je=0;je0)return!0;return!1},be}();function Lt(be,ge){for(var Fe=[],qe=1,je=ge.length;qe=0&&hn>=0&&Ce<0&&bn>=0&&Oe>=0&&dn<0?je.ll=new Rt(Qt,Ue):nn<=0&&hn<=0&&Ce>0&&bn<=0&&Oe<=0&&dn>0?je.rr=new Rt(Qt,Ue):nn<=0&&hn>0&&Ce<=0&&bn>=0&&Oe<0&&dn>=0?je.rl=new Rt(Qt,Ue):nn>=0&&hn<0&&Ce>=0&&bn<=0&&Oe>0&&dn<=0&&(je.lr=new Rt(Qt,Ue))}return je}function le(be,ge){return!be.every(function(Fe){return!function kt(be,ge){for(var Fe=1,qe=ge.length;Fe0)return!0}return!1}},76767:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(4068),d=f(98237),v=f(33858),g=function w(P,O,L){this.id=P,this.rect=O,this.children=L,this.leaf=typeof L>"u"||0===L.length};W.NodeWrapper=g;var t=function w(P,O,L,N,B){void 0===N&&(N=null),void 0===B&&(B=null),this.id=P,this.x=O,this.y=L,this.node=N,this.line=B};W.Vert=t;var T=function(){function w(P,O){this.s=P,this.t=O;var L=w.findMatch(P,O),N=O.slice(0).reverse(),B=w.findMatch(P,N);L.length>=B.length?(this.length=L.length,this.si=L.si,this.ti=L.ti,this.reversed=!1):(this.length=B.length,this.si=B.si,this.ti=O.length-B.ti-B.length,this.reversed=!0)}return w.findMatch=function(P,O){for(var L=P.length,N=O.length,B={length:0,si:-1,ti:-1},K=new Array(L),et=0;etB.length&&(B.length=lt,B.si=et-lt+1,B.ti=ct-lt+1)}else K[et][ct]=0}return B},w.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},w}();W.LongestCommonSubsequence=T;var U=function(){function w(P,O,L){var N=this;void 0===L&&(L=12),this.originalnodes=P,this.groupPadding=L,this.leaves=null,this.nodes=P.map(function(Tt,Ut){return new g(Ut,O.getBounds(Tt),O.getChildren(Tt))}),this.leaves=this.nodes.filter(function(Tt){return Tt.leaf}),this.groups=this.nodes.filter(function(Tt){return!Tt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(Tt){return Tt.children.forEach(function(Ut){return N.nodes[Ut].parent=Tt})}),this.root={children:[]},this.nodes.forEach(function(Tt){typeof Tt.parent>"u"&&(Tt.parent=N.root,N.root.children.push(Tt.id)),Tt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(Tt,Ut){return N.getDepth(Tt)-N.getDepth(Ut)}),this.backToFront.slice(0).reverse().filter(function(Tt){return!Tt.leaf}).forEach(function(Tt){var Ut=u.Rectangle.empty();Tt.children.forEach(function(bt){return Ut=Ut.union(N.nodes[bt].rect)}),Tt.rect=Ut.inflate(N.groupPadding)});var K=this.midPoints(this.cols.map(function(Tt){return Tt.pos})),et=this.midPoints(this.rows.map(function(Tt){return Tt.pos})),ct=K[0],lt=K[K.length-1],Ct=et[0],Dt=et[et.length-1],Zt=this.rows.map(function(Tt){return{x1:ct,x2:lt,y1:Tt.pos,y2:Tt.pos}}).concat(et.map(function(Tt){return{x1:ct,x2:lt,y1:Tt,y2:Tt}})),Rt=this.cols.map(function(Tt){return{x1:Tt.pos,x2:Tt.pos,y1:Ct,y2:Dt}}).concat(K.map(function(Tt){return{x1:Tt,x2:Tt,y1:Ct,y2:Dt}})),Gt=Zt.concat(Rt);Gt.forEach(function(Tt){return Tt.verts=[]}),this.verts=[],this.edges=[],Zt.forEach(function(Tt){return Rt.forEach(function(Ut){var bt=new t(N.verts.length,Ut.x1,Tt.y1);Tt.verts.push(bt),Ut.verts.push(bt),N.verts.push(bt);for(var mt=N.backToFront.length;mt-- >0;){var Lt=N.backToFront[mt],Bt=Lt.rect,kt=Math.abs(bt.x-Bt.cx()),le=Math.abs(bt.y-Bt.cy());if(kt0;){var N=L.filter(function(K){return K.rect["overlap"+P.toUpperCase()](L[0].rect)}),B={nodes:N,pos:this.avg(N.map(function(K){return K.rect["c"+P]()}))};O.push(B),B.nodes.forEach(function(K){return L.splice(L.indexOf(K),1)})}return O.sort(function(K,et){return K.pos-et.pos}),O},w.prototype.getDepth=function(P){for(var O=0;P.parent!==this.root;)O++,P=P.parent;return O},w.prototype.midPoints=function(P){for(var O=P[1]-P[0],L=[P[0]-O/2],N=1;N.1)&&Ct.push(Dt={pos:ct[0][O],segments:[]}),Dt.segments.push(ct)}return Ct},w.nudgeSegs=function(P,O,L,N,B,K){var et=N.length;if(!(et<=1)){for(var ct=N.map(function(Lt){return new d.Variable(Lt[0][P])}),lt=[],Ct=0;Ct=0&<.push(new d.Constraint(ct[Ut],ct[bt],K))}new d.Solver(ct,lt).solve(),ct.forEach(function(Lt,Bt){var kt=N[Bt],le=Lt.position();kt[0][P]=kt[1][P]=le;var Vt=L[kt.edgeid];kt.i>0&&(Vt[kt.i-1][1][P]=le),kt.iMath.PI||B<-Math.PI)&&(B=N-L),B},w.isLeft=function(P,O,L){return(O.x-P.x)*(L.y-P.y)-(O.y-P.y)*(L.x-P.x)<=0},w.getOrder=function(P){for(var O={},L=0;L"u"&&(O[N.l]={}),O[N.l][N.r]=!0}return function(B,K){return typeof O[B]<"u"&&O[B][K]}},w.orderEdges=function(P){for(var O=[],L=0;L=B.length||et.ti+et.length>=K.length)){O.push({l:L,r:N});continue}et.si+et.length>=B.length||et.ti+et.length>=K.length?(ct=B[et.si+1],Ct=B[et.si-1],lt=K[et.ti-1]):(ct=B[et.si+et.length-2],lt=B[et.si+et.length],Ct=K[et.ti+et.length]),w.isLeft(ct,lt,Ct)?O.push({l:N,r:L}):O.push({l:L,r:N})}}return w.getOrder(O)},w.makeSegments=function(P){function O(lt){return{x:lt.x,y:lt.y}}for(var N=[],B=O(P[0]),K=1;K1&&be>1?1e3:0}).reverse().map(function(bt){return L.verts[bt]});return Ut.push(this.nodes[B.id].ports[0]),Ut.filter(function(bt,mt){return!(mt0&&bt.node===B&&Ut[mt-1].node===B)})},w.getRoutePath=function(P,O,L,N){var et,ct,lt,Vt,be,B={routepath:"M "+P[0][0].x+" "+P[0][0].y+" ",arrowpath:""};if(P.length>1)for(var K=0;K0?ct-=Ct/Math.abs(Ct)*O:lt-=Dt/Math.abs(Dt)*O,B.routepath+="L "+ct+" "+lt+" ";var Zt=P[K+1],Rt=Zt[0].x,Gt=Zt[0].y;Ct=Zt[1].x-Rt,Dt=Zt[1].y-Gt;var mt,Lt,bt=w.angleBetween2Lines(et,Zt)<0?1:0;Math.abs(Ct)>0?(mt=Rt+Ct/Math.abs(Ct)*O,Lt=Gt):(mt=Rt,Lt=Gt+Dt/Math.abs(Dt)*O);var Bt=Math.abs(mt-ct),kt=Math.abs(Lt-lt);B.routepath+="A "+Bt+" "+kt+" 0 0 "+bt+" "+mt+" "+Lt+" "}else{var le=[ct,lt];Math.abs(Ct)>0?(Vt=[ct-=Ct/Math.abs(Ct)*N,lt+L],be=[ct,lt-L]):(Vt=[ct+L,lt-=Dt/Math.abs(Dt)*N],be=[ct-L,lt]),B.routepath+="L "+ct+" "+lt+" ",N>0&&(B.arrowpath="M "+le[0]+" "+le[1]+" L "+Vt[0]+" "+Vt[1]+" L "+be[0]+" "+be[1])}}else Ct=(ct=(et=P[0])[1].x)-et[0].x,Dt=(lt=et[1].y)-et[0].y,le=[ct,lt],Math.abs(Ct)>0?(Vt=[ct-=Ct/Math.abs(Ct)*N,lt+L],be=[ct,lt-L]):(Vt=[ct+L,lt-=Dt/Math.abs(Dt)*N],be=[ct-L,lt]),B.routepath+="L "+ct+" "+lt+" ",N>0&&(B.arrowpath="M "+le[0]+" "+le[1]+" L "+Vt[0]+" "+Vt[1]+" L "+be[0]+" "+be[1]);return B},w}();W.GridRouter=U},30345:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f_GOLDEN_SECTION=(1+Math.sqrt(5))/2;W.applyPacking=function u(v,g,t,K,B,w){void 0===B&&(B=1),void 0===w&&(w=!0);var L=g,N=t,et=(B=typeof B<"u"?B:1,K=typeof K<"u"?K:0,0),ct=0,lt=0,Ct=0,Dt=[];function Tt(Lt,Bt){Dt=[],et=0,ct=0,Ct=0;for(var kt=0;kt=Lt.height&&Dt[le].x+Dt[le].width+Lt.width+10-Bt<=1e-4){kt=Dt[le];break}Dt.push(Lt),void 0!==kt?(Lt.x=kt.x+kt.width+10,Lt.y=kt.bottom,Lt.space_left=Lt.height,Lt.bottom=Lt.y,kt.space_left-=Lt.height+10,kt.bottom+=Lt.height+10):(Lt.y=Ct,Ct+=Lt.height+10,Lt.x=0,Lt.bottom=Lt.y,Lt.space_left=Lt.height),Lt.y+Lt.height-ct>-1e-4&&(ct=Lt.y+Lt.height-0),Lt.x+Lt.width-et>-1e-4&&(et=Lt.x+Lt.width-0)}0!=v.length&&(function Zt(Lt){Lt.forEach(function(kt){!function Bt(kt){var le=Number.MAX_VALUE,Vt=Number.MAX_VALUE,be=0,ge=0;kt.array.forEach(function(Fe){var qe=typeof Fe.width<"u"?Fe.width:K,je=typeof Fe.height<"u"?Fe.height:K;qe/=2,je/=2,be=Math.max(Fe.x+qe,be),le=Math.min(Fe.x-qe,le),ge=Math.max(Fe.y+je,ge),Vt=Math.min(Fe.y-je,Vt)}),kt.width=be-le,kt.height=ge-Vt}(kt)})}(v),function Gt(Lt,Bt){var kt=Number.POSITIVE_INFINITY,le=0;Lt.sort(function(se,Xt){return Xt.height-se.height});for(var Vt=ie=lt=Lt.reduce(function(se,Xt){return se.widthlt||Ue>1e-4;){if(1!=je){var ie=be-(be-Vt)/f_GOLDEN_SECTION;Fe=Tt(Lt,ie)}if(0!=je){var Wt=Vt+(be-Vt)/f_GOLDEN_SECTION;qe=Tt(Lt,Wt)}if(Qt=Math.abs(ie-Wt),Ue=Math.abs(Fe-qe),Feqe?(Vt=ie,ie=Wt,Fe=qe,je=1):(be=Wt,Wt=ie,qe=Fe,je=0),ge++>100)break}Tt(Lt,le)}(v),w&&function Rt(Lt){Lt.forEach(function(Bt){var kt={x:0,y:0};Bt.array.forEach(function(be){kt.x+=be.x,kt.y+=be.y}),kt.x/=Bt.array.length,kt.y/=Bt.array.length;var Vt_x=Bt.x-(kt.x-Bt.width/2)+L/2-et/2,Vt_y=Bt.y-(kt.y-Bt.height/2)+N/2-ct/2;Bt.array.forEach(function(be){be.x+=Vt_x,be.y+=Vt_y})})}(v))},W.separateGraphs=function d(v,g){for(var t={},T={},U=[],w=0,P=0;P{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var w,L,u=f(33900),d=f(58802),v=f(91786),g=f(4068),t=f(33858),T=f(30225),U=f(30345);function P(L){return typeof L.leaves<"u"||typeof L.groups<"u"}(L=w=W.EventType||(W.EventType={}))[L.start=0]="start",L[L.tick=1]="tick",L[L.end=2]="end";var O=function(){function L(){var N=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:L.getSourceIndex,getTargetIndex:L.getTargetIndex,setLength:L.setLinkLength,getType:function(B){return"function"==typeof N._linkType?N._linkType(B):0}}}return L.prototype.on=function(N,B){return this.event||(this.event={}),"string"==typeof N?this.event[w[N]]=B:this.event[N]=B,this},L.prototype.trigger=function(N){this.event&&typeof this.event[N.type]<"u"&&this.event[N.type](N)},L.prototype.kick=function(){for(;!this.tick(););},L.prototype.tick=function(){if(this._alpha"u"||typeof K.py>"u")&&(K.px=K.x,K.py=K.y),this._descent.locks.add(et,[K.px,K.py]));var lt=this._descent.rungeKutta();return 0===lt?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=lt),this._lastStress=lt,this.updateNodePositions(),this.trigger({type:w.tick,alpha:this._alpha,stress:this._lastStress}),!1},L.prototype.updateNodePositions=function(){for(var K,N=this._descent.x[0],B=this._descent.x[1],et=this._nodes.length;et--;)(K=this._nodes[et]).x=N[et],K.y=B[et]},L.prototype.nodes=function(N){if(!N){if(0===this._nodes.length&&this._links.length>0){var B=0;this._links.forEach(function(et){B=Math.max(B,et.source,et.target)}),this._nodes=new Array(++B);for(var K=0;K"u"&&(K.padding=1),typeof K.leaves<"u"&&K.leaves.forEach(function(et,ct){"number"==typeof et&&((K.leaves[ct]=B._nodes[et]).parent=K)}),typeof K.groups<"u"&&K.groups.forEach(function(et,ct){"number"==typeof et&&((K.groups[ct]=B._groups[et]).parent=K)})}),this._rootGroup.leaves=this._nodes.filter(function(K){return typeof K.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(K){return typeof K.parent>"u"}),this):this._groups},L.prototype.powerGraphGroups=function(N){var B=u.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(B.groups),N(B),this},L.prototype.avoidOverlaps=function(N){return arguments.length?(this._avoidOverlaps=N,this):this._avoidOverlaps},L.prototype.handleDisconnected=function(N){return arguments.length?(this._handleDisconnected=N,this):this._handleDisconnected},L.prototype.flowLayout=function(N,B){return arguments.length||(N="y"),this._directedLinkConstraints={axis:N,getMinSeparation:"number"==typeof B?function(){return B}:B},this},L.prototype.links=function(N){return arguments.length?(this._links=N,this):this._links},L.prototype.constraints=function(N){return arguments.length?(this._constraints=N,this):this._constraints},L.prototype.distanceMatrix=function(N){return arguments.length?(this._distanceMatrix=N,this):this._distanceMatrix},L.prototype.size=function(N){return N?(this._canvasSize=N,this):this._canvasSize},L.prototype.defaultNodeSize=function(N){return N?(this._defaultNodeSize=N,this):this._defaultNodeSize},L.prototype.groupCompactness=function(N){return N?(this._groupCompactness=N,this):this._groupCompactness},L.prototype.linkDistance=function(N){return N?(this._linkDistance="function"==typeof N?N:+N,this._linkLengthCalculator=null,this):this._linkDistance},L.prototype.linkType=function(N){return this._linkType=N,this},L.prototype.convergenceThreshold=function(N){return N?(this._threshold="function"==typeof N?N:+N,this):this._threshold},L.prototype.alpha=function(N){return arguments.length?(N=+N,this._alpha?this._alpha=N>0?N:0:N>0&&(this._running||(this._running=!0,this.trigger({type:w.start,alpha:this._alpha=N}),this.kick())),this):this._alpha},L.prototype.getLinkLength=function(N){return"function"==typeof this._linkDistance?+this._linkDistance(N):this._linkDistance},L.setLinkLength=function(N,B){N.length=B},L.prototype.getLinkType=function(N){return"function"==typeof this._linkType?this._linkType(N):0},L.prototype.symmetricDiffLinkLengths=function(N,B){var K=this;return void 0===B&&(B=1),this.linkDistance(function(et){return N*et.length}),this._linkLengthCalculator=function(){return d.symmetricDiffLinkLengths(K._links,K.linkAccessor,B)},this},L.prototype.jaccardLinkLengths=function(N,B){var K=this;return void 0===B&&(B=1),this.linkDistance(function(et){return N*et.length}),this._linkLengthCalculator=function(){return d.jaccardLinkLengths(K._links,K.linkAccessor,B)},this},L.prototype.start=function(N,B,K,et,ct,lt){var Ct=this;void 0===N&&(N=0),void 0===B&&(B=0),void 0===K&&(K=0),void 0===et&&(et=0),void 0===ct&&(ct=!0),void 0===lt&&(lt=!0);var le,Rt=this.nodes().length,Gt=Rt+2*this._groups.length,Ut=this._canvasSize[0],bt=this._canvasSize[1],mt=new Array(Gt),Lt=new Array(Gt),Bt=null,kt=this._avoidOverlaps;this._nodes.forEach(function(Qt,Ue){Qt.index=Ue,typeof Qt.x>"u"&&(Qt.x=Ut/2,Qt.y=bt/2),mt[Ue]=Qt.x,Lt[Ue]=Qt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?le=this._distanceMatrix:(le=new t.Calculator(Gt,this._links,L.getSourceIndex,L.getTargetIndex,function(Qt){return Ct.getLinkLength(Qt)}).DistanceMatrix(),Bt=v.Descent.createSquareMatrix(Gt,function(){return 2}),this._links.forEach(function(Qt){"number"==typeof Qt.source&&(Qt.source=Ct._nodes[Qt.source]),"number"==typeof Qt.target&&(Qt.target=Ct._nodes[Qt.target])}),this._links.forEach(function(Qt){var Ue=L.getSourceIndex(Qt),ie=L.getTargetIndex(Qt);Bt[Ue][ie]=Bt[ie][Ue]=Qt.weight||1}));var Vt=v.Descent.createSquareMatrix(Gt,function(Qt,Ue){return le[Qt][Ue]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Dt=Rt;this._groups.forEach(function(Ue){(function(Ue,ie,Wt,se){Bt[Ue][ie]=Bt[ie][Ue]=Wt,Vt[Ue][ie]=Vt[ie][Ue]=.1})(Dt,Dt+1,Ct._groupCompactness),mt[Dt]=0,Lt[Dt++]=0,mt[Dt]=0,Lt[Dt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var ge=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,ge=ge.concat(d.generateDirectedEdgeConstraints(Rt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([mt,Lt],Vt),this._descent.locks.clear(),Dt=0;Dt0&&(this._descent.project=new g.Projection(this._nodes,this._groups,this._rootGroup,ge).projectFunctions()),this._descent.run(B),this.separateOverlappingComponents(Ut,bt,lt),this.avoidOverlaps(kt),kt&&(this._nodes.forEach(function(Qt,Ue){Qt.x=mt[Ue],Qt.y=Lt[Ue]}),this._descent.project=new g.Projection(this._nodes,this._groups,this._rootGroup,ge,!0).projectFunctions(),this._nodes.forEach(function(Qt,Ue){mt[Ue]=Qt.x,Lt[Ue]=Qt.y})),this._descent.G=Bt,this._descent.run(K),et){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=Rt,this._descent.scaleSnapByMaxH=Rt!=Gt;var je=v.Descent.createSquareMatrix(Gt,function(Qt,Ue){return Qt>=Rt||Ue>=Rt?Bt[Qt][Ue]:0});this._descent.G=je,this._descent.run(et)}return this.updateNodePositions(),this.separateOverlappingComponents(Ut,bt,lt),ct?this.resume():this},L.prototype.initialLayout=function(N,B,K){if(this._groups.length>0&&N>0){var et=this._nodes.length,ct=this._links.map(function(Ct){return{source:Ct.source.index,target:Ct.target.index}}),lt=this._nodes.map(function(Ct){return{index:Ct.index}});this._groups.forEach(function(Ct,Dt){lt.push({index:Ct.index=et+Dt})}),this._groups.forEach(function(Ct,Dt){typeof Ct.leaves<"u"&&Ct.leaves.forEach(function(Zt){return ct.push({source:Ct.index,target:Zt.index})}),typeof Ct.groups<"u"&&Ct.groups.forEach(function(Zt){return ct.push({source:Ct.index,target:Zt.index})})}),(new L).size(this.size()).nodes(lt).links(ct).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(N,0,0,0,!1),this._nodes.forEach(function(Ct){B[Ct.index]=lt[Ct.index].x,K[Ct.index]=lt[Ct.index].y})}else this._descent.run(N)},L.prototype.separateOverlappingComponents=function(N,B,K){var et=this;if(void 0===K&&(K=!0),!this._distanceMatrix&&this._handleDisconnected){var ct=this._descent.x[0],lt=this._descent.x[1];this._nodes.forEach(function(Dt,Zt){Dt.x=ct[Zt],Dt.y=lt[Zt]});var Ct=U.separateGraphs(this._nodes,this._links);U.applyPacking(Ct,N,B,this._defaultNodeSize,1,K),this._nodes.forEach(function(Dt,Zt){et._descent.x[0][Zt]=Dt.x,et._descent.x[1][Zt]=Dt.y,Dt.bounds&&(Dt.bounds.setXCentre(Dt.x),Dt.bounds.setYCentre(Dt.y))})}},L.prototype.resume=function(){return this.alpha(.1)},L.prototype.stop=function(){return this.alpha(0)},L.prototype.prepareEdgeRouting=function(N){void 0===N&&(N=0),this._visibilityGraph=new T.TangentVisibilityGraph(this._nodes.map(function(B){return B.bounds.inflate(-N).vertices()}))},L.prototype.routeEdge=function(N,B,K){void 0===B&&(B=5);var et=[],ct=new T.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),lt={x:N.source.x,y:N.source.y},Ct={x:N.target.x,y:N.target.y},Dt=ct.addPoint(lt,N.source.index),Zt=ct.addPoint(Ct,N.target.index);ct.addEdgeIfVisible(lt,Ct,N.source.index,N.target.index),typeof K<"u"&&K(ct);var bt=new t.Calculator(ct.V.length,ct.E,function(Vt){return Vt.source.id},function(Vt){return Vt.target.id},function(Vt){return Vt.length()}).PathFromNodeToNode(Dt.id,Zt.id);if(1===bt.length||bt.length===ct.V.length){var mt=g.makeEdgeBetween(N.source.innerBounds,N.target.innerBounds,B);et=[mt.sourceIntersection,mt.arrowStart]}else{for(var Lt=bt.length-2,Bt=ct.V[bt[Lt]].p,kt=ct.V[bt[0]].p,le=(et=[N.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Lt);le>=0;--le)et.push(ct.V[bt[le]].p);et.push(g.makeEdgeTo(kt,N.target.innerBounds,B))}return et},L.getSourceIndex=function(N){return"number"==typeof N.source?N.source:N.source.index},L.getTargetIndex=function(N){return"number"==typeof N.target?N.target:N.target.index},L.linkId=function(N){return L.getSourceIndex(N)+"-"+L.getTargetIndex(N)},L.dragStart=function(N){P(N)?L.storeOffset(N,L.dragOrigin(N)):(L.stopNode(N),N.fixed|=2)},L.stopNode=function(N){N.px=N.x,N.py=N.y},L.storeOffset=function(N,B){typeof N.leaves<"u"&&N.leaves.forEach(function(K){K.fixed|=2,L.stopNode(K),K._dragGroupOffsetX=K.x-B.x,K._dragGroupOffsetY=K.y-B.y}),typeof N.groups<"u"&&N.groups.forEach(function(K){return L.storeOffset(K,B)})},L.dragOrigin=function(N){return P(N)?{x:N.bounds.cx(),y:N.bounds.cy()}:N},L.drag=function(N,B){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(K){N.bounds.setXCentre(B.x),N.bounds.setYCentre(B.y),K.px=K._dragGroupOffsetX+B.x,K.py=K._dragGroupOffsetY+B.y}),typeof N.groups<"u"&&N.groups.forEach(function(K){return L.drag(K,B)})):(N.px=B.x,N.py=B.y)},L.dragEnd=function(N){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(B){L.dragEnd(B),delete B._dragGroupOffsetX,delete B._dragGroupOffsetY}),typeof N.groups<"u"&&N.groups.forEach(L.dragEnd)):N.fixed&=-7},L.mouseOver=function(N){N.fixed|=4,N.px=N.x,N.py=N.y},L.mouseOut=function(N){N.fixed&=-5},L}();W.Layout=O},86461:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(33858),d=f(91786),v=f(4068),g=f(58802),t=function(){function P(O,L){this.source=O,this.target=L}return P.prototype.actualLength=function(O){var L=this;return Math.sqrt(O.reduce(function(N,B){var K=B[L.target]-B[L.source];return N+K*K},0))},P}();W.Link3D=t,W.Node3D=function P(O,L,N){void 0===O&&(O=0),void 0===L&&(L=0),void 0===N&&(N=0),this.x=O,this.y=L,this.z=N};var U=function(){function P(O,L,N){var B=this;void 0===N&&(N=1),this.nodes=O,this.links=L,this.idealLinkLength=N,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(P.k);for(var K=0;K"u"&&(et[Dt]=Math.random())}B.result[0][ct]=et.x,B.result[1][ct]=et.y,B.result[2][ct]=et.z})}return P.prototype.linkLength=function(O){return O.actualLength(this.result)},P.prototype.start=function(O){var L=this;void 0===O&&(O=100);var N=this.nodes.length,B=new w;this.useJaccardLinkLengths&&g.jaccardLinkLengths(this.links,B,1.5),this.links.forEach(function(Dt){return Dt.length*=L.idealLinkLength});var K=new u.Calculator(N,this.links,function(Dt){return Dt.source},function(Dt){return Dt.target},function(Dt){return Dt.length}).DistanceMatrix(),et=d.Descent.createSquareMatrix(N,function(Dt,Zt){return K[Dt][Zt]}),ct=d.Descent.createSquareMatrix(N,function(){return 2});this.links.forEach(function(Dt){var Zt=Dt.source,Rt=Dt.target;return ct[Zt][Rt]=ct[Rt][Zt]=1}),this.descent=new d.Descent(this.result,et),this.descent.threshold=.001,this.descent.G=ct,this.constraints&&(this.descent.project=new v.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var lt=0;lt{"use strict";function f(w,P){var O={};for(var L in w)O[L]={};for(var L in P)O[L]={};return Object.keys(O).length}function u(w,P){var O=0;for(var L in w)typeof P[L]<"u"&&++O;return O}function v(w,P,O,L){var N=function d(w,P){var O={},L=function(N,B){typeof O[N]>"u"&&(O[N]={}),O[N][B]={}};return w.forEach(function(N){var B=P.getSourceIndex(N),K=P.getTargetIndex(N);L(B,K),L(K,B)}),O}(w,L);w.forEach(function(B){var K=N[L.getSourceIndex(B)],et=N[L.getTargetIndex(B)];L.setLength(B,1+P*O(K,et))})}function U(w,P,O){var L=[],N=0,B=[],K=[];function et(bt){bt.index=bt.lowlink=N++,B.push(bt),bt.onStack=!0;for(var mt=0,Lt=bt.out;mt"u"?(et(Bt),bt.lowlink=Math.min(bt.lowlink,Bt.lowlink)):Bt.onStack&&(bt.lowlink=Math.min(bt.lowlink,Bt.index))}if(bt.lowlink===bt.index){for(var kt=[];B.length&&((Bt=B.pop()).onStack=!1,kt.push(Bt),Bt!==bt););K.push(kt.map(function(le){return le.id}))}}for(var ct=0;ct"u"&&et(Ut)}return K}Object.defineProperty(W,"__esModule",{value:!0}),W.symmetricDiffLinkLengths=function g(w,P,O){void 0===O&&(O=1),v(w,O,function(L,N){return Math.sqrt(f(L,N)-u(L,N))},P)},W.jaccardLinkLengths=function t(w,P,O){void 0===O&&(O=1),v(w,O,function(L,N){return Math.min(Object.keys(L).length,Object.keys(N).length)<1.1?0:u(L,N)/f(L,N)},P)},W.generateDirectedEdgeConstraints=function T(w,P,O,L){var N=U(w,P,L),B={};N.forEach(function(et,ct){return et.forEach(function(lt){return B[lt]=ct})});var K=[];return P.forEach(function(et){var ct=L.getSourceIndex(et),lt=L.getTargetIndex(et);B[ct]!==B[lt]&&K.push({axis:O,left:ct,right:lt,gap:L.getMinSeparation(et)})}),K},W.stronglyConnectedComponents=U},33900:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function P(O,L,N){this.source=O,this.target=L,this.type=N};W.PowerEdge=f;var u=function(){function P(O,L,N,B){var K=this;if(this.linkAccessor=N,this.modules=new Array(O),this.roots=[],B)this.initModulesFromGroup(B);else{this.roots.push(new t);for(var et=0;et=this.R))return this.merge(N.a,N.b,O),!0}},P.prototype.nEdges=function(O,L){var N=O.incoming.intersection(L.incoming),B=O.outgoing.intersection(L.outgoing);return this.R-N.count()-B.count()},P.prototype.getGroupHierarchy=function(O){var L=this,N=[];return d(this.roots[0],{},N),this.allEdges().forEach(function(et){var ct=L.modules[et.source],lt=L.modules[et.target];O.push(new f(typeof ct.gid>"u"?et.source:N[ct.gid],typeof lt.gid>"u"?et.target:N[lt.gid],et.type))}),N},P.prototype.allEdges=function(){var O=[];return P.getEdges(this.roots[0],O),O},P.getEdges=function(O,L){O.forAll(function(N){N.getEdges(L),P.getEdges(N.children,L)})},P}();function d(P,O,L){P.forAll(function(N){if(N.isLeaf())O.leaves||(O.leaves=[]),O.leaves.push(N.id);else{var B=O;if(N.gid=L.length,!N.isIsland()||N.isPredefined()){if(B={id:N.gid},N.isPredefined())for(var K in N.definition)B[K]=N.definition[K];O.groups||(O.groups=[]),O.groups.push(N.gid),L.push(B)}d(N.children,B,L)}})}W.Configuration=u;var v=function(){function P(O,L,N,B,K){void 0===L&&(L=new T),void 0===N&&(N=new T),void 0===B&&(B=new t),this.id=O,this.outgoing=L,this.incoming=N,this.children=B,this.definition=K}return P.prototype.getEdges=function(O){var L=this;this.outgoing.forAll(function(N,B){N.forAll(function(K){O.push(new f(L.id,K.id,B))})})},P.prototype.isLeaf=function(){return 0===this.children.count()},P.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},P.prototype.isPredefined=function(){return typeof this.definition<"u"},P}();W.Module=v;var t=function(){function P(){this.table={}}return P.prototype.count=function(){return Object.keys(this.table).length},P.prototype.intersection=function(O){var L=new P;return L.table=function g(P,O){var L={};for(var N in P)N in O&&(L[N]=P[N]);return L}(this.table,O.table),L},P.prototype.intersectionCount=function(O){return this.intersection(O).count()},P.prototype.contains=function(O){return O in this.table},P.prototype.add=function(O){this.table[O.id]=O},P.prototype.remove=function(O){delete this.table[O.id]},P.prototype.forAll=function(O){for(var L in this.table)O(this.table[L])},P.prototype.modules=function(){var O=[];return this.forAll(function(L){L.isPredefined()||O.push(L)}),O},P}();W.ModuleSet=t;var T=function(){function P(){this.sets={},this.n=0}return P.prototype.count=function(){return this.n},P.prototype.contains=function(O){var L=!1;return this.forAllModules(function(N){!L&&N.id==O&&(L=!0)}),L},P.prototype.add=function(O,L){(O in this.sets?this.sets[O]:this.sets[O]=new t).add(L),++this.n},P.prototype.remove=function(O,L){var N=this.sets[O];N.remove(L),0===N.count()&&delete this.sets[O],--this.n},P.prototype.forAll=function(O){for(var L in this.sets)O(this.sets[L],Number(L))},P.prototype.forAllModules=function(O){this.forAll(function(L,N){return L.forAll(O)})},P.prototype.intersection=function(O){var L=new P;return this.forAll(function(N,B){if(B in O.sets){var K=N.intersection(O.sets[B]),et=K.count();et>0&&(L.sets[B]=K,L.n+=et)}}),L},P}();W.LinkSets=T,W.getGroups=function w(P,O,L,N){for(var K=new u(P.length,O,L,N);K.greedyMerge(););var et=[],ct=K.getGroupHierarchy(et);return et.forEach(function(lt){var Ct=function(Dt){var Zt=lt[Dt];"number"==typeof Zt&&(lt[Dt]=P[Zt])};Ct("source"),Ct("target")}),{groups:ct,powerEdges:et}}},88866:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function(){function d(v){this.elem=v,this.subheaps=[]}return d.prototype.toString=function(v){for(var g="",t=!1,T=0;T0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(T){for(var U=this._root;null!==U;){var w=this._comparator(T,U.data);if(0===w)return U.data;U=U.get_child(w>0)}return null},t.prototype.lowerBound=function(T){return this._bound(T,this._comparator)},t.prototype.upperBound=function(T){var U=this._comparator;return this._bound(T,function w(P,O){return U(O,P)})},t.prototype.min=function(){var T=this._root;if(null===T)return null;for(;null!==T.left;)T=T.left;return T.data},t.prototype.max=function(){var T=this._root;if(null===T)return null;for(;null!==T.right;)T=T.right;return T.data},t.prototype.iterator=function(){return new d(this)},t.prototype.each=function(T){for(var w,U=this.iterator();null!==(w=U.next());)T(w)},t.prototype.reach=function(T){for(var w,U=this.iterator();null!==(w=U.prev());)T(w)},t.prototype._bound=function(T,U){for(var w=this._root,P=this.iterator();null!==w;){var O=this._comparator(T,w.data);if(0===O)return P._cursor=w,P;P._ancestors.push(w),w=w.get_child(O>0)}for(var L=P._ancestors.length-1;L>=0;--L)if(U(T,(w=P._ancestors[L]).data)>0)return P._cursor=w,P._ancestors.length=L,P;return P._ancestors.length=0,P},t}();W.TreeBase=u;var d=function(){function t(T){this._tree=T,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var T=this._tree._root;null!==T&&this._minNode(T)}else if(null===this._cursor.right){var U;do{if(U=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===U)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var T=this._tree._root;null!==T&&this._maxNode(T)}else if(null===this._cursor.left){var U;do{if(U=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===U)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(T){for(;null!==T.left;)this._ancestors.push(T),T=T.left;this._cursor=T},t.prototype._maxNode=function(T){for(;null!==T.right;)this._ancestors.push(T),T=T.right;this._cursor=T},t}();W.Iterator=d;var v=function(){function t(T){this.data=T,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(T){return T?this.right:this.left},t.prototype.set_child=function(T,U){T?this.right=U:this.left=U},t}(),g=function(t){function T(U){var w=t.call(this)||this;return w._root=null,w._comparator=U,w.size=0,w}return f(T,t),T.prototype.insert=function(U){var w=!1;if(null===this._root)this._root=new v(U),w=!0,this.size++;else{var P=new v(void 0),O=!1,L=!1,N=null,B=P,K=null,et=this._root;for(B.right=this._root;;){if(null===et?(et=new v(U),K.set_child(O,et),w=!0,this.size++):T.is_red(et.left)&&T.is_red(et.right)&&(et.red=!0,et.left.red=!1,et.right.red=!1),T.is_red(et)&&T.is_red(K)){var ct=B.right===N;et===K.get_child(L)?B.set_child(ct,T.single_rotate(N,!L)):B.set_child(ct,T.double_rotate(N,!L))}var lt=this._comparator(et.data,U);if(0===lt)break;L=O,null!==N&&(B=N),N=K,K=et,et=et.get_child(O=lt<0)}this._root=P.right}return this._root.red=!1,w},T.prototype.remove=function(U){if(null===this._root)return!1;var w=new v(void 0),P=w;P.right=this._root;for(var O=null,L=null,N=null,B=!0;null!==P.get_child(B);){var K=B;L=O,O=P,P=P.get_child(B);var et=this._comparator(U,P.data);if(B=et>0,0===et&&(N=P),!T.is_red(P)&&!T.is_red(P.get_child(B)))if(T.is_red(P.get_child(!B))){var ct=T.single_rotate(P,B);O.set_child(K,ct),O=ct}else if(!T.is_red(P.get_child(!B))){var lt=O.get_child(!K);if(null!==lt)if(T.is_red(lt.get_child(!K))||T.is_red(lt.get_child(K))){var Ct=L.right===O;T.is_red(lt.get_child(K))?L.set_child(Ct,T.double_rotate(O,K)):T.is_red(lt.get_child(!K))&&L.set_child(Ct,T.single_rotate(O,K));var Dt=L.get_child(Ct);Dt.red=!0,P.red=!0,Dt.left.red=!1,Dt.right.red=!1}else O.red=!1,lt.red=!0,P.red=!0}}return null!==N&&(N.data=P.data,O.set_child(O.right===P,P.get_child(null===P.left)),this.size--),this._root=w.right,null!==this._root&&(this._root.red=!1),null!==N},T.is_red=function(U){return null!==U&&U.red},T.single_rotate=function(U,w){var P=U.get_child(!w);return U.set_child(!w,P.get_child(w)),P.set_child(w,U),U.red=!0,P.red=!1,P},T.double_rotate=function(U,w){return U.set_child(!w,T.single_rotate(U.get_child(!w),!w)),T.single_rotate(U,w)},T}(u);W.RBTree=g},4068:function(tt,W,f){"use strict";var bt,u=this&&this.__extends||(bt=function(mt,Lt){return(bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,kt){Bt.__proto__=kt}||function(Bt,kt){for(var le in kt)kt.hasOwnProperty(le)&&(Bt[le]=kt[le])})(mt,Lt)},function(mt,Lt){function Bt(){this.constructor=mt}bt(mt,Lt),mt.prototype=null===Lt?Object.create(Lt):(Bt.prototype=Lt.prototype,new Bt)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(98237),v=f(94655);function g(bt){return bt.bounds=typeof bt.leaves<"u"?bt.leaves.reduce(function(mt,Lt){return Lt.bounds.union(mt)},t.empty()):t.empty(),typeof bt.groups<"u"&&(bt.bounds=bt.groups.reduce(function(mt,Lt){return g(Lt).union(mt)},bt.bounds)),bt.bounds=bt.bounds.inflate(bt.padding),bt.bounds}W.computeGroupBounds=g;var t=function(){function bt(mt,Lt,Bt,kt){this.x=mt,this.X=Lt,this.y=Bt,this.Y=kt}return bt.empty=function(){return new bt(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},bt.prototype.cx=function(){return(this.x+this.X)/2},bt.prototype.cy=function(){return(this.y+this.Y)/2},bt.prototype.overlapX=function(mt){var Lt=this.cx(),Bt=mt.cx();return Lt<=Bt&&mt.x0?Bt[0]:null},bt.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},bt.lineIntersection=function(mt,Lt,Bt,kt,le,Vt,be,ge){var Fe=Bt-mt,qe=be-le,je=kt-Lt,Qt=ge-Vt,Ue=Qt*Fe-qe*je;if(0==Ue)return null;var ie=mt-le,Wt=Lt-Vt,Xt=(qe*Wt-Qt*ie)/Ue,De=(Fe*Wt-je*ie)/Ue;return Xt>=0&&Xt<=1&&De>=0&&De<=1?{x:mt+Xt*Fe,y:Lt+Xt*je}:null},bt.prototype.inflate=function(mt){return new bt(this.x-mt,this.X+mt,this.y-mt,this.Y+mt)},bt}();W.Rectangle=t,W.makeEdgeBetween=function T(bt,mt,Lt){var Bt=bt.rayIntersection(mt.cx(),mt.cy())||{x:bt.cx(),y:bt.cy()},kt=mt.rayIntersection(bt.cx(),bt.cy())||{x:mt.cx(),y:mt.cy()},le=kt.x-Bt.x,Vt=kt.y-Bt.y,be=Math.sqrt(le*le+Vt*Vt),ge=be-Lt;return{sourceIntersection:Bt,targetIntersection:kt,arrowStart:{x:Bt.x+ge*le/be,y:Bt.y+ge*Vt/be}}},W.makeEdgeTo=function U(bt,mt,Lt){var Bt=mt.rayIntersection(bt.x,bt.y);Bt||(Bt={x:mt.cx(),y:mt.cy()});var kt=Bt.x-bt.x,le=Bt.y-bt.y,Vt=Math.sqrt(kt*kt+le*le);return{x:Bt.x-Lt*kt/Vt,y:Bt.y-Lt*le/Vt}};var w=function bt(mt,Lt,Bt){this.v=mt,this.r=Lt,this.pos=Bt,this.prev=L(),this.next=L()},P=function bt(mt,Lt,Bt){this.isOpen=mt,this.v=Lt,this.pos=Bt};function O(bt,mt){return bt.pos>mt.pos?1:bt.pos0&&(bt[Bt].insert(le),le[kt].insert(bt))};Lt("next","prev"),Lt("prev","next")}};function K(bt,mt,Lt,Bt){void 0===Bt&&(Bt=!1);var kt=bt.padding,le=typeof bt.groups<"u"?bt.groups.length:0,Vt=typeof bt.leaves<"u"?bt.leaves.length:0,be=le?bt.groups.reduce(function(hn,Ce){return hn.concat(K(Ce,mt,Lt,!0))},[]):[],ge=(Bt?2:0)+Vt+le,Fe=new Array(ge),qe=new Array(ge),je=0,Qt=function(hn,Ce){qe[je]=hn,Fe[je++]=Ce};if(Bt){var Ue=bt.bounds,ie=mt.getCentre(Ue),Wt=mt.getSize(Ue)/2,se=mt.getOpen(Ue),Xt=mt.getClose(Ue),ae=ie-Wt+kt/2,De=ie+Wt-kt/2;bt.minVar.desiredPosition=ae,Qt(mt.makeRect(se,Xt,ae,kt),bt.minVar),bt.maxVar.desiredPosition=De,Qt(mt.makeRect(se,Xt,De,kt),bt.maxVar)}Vt&&bt.leaves.forEach(function(hn){return Qt(hn.bounds,hn.variable)}),le&&bt.groups.forEach(function(hn){var Ce=hn.bounds;Qt(mt.makeRect(mt.getOpen(Ce),mt.getClose(Ce),mt.getCentre(Ce),mt.getSize(Ce)),hn.minVar)});var nn=et(qe,Fe,mt,Lt);return le&&(Fe.forEach(function(hn){hn.cOut=[],hn.cIn=[]}),nn.forEach(function(hn){hn.left.cOut.push(hn),hn.right.cIn.push(hn)}),bt.groups.forEach(function(hn){var Ce=(hn.padding-mt.getSize(hn.bounds))/2;hn.minVar.cIn.forEach(function(bn){return bn.gap+=Ce}),hn.minVar.cOut.forEach(function(bn){bn.left=hn.maxVar,bn.gap+=Ce})})),be.concat(nn)}function et(bt,mt,Lt,Bt){var kt,le=bt.length,Vt=2*le;console.assert(mt.length>=le);var be=new Array(Vt);for(kt=0;ktbe[Bt]&&(be[Bt]=ge)}Vt=be})}},bt.prototype.createAlignment=function(mt){var Lt=this,Bt=this.nodes[mt.offsets[0].node].variable;this.makeFeasible(mt);var kt="x"===mt.axis?this.xConstraints:this.yConstraints;mt.offsets.slice(1).forEach(function(le){kt.push(new d.Constraint(Bt,Lt.nodes[le.node].variable,le.offset,!0))})},bt.prototype.createConstraints=function(mt){var Lt=this,Bt=function(kt){return typeof kt.type>"u"||"separation"===kt.type};this.xConstraints=mt.filter(function(kt){return"x"===kt.axis&&Bt(kt)}).map(function(kt){return Lt.createSeparation(kt)}),this.yConstraints=mt.filter(function(kt){return"y"===kt.axis&&Bt(kt)}).map(function(kt){return Lt.createSeparation(kt)}),mt.filter(function(kt){return"alignment"===kt.type}).forEach(function(kt){return Lt.createAlignment(kt)})},bt.prototype.setupVariablesAndBounds=function(mt,Lt,Bt,kt){this.nodes.forEach(function(le,Vt){le.fixed?(le.variable.weight=le.fixedWeight?le.fixedWeight:1e3,Bt[Vt]=kt(le)):le.variable.weight=1;var be=(le.width||0)/2,ge=(le.height||0)/2,Fe=mt[Vt],qe=Lt[Vt];le.bounds=new t(Fe-be,Fe+be,qe-ge,qe+ge)})},bt.prototype.xProject=function(mt,Lt,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(mt,Lt,mt,Bt,function(kt){return kt.px},this.xConstraints,Zt,function(kt){return kt.bounds.setXCentre(Bt[kt.variable.index]=kt.variable.position())},function(kt){var le=Bt[kt.minVar.index]=kt.minVar.position(),Vt=Bt[kt.maxVar.index]=kt.maxVar.position(),be=kt.padding/2;kt.bounds.x=le-be,kt.bounds.X=Vt+be})},bt.prototype.yProject=function(mt,Lt,Bt){!this.rootGroup&&!this.yConstraints||this.project(mt,Lt,Lt,Bt,function(kt){return kt.py},this.yConstraints,Rt,function(kt){return kt.bounds.setYCentre(Bt[kt.variable.index]=kt.variable.position())},function(kt){var le=Bt[kt.minVar.index]=kt.minVar.position(),Vt=Bt[kt.maxVar.index]=kt.maxVar.position(),be=kt.padding/2;kt.bounds.y=le-be,kt.bounds.Y=Vt+be})},bt.prototype.projectFunctions=function(){var mt=this;return[function(Lt,Bt,kt){return mt.xProject(Lt,Bt,kt)},function(Lt,Bt,kt){return mt.yProject(Lt,Bt,kt)}]},bt.prototype.project=function(mt,Lt,Bt,kt,le,Vt,be,ge,Fe){this.setupVariablesAndBounds(mt,Lt,kt,le),this.rootGroup&&this.avoidOverlaps&&(g(this.rootGroup),Vt=Vt.concat(be(this.rootGroup))),this.solve(this.variables,Vt,Bt,kt),this.nodes.forEach(ge),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Fe),g(this.rootGroup))},bt.prototype.solve=function(mt,Lt,Bt,kt){var le=new d.Solver(mt,Lt);le.setStartingPositions(Bt),le.setDesiredPositions(kt),le.solve()},bt}();W.Projection=Ut},33858:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(88866),d=function T(U,w){this.id=U,this.distance=w},v=function T(U){this.id=U,this.neighbours=[]},g=function T(U,w,P){this.node=U,this.prev=w,this.d=P},t=function(){function T(U,w,P,O,L){this.n=U,this.es=w,this.neighbours=new Array(this.n);for(var N=this.n;N--;)this.neighbours[N]=new v(N);for(N=this.es.length;N--;){var B=this.es[N],K=P(B),et=O(B),ct=L(B);this.neighbours[K].neighbours.push(new d(et,ct)),this.neighbours[et].neighbours.push(new d(K,ct))}}return T.prototype.DistanceMatrix=function(){for(var U=new Array(this.n),w=0;wlt&&(et.d=lt,et.prev=B,P.reduceKey(et.q,et,function(Dt,Zt){return Dt.q=Zt}))}}return L},T}();W.Calculator=t},98237:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function(){function U(w){this.scale=w,this.AB=0,this.AD=0,this.A2=0}return U.prototype.addVariable=function(w){var P=this.scale/w.scale,L=w.weight;this.AB+=L*P*(w.offset/w.scale),this.AD+=L*P*w.desiredPosition,this.A2+=L*P*P},U.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},U}();W.PositionStats=f;var u=function(){function U(w,P,O,L){void 0===L&&(L=!1),this.left=w,this.right=P,this.gap=O,this.equality=L,this.active=!1,this.unsatisfiable=!1,this.left=w,this.right=P,this.gap=O,this.equality=L}return U.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},U}();W.Constraint=u;var d=function(){function U(w,P,O){void 0===P&&(P=1),void 0===O&&(O=1),this.desiredPosition=w,this.weight=P,this.scale=O,this.offset=0}return U.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},U.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},U.prototype.visitNeighbours=function(w,P){var O=function(L,N){return L.active&&w!==N&&P(L,N)};this.cOut.forEach(function(L){return O(L,L.right)}),this.cIn.forEach(function(L){return O(L,L.left)})},U}();W.Variable=d;var v=function(){function U(w){this.vars=[],w.offset=0,this.ps=new f(w.scale),this.addVariable(w)}return U.prototype.addVariable=function(w){w.block=this,this.vars.push(w),this.ps.addVariable(w),this.posn=this.ps.getPosn()},U.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var w=0,P=this.vars.length;w=0?this.inactive.push(w):this.bs.merge(w)}}},U.prototype.solve=function(){this.satisfy();for(var w=Number.MAX_VALUE,P=this.bs.cost();Math.abs(w-P)>1e-4;)this.satisfy(),w=P,P=this.bs.cost();return P},U.LAGRANGIAN_TOLERANCE=-1e-4,U.ZERO_UPPERBOUND=-1e-10,U}();W.Solver=t,W.removeOverlapInOneDimension=function T(U,w,P){for(var O=U.map(function(Tt){return new d(Tt.desiredCenter)}),L=[],N=U.length,B=0;B{var u={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function d(g){var t=v(g);return f(t)}function v(g){if(!f.o(u,g)){var t=new Error("Cannot find module '"+g+"'");throw t.code="MODULE_NOT_FOUND",t}return u[g]}d.keys=function(){return Object.keys(u)},d.resolve=v,tt.exports=d,d.id=46700},7100:(tt,W,f)=>{"use strict";f.d(W,{AB:()=>kn,EC:()=>ai,K:()=>an,g2:()=>_n});var u=f(84080),d=f(94650),v=f(42654),g=f(8929),t=f(36787),T=f(29521),U=f(72986),w=f(1059),P=f(7625),O=f(80013),L=f(92198),N=f(99602),B=f(36895),K=f(3238),et=f(40445),ct=f(4859),lt=f(21281),Ct=f(98184),Dt=f(24006),Zt=f(59549),Rt=f(284),Gt=f(97392),Tt=f(65412),Ut=f(83353);const bt=["ngx-mat-calendar-body",""];function mt(j,Ft){if(1&j&&(d.TgZ(0,"tr",2)(1,"td",3),d._uU(2),d.qZA()()),2&j){const J=d.oxw();d.xp6(1),d.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),d.uIk("colspan",J.numCols),d.xp6(1),d.hij(" ",J.label," ")}}function Lt(j,Ft){if(1&j&&(d.TgZ(0,"td",7),d._uU(1),d.qZA()),2&j){const J=d.oxw(2);d.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),d.uIk("colspan",J._firstRowOffset),d.xp6(1),d.hij(" ",J._firstRowOffset>=J.labelMinRequiredCells?J.label:""," ")}}function Bt(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td",8),d.NdJ("click",function(ze){const Xi=d.CHM(J).$implicit,To=d.oxw(2);return d.KtG(To._cellClicked(Xi,ze))}),d.TgZ(1,"div",9),d._uU(2),d.qZA(),d._UZ(3,"div",10),d.qZA()}if(2&j){const J=Ft.$implicit,Et=Ft.index,ze=d.oxw().index,Vn=d.oxw();d.Udp("width",Vn._cellWidth)("padding-top",Vn._cellPadding)("padding-bottom",Vn._cellPadding),d.ekj("mat-calendar-body-disabled",!J.enabled)("mat-calendar-body-active",Vn._isActiveCell(ze,Et))("mat-calendar-body-range-start",Vn._isRangeStart(J.compareValue))("mat-calendar-body-range-end",Vn._isRangeEnd(J.compareValue))("mat-calendar-body-in-range",Vn._isInRange(J.compareValue))("mat-calendar-body-comparison-bridge-start",Vn._isComparisonBridgeStart(J.compareValue,ze,Et))("mat-calendar-body-comparison-bridge-end",Vn._isComparisonBridgeEnd(J.compareValue,ze,Et))("mat-calendar-body-comparison-start",Vn._isComparisonStart(J.compareValue))("mat-calendar-body-comparison-end",Vn._isComparisonEnd(J.compareValue))("mat-calendar-body-in-comparison-range",Vn._isInComparisonRange(J.compareValue))("mat-calendar-body-preview-start",Vn._isPreviewStart(J.compareValue))("mat-calendar-body-preview-end",Vn._isPreviewEnd(J.compareValue))("mat-calendar-body-in-preview",Vn._isInPreview(J.compareValue)),d.Q6J("ngClass",J.cssClasses)("tabindex",Vn._isActiveCell(ze,Et)?0:-1),d.uIk("data-mat-row",ze)("data-mat-col",Et)("aria-label",J.ariaLabel)("aria-disabled",!J.enabled||null)("aria-selected",Vn._isSelected(J)),d.xp6(1),d.ekj("mat-calendar-body-selected",Vn._isSelected(J))("mat-calendar-body-today",Vn.todayValue===J.compareValue),d.xp6(1),d.hij(" ",J.displayValue," ")}}function kt(j,Ft){if(1&j&&(d.TgZ(0,"tr",4),d.YNc(1,Lt,2,6,"td",5),d.YNc(2,Bt,4,44,"td",6),d.qZA()),2&j){const J=Ft.$implicit,Et=Ft.index,ze=d.oxw();d.xp6(1),d.Q6J("ngIf",0===Et&&ze._firstRowOffset),d.xp6(1),d.Q6J("ngForOf",J)}}function le(j,Ft){if(1&j&&(d.TgZ(0,"th",5),d._uU(1),d.qZA()),2&j){const J=Ft.$implicit;d.uIk("aria-label",J.long),d.xp6(1),d.Oqu(J.narrow)}}const Vt=["*"];function be(j,Ft){}function ge(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"ngx-mat-month-view",5),d.NdJ("activeDateChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.activeDate=ze)})("selectedChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._dateSelected(ze))})("_userSelection",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze._userSelected())}),d.qZA()}if(2&j){const J=d.oxw();d.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)("dateClass",J.dateClass)}}function Fe(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"ngx-mat-year-view",6),d.NdJ("activeDateChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.activeDate=ze)})("monthSelected",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._monthSelectedInYearView(ze))})("selectedChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._goToDateInView(ze,"month"))}),d.qZA()}if(2&j){const J=d.oxw();d.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function qe(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"ngx-mat-multi-year-view",7),d.NdJ("activeDateChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.activeDate=ze)})("yearSelected",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._yearSelectedInMultiYearView(ze))})("selectedChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._goToDateInView(ze,"year"))}),d.qZA()}if(2&j){const J=d.oxw();d.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function je(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td")(1,"button",10),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw(2);return d.KtG(ze.change("second",!0))}),d.TgZ(2,"mat-icon"),d._uU(3,"expand_less"),d.qZA()()()}if(2&j){const J=d.oxw(2);d.xp6(1),d.Q6J("disabled",J.disabled||J.disableMinute)}}function Qt(j,Ft){1&j&&d._UZ(0,"td",6)}function Ue(j,Ft){1&j&&d._UZ(0,"td")}function ie(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"tr")(1,"td")(2,"button",10),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("hour",!0))}),d.TgZ(3,"mat-icon"),d._uU(4,"expand_less"),d.qZA()()(),d._UZ(5,"td"),d.TgZ(6,"td")(7,"button",10),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("minute",!0))}),d.TgZ(8,"mat-icon"),d._uU(9,"expand_less"),d.qZA()()(),d._UZ(10,"td"),d.YNc(11,je,4,1,"td",3),d.YNc(12,Qt,1,0,"td",8),d.YNc(13,Ue,1,0,"td",3),d.qZA()}if(2&j){const J=d.oxw();d.xp6(2),d.Q6J("disabled",J.disabled),d.xp6(5),d.Q6J("disabled",J.disabled||J.disableMinute),d.xp6(4),d.Q6J("ngIf",J.showSeconds),d.xp6(1),d.Q6J("ngIf",J.enableMeridian),d.xp6(1),d.Q6J("ngIf",J.enableMeridian)}}function Wt(j,Ft){1&j&&(d.TgZ(0,"td",6),d._uU(1,":"),d.qZA())}function se(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),d.NdJ("input",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.formatInput(ze.target))})("keydown.ArrowUp",function(ze){return d.CHM(J),d.oxw().change("second",!0),d.KtG(ze.preventDefault())})("keydown.ArrowDown",function(ze){return d.CHM(J),d.oxw().change("second",!1),d.KtG(ze.preventDefault())})("blur",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("second"))}),d.qZA()()()}}function Xt(j,Ft){1&j&&d._UZ(0,"td",6)}function ae(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td",12)(1,"button",13),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.toggleMeridian())}),d._uU(2),d.qZA()()}if(2&j){const J=d.oxw();d.xp6(1),d.Q6J("color",J.color)("disabled",J.disabled),d.xp6(1),d.hij(" ",J.meridian," ")}}function De(j,Ft){1&j&&d._UZ(0,"td")}function nn(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td")(1,"button",14),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw(2);return d.KtG(ze.change("second",!1))}),d.TgZ(2,"mat-icon"),d._uU(3,"expand_more"),d.qZA()()()}if(2&j){const J=d.oxw(2);d.xp6(1),d.Q6J("disabled",J.disabled||J.disableMinute)}}function hn(j,Ft){1&j&&d._UZ(0,"td",6)}function Ce(j,Ft){1&j&&d._UZ(0,"td")}function bn(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"tr")(1,"td")(2,"button",14),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("hour",!1))}),d.TgZ(3,"mat-icon"),d._uU(4,"expand_more"),d.qZA()()(),d._UZ(5,"td"),d.TgZ(6,"td")(7,"button",14),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("minute",!1))}),d.TgZ(8,"mat-icon"),d._uU(9,"expand_more"),d.qZA()()(),d.YNc(10,De,1,0,"td",3),d.YNc(11,nn,4,1,"td",3),d.YNc(12,hn,1,0,"td",8),d.YNc(13,Ce,1,0,"td",3),d.qZA()}if(2&j){const J=d.oxw();d.xp6(2),d.Q6J("disabled",J.disabled),d.xp6(5),d.Q6J("disabled",J.disabled||J.disableMinute),d.xp6(3),d.Q6J("ngIf",J.showSeconds),d.xp6(1),d.Q6J("ngIf",J.showSeconds),d.xp6(1),d.Q6J("ngIf",J.enableMeridian),d.xp6(1),d.Q6J("ngIf",J.enableMeridian)}}function Oe(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),d.NdJ("ngModelChange",function(ze){d.CHM(J);const Vn=d.oxw(2);return d.KtG(Vn.datepicker._selected=ze)}),d.qZA()()}if(2&j){const J=d.oxw(2);d.ekj("disable-seconds",!J.datepicker._showSeconds),d.xp6(1),d.Q6J("showSpinners",J.datepicker._showSpinners)("showSeconds",J.datepicker._showSeconds)("disabled",J.datepicker._disabled)("stepHour",J.datepicker._stepHour)("stepMinute",J.datepicker._stepMinute)("stepSecond",J.datepicker._stepSecond)("ngModel",J.datepicker._selected)("color",J.datepicker._color)("enableMeridian",J.datepicker._enableMeridian)("disableMinute",J.datepicker._disableMinute)}}function dn(j,Ft){1&j&&(d.TgZ(0,"mat-icon"),d._uU(1,"done"),d.qZA())}function Pn(j,Ft){}function ii(j,Ft){if(1&j){const J=d.EpF();d.ynx(0),d.YNc(1,Oe,2,12,"div",2),d.TgZ(2,"div",3)(3,"button",4),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.datepicker.ok())}),d.YNc(4,dn,2,0,"mat-icon",1),d.YNc(5,Pn,0,0,"ng-template",5),d.qZA()(),d.BQk()}if(2&j){const J=d.oxw();d.xp6(1),d.Q6J("ngIf",!J.datepicker._hideTime),d.xp6(2),d.Q6J("color",J.datepicker._color)("disabled",!J.valid),d.xp6(1),d.Q6J("ngIf",!J.datepicker._customIcon),d.xp6(1),d.Q6J("cdkPortalOutlet",J._templateCustomIconPortal)}}const _i=new d.OlP("ngx-mat-date-formats");class oi{constructor(Ft,J,Et,ze,Vn={},Xi=Ft,To){this.value=Ft,this.displayValue=J,this.ariaLabel=Et,this.enabled=ze,this.cssClasses=Vn,this.compareValue=Xi,this.rawValue=To}}let We=(()=>{class j{constructor(J,Et){this._elementRef=J,this._ngZone=Et,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new d.vpe,this.previewChange=new d.vpe,this._enterHandler=ze=>{if(this._skipNextFocus&&"focus"===ze.type)this._skipNextFocus=!1;else if(ze.target&&this.isRange){const Vn=this._getCellFromElement(ze.target);Vn&&this._ngZone.run(()=>this.previewChange.emit({value:Vn.enabled?Vn:null,event:ze}))}},this._leaveHandler=ze=>{null!==this.previewEnd&&this.isRange&&ze.target&&ee(ze.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:ze}))},Et.runOutsideAngular(()=>{const ze=J.nativeElement;ze.addEventListener("mouseenter",this._enterHandler,!0),ze.addEventListener("focus",this._enterHandler,!0),ze.addEventListener("mouseleave",this._leaveHandler,!0),ze.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(J,Et){J.enabled&&this.selectedValueChange.emit({value:J.value,event:Et})}_isSelected(J){return this.startValue===J.compareValue||this.endValue===J.compareValue}ngOnChanges(J){const Et=J.numCols,{rows:ze,numCols:Vn}=this;(J.rows||Et)&&(this._firstRowOffset=ze&&ze.length&&ze[0].length?Vn-ze[0].length:0),(J.cellAspectRatio||Et||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vn+"%"),(Et||!this._cellWidth)&&(this._cellWidth=100/Vn+"%")}ngOnDestroy(){const J=this._elementRef.nativeElement;J.removeEventListener("mouseenter",this._enterHandler,!0),J.removeEventListener("focus",this._enterHandler,!0),J.removeEventListener("mouseleave",this._leaveHandler,!0),J.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(J,Et){let ze=J*this.numCols+Et;return J&&(ze-=this._firstRowOffset),ze==this.activeCell}_focusActiveCell(J=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,U.q)(1)).subscribe(()=>{const Et=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Et&&(J||(this._skipNextFocus=!0),Et.focus())})})}_isRangeStart(J){return ot(J,this.startValue,this.endValue)}_isRangeEnd(J){return X(J,this.startValue,this.endValue)}_isInRange(J){return At(J,this.startValue,this.endValue,this.isRange)}_isComparisonStart(J){return ot(J,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(J,Et,ze){if(!this._isComparisonStart(J)||this._isRangeStart(J)||!this._isInRange(J))return!1;let Vn=this.rows[Et][ze-1];if(!Vn){const Xi=this.rows[Et-1];Vn=Xi&&Xi[Xi.length-1]}return Vn&&!this._isRangeEnd(Vn.compareValue)}_isComparisonBridgeEnd(J,Et,ze){if(!this._isComparisonEnd(J)||this._isRangeEnd(J)||!this._isInRange(J))return!1;let Vn=this.rows[Et][ze+1];if(!Vn){const Xi=this.rows[Et+1];Vn=Xi&&Xi[0]}return Vn&&!this._isRangeStart(Vn.compareValue)}_isComparisonEnd(J){return X(J,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(J){return At(J,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(J){return ot(J,this.previewStart,this.previewEnd)}_isPreviewEnd(J){return X(J,this.previewStart,this.previewEnd)}_isInPreview(J){return At(J,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(J){let Et;if(ee(J)?Et=J:ee(J.parentNode)&&(Et=J.parentNode),Et){const ze=Et.getAttribute("data-ngx-mat-row"),Vn=Et.getAttribute("data-ngx-mat-col");if(ze&&Vn)return this.rows[parseInt(ze)][parseInt(Vn)]}return null}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.SBq),d.Y36(d.R0b))},j.\u0275cmp=d.Xpm({type:j,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[d.TTD],attrs:bt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(J,Et){1&J&&(d.YNc(0,mt,3,6,"tr",0),d.YNc(1,kt,3,2,"tr",1)),2&J&&(d.Q6J("ngIf",Et._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),j})();function ee(j){return"TD"===j.nodeName}function ot(j,Ft,J){return null!==J&&Ft!==J&&j=Ft&&j===J}function At(j,Ft,J,Et){return Et&&null!==Ft&&null!==J&&Ft!==J&&j>=Ft&&j<=J}class Ht extends K._A{isSameTime(Ft,J){return null==Ft||null==J||this.getHour(Ft)===this.getHour(J)&&this.getMinute(Ft)===this.getMinute(J)&&this.getSecond(Ft)===this.getSecond(J)}copyTime(Ft,J){this.setHour(Ft,this.getHour(J)),this.setMinute(Ft,this.getMinute(J)),this.setSecond(Ft,this.getSecond(J))}compareDateWithTime(Ft,J,Et){let ze=super.compareDate(Ft,J)||this.getHour(Ft)-this.getHour(J)||this.getMinute(Ft)-this.getMinute(J);return Et&&(ze=ze||this.getSecond(Ft)-this.getSecond(J)),ze}setTimeByDefaultValues(Ft,J){if(!Array.isArray(J))throw Error("@Input DefaultTime should be an array");this.setHour(Ft,J[0]||0),this.setMinute(Ft,J[1]||0),this.setSecond(Ft,J[2]||0)}}const ue=new d.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let ye=(()=>{class j{constructor(J){this._dateAdapter=J}selectionFinished(J,Et){let{start:ze,end:Vn}=Et;return null==ze?ze=J:null==Vn&&J&&this._dateAdapter.compareDate(J,ze)>=0?Vn=J:(ze=J,Vn=null),new N.C0(ze,Vn)}createPreview(J,Et){let ze=null,Vn=null;return Et.start&&!Et.end&&J&&(ze=Et.start,Vn=J),new N.C0(ze,Vn)}}return j.\u0275fac=function(J){return new(J||j)(d.LFG(Ht))},j.\u0275prov=d.Yz7({token:j,factory:j.\u0275fac}),j})();const Se={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},mi=/[^0-9]/g,Di=/^(2[0-3]|[0-1][0-9]|[0-9])$/,bo=/^([0-5][0-9]|[0-9])$/,hi=/^([0-5][0-9]|[0-9])$/;function zn(j){const Ft=j.toString();return Ft.length>1?Ft:`0${Ft}`}function Bn(j){return Error(`NgxMatDatepicker: No provider found for ${j}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let Ve=(()=>{class j{constructor(J,Et,ze,Vn,Xi){if(this._changeDetectorRef=J,this._dateFormats=Et,this._dateAdapter=ze,this._dir=Vn,this._rangeStrategy=Xi,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new d.vpe,this._userSelection=new d.vpe,this.activeDateChange=new d.vpe,!this._dateAdapter)throw Bn("NgxMatDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){const Et=this._activeDate,ze=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(ze,this.minDate,this.maxDate),this._hasSameMonthAndYear(Et,this._activeDate)||this._init()}get selected(){return this._selected}set selected(J){this._selected=J instanceof N.C0?J:this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(J){const Et=J.value,ze=this._dateAdapter.getYear(this.activeDate),Vn=this._dateAdapter.getMonth(this.activeDate),Xi=this._dateAdapter.createDate(ze,Vn,Et);let To,_r;this._selected instanceof N.C0?(To=this._getDateInCurrentMonth(this._selected.start),_r=this._getDateInCurrentMonth(this._selected.end)):To=_r=this._getDateInCurrentMonth(this._selected),(To!==Et||_r!==Et)&&this.selectedChange.emit(Xi),this._userSelection.emit({value:Xi,event:J.event})}_handleCalendarBodyKeydown(J){const Et=this._activeDate,ze=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,ze?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,ze?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case T.Ku:this.activeDate=J.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case T.VM:this.activeDate=J.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case T.K5:case T.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:J}),J.preventDefault()));case T.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:J}),J.preventDefault(),J.stopPropagation()));default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(J)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(J){this._matCalendarBody._focusActiveCell(J)}_previewChanged({event:J,value:Et}){if(this._rangeStrategy){const Vn=this._rangeStrategy.createPreview(Et?Et.rawValue:null,this.selected,J);this._previewStart=this._getCellCompareValue(Vn.start),this._previewEnd=this._getCellCompareValue(Vn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const J=this._dateAdapter.getFirstDayOfWeek(),Et=this._dateAdapter.getDayOfWeekNames("narrow");let Vn=this._dateAdapter.getDayOfWeekNames("long").map((Xi,To)=>({long:Xi,narrow:Et[To]}));this._weekdays=Vn.slice(J).concat(Vn.slice(0,J))}_createWeekCells(){const J=this._dateAdapter.getNumDaysInMonth(this.activeDate),Et=this._dateAdapter.getDateNames();this._weeks=[[]];for(let ze=0,Vn=this._firstWeekOffset;ze=0)&&(!this.maxDate||this._dateAdapter.compareDate(J,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(J))}_getDateInCurrentMonth(J){return J&&this._hasSameMonthAndYear(J,this.activeDate)?this._dateAdapter.getDate(J):null}_hasSameMonthAndYear(J,Et){return!(!J||!Et||this._dateAdapter.getMonth(J)!=this._dateAdapter.getMonth(Et)||this._dateAdapter.getYear(J)!=this._dateAdapter.getYear(Et))}_getCellCompareValue(J){if(J){const Et=this._dateAdapter.getYear(J),ze=this._dateAdapter.getMonth(J),Vn=this._dateAdapter.getDate(J);return new Date(Et,ze,Vn).getTime()}return null}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(J){J instanceof N.C0?(this._rangeStart=this._getCellCompareValue(J.start),this._rangeEnd=this._getCellCompareValue(J.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(J),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.sBO),d.Y36(_i,8),d.Y36(Ht,8),d.Y36(et.Is,8),d.Y36(ue,8))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-month-view"]],viewQuery:function(J,Et){if(1&J&&d.Gf(We,5),2&J){let ze;d.iGM(ze=d.CRH())&&(Et._matCalendarBody=ze.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(J,Et){1&J&&(d.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),d.YNc(3,le,2,2,"th",2),d.qZA(),d.TgZ(4,"tr"),d._UZ(5,"th",3),d.qZA()(),d.TgZ(6,"tbody",4),d.NdJ("selectedValueChange",function(Vn){return Et._dateSelected(Vn)})("previewChange",function(Vn){return Et._previewChanged(Vn)})("keydown",function(Vn){return Et._handleCalendarBodyKeydown(Vn)}),d.qZA()()),2&J&&(d.xp6(3),d.Q6J("ngForOf",Et._weekdays),d.xp6(3),d.Q6J("label",Et._monthLabel)("rows",Et._weeks)("todayValue",Et._todayDate)("startValue",Et._rangeStart)("endValue",Et._rangeEnd)("comparisonStart",Et._comparisonRangeStart)("comparisonEnd",Et._comparisonRangeEnd)("previewStart",Et._previewStart)("previewEnd",Et._previewEnd)("isRange",Et._isRange)("labelMinRequiredCells",3)("activeCell",Et._dateAdapter.getDate(Et.activeDate)-1))},dependencies:[B.sg,We],encapsulation:2,changeDetection:0}),j})(),ce=(()=>{class j{constructor(J,Et,ze){if(this._changeDetectorRef=J,this._dateAdapter=Et,this._dir=ze,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new d.vpe,this.yearSelected=new d.vpe,this.activeDateChange=new d.vpe,!this._dateAdapter)throw Bn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Et=this._activeDate;const ze=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(ze,this.minDate,this.maxDate),Be(this._dateAdapter,Et,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(J){this._selected=J instanceof N.C0?J:this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._setSelectedYear(J)}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Et=this._dateAdapter.getYear(this._activeDate)-oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let ze=0,Vn=[];ze<24;ze++)Vn.push(Et+ze),4==Vn.length&&(this._years.push(Vn.map(Xi=>this._createCellForYear(Xi))),Vn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(J){const Et=J.value;this.yearSelected.emit(this._dateAdapter.createDate(Et,0,1));let ze=this._dateAdapter.getMonth(this.activeDate),Vn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Et,ze,1));this.selectedChange.emit(this._dateAdapter.createDate(Et,ze,Math.min(this._dateAdapter.getDate(this.activeDate),Vn)))}_handleCalendarBodyKeydown(J){const Et=this._activeDate,ze=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ze?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ze?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case T.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?-240:-24);break;case T.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?240:24);break;case T.K5:case T.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:J});break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_getActiveCell(){return oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(J){let Et=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return new oi(J,Et,Et,this._shouldEnableYear(J))}_shouldEnableYear(J){if(null==J||this.maxDate&&J>this._dateAdapter.getYear(this.maxDate)||this.minDate&&J{class j{constructor(J,Et,ze,Vn){if(this._changeDetectorRef=J,this._dateFormats=Et,this._dateAdapter=ze,this._dir=Vn,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new d.vpe,this.monthSelected=new d.vpe,this.activeDateChange=new d.vpe,!this._dateAdapter)throw Bn("NgxMatDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Et=this._activeDate;const ze=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(ze,this.minDate,this.maxDate),this._dateAdapter.getYear(Et)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(J){this._selected=J instanceof N.C0?J:this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._setSelectedMonth(J)}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(J){const Et=J.value,ze=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Et,1);this.monthSelected.emit(ze);const Vn=this._dateAdapter.getNumDaysInMonth(ze);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Et,Math.min(this._dateAdapter.getDate(this.activeDate),Vn)))}_handleCalendarBodyKeydown(J){const Et=this._activeDate,ze=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,ze?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,ze?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case T.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?-10:-1);break;case T.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?10:1);break;case T.K5:case T.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:J});break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let J=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Et=>Et.map(ze=>this._createCellForMonth(ze,J[ze]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(J){return J&&this._dateAdapter.getYear(J)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(J):null}_createCellForMonth(J,Et){let ze=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),J,1),this._dateFormats.display.monthYearA11yLabel);return new oi(J,Et.toLocaleUpperCase(),ze,this._shouldEnableMonth(J))}_shouldEnableMonth(J){const Et=this._dateAdapter.getYear(this.activeDate);if(null==J||this._isYearAndMonthAfterMaxDate(Et,J)||this._isYearAndMonthBeforeMinDate(Et,J))return!1;if(!this.dateFilter)return!0;for(let Vn=this._dateAdapter.createDate(Et,J,1);this._dateAdapter.getMonth(Vn)==J;Vn=this._dateAdapter.addCalendarDays(Vn,1))if(this.dateFilter(Vn))return!0;return!1}_isYearAndMonthAfterMaxDate(J,Et){if(this.maxDate){const ze=this._dateAdapter.getYear(this.maxDate),Vn=this._dateAdapter.getMonth(this.maxDate);return J>ze||J===ze&&Et>Vn}return!1}_isYearAndMonthBeforeMinDate(J,Et){if(this.minDate){const ze=this._dateAdapter.getYear(this.minDate),Vn=this._dateAdapter.getMonth(this.minDate);return J{class j{constructor(J,Et,ze,Vn,Xi){this._intl=J,this.calendar=Et,this._dateAdapter=ze,this._dateFormats=Vn,this.calendar.stateChanges.subscribe(()=>Xi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Et=this._dateAdapter.getYear(this.calendar.activeDate)-oe(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),ze=Et+24-1;return function Qe(j,Ft){return`${j} \u2013 ${Ft}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Et,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(ze,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(J,Et){return"month"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Et)&&this._dateAdapter.getMonth(J)==this._dateAdapter.getMonth(Et):"year"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Et):Be(this._dateAdapter,J,Et,this.calendar.minDate,this.calendar.maxDate)}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(N.S8),d.Y36((0,d.Gpc)(()=>It)),d.Y36(Ht,8),d.Y36(_i,8),d.Y36(d.sBO))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Vt,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(J,Et){1&J&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1)(2,"button",2),d.NdJ("click",function(){return Et.currentPeriodClicked()}),d._uU(3),d._UZ(4,"div",3),d.qZA(),d._UZ(5,"div",4),d.Hsn(6),d.TgZ(7,"button",5),d.NdJ("click",function(){return Et.previousClicked()}),d.qZA(),d.TgZ(8,"button",6),d.NdJ("click",function(){return Et.nextClicked()}),d.qZA()()()),2&J&&(d.xp6(2),d.uIk("aria-label",Et.periodButtonLabel),d.xp6(1),d.hij(" ",Et.periodButtonText," "),d.xp6(1),d.ekj("mat-calendar-invert","month"!=Et.calendar.currentView),d.xp6(3),d.Q6J("disabled",!Et.previousEnabled()),d.uIk("aria-label",Et.prevButtonLabel),d.xp6(1),d.Q6J("disabled",!Et.nextEnabled()),d.uIk("aria-label",Et.nextButtonLabel))},dependencies:[ct.lW],encapsulation:2,changeDetection:0}),j})(),It=(()=>{class j{constructor(J,Et,ze,Vn){if(this._dateAdapter=Et,this._dateFormats=ze,this._changeDetectorRef=Vn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new d.vpe,this.yearSelected=new d.vpe,this.monthSelected=new d.vpe,this._userSelection=new d.vpe,this.stateChanges=new g.xQ,!this._dateAdapter)throw Bn("NgxDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._intlChanges=J.changes.subscribe(()=>{Vn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(J){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get selected(){return this._selected}set selected(J){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get activeDate(){return this._clampedActiveDate}set activeDate(J){this._clampedActiveDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(J){this._currentView=J,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new u.C5(this.headerComponent||xe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(J){const Et=J.minDate||J.maxDate||J.dateFilter;if(Et&&!Et.firstChange){const ze=this._getCurrentViewComponent();ze&&(this._changeDetectorRef.detectChanges(),ze._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(J){J&&!this._dateAdapter.sameDate(J,this.selected)&&this.selectedChange.emit(J)}_yearSelectedInMultiYearView(J){this.yearSelected.emit(J)}_monthSelectedInYearView(J){this.monthSelected.emit(J)}_userSelected(){this._userSelection.emit()}_goToDateInView(J,Et){this.activeDate=J,this.currentView=Et}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(N.S8),d.Y36(Ht,8),d.Y36(_i,8),d.Y36(d.sBO))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-calendar"]],viewQuery:function(J,Et){if(1&J&&(d.Gf(Ve,5),d.Gf(cn,5),d.Gf(ce,5)),2&J){let ze;d.iGM(ze=d.CRH())&&(Et.monthView=ze.first),d.iGM(ze=d.CRH())&&(Et.yearView=ze.first),d.iGM(ze=d.CRH())&&(Et.multiYearView=ze.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[d.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(J,Et){1&J&&(d.YNc(0,be,0,0,"ng-template",0),d.TgZ(1,"div",1),d.YNc(2,ge,1,6,"ngx-mat-month-view",2),d.YNc(3,Fe,1,5,"ngx-mat-year-view",3),d.YNc(4,qe,1,5,"ngx-mat-multi-year-view",4),d.qZA()),2&J&&(d.Q6J("cdkPortalOutlet",Et._calendarHeaderPortal),d.xp6(1),d.Q6J("ngSwitch",Et.currentView),d.xp6(1),d.Q6J("ngSwitchCase","month"),d.xp6(1),d.Q6J("ngSwitchCase","year"),d.xp6(1),d.Q6J("ngSwitchCase","multi-year"))},dependencies:[B.RF,B.n9,u.Pl,Ve,cn,ce],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),j})(),Le=(()=>{class j{constructor(J,Et,ze){if(this._dateAdapter=J,this.cd=Et,this.formBuilder=ze,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new g.xQ,this.pattern=Di,!this._dateAdapter)throw Bn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(Di)]],minute:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(bo)]],second:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(hi)]]})}get hour(){let J=Number(this.form.controls.hour.value);return isNaN(J)?0:J}get minute(){let J=Number(this.form.controls.minute.value);return isNaN(J)?0:J}get second(){let J=Number(this.form.controls.second.value);return isNaN(J)?0:J}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,P.R)(this._destroyed),(0,O.b)(400)).subscribe(J=>{this._updateModel()})}ngOnChanges(J){(J.disabled||J.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(J){null!=J?this._model=J:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this._disabled=J,this.cd.markForCheck()}formatInput(J){J.value=J.value.replace(mi,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(J,Et){const ze=this._getNextValueByProp(J,Et);this.form.controls[J].setValue(zn(ze),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let J=this._dateAdapter.getHour(this._model);const Et=this._dateAdapter.getMinute(this._model),ze=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(J>=Se.meridian?(J-=Se.meridian,this.meridian="PM"):this.meridian="AM",0===J&&(J=Se.meridian)),this.form.controls.hour.setValue(zn(J)),this.form.controls.minute.setValue(zn(Et)),this.form.controls.second.setValue(zn(ze))}_updateModel(){let J=this.hour;this.enableMeridian&&("AM"===this.meridian&&J===Se.meridian?J=0:"PM"===this.meridian&&J!==Se.meridian&&(J+=Se.meridian)),this._dateAdapter.setHour(this._model,J),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(J,Et){const ze=J[0].toUpperCase()+J.slice(1),Vn=Se[`min${ze}`];let To,Xi=Se[`max${ze}`];return"hour"===J&&this.enableMeridian&&(Xi=Se.meridian),null==Et?(To=this[J]%Xi,"hour"===J&&this.enableMeridian&&0===To&&(To=Xi)):(To=Et?this[J]+this[`step${ze}`]:this[J]-this[`step${ze}`],"hour"===J&&this.enableMeridian?(To%=Xi+1,0===To&&(To=Et?1:Xi)):To%=Xi,To=Et?To>Xi?To-Xi+Vn:To:Toj),multi:!0}]),d.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(J,Et){1&J&&(d.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),d.YNc(3,ie,14,5,"tr",3),d.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),d.NdJ("input",function(Vn){return Et.formatInput(Vn.target)})("keydown.ArrowUp",function(Vn){return Et.change("hour",!0),Vn.preventDefault()})("keydown.ArrowDown",function(Vn){return Et.change("hour",!1),Vn.preventDefault()})("blur",function(){return Et.change("hour")}),d.qZA()()(),d.TgZ(8,"td",6),d._uU(9,":"),d.qZA(),d.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),d.NdJ("input",function(Vn){return Et.formatInput(Vn.target)})("keydown.ArrowUp",function(Vn){return Et.change("minute",!0),Vn.preventDefault()})("keydown.ArrowDown",function(Vn){return Et.change("minute",!1),Vn.preventDefault()})("blur",function(){return Et.change("minute")}),d.qZA()()(),d.YNc(13,Wt,2,0,"td",8),d.YNc(14,se,3,0,"td",3),d.YNc(15,Xt,1,0,"td",8),d.YNc(16,ae,3,3,"td",9),d.qZA(),d.YNc(17,bn,14,6,"tr",3),d.qZA()()()),2&J&&(d.Q6J("formGroup",Et.form),d.xp6(3),d.Q6J("ngIf",Et.showSpinners),d.xp6(10),d.Q6J("ngIf",Et.showSeconds),d.xp6(1),d.Q6J("ngIf",Et.showSeconds),d.xp6(1),d.Q6J("ngIf",Et.enableMeridian),d.xp6(1),d.Q6J("ngIf",Et.enableMeridian),d.xp6(1),d.Q6J("ngIf",Et.showSpinners))},dependencies:[B.O5,Zt.KE,Rt.Nt,Dt._Y,Dt.Fj,Dt.JJ,Dt.JL,Dt.nD,Dt.sg,Dt.u,Gt.Hw,ct.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),j})(),zt=0;const we=(0,K.pj)(class{constructor(j){this._elementRef=j}});let He=(()=>{class j extends we{constructor(J,Et,ze){super(J),this.cd=Et,this._viewContainerRef=ze}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new u.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.s_b))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(J,Et){if(1&J&&(d.Gf(It,5),d.Gf(Le,5)),2&J){let ze;d.iGM(ze=d.CRH())&&(Et._calendar=ze.first),d.iGM(ze=d.CRH())&&(Et._timePicker=ze.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(J,Et){2&J&&(d.d8E("@transformPanel","enter"),d.ekj("mat-datepicker-content-touch",Et.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[d.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(J,Et){1&J&&(d.TgZ(0,"ngx-mat-calendar",0),d.NdJ("selectedChange",function(Vn){return Et.datepicker.select(Vn)})("yearSelected",function(Vn){return Et.datepicker._selectYear(Vn)})("monthSelected",function(Vn){return Et.datepicker._selectMonth(Vn)}),d.qZA(),d.YNc(1,ii,6,5,"ng-container",1)),2&J&&(d.Q6J("id",Et.datepicker.id)("ngClass",Et.datepicker.panelClass)("startAt",Et.datepicker.startAt)("startView",Et.datepicker.startView)("minDate",Et.datepicker._minDate)("maxDate",Et.datepicker._maxDate)("dateFilter",Et.datepicker._dateFilter)("headerComponent",Et.datepicker.calendarHeaderComponent)("selected",Et.datepicker._selected)("dateClass",Et.datepicker.dateClass)("@fadeInCalendar","enter"),d.xp6(1),d.Q6J("ngIf",Et.isViewMonth))},dependencies:[B.mk,B.O5,u.Pl,Dt.JJ,Dt.On,Gt.Hw,ct.lW,Le,It],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[N.E2.transformPanel,N.E2.fadeInCalendar]},changeDetection:0}),j})(),kn=(()=>{class j{constructor(J,Et,ze,Vn,Xi,To,_r,fr){if(this._dialog=J,this._overlay=Et,this._ngZone=ze,this._viewContainerRef=Vn,this._dateAdapter=To,this._dir=_r,this._document=fr,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new d.vpe,this.monthSelected=new d.vpe,this.openedStream=new d.vpe,this.closedStream=new d.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+zt++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=v.w.EMPTY,this.stateChanges=new g.xQ,this._selectedChanged=new g.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw Bn("NgxMatDateAdapter");this._scrollStrategy=Xi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(J){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get defaultColor(){return this._defaultColor}set defaultColor(J){this._defaultColor=J}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(J){this._color=J}get touchUi(){return this._touchUi}set touchUi(J){this._touchUi=(0,lt.Ig)(J)}get hideTime(){return this._hideTime}set hideTime(J){this._hideTime=(0,lt.Ig)(J)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(J){const Et=(0,lt.Ig)(J);Et!==this._disabled&&(this._disabled=Et,this.stateChanges.next(Et))}get opened(){return this._opened}set opened(J){J?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(J){this._showSpinners=J}get showSeconds(){return this._showSeconds}set showSeconds(J){this._showSeconds=J}get stepHour(){return this._stepHour}set stepHour(J){this._stepHour=J}get stepMinute(){return this._stepMinute}set stepMinute(J){this._stepMinute=J}get stepSecond(){return this._stepSecond}set stepSecond(J){this._stepSecond=J}get enableMeridian(){return this._enableMeridian}set enableMeridian(J){this._enableMeridian=J}get disableMinute(){return this._disableMinute}set disableMinute(J){this._disableMinute=J}get defaultTime(){return this._defaultTime}set defaultTime(J){this._defaultTime=J}get _selected(){return this._validSelected}set _selected(J){this._validSelected=J}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const J=this._minValidator(),Et=this._maxValidator();return null==J&&null==Et}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(J){this._dateAdapter.copyTime(J,this._selected),this._selected=J}_selectYear(J){this.yearSelected.emit(J)}_selectMonth(J){this.monthSelected.emit(J)}ok(){const J=this._dateAdapter.clone(this._selected);this._selectedChanged.next(J),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(J){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=J,this._inputSubscription=this.datepickerInput._valueChange.subscribe(Et=>this._selected=Et)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const J=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(J)):J()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(He,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new u.C5(He,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,U.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const J=new Ct.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(J),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,L.h)(Et=>Et.keyCode===T.hY||this.datepickerInput&&Et.altKey&&Et.keyCode===T.LH))).subscribe(Et=>{Et&&Et.preventDefault(),this._hasBackdrop&&Et?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_setColor(){const J=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=J),this._dialogRef&&(this._dialogRef.componentInstance.color=J)}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(Tt.uw),d.Y36(Ct.aV),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(N.Uu),d.Y36(Ht,8),d.Y36(et.Is,8),d.Y36(B.K0,8))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(J,Et,ze){if(1&J&&d.Suo(ze,d.Rgc,5),2&J){let Vn;d.iGM(Vn=d.CRH())&&(Et._customIcon=Vn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(J,Et){},encapsulation:2,changeDetection:0}),j})();const Ei={provide:Dt.JU,useExisting:(0,d.Gpc)(()=>_n),multi:!0},Bi={provide:Dt.Cf,useExisting:(0,d.Gpc)(()=>_n),multi:!0};class un{constructor(Ft,J){this.target=Ft,this.targetElement=J,this.value=this.target.value}}let xi,_n=(()=>{class j{constructor(J,Et,ze,Vn){if(this._elementRef=J,this._dateAdapter=Et,this._dateFormats=ze,this._formField=Vn,this.dateChange=new d.vpe,this.dateInput=new d.vpe,this._valueChange=new d.vpe,this.stateChanges=new d.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=v.w.EMPTY,this._localeSubscription=v.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Xi=>{const To=this._getValidDateOrNull(this._dateAdapter.deserialize(Xi.value));return!this.min||!To||this._dateAdapter.compareDateWithTime(this.min,To,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:To}}},this._maxValidator=Xi=>{const To=this._getValidDateOrNull(this._dateAdapter.deserialize(Xi.value));return!this.max||!To||this._dateAdapter.compareDateWithTime(this.max,To,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:To}}},this._filterValidator=Xi=>{const To=this._getValidDateOrNull(this._dateAdapter.deserialize(Xi.value));return this._dateFilter&&To&&!this._dateFilter(To)?{matDatetimePickerFilter:!0}:null},this._validator=Dt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Bn("NgxMatDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Et.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(J){!J||(this._datepicker=J,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(Et=>{this.value=Et,this._cvaOnChange(Et),this._onTouched(),this.dateInput.emit(new un(this,this._elementRef.nativeElement)),this.dateChange.emit(new un(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(J){this._dateFilter=J,this._validatorOnChange()}get value(){return this._value}set value(J){J=this._dateAdapter.deserialize(J),this._lastValueValid=!J||this._dateAdapter.isValid(J),J=this._getValidDateOrNull(J);const Et=this.value;this._value=J,this._formatValue(J),this._dateAdapter.sameDate(Et,J)||this._valueChange.emit(J)}get min(){return this._min}set min(J){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._validatorOnChange()}get max(){return this._max}set max(J){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(J){const Et=null!=J&&"false"!=`${J}`,ze=this._elementRef.nativeElement;this._disabled!==Et&&(this._disabled=Et,this.stateChanges.emit(void 0)),Et&&ze.blur&&ze.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(J){this._validatorOnChange=J}validate(J){return this._validator?this._validator(J):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(J){this.value=J}registerOnChange(J){this._cvaOnChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J}_onKeydown(J){this._datepicker&&J.altKey&&J.keyCode===T.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),J.preventDefault())}_onInput(J){const Et=this._lastValueValid;let ze=this._dateAdapter.parse(J,this._dateFormats.parse.dateInput);this._lastValueValid=!ze||this._dateAdapter.isValid(ze),ze=this._getValidDateOrNull(ze);const Vn=this._dateAdapter.isSameTime(ze,this._value);null!=ze&&(!Vn||!this._dateAdapter.sameDate(ze,this._value))||null==ze&&null!=this._value?(this._value=ze,this._cvaOnChange(ze),this._valueChange.emit(ze),this.dateInput.emit(new un(this,this._elementRef.nativeElement))):Et!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new un(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(J){this._elementRef.nativeElement.value=J?this._dateAdapter.format(J,this._dateFormats.display.dateInput):""}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.SBq),d.Y36(Ht,8),d.Y36(_i,8),d.Y36(Zt.KE,8))},j.\u0275dir=d.lG2({type:j,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(J,Et){1&J&&d.NdJ("input",function(Vn){return Et._onInput(Vn.target.value)})("change",function(){return Et._onChange()})("blur",function(){return Et._onBlur()})("focus",function(){return Et._onFocus()})("keydown",function(Vn){return Et._onKeydown(Vn)}),2&J&&(d.Ikx("disabled",Et.disabled),d.uIk("aria-haspopup",Et._datepicker?"dialog":null)("aria-owns",(null==Et._datepicker?null:Et._datepicker.opened)&&Et._datepicker.id||null)("min",Et.min?Et._dateAdapter.toIso8601(Et.min):null)("max",Et.max?Et._dateAdapter.toIso8601(Et.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[d._Bn([Ei,Bi,{provide:Rt.Jk,useExisting:j}])]}),j})(),Ke=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({imports:[B.ez,Rt.c,Dt.UX,Dt.u5,Gt.Ps,ct.ot]}),j})(),ai=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({providers:[N.Lv,{provide:ue,useClass:ye}],imports:[B.ez,N.FA,Tt.Is,u.eL,Dt.u5,Gt.Ps,ct.ot,Rt.c,Ke]}),j})();try{xi=typeof Intl<"u"}catch{xi=!1}const co={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Co=Ta(31,j=>String(j+1)),So={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ma=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ta(j,Ft){const J=Array(j);for(let Et=0;Et{class j extends Ht{constructor(J,Et){super(),this.useUtcForDisplay=!0,super.setLocale(J),this.useUtcForDisplay=!Et.TRIDENT,this._clampDate=Et.TRIDENT||Et.EDGE}getYear(J){return J.getFullYear()}getMonth(J){return J.getMonth()}getDate(J){return J.getDate()}getDayOfWeek(J){return J.getDay()}getMonthNames(J){if(xi){const Et=new Intl.DateTimeFormat(this.locale,{month:J,timeZone:"utc"});return Ta(12,ze=>this._stripDirectionalityCharacters(this._format(Et,new Date(2017,ze,1))))}return co[J]}getDateNames(){if(xi){const J=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ta(31,Et=>this._stripDirectionalityCharacters(this._format(J,new Date(2017,0,Et+1))))}return Co}getDayOfWeekNames(J){if(xi){const Et=new Intl.DateTimeFormat(this.locale,{weekday:J,timeZone:"utc"});return Ta(7,ze=>this._stripDirectionalityCharacters(this._format(Et,new Date(2017,0,ze+1))))}return So[J]}getYearName(J){if(xi){const Et=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Et,J))}return String(this.getYear(J))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(J){return this.getDate(this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+1,0))}clone(J){return new Date(J.getTime())}createDate(J,Et,ze){if(Et<0||Et>11)throw Error(`Invalid month index "${Et}". Month index has to be between 0 and 11.`);if(ze<1)throw Error(`Invalid date "${ze}". Date has to be greater than 0.`);let Vn=this._createDateWithOverflow(J,Et,ze);if(Vn.getMonth()!=Et)throw Error(`Invalid date "${ze}" for month with index "${Et}".`);return Vn}today(){return new Date}parse(J){return"number"==typeof J?new Date(J):J?new Date(Date.parse(J)):null}format(J,Et){if(!this.isValid(J))throw Error("NativeDateAdapter: Cannot format invalid date.");if(xi){this._clampDate&&(J.getFullYear()<1||J.getFullYear()>9999)&&(J=this.clone(J)).setFullYear(Math.max(1,Math.min(9999,J.getFullYear()))),Et={...Et,timeZone:"utc"};const ze=new Intl.DateTimeFormat(this.locale,Et);return this._stripDirectionalityCharacters(this._format(ze,J))}return this._stripDirectionalityCharacters(J.toDateString())}addCalendarYears(J,Et){return this.addCalendarMonths(J,12*Et)}addCalendarMonths(J,Et){let ze=this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+Et,this.getDate(J));return this.getMonth(ze)!=((this.getMonth(J)+Et)%12+12)%12&&(ze=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),0)),ze}addCalendarDays(J,Et){return this._createDateWithOverflow(this.getYear(J),this.getMonth(J),this.getDate(J)+Et)}toIso8601(J){return[J.getUTCFullYear(),this._2digit(J.getUTCMonth()+1),this._2digit(J.getUTCDate())].join("-")}deserialize(J){if("string"==typeof J){if(!J)return null;if(ma.test(J)){let Et=new Date(J);if(this.isValid(Et))return Et}}return super.deserialize(J)}isDateInstance(J){return J instanceof Date}isValid(J){return!isNaN(J.getTime())}invalid(){return new Date(NaN)}getHour(J){return J.getHours()}getMinute(J){return J.getMinutes()}getSecond(J){return J.getSeconds()}setHour(J,Et){J.setHours(Et)}setMinute(J,Et){J.setMinutes(Et)}setSecond(J,Et){J.setSeconds(Et)}_createDateWithOverflow(J,Et,ze){const Vn=new Date(J,Et,ze);return J>=0&&J<100&&Vn.setFullYear(this.getYear(Vn)-1900),Vn}_2digit(J){return("00"+J).slice(-2)}_stripDirectionalityCharacters(J){return J.replace(/[\u200e\u200f]/g,"")}_format(J,Et){const ze=new Date;return ze.setUTCFullYear(Et.getFullYear(),Et.getMonth(),Et.getDate()),ze.setUTCHours(Et.getHours(),Et.getMinutes(),Et.getSeconds(),Et.getMilliseconds()),J.format(ze)}}return j.\u0275fac=function(J){return new(J||j)(d.LFG(K.Ad,8),d.LFG(Ut.t4))},j.\u0275prov=d.Yz7({token:j,factory:j.\u0275fac}),j})();const Rn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},Ye={parse:{dateInput:Rn},display:{dateInput:Rn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Me=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({providers:[{provide:Ht,useClass:Re}],imports:[Ut.ud]}),j})(),an=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({providers:[{provide:_i,useValue:Ye}],imports:[Me]}),j})()},37340:(tt,W,f)=>{"use strict";f.d(W,{F4:()=>O,IO:()=>et,LC:()=>d,SB:()=>P,X$:()=>g,ZE:()=>Dt,ZN:()=>Ct,_j:()=>u,eR:()=>L,jt:()=>t,k1:()=>Zt,l3:()=>v,oB:()=>w,pV:()=>B,ru:()=>T,vP:()=>U});class u{}class d{}const v="*";function g(Rt,Gt){return{type:7,name:Rt,definitions:Gt,options:{}}}function t(Rt,Gt=null){return{type:4,styles:Gt,timings:Rt}}function T(Rt,Gt=null){return{type:3,steps:Rt,options:Gt}}function U(Rt,Gt=null){return{type:2,steps:Rt,options:Gt}}function w(Rt){return{type:6,styles:Rt,offset:null}}function P(Rt,Gt,Tt){return{type:0,name:Rt,styles:Gt,options:Tt}}function O(Rt){return{type:5,steps:Rt}}function L(Rt,Gt,Tt=null){return{type:1,expr:Rt,animation:Gt,options:Tt}}function B(Rt=null){return{type:9,options:Rt}}function et(Rt,Gt,Tt=null){return{type:11,selector:Rt,animation:Gt,options:Tt}}function lt(Rt){Promise.resolve().then(Rt)}class Ct{constructor(Gt=0,Tt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Gt+Tt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Gt=>Gt()),this._onDoneFns=[])}onStart(Gt){this._originalOnStartFns.push(Gt),this._onStartFns.push(Gt)}onDone(Gt){this._originalOnDoneFns.push(Gt),this._onDoneFns.push(Gt)}onDestroy(Gt){this._onDestroyFns.push(Gt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Gt=>Gt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Gt=>Gt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Gt){this._position=this.totalTime?Gt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Gt){const Tt="start"==Gt?this._onStartFns:this._onDoneFns;Tt.forEach(Ut=>Ut()),Tt.length=0}}class Dt{constructor(Gt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Gt;let Tt=0,Ut=0,bt=0;const mt=this.players.length;0==mt?lt(()=>this._onFinish()):this.players.forEach(Lt=>{Lt.onDone(()=>{++Tt==mt&&this._onFinish()}),Lt.onDestroy(()=>{++Ut==mt&&this._onDestroy()}),Lt.onStart(()=>{++bt==mt&&this._onStart()})}),this.totalTime=this.players.reduce((Lt,Bt)=>Math.max(Lt,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Gt=>Gt()),this._onDoneFns=[])}init(){this.players.forEach(Gt=>Gt.init())}onStart(Gt){this._onStartFns.push(Gt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Gt=>Gt()),this._onStartFns=[])}onDone(Gt){this._onDoneFns.push(Gt)}onDestroy(Gt){this._onDestroyFns.push(Gt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Gt=>Gt.play())}pause(){this.players.forEach(Gt=>Gt.pause())}restart(){this.players.forEach(Gt=>Gt.restart())}finish(){this._onFinish(),this.players.forEach(Gt=>Gt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Gt=>Gt.destroy()),this._onDestroyFns.forEach(Gt=>Gt()),this._onDestroyFns=[])}reset(){this.players.forEach(Gt=>Gt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Gt){const Tt=Gt*this.totalTime;this.players.forEach(Ut=>{const bt=Ut.totalTime?Math.min(1,Tt/Ut.totalTime):1;Ut.setPosition(bt)})}getPosition(){const Gt=this.players.reduce((Tt,Ut)=>null===Tt||Ut.totalTime>Tt.totalTime?Ut:Tt,null);return null!=Gt?Gt.getPosition():0}beforeDestroy(){this.players.forEach(Gt=>{Gt.beforeDestroy&&Gt.beforeDestroy()})}triggerCallback(Gt){const Tt="start"==Gt?this._onStartFns:this._onDoneFns;Tt.forEach(Ut=>Ut()),Tt.length=0}}const Zt="!"},12687:(tt,W,f)=>{"use strict";f.d(W,{$s:()=>Bt,Em:()=>ge,Kd:()=>mi,X6:()=>ee,ic:()=>qe,kH:()=>Bn,mK:()=>dn,qV:()=>Oe,qm:()=>Ne,rt:()=>tn,s1:()=>be,tE:()=>zn,yG:()=>ot});var u=f(36895),d=f(94650),v=f(83353),g=f(8929),t=f(42654),T=f(591),U=f(21086),w=f(29521),P=f(22868),O=f(80013),L=f(92198),N=f(24850),B=f(72986),K=f(31307),et=f(75778),ct=f(7625),lt=f(21281),Ct=f(49643),Dt=f(62289);function Tt(ce,Be){return(ce.getAttribute(Be)||"").match(/\S+/g)||[]}const bt="cdk-describedby-message",mt="cdk-describedby-host";let Lt=0,Bt=(()=>{class ce{constructor(oe,rn){this._platform=rn,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Lt++,this._document=oe,this._id=(0,d.f3M)(d.AFp)+"-"+Lt++}describe(oe,rn,gn){if(!this._canBeDescribed(oe,rn))return;const cn=kt(rn,gn);"string"!=typeof rn?(le(rn,this._id),this._messageRegistry.set(cn,{messageElement:rn,referenceCount:0})):this._messageRegistry.has(cn)||this._createMessageElement(rn,gn),this._isElementDescribedByMessage(oe,cn)||this._addMessageReference(oe,cn)}removeDescription(oe,rn,gn){if(!rn||!this._isElementNode(oe))return;const cn=kt(rn,gn);if(this._isElementDescribedByMessage(oe,cn)&&this._removeMessageReference(oe,cn),"string"==typeof rn){const xe=this._messageRegistry.get(cn);xe&&0===xe.referenceCount&&this._deleteMessageElement(cn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const oe=this._document.querySelectorAll(`[${mt}="${this._id}"]`);for(let rn=0;rn0!=gn.indexOf(bt));oe.setAttribute("aria-describedby",rn.join(" "))}_addMessageReference(oe,rn){const gn=this._messageRegistry.get(rn);(function Rt(ce,Be,oe){const rn=Tt(ce,Be);rn.some(gn=>gn.trim()==oe.trim())||(rn.push(oe.trim()),ce.setAttribute(Be,rn.join(" ")))})(oe,"aria-describedby",gn.messageElement.id),oe.setAttribute(mt,this._id),gn.referenceCount++}_removeMessageReference(oe,rn){const gn=this._messageRegistry.get(rn);gn.referenceCount--,function Gt(ce,Be,oe){const gn=Tt(ce,Be).filter(cn=>cn!=oe.trim());gn.length?ce.setAttribute(Be,gn.join(" ")):ce.removeAttribute(Be)}(oe,"aria-describedby",gn.messageElement.id),oe.removeAttribute(mt)}_isElementDescribedByMessage(oe,rn){const gn=Tt(oe,"aria-describedby"),cn=this._messageRegistry.get(rn),xe=cn&&cn.messageElement.id;return!!xe&&-1!=gn.indexOf(xe)}_canBeDescribed(oe,rn){if(!this._isElementNode(oe))return!1;if(rn&&"object"==typeof rn)return!0;const gn=null==rn?"":`${rn}`.trim(),cn=oe.getAttribute("aria-label");return!(!gn||cn&&cn.trim()===gn)}_isElementNode(oe){return oe.nodeType===this._document.ELEMENT_NODE}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(u.K0),d.LFG(v.t4))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function kt(ce,Be){return"string"==typeof ce?`${Be||""}/${ce}`:ce}function le(ce,Be){ce.id||(ce.id=`${bt}-${Be}-${Lt++}`)}class Vt{constructor(Be){this._items=Be,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new g.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=oe=>oe.disabled,this._pressedLetters=[],this.tabOut=new g.xQ,this.change=new g.xQ,Be instanceof d.n_E&&Be.changes.subscribe(oe=>{if(this._activeItem){const gn=oe.toArray().indexOf(this._activeItem);gn>-1&&gn!==this._activeItemIndex&&(this._activeItemIndex=gn)}})}skipPredicate(Be){return this._skipPredicateFn=Be,this}withWrap(Be=!0){return this._wrap=Be,this}withVerticalOrientation(Be=!0){return this._vertical=Be,this}withHorizontalOrientation(Be){return this._horizontal=Be,this}withAllowedModifierKeys(Be){return this._allowedModifierKeys=Be,this}withTypeAhead(Be=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,P.b)(oe=>this._pressedLetters.push(oe)),(0,O.b)(Be),(0,L.h)(()=>this._pressedLetters.length>0),(0,N.U)(()=>this._pressedLetters.join(""))).subscribe(oe=>{const rn=this._getItemsArray();for(let gn=1;gn!Be[cn]||this._allowedModifierKeys.indexOf(cn)>-1);switch(oe){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&gn){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&gn){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&gn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&gn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&gn){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&gn){this.setLastItemActive();break}return;default:return void((gn||(0,w.Vb)(Be,"shiftKey"))&&(Be.key&&1===Be.key.length?this._letterKeyStream.next(Be.key.toLocaleUpperCase()):(oe>=w.A&&oe<=w.Z||oe>=w.xE&&oe<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(oe))))}this._pressedLetters=[],Be.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Be){const oe=this._getItemsArray(),rn="number"==typeof Be?Be:oe.indexOf(Be);this._activeItem=oe[rn]??null,this._activeItemIndex=rn}_setActiveItemByDelta(Be){this._wrap?this._setActiveInWrapMode(Be):this._setActiveInDefaultMode(Be)}_setActiveInWrapMode(Be){const oe=this._getItemsArray();for(let rn=1;rn<=oe.length;rn++){const gn=(this._activeItemIndex+Be*rn+oe.length)%oe.length;if(!this._skipPredicateFn(oe[gn]))return void this.setActiveItem(gn)}}_setActiveInDefaultMode(Be){this._setActiveItemByIndex(this._activeItemIndex+Be,Be)}_setActiveItemByIndex(Be,oe){const rn=this._getItemsArray();if(rn[Be]){for(;this._skipPredicateFn(rn[Be]);)if(!rn[Be+=oe])return;this.setActiveItem(Be)}}_getItemsArray(){return this._items instanceof d.n_E?this._items.toArray():this._items}}class be extends Vt{setActiveItem(Be){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Be),this.activeItem&&this.activeItem.setActiveStyles()}}class ge extends Vt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Be){return this._origin=Be,this}setActiveItem(Be){super.setActiveItem(Be),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class ce{constructor(oe){this._platform=oe}isDisabled(oe){return oe.hasAttribute("disabled")}isVisible(oe){return function Qt(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(oe)&&"visible"===getComputedStyle(oe).visibility}isTabbable(oe){if(!this._platform.isBrowser)return!1;const rn=function je(ce){try{return ce.frameElement}catch{return null}}(function Ce(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(oe));if(rn&&(-1===De(rn)||!this.isVisible(rn)))return!1;let gn=oe.nodeName.toLowerCase(),cn=De(oe);return oe.hasAttribute("contenteditable")?-1!==cn:!("iframe"===gn||"object"===gn||this._platform.WEBKIT&&this._platform.IOS&&!function nn(ce){let Be=ce.nodeName.toLowerCase(),oe="input"===Be&&ce.type;return"text"===oe||"password"===oe||"select"===Be||"textarea"===Be}(oe))&&("audio"===gn?!!oe.hasAttribute("controls")&&-1!==cn:"video"===gn?-1!==cn&&(null!==cn||this._platform.FIREFOX||oe.hasAttribute("controls")):oe.tabIndex>=0)}isFocusable(oe,rn){return function hn(ce){return!function ie(ce){return function se(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function Ue(ce){let Be=ce.nodeName.toLowerCase();return"input"===Be||"select"===Be||"button"===Be||"textarea"===Be}(ce)||function Wt(ce){return function Xt(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||ae(ce))}(oe)&&!this.isDisabled(oe)&&(rn?.ignoreVisibility||this.isVisible(oe))}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(v.t4))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function ae(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let Be=ce.getAttribute("tabindex");return!(!Be||isNaN(parseInt(Be,10)))}function De(ce){if(!ae(ce))return null;const Be=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(Be)?-1:Be}class bn{constructor(Be,oe,rn,gn,cn=!1){this._element=Be,this._checker=oe,this._ngZone=rn,this._document=gn,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,cn||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Be){this._enabled=Be,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Be,this._startAnchor),this._toggleAnchorTabIndex(Be,this._endAnchor))}destroy(){const Be=this._startAnchor,oe=this._endAnchor;Be&&(Be.removeEventListener("focus",this.startAnchorListener),Be.remove()),oe&&(oe.removeEventListener("focus",this.endAnchorListener),oe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Be){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusInitialElement(Be)))})}focusFirstTabbableElementWhenReady(Be){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusFirstTabbableElement(Be)))})}focusLastTabbableElementWhenReady(Be){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusLastTabbableElement(Be)))})}_getRegionBoundary(Be){const oe=this._element.querySelectorAll(`[cdk-focus-region-${Be}], [cdkFocusRegion${Be}], [cdk-focus-${Be}]`);return"start"==Be?oe.length?oe[0]:this._getFirstTabbableElement(this._element):oe.length?oe[oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Be){const oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(oe){if(!this._checker.isFocusable(oe)){const rn=this._getFirstTabbableElement(oe);return rn?.focus(Be),!!rn}return oe.focus(Be),!0}return this.focusFirstTabbableElement(Be)}focusFirstTabbableElement(Be){const oe=this._getRegionBoundary("start");return oe&&oe.focus(Be),!!oe}focusLastTabbableElement(Be){const oe=this._getRegionBoundary("end");return oe&&oe.focus(Be),!!oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Be){if(this._checker.isFocusable(Be)&&this._checker.isTabbable(Be))return Be;const oe=Be.children;for(let rn=0;rn=0;rn--){const gn=oe[rn].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(oe[rn]):null;if(gn)return gn}return null}_createAnchor(){const Be=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Be),Be.classList.add("cdk-visually-hidden"),Be.classList.add("cdk-focus-trap-anchor"),Be.setAttribute("aria-hidden","true"),Be}_toggleAnchorTabIndex(Be,oe){Be?oe.setAttribute("tabindex","0"):oe.removeAttribute("tabindex")}toggleAnchors(Be){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Be,this._startAnchor),this._toggleAnchorTabIndex(Be,this._endAnchor))}_executeOnStable(Be){this._ngZone.isStable?Be():this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(Be)}}let Oe=(()=>{class ce{constructor(oe,rn,gn){this._checker=oe,this._ngZone=rn,this._document=gn}create(oe,rn=!1){return new bn(oe,this._checker,this._ngZone,this._document,rn)}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(qe),d.LFG(d.R0b),d.LFG(u.K0))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),dn=(()=>{class ce{constructor(oe,rn,gn){this._elementRef=oe,this._focusTrapFactory=rn,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(oe){this.focusTrap.enabled=(0,lt.Ig)(oe)}get autoCapture(){return this._autoCapture}set autoCapture(oe){this._autoCapture=(0,lt.Ig)(oe)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(oe){const rn=oe.autoCapture;rn&&!rn.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.Y36(d.SBq),d.Y36(Oe),d.Y36(u.K0))},ce.\u0275dir=d.lG2({type:ce,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[d.TTD]}),ce})();function ee(ce){return 0===ce.buttons||0===ce.offsetX&&0===ce.offsetY}function ot(ce){const Be=ce.touches&&ce.touches[0]||ce.changedTouches&&ce.changedTouches[0];return!(!Be||-1!==Be.identifier||null!=Be.radiusX&&1!==Be.radiusX||null!=Be.radiusY&&1!==Be.radiusY)}const X=new d.OlP("cdk-input-modality-detector-options"),At={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},ue=(0,v.i$)({passive:!0,capture:!0});let ye=(()=>{class ce{constructor(oe,rn,gn,cn){this._platform=oe,this._mostRecentTarget=null,this._modality=new T.X(null),this._lastTouchMs=0,this._onKeydown=xe=>{this._options?.ignoreKeys?.some(It=>It===xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(xe))},this._onMousedown=xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ee(xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(xe))},this._onTouchstart=xe=>{ot(xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(xe))},this._options={...At,...cn},this.modalityDetected=this._modality.pipe((0,K.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,et.x)()),oe.isBrowser&&rn.runOutsideAngular(()=>{gn.addEventListener("keydown",this._onKeydown,ue),gn.addEventListener("mousedown",this._onMousedown,ue),gn.addEventListener("touchstart",this._onTouchstart,ue)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ue),document.removeEventListener("mousedown",this._onMousedown,ue),document.removeEventListener("touchstart",this._onTouchstart,ue))}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(v.t4),d.LFG(d.R0b),d.LFG(u.K0),d.LFG(X,8))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const Se=new d.OlP("liveAnnouncerElement",{providedIn:"root",factory:function vn(){return null}}),qn=new d.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class ce{constructor(oe,rn,gn,cn){this._ngZone=rn,this._defaultOptions=cn,this._document=gn,this._liveElement=oe||this._createLiveElement()}announce(oe,...rn){const gn=this._defaultOptions;let cn,xe;return 1===rn.length&&"number"==typeof rn[0]?xe=rn[0]:[cn,xe]=rn,this.clear(),clearTimeout(this._previousTimeout),cn||(cn=gn&&gn.politeness?gn.politeness:"polite"),null==xe&&gn&&(xe=gn.duration),this._liveElement.setAttribute("aria-live",cn),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(It=>this._currentResolve=It)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=oe,"number"==typeof xe&&(this._previousTimeout=setTimeout(()=>this.clear(),xe)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const oe="cdk-live-announcer-element",rn=this._document.getElementsByClassName(oe),gn=this._document.createElement("div");for(let cn=0;cn{class ce{constructor(oe,rn,gn,cn,xe){this._ngZone=oe,this._platform=rn,this._inputModalityDetector=gn,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new g.xQ,this._rootNodeFocusAndBlurListener=It=>{for(let zt=(0,v.sA)(It);zt;zt=zt.parentElement)"focus"===It.type?this._onFocus(It,zt):this._onBlur(It,zt)},this._document=cn,this._detectionMode=xe?.detectionMode||0}monitor(oe,rn=!1){const gn=(0,lt.fI)(oe);if(!this._platform.isBrowser||1!==gn.nodeType)return(0,U.of)(null);const cn=(0,v.kV)(gn)||this._getDocument(),xe=this._elementInfo.get(gn);if(xe)return rn&&(xe.checkChildren=!0),xe.subject;const It={checkChildren:rn,subject:new g.xQ,rootNode:cn};return this._elementInfo.set(gn,It),this._registerGlobalListeners(It),It.subject}stopMonitoring(oe){const rn=(0,lt.fI)(oe),gn=this._elementInfo.get(rn);gn&&(gn.subject.complete(),this._setClasses(rn),this._elementInfo.delete(rn),this._removeGlobalListeners(gn))}focusVia(oe,rn,gn){const cn=(0,lt.fI)(oe);cn===this._getDocument().activeElement?this._getClosestElementsInfo(cn).forEach(([It,Le])=>this._originChanged(It,rn,Le)):(this._setOrigin(rn),"function"==typeof cn.focus&&cn.focus(gn))}ngOnDestroy(){this._elementInfo.forEach((oe,rn)=>this.stopMonitoring(rn))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:oe&&this._isLastInteractionFromInputLabel(oe)?"mouse":"program"}_shouldBeAttributedToTouch(oe){return 1===this._detectionMode||!!oe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(oe,rn){oe.classList.toggle("cdk-focused",!!rn),oe.classList.toggle("cdk-touch-focused","touch"===rn),oe.classList.toggle("cdk-keyboard-focused","keyboard"===rn),oe.classList.toggle("cdk-mouse-focused","mouse"===rn),oe.classList.toggle("cdk-program-focused","program"===rn)}_setOrigin(oe,rn=!1){this._ngZone.runOutsideAngular(()=>{this._origin=oe,this._originFromTouchInteraction="touch"===oe&&rn,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(oe,rn){const gn=this._elementInfo.get(rn),cn=(0,v.sA)(oe);!gn||!gn.checkChildren&&rn!==cn||this._originChanged(rn,this._getFocusOrigin(cn),gn)}_onBlur(oe,rn){const gn=this._elementInfo.get(rn);!gn||gn.checkChildren&&oe.relatedTarget instanceof Node&&rn.contains(oe.relatedTarget)||(this._setClasses(rn),this._emitOrigin(gn,null))}_emitOrigin(oe,rn){oe.subject.observers.length&&this._ngZone.run(()=>oe.subject.next(rn))}_registerGlobalListeners(oe){if(!this._platform.isBrowser)return;const rn=oe.rootNode,gn=this._rootNodeFocusListenerCount.get(rn)||0;gn||this._ngZone.runOutsideAngular(()=>{rn.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),rn.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(rn,gn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ct.R)(this._stopInputModalityDetector)).subscribe(cn=>{this._setOrigin(cn,!0)}))}_removeGlobalListeners(oe){const rn=oe.rootNode;if(this._rootNodeFocusListenerCount.has(rn)){const gn=this._rootNodeFocusListenerCount.get(rn);gn>1?this._rootNodeFocusListenerCount.set(rn,gn-1):(rn.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hi),rn.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hi),this._rootNodeFocusListenerCount.delete(rn))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(oe,rn,gn){this._setClasses(oe,rn),this._emitOrigin(gn,rn),this._lastFocusOrigin=rn}_getClosestElementsInfo(oe){const rn=[];return this._elementInfo.forEach((gn,cn)=>{(cn===oe||gn.checkChildren&&cn.contains(oe))&&rn.push([cn,gn])}),rn}_isLastInteractionFromInputLabel(oe){const{_mostRecentTarget:rn,mostRecentModality:gn}=this._inputModalityDetector;if("mouse"!==gn||!rn||rn===oe||"INPUT"!==oe.nodeName&&"TEXTAREA"!==oe.nodeName||oe.disabled)return!1;const cn=oe.labels;if(cn)for(let xe=0;xe{class ce{constructor(oe,rn){this._elementRef=oe,this._focusMonitor=rn,this._focusOrigin=null,this.cdkFocusChange=new d.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const oe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(oe,1===oe.nodeType&&oe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(rn=>{this._focusOrigin=rn,this.cdkFocusChange.emit(rn)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.Y36(d.SBq),d.Y36(zn))},ce.\u0275dir=d.lG2({type:ce,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),ce})();const Qe="cdk-high-contrast-black-on-white",xn="cdk-high-contrast-white-on-black",Ve="cdk-high-contrast-active";let Ne=(()=>{class ce{constructor(oe,rn){this._platform=oe,this._document=rn,this._breakpointSubscription=(0,d.f3M)(Dt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const oe=this._document.createElement("div");oe.style.backgroundColor="rgb(1,2,3)",oe.style.position="absolute",this._document.body.appendChild(oe);const rn=this._document.defaultView||window,gn=rn&&rn.getComputedStyle?rn.getComputedStyle(oe):null,cn=(gn&&gn.backgroundColor||"").replace(/ /g,"");switch(oe.remove(),cn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const oe=this._document.body.classList;oe.remove(Ve,Qe,xn),this._hasCheckedHighContrastMode=!0;const rn=this.getHighContrastMode();1===rn?oe.add(Ve,Qe):2===rn&&oe.add(Ve,xn)}}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(v.t4),d.LFG(u.K0))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),tn=(()=>{class ce{constructor(oe){oe._applyBodyHighContrastModeCssClasses()}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(Ne))},ce.\u0275mod=d.oAB({type:ce}),ce.\u0275inj=d.cJS({imports:[Ct.Q8]}),ce})()},40445:(tt,W,f)=>{"use strict";f.d(W,{Is:()=>U,vT:()=>P});var u=f(94650),d=f(36895);const v=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function g(){return(0,u.f3M)(d.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let U=(()=>{class O{constructor(N){if(this.value="ltr",this.change=new u.vpe,N){const K=N.documentElement?N.documentElement.dir:null;this.value=function T(O){const L=O?.toLowerCase()||"";return"auto"===L&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===L?"rtl":"ltr"}((N.body?N.body.dir:null)||K||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(N){return new(N||O)(u.LFG(v,8))},O.\u0275prov=u.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),P=(()=>{class O{}return O.\u0275fac=function(N){return new(N||O)},O.\u0275mod=u.oAB({type:O}),O.\u0275inj=u.cJS({}),O})()},64425:(tt,W,f)=>{"use strict";f.d(W,{TU:()=>g});var u=f(36895),d=f(94650);class v{constructor(P,O){this._document=O;const L=this._textarea=this._document.createElement("textarea"),N=L.style;N.position="fixed",N.top=N.opacity="0",N.left="-999em",L.setAttribute("aria-hidden","true"),L.value=P,L.readOnly=!0,this._document.body.appendChild(L)}copy(){const P=this._textarea;let O=!1;try{if(P){const L=this._document.activeElement;P.select(),P.setSelectionRange(0,P.value.length),O=this._document.execCommand("copy"),L&&L.focus()}}catch{}return O}destroy(){const P=this._textarea;P&&(P.remove(),this._textarea=void 0)}}let g=(()=>{class w{constructor(O){this._document=O}copy(O){const L=this.beginCopy(O),N=L.copy();return L.destroy(),N}beginCopy(O){return new v(O,this._document)}}return w.\u0275fac=function(O){return new(O||w)(d.LFG(u.K0))},w.\u0275prov=d.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},21281:(tt,W,f)=>{"use strict";f.d(W,{Eq:()=>t,HM:()=>T,Ig:()=>d,du:()=>w,fI:()=>U,su:()=>v,t6:()=>g});var u=f(94650);function d(P){return null!=P&&"false"!=`${P}`}function v(P,O=0){return g(P)?Number(P):O}function g(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}function t(P){return Array.isArray(P)?P:[P]}function T(P){return null==P?"":"string"==typeof P?P:`${P}px`}function U(P){return P instanceof u.SBq?P.nativeElement:P}function w(P,O=/\s+/){const L=[];if(null!=P){const N=Array.isArray(P)?P:`${P}`.split(O);for(const B of N){const K=`${B}`.trim();K&&L.push(K)}}return L}},95017:(tt,W,f)=>{"use strict";f.d(W,{A8:()=>L,Ov:()=>P,Z9:()=>t,eX:()=>w,k:()=>N,o2:()=>g,yy:()=>U});var u=f(71762),d=f(8929),v=f(94650);class g{}function t(B){return B&&"function"==typeof B.connect&&!(B instanceof u.c)}class U{applyChanges(K,et,ct,lt,Ct){K.forEachOperation((Dt,Zt,Rt)=>{let Gt,Tt;if(null==Dt.previousIndex){const Ut=ct(Dt,Zt,Rt);Gt=et.createEmbeddedView(Ut.templateRef,Ut.context,Ut.index),Tt=1}else null==Rt?(et.remove(Zt),Tt=3):(Gt=et.get(Zt),et.move(Gt,Rt),Tt=2);Ct&&Ct({context:Gt?.context,operation:Tt,record:Dt})})}detach(){}}class w{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(K,et,ct,lt,Ct){K.forEachOperation((Dt,Zt,Rt)=>{let Gt,Tt;null==Dt.previousIndex?(Gt=this._insertView(()=>ct(Dt,Zt,Rt),Rt,et,lt(Dt)),Tt=Gt?1:0):null==Rt?(this._detachAndCacheView(Zt,et),Tt=3):(Gt=this._moveView(Zt,Rt,et,lt(Dt)),Tt=2),Ct&&Ct({context:Gt?.context,operation:Tt,record:Dt})})}detach(){for(const K of this._viewCache)K.destroy();this._viewCache=[]}_insertView(K,et,ct,lt){const Ct=this._insertViewFromCache(et,ct);if(Ct)return void(Ct.context.$implicit=lt);const Dt=K();return ct.createEmbeddedView(Dt.templateRef,Dt.context,Dt.index)}_detachAndCacheView(K,et){const ct=et.detach(K);this._maybeCacheView(ct,et)}_moveView(K,et,ct,lt){const Ct=ct.get(K);return ct.move(Ct,et),Ct.context.$implicit=lt,Ct}_maybeCacheView(K,et){if(this._viewCache.lengththis._markSelected(Ct)):this._markSelected(et[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...K){this._verifyValueAssignment(K),K.forEach(ct=>this._markSelected(ct));const et=this._hasQueuedChanges();return this._emitChangeEvent(),et}deselect(...K){this._verifyValueAssignment(K),K.forEach(ct=>this._unmarkSelected(ct));const et=this._hasQueuedChanges();return this._emitChangeEvent(),et}setSelection(...K){this._verifyValueAssignment(K);const et=this.selected,ct=new Set(K);K.forEach(Ct=>this._markSelected(Ct)),et.filter(Ct=>!ct.has(Ct)).forEach(Ct=>this._unmarkSelected(Ct));const lt=this._hasQueuedChanges();return this._emitChangeEvent(),lt}toggle(K){return this.isSelected(K)?this.deselect(K):this.select(K)}clear(K=!0){this._unmarkAll();const et=this._hasQueuedChanges();return K&&this._emitChangeEvent(),et}isSelected(K){if(this.compareWith){for(const et of this._selection)if(this.compareWith(et,K))return!0;return!1}return this._selection.has(K)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(K){this._multiple&&this.selected&&this._selected.sort(K)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(K){this.isSelected(K)||(this._multiple||this._unmarkAll(),this.isSelected(K)||this._selection.add(K),this._emitChanges&&this._selectedToEmit.push(K))}_unmarkSelected(K){this.isSelected(K)&&(this._selection.delete(K),this._emitChanges&&this._deselectedToEmit.push(K))}_unmarkAll(){this.isEmpty()||this._selection.forEach(K=>this._unmarkSelected(K))}_verifyValueAssignment(K){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let L=(()=>{class B{constructor(){this._listeners=[]}notify(et,ct){for(let lt of this._listeners)lt(et,ct)}listen(et){return this._listeners.push(et),()=>{this._listeners=this._listeners.filter(ct=>et!==ct)}}ngOnDestroy(){this._listeners=[]}}return B.\u0275fac=function(et){return new(et||B)},B.\u0275prov=v.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const N=new v.OlP("_ViewRepeater")},53977:(tt,W,f)=>{"use strict";f.d(W,{Zt:()=>rn,Wj:()=>Qe,_t:()=>gn,bA:()=>dn});var u=f(94650),d=f(36895),v=f(67376),g=f(83353),t=f(21281),T=f(12687),U=f(8929),w=f(42654),P=f(56498),O=f(20353),L=f(84241);function B(cn){const{subscriber:xe,counter:It,period:Le}=cn;xe.next(It),this.schedule({subscriber:xe,counter:It+1,period:Le},Le)}var K=f(90352),et=f(36787),ct=f(7625),lt=f(1059),Ct=f(24850),Dt=f(72986),Zt=f(22868),Rt=f(87545),Gt=f(40445);function Tt(cn,xe,It){for(let Le in xe)if(xe.hasOwnProperty(Le)){const zt=xe[Le];zt?cn.setProperty(Le,zt,It?.has(Le)?"important":""):cn.removeProperty(Le)}return cn}function Ut(cn,xe){const It=xe?"":"none";Tt(cn.style,{"touch-action":xe?"":"none","-webkit-user-drag":xe?"":"none","-webkit-tap-highlight-color":xe?"":"transparent","user-select":It,"-ms-user-select":It,"-webkit-user-select":It,"-moz-user-select":It})}function bt(cn,xe,It){Tt(cn.style,{position:xe?"":"fixed",top:xe?"":"0",opacity:xe?"":"0",left:xe?"":"-999em"},It)}function mt(cn,xe){return xe&&"none"!=xe?cn+" "+xe:cn}function Lt(cn){const xe=cn.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(cn)*xe}function kt(cn,xe){return cn.getPropertyValue(xe).split(",").map(Le=>Le.trim())}function le(cn){const xe=cn.getBoundingClientRect();return{top:xe.top,right:xe.right,bottom:xe.bottom,left:xe.left,width:xe.width,height:xe.height,x:xe.x,y:xe.y}}function Vt(cn,xe,It){const{top:Le,bottom:zt,left:we,right:He}=cn;return It>=Le&&It<=zt&&xe>=we&&xe<=He}function be(cn,xe,It){cn.top+=xe,cn.bottom=cn.top+cn.height,cn.left+=It,cn.right=cn.left+cn.width}function ge(cn,xe,It,Le){const{top:zt,right:we,bottom:He,left:kn,width:Ei,height:Bi}=cn,un=Ei*xe,_n=Bi*xe;return Le>zt-_n&&Lekn-un&&It{this.positions.set(It,{scrollPosition:{top:It.scrollTop,left:It.scrollLeft},clientRect:le(It)})})}handleScroll(xe){const It=(0,g.sA)(xe),Le=this.positions.get(It);if(!Le)return null;const zt=Le.scrollPosition;let we,He;if(It===this._document){const Bi=this.getViewportScrollPosition();we=Bi.top,He=Bi.left}else we=It.scrollTop,He=It.scrollLeft;const kn=zt.top-we,Ei=zt.left-He;return this.positions.forEach((Bi,un)=>{Bi.clientRect&&It!==un&&It.contains(un)&&be(Bi.clientRect,kn,Ei)}),zt.top=we,zt.left=He,{top:kn,left:Ei}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function qe(cn){const xe=cn.cloneNode(!0),It=xe.querySelectorAll("[id]"),Le=cn.nodeName.toLowerCase();xe.removeAttribute("id");for(let zt=0;zt{if(this.beforeStarted.next(),this._handles.length){const Ei=this._getTargetHandle(kn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&this._initializeDragSequence(Ei,kn)}else this.disabled||this._initializeDragSequence(this._rootElement,kn)},this._pointerMove=kn=>{const Ei=this._getPointerPositionOnPage(kn);if(!this._hasStartedDragging){if(Math.abs(Ei.x-this._pickupPositionOnPage.x)+Math.abs(Ei.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const ai=Date.now()>=this._dragStartTime+this._getDragStartDelay(kn),xi=this._dropContainer;if(!ai)return void this._endDragSequence(kn);(!xi||!xi.isDragging()&&!xi.isReceiving())&&(kn.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(kn)))}return}kn.preventDefault();const Bi=this._getConstrainedPointerPosition(Ei);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ei,this._updatePointerDirectionDelta(Bi),this._dropContainer)this._updateActiveDropContainer(Bi,Ei);else{const un=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,_n=this._activeTransform;_n.x=Bi.x-un.x+this._passiveTransform.x,_n.y=Bi.y-un.y+this._passiveTransform.y,this._applyRootElementTransform(_n.x,_n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Bi,event:kn,distance:this._getDragDistance(Bi),delta:this._pointerDirectionDelta})})},this._pointerUp=kn=>{this._endDragSequence(kn)},this._nativeDragStart=kn=>{if(this._handles.length){const Ei=this._getTargetHandle(kn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&kn.preventDefault()}else this.disabled||kn.preventDefault()},this.withRootElement(xe).withParent(It.parentDragRef||null),this._parentPositions=new Fe(Le),He.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(xe){const It=(0,t.Ig)(xe);It!==this._disabled&&(this._disabled=It,this._toggleNativeDragInteractions(),this._handles.forEach(Le=>Ut(Le,It)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(xe){this._handles=xe.map(Le=>(0,t.fI)(Le)),this._handles.forEach(Le=>Ut(Le,this.disabled)),this._toggleNativeDragInteractions();const It=new Set;return this._disabledHandles.forEach(Le=>{this._handles.indexOf(Le)>-1&&It.add(Le)}),this._disabledHandles=It,this}withPreviewTemplate(xe){return this._previewTemplate=xe,this}withPlaceholderTemplate(xe){return this._placeholderTemplate=xe,this}withRootElement(xe){const It=(0,t.fI)(xe);return It!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{It.addEventListener("mousedown",this._pointerDown,se),It.addEventListener("touchstart",this._pointerDown,Wt),It.addEventListener("dragstart",this._nativeDragStart,se)}),this._initialTransform=void 0,this._rootElement=It),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(xe){return this._boundaryElement=xe?(0,t.fI)(xe):null,this._resizeSubscription.unsubscribe(),xe&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(xe){return this._parentDragRef=xe,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(xe){!this._disabledHandles.has(xe)&&this._handles.indexOf(xe)>-1&&(this._disabledHandles.add(xe),Ut(xe,!0))}enableHandle(xe){this._disabledHandles.has(xe)&&(this._disabledHandles.delete(xe),Ut(xe,this.disabled))}withDirection(xe){return this._direction=xe,this}_withDropContainer(xe){this._dropContainer=xe}getFreeDragPosition(){const xe=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:xe.x,y:xe.y}}setFreeDragPosition(xe){return this._activeTransform={x:0,y:0},this._passiveTransform.x=xe.x,this._passiveTransform.y=xe.y,this._dropContainer||this._applyRootElementTransform(xe.x,xe.y),this}withPreviewContainer(xe){return this._previewContainer=xe,this}_sortFromLastPointerPosition(){const xe=this._lastKnownPointerPosition;xe&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(xe),xe)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(xe){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:xe}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(xe),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const It=this._getPointerPositionOnPage(xe);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(It),dropPoint:It,event:xe})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(xe){Ce(xe)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const It=this._dropContainer;if(It){const Le=this._rootElement,zt=Le.parentNode,we=this._placeholder=this._createPlaceholderElement(),He=this._anchor=this._anchor||this._document.createComment(""),kn=this._getShadowRoot();zt.insertBefore(He,Le),this._initialTransform=Le.style.transform||"",this._preview=this._createPreviewElement(),bt(Le,!1,ae),this._document.body.appendChild(zt.replaceChild(we,Le)),this._getPreviewInsertionPoint(zt,kn).appendChild(this._preview),this.started.next({source:this,event:xe}),It.start(),this._initialContainer=It,this._initialIndex=It.getItemIndex(this)}else this.started.next({source:this,event:xe}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(It?It.getScrollableParents():[])}_initializeDragSequence(xe,It){this._parentDragRef&&It.stopPropagation();const Le=this.isDragging(),zt=Ce(It),we=!zt&&0!==It.button,He=this._rootElement,kn=(0,g.sA)(It),Ei=!zt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Bi=zt?(0,T.yG)(It):(0,T.X6)(It);if(kn&&kn.draggable&&"mousedown"===It.type&&It.preventDefault(),Le||we||Ei||Bi)return;if(this._handles.length){const Ke=He.style;this._rootElementTapHighlight=Ke.webkitTapHighlightColor||"",Ke.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ke=>this._updateOnScroll(Ke)),this._boundaryElement&&(this._boundaryRect=le(this._boundaryElement));const un=this._previewTemplate;this._pickupPositionInElement=un&&un.template&&!un.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,xe,It);const _n=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(It);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:_n.x,y:_n.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,It)}_cleanupDragArtifacts(xe){bt(this._rootElement,!0,ae),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const It=this._dropContainer,Le=It.getItemIndex(this),zt=this._getPointerPositionOnPage(xe),we=this._getDragDistance(zt),He=It._isOverContainer(zt.x,zt.y);this.ended.next({source:this,distance:we,dropPoint:zt,event:xe}),this.dropped.next({item:this,currentIndex:Le,previousIndex:this._initialIndex,container:It,previousContainer:this._initialContainer,isPointerOverContainer:He,distance:we,dropPoint:zt,event:xe}),It.drop(this,Le,this._initialIndex,this._initialContainer,He,we,zt,xe),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:xe,y:It},{x:Le,y:zt}){let we=this._initialContainer._getSiblingContainerFromPosition(this,xe,It);!we&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(xe,It)&&(we=this._initialContainer),we&&we!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=we,this._dropContainer.enter(this,xe,It,we===this._initialContainer&&we.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:we,currentIndex:we.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Le,zt),this._dropContainer._sortItem(this,xe,It,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(xe,It):this._applyPreviewTransform(xe-this._pickupPositionInElement.x,It-this._pickupPositionInElement.y))}_createPreviewElement(){const xe=this._previewTemplate,It=this.previewClass,Le=xe?xe.template:null;let zt;if(Le&&xe){const we=xe.matchSize?this._initialClientRect:null,He=xe.viewContainer.createEmbeddedView(Le,xe.context);He.detectChanges(),zt=bn(He,this._document),this._previewRef=He,xe.matchSize?Oe(zt,we):zt.style.transform=nn(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else zt=qe(this._rootElement),Oe(zt,this._initialClientRect),this._initialTransform&&(zt.style.transform=this._initialTransform);return Tt(zt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ae),Ut(zt,!1),zt.classList.add("cdk-drag-preview"),zt.setAttribute("dir",this._direction),It&&(Array.isArray(It)?It.forEach(we=>zt.classList.add(we)):zt.classList.add(It)),zt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const xe=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(xe.left,xe.top);const It=function Bt(cn){const xe=getComputedStyle(cn),It=kt(xe,"transition-property"),Le=It.find(kn=>"transform"===kn||"all"===kn);if(!Le)return 0;const zt=It.indexOf(Le),we=kt(xe,"transition-duration"),He=kt(xe,"transition-delay");return Lt(we[zt])+Lt(He[zt])}(this._preview);return 0===It?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Le=>{const zt=He=>{(!He||(0,g.sA)(He)===this._preview&&"transform"===He.propertyName)&&(this._preview?.removeEventListener("transitionend",zt),Le(),clearTimeout(we))},we=setTimeout(zt,1.5*It);this._preview.addEventListener("transitionend",zt)}))}_createPlaceholderElement(){const xe=this._placeholderTemplate,It=xe?xe.template:null;let Le;return It?(this._placeholderRef=xe.viewContainer.createEmbeddedView(It,xe.context),this._placeholderRef.detectChanges(),Le=bn(this._placeholderRef,this._document)):Le=qe(this._rootElement),Le.style.pointerEvents="none",Le.classList.add("cdk-drag-placeholder"),Le}_getPointerPositionInElement(xe,It,Le){const zt=It===this._rootElement?null:It,we=zt?zt.getBoundingClientRect():xe,He=Ce(Le)?Le.targetTouches[0]:Le,kn=this._getViewportScrollPosition();return{x:we.left-xe.left+(He.pageX-we.left-kn.left),y:we.top-xe.top+(He.pageY-we.top-kn.top)}}_getPointerPositionOnPage(xe){const It=this._getViewportScrollPosition(),Le=Ce(xe)?xe.touches[0]||xe.changedTouches[0]||{pageX:0,pageY:0}:xe,zt=Le.pageX-It.left,we=Le.pageY-It.top;if(this._ownerSVGElement){const He=this._ownerSVGElement.getScreenCTM();if(He){const kn=this._ownerSVGElement.createSVGPoint();return kn.x=zt,kn.y=we,kn.matrixTransform(He.inverse())}}return{x:zt,y:we}}_getConstrainedPointerPosition(xe){const It=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Le,y:zt}=this.constrainPosition?this.constrainPosition(xe,this,this._initialClientRect,this._pickupPositionInElement):xe;if("x"===this.lockAxis||"x"===It?zt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===It)&&(Le=this._pickupPositionOnPage.x),this._boundaryRect){const{x:we,y:He}=this._pickupPositionInElement,kn=this._boundaryRect,{width:Ei,height:Bi}=this._getPreviewRect(),un=kn.top+He,_n=kn.bottom-(Bi-He);Le=hn(Le,kn.left+we,kn.right-(Ei-we)),zt=hn(zt,un,_n)}return{x:Le,y:zt}}_updatePointerDirectionDelta(xe){const{x:It,y:Le}=xe,zt=this._pointerDirectionDelta,we=this._pointerPositionAtLastDirectionChange,He=Math.abs(It-we.x),kn=Math.abs(Le-we.y);return He>this._config.pointerDirectionChangeThreshold&&(zt.x=It>we.x?1:-1,we.x=It),kn>this._config.pointerDirectionChangeThreshold&&(zt.y=Le>we.y?1:-1,we.y=Le),zt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const xe=this._handles.length>0||!this.isDragging();xe!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=xe,Ut(this._rootElement,xe))}_removeRootElementListeners(xe){xe.removeEventListener("mousedown",this._pointerDown,se),xe.removeEventListener("touchstart",this._pointerDown,Wt),xe.removeEventListener("dragstart",this._nativeDragStart,se)}_applyRootElementTransform(xe,It){const Le=nn(xe,It),zt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=zt.transform&&"none"!=zt.transform?zt.transform:""),zt.transform=mt(Le,this._initialTransform)}_applyPreviewTransform(xe,It){const Le=this._previewTemplate?.template?void 0:this._initialTransform,zt=nn(xe,It);this._preview.style.transform=mt(zt,Le)}_getDragDistance(xe){const It=this._pickupPositionOnPage;return It?{x:xe.x-It.x,y:xe.y-It.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:xe,y:It}=this._passiveTransform;if(0===xe&&0===It||this.isDragging()||!this._boundaryElement)return;const Le=this._rootElement.getBoundingClientRect(),zt=this._boundaryElement.getBoundingClientRect();if(0===zt.width&&0===zt.height||0===Le.width&&0===Le.height)return;const we=zt.left-Le.left,He=Le.right-zt.right,kn=zt.top-Le.top,Ei=Le.bottom-zt.bottom;zt.width>Le.width?(we>0&&(xe+=we),He>0&&(xe-=He)):xe=0,zt.height>Le.height?(kn>0&&(It+=kn),Ei>0&&(It-=Ei)):It=0,(xe!==this._passiveTransform.x||It!==this._passiveTransform.y)&&this.setFreeDragPosition({y:It,x:xe})}_getDragStartDelay(xe){const It=this.dragStartDelay;return"number"==typeof It?It:Ce(xe)?It.touch:It?It.mouse:0}_updateOnScroll(xe){const It=this._parentPositions.handleScroll(xe);if(It){const Le=(0,g.sA)(xe);this._boundaryRect&&Le!==this._boundaryElement&&Le.contains(this._boundaryElement)&&be(this._boundaryRect,It.top,It.left),this._pickupPositionOnPage.x+=It.left,this._pickupPositionOnPage.y+=It.top,this._dropContainer||(this._activeTransform.x-=It.left,this._activeTransform.y-=It.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,g.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(xe,It){const Le=this._previewContainer||"global";if("parent"===Le)return xe;if("global"===Le){const zt=this._document;return It||zt.fullscreenElement||zt.webkitFullscreenElement||zt.mozFullScreenElement||zt.msFullscreenElement||zt.body}return(0,t.fI)(Le)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(xe){return this._handles.find(It=>xe.target&&(xe.target===It||It.contains(xe.target)))}}function nn(cn,xe){return`translate3d(${Math.round(cn)}px, ${Math.round(xe)}px, 0)`}function hn(cn,xe,It){return Math.max(xe,Math.min(It,cn))}function Ce(cn){return"t"===cn.type[0]}function bn(cn,xe){const It=cn.rootNodes;if(1===It.length&&It[0].nodeType===xe.ELEMENT_NODE)return It[0];const Le=xe.createElement("div");return It.forEach(zt=>Le.appendChild(zt)),Le}function Oe(cn,xe){cn.style.width=`${xe.width}px`,cn.style.height=`${xe.height}px`,cn.style.transform=nn(xe.left,xe.top)}function dn(cn,xe,It){const Le=_i(xe,cn.length-1),zt=_i(It,cn.length-1);if(Le===zt)return;const we=cn[Le],He=zt0)return null;const kn="horizontal"===this.orientation,Ei=we.findIndex(Co=>Co.drag===xe),Bi=we[He],_n=Bi.clientRect,Ke=Ei>He?1:-1,ai=this._getItemOffsetPx(we[Ei].clientRect,_n,Ke),xi=this._getSiblingOffsetPx(Ei,we,Ke),co=we.slice();return dn(we,Ei,He),we.forEach((Co,So)=>{if(co[So]===Co)return;const ma=Co.drag===xe,Ta=ma?ai:xi,Re=ma?xe.getPlaceholderElement():Co.drag.getRootElement();Co.offset+=Ta,kn?(Re.style.transform=mt(`translate3d(${Math.round(Co.offset)}px, 0, 0)`,Co.initialTransform),be(Co.clientRect,0,Ta)):(Re.style.transform=mt(`translate3d(0, ${Math.round(Co.offset)}px, 0)`,Co.initialTransform),be(Co.clientRect,Ta,0))}),this._previousSwap.overlaps=Vt(_n,It,Le),this._previousSwap.drag=Bi.drag,this._previousSwap.delta=kn?zt.x:zt.y,{previousIndex:Ei,currentIndex:He}}enter(xe,It,Le,zt){const we=null==zt||zt<0?this._getItemIndexFromPointerPosition(xe,It,Le):zt,He=this._activeDraggables,kn=He.indexOf(xe),Ei=xe.getPlaceholderElement();let Bi=He[we];if(Bi===xe&&(Bi=He[we+1]),!Bi&&(null==we||-1===we||we-1&&He.splice(kn,1),Bi&&!this._dragDropRegistry.isDragging(Bi)){const un=Bi.getRootElement();un.parentElement.insertBefore(Ei,un),He.splice(we,0,xe)}else(0,t.fI)(this._element).appendChild(Ei),He.push(xe);Ei.style.transform="",this._cacheItemPositions()}withItems(xe){this._activeDraggables=xe.slice(),this._cacheItemPositions()}withSortPredicate(xe){this._sortPredicate=xe}reset(){this._activeDraggables.forEach(xe=>{const It=xe.getRootElement();if(It){const Le=this._itemPositions.find(zt=>zt.drag===xe)?.initialTransform;It.style.transform=Le||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(xe){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Le=>Le.drag===xe)}updateOnScroll(xe,It){this._itemPositions.forEach(({clientRect:Le})=>{be(Le,xe,It)}),this._itemPositions.forEach(({drag:Le})=>{this._dragDropRegistry.isDragging(Le)&&Le._sortFromLastPointerPosition()})}_cacheItemPositions(){const xe="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(It=>{const Le=It.getVisibleElement();return{drag:It,offset:0,initialTransform:Le.style.transform||"",clientRect:le(Le)}}).sort((It,Le)=>xe?It.clientRect.left-Le.clientRect.left:It.clientRect.top-Le.clientRect.top)}_getItemOffsetPx(xe,It,Le){const zt="horizontal"===this.orientation;let we=zt?It.left-xe.left:It.top-xe.top;return-1===Le&&(we+=zt?It.width-xe.width:It.height-xe.height),we}_getSiblingOffsetPx(xe,It,Le){const zt="horizontal"===this.orientation,we=It[xe].clientRect,He=It[xe+-1*Le];let kn=we[zt?"width":"height"]*Le;if(He){const Ei=zt?"left":"top",Bi=zt?"right":"bottom";-1===Le?kn-=He.clientRect[Ei]-we[Bi]:kn+=we[Ei]-He.clientRect[Bi]}return kn}_shouldEnterAsFirstChild(xe,It){if(!this._activeDraggables.length)return!1;const Le=this._itemPositions,zt="horizontal"===this.orientation;if(Le[0].drag!==this._activeDraggables[0]){const He=Le[Le.length-1].clientRect;return zt?xe>=He.right:It>=He.bottom}{const He=Le[0].clientRect;return zt?xe<=He.left:It<=He.top}}_getItemIndexFromPointerPosition(xe,It,Le,zt){const we="horizontal"===this.orientation,He=this._itemPositions.findIndex(({drag:kn,clientRect:Ei})=>{if(kn===xe)return!1;if(zt){const Bi=we?zt.x:zt.y;if(kn===this._previousSwap.drag&&this._previousSwap.overlaps&&Bi===this._previousSwap.delta)return!1}return we?It>=Math.floor(Ei.left)&&It=Math.floor(Ei.top)&&Le!0,this.sortPredicate=()=>!0,this.beforeStarted=new U.xQ,this.entered=new U.xQ,this.exited=new U.xQ,this.dropped=new U.xQ,this.sorted=new U.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=w.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new U.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function N(cn=0,xe=O.P){return(!(0,L.k)(cn)||cn<0)&&(cn=0),(!xe||"function"!=typeof xe.schedule)&&(xe=O.P),new P.y(It=>(It.add(xe.schedule(B,cn,{subscriber:It,counter:0,period:cn})),It))}(0,K.Z).pipe((0,ct.R)(this._stopScrollTimers)).subscribe(()=>{const He=this._scrollNode,kn=this.autoScrollStep;1===this._verticalScrollDirection?He.scrollBy(0,-kn):2===this._verticalScrollDirection&&He.scrollBy(0,kn),1===this._horizontalScrollDirection?He.scrollBy(-kn,0):2===this._horizontalScrollDirection&&He.scrollBy(kn,0)})},this.element=(0,t.fI)(xe),this._document=Le,this.withScrollableParents([this.element]),It.registerDropContainer(this),this._parentPositions=new Fe(Le),this._sortStrategy=new oi(this.element,It),this._sortStrategy.withSortPredicate((He,kn)=>this.sortPredicate(He,kn,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(xe,It,Le,zt){this._draggingStarted(),null==zt&&this.sortingDisabled&&(zt=this._draggables.indexOf(xe)),this._sortStrategy.enter(xe,It,Le,zt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:xe,container:this,currentIndex:this.getItemIndex(xe)})}exit(xe){this._reset(),this.exited.next({item:xe,container:this})}drop(xe,It,Le,zt,we,He,kn,Ei={}){this._reset(),this.dropped.next({item:xe,currentIndex:It,previousIndex:Le,container:this,previousContainer:zt,isPointerOverContainer:we,distance:He,dropPoint:kn,event:Ei})}withItems(xe){const It=this._draggables;return this._draggables=xe,xe.forEach(Le=>Le._withDropContainer(this)),this.isDragging()&&(It.filter(zt=>zt.isDragging()).every(zt=>-1===xe.indexOf(zt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(xe){return this._sortStrategy.direction=xe,this}connectedTo(xe){return this._siblings=xe.slice(),this}withOrientation(xe){return this._sortStrategy.orientation=xe,this}withScrollableParents(xe){const It=(0,t.fI)(this.element);return this._scrollableElements=-1===xe.indexOf(It)?[It,...xe]:xe.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(xe){return this._isDragging?this._sortStrategy.getItemIndex(xe):this._draggables.indexOf(xe)}isReceiving(){return this._activeSiblings.size>0}_sortItem(xe,It,Le,zt){if(this.sortingDisabled||!this._clientRect||!ge(this._clientRect,.05,It,Le))return;const we=this._sortStrategy.sort(xe,It,Le,zt);we&&this.sorted.next({previousIndex:we.previousIndex,currentIndex:we.currentIndex,container:this,item:xe})}_startScrollingIfNecessary(xe,It){if(this.autoScrollDisabled)return;let Le,zt=0,we=0;if(this._parentPositions.positions.forEach((He,kn)=>{kn===this._document||!He.clientRect||Le||ge(He.clientRect,.05,xe,It)&&([zt,we]=function Ht(cn,xe,It,Le){const zt=X(xe,Le),we=At(xe,It);let He=0,kn=0;if(zt){const Ei=cn.scrollTop;1===zt?Ei>0&&(He=1):cn.scrollHeight-Ei>cn.clientHeight&&(He=2)}if(we){const Ei=cn.scrollLeft;1===we?Ei>0&&(kn=1):cn.scrollWidth-Ei>cn.clientWidth&&(kn=2)}return[He,kn]}(kn,He.clientRect,xe,It),(zt||we)&&(Le=kn))}),!zt&&!we){const{width:He,height:kn}=this._viewportRuler.getViewportSize(),Ei={width:He,height:kn,top:0,right:He,bottom:kn,left:0};zt=X(Ei,It),we=At(Ei,xe),Le=window}Le&&(zt!==this._verticalScrollDirection||we!==this._horizontalScrollDirection||Le!==this._scrollNode)&&(this._verticalScrollDirection=zt,this._horizontalScrollDirection=we,this._scrollNode=Le,(zt||we)&&Le?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const xe=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=xe.msScrollSnapType||xe.scrollSnapType||"",xe.scrollSnapType=xe.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const xe=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(xe).clientRect}_reset(){this._isDragging=!1;const xe=(0,t.fI)(this.element).style;xe.scrollSnapType=xe.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(It=>It._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(xe,It){return null!=this._clientRect&&Vt(this._clientRect,xe,It)}_getSiblingContainerFromPosition(xe,It,Le){return this._siblings.find(zt=>zt._canReceive(xe,It,Le))}_canReceive(xe,It,Le){if(!this._clientRect||!Vt(this._clientRect,It,Le)||!this.enterPredicate(xe,this))return!1;const zt=this._getShadowRoot().elementFromPoint(It,Le);if(!zt)return!1;const we=(0,t.fI)(this.element);return zt===we||we.contains(zt)}_startReceiving(xe,It){const Le=this._activeSiblings;!Le.has(xe)&&It.every(zt=>this.enterPredicate(zt,this)||this._draggables.indexOf(zt)>-1)&&(Le.add(xe),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(xe){this._activeSiblings.delete(xe),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(xe=>{if(this.isDragging()){const It=this._parentPositions.handleScroll(xe);It&&this._sortStrategy.updateOnScroll(It.top,It.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const xe=(0,g.kV)((0,t.fI)(this.element));this._cachedShadowRoot=xe||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const xe=this._sortStrategy.getActiveItemsSnapshot().filter(It=>It.isDragging());this._siblings.forEach(It=>It._startReceiving(this,xe))}}function X(cn,xe){const{top:It,bottom:Le,height:zt}=cn,we=.05*zt;return xe>=It-we&&xe<=It+we?1:xe>=Le-we&&xe<=Le+we?2:0}function At(cn,xe){const{left:It,right:Le,width:zt}=cn,we=.05*zt;return xe>=It-we&&xe<=It+we?1:xe>=Le-we&&xe<=Le+we?2:0}const ue=(0,g.i$)({passive:!1,capture:!0});let ye=(()=>{class cn{constructor(It,Le){this._ngZone=It,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=zt=>zt.isDragging(),this.pointerMove=new U.xQ,this.pointerUp=new U.xQ,this.scroll=new U.xQ,this._preventDefaultWhileDragging=zt=>{this._activeDragInstances.length>0&&zt.preventDefault()},this._persistentTouchmoveListener=zt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&zt.preventDefault(),this.pointerMove.next(zt))},this._document=Le}registerDropContainer(It){this._dropInstances.has(It)||this._dropInstances.add(It)}registerDragItem(It){this._dragInstances.add(It),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ue)})}removeDropContainer(It){this._dropInstances.delete(It)}removeDragItem(It){this._dragInstances.delete(It),this.stopDragging(It),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ue)}startDragging(It,Le){if(!(this._activeDragInstances.indexOf(It)>-1)&&(this._activeDragInstances.push(It),1===this._activeDragInstances.length)){const zt=Le.type.startsWith("touch");this._globalListeners.set(zt?"touchend":"mouseup",{handler:we=>this.pointerUp.next(we),options:!0}).set("scroll",{handler:we=>this.scroll.next(we),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ue}),zt||this._globalListeners.set("mousemove",{handler:we=>this.pointerMove.next(we),options:ue}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((we,He)=>{this._document.addEventListener(He,we.handler,we.options)})})}}stopDragging(It){const Le=this._activeDragInstances.indexOf(It);Le>-1&&(this._activeDragInstances.splice(Le,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(It){return this._activeDragInstances.indexOf(It)>-1}scrolled(It){const Le=[this.scroll];return It&&It!==this._document&&Le.push(new P.y(zt=>this._ngZone.runOutsideAngular(()=>{const He=kn=>{this._activeDragInstances.length&&zt.next(kn)};return It.addEventListener("scroll",He,!0),()=>{It.removeEventListener("scroll",He,!0)}}))),(0,et.T)(...Le)}ngOnDestroy(){this._dragInstances.forEach(It=>this.removeDragItem(It)),this._dropInstances.forEach(It=>this.removeDropContainer(It)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((It,Le)=>{this._document.removeEventListener(Le,It.handler,It.options)}),this._globalListeners.clear()}}return cn.\u0275fac=function(It){return new(It||cn)(u.LFG(u.R0b),u.LFG(d.K0))},cn.\u0275prov=u.Yz7({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})();const Se={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let vn=(()=>{class cn{constructor(It,Le,zt,we){this._document=It,this._ngZone=Le,this._viewportRuler=zt,this._dragDropRegistry=we}createDrag(It,Le=Se){return new De(It,Le,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(It){return new ot(It,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return cn.\u0275fac=function(It){return new(It||cn)(u.LFG(d.K0),u.LFG(u.R0b),u.LFG(v.rL),u.LFG(ye))},cn.\u0275prov=u.Yz7({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})();const qn=new u.OlP("CDK_DRAG_PARENT"),mi=new u.OlP("CdkDropListGroup"),bo=new u.OlP("CDK_DRAG_CONFIG");let zn=0;const Bn=new u.OlP("CdkDropList");let Qe=(()=>{class cn{constructor(It,Le,zt,we,He,kn,Ei){this.element=It,this._changeDetectorRef=zt,this._scrollDispatcher=we,this._dir=He,this._group=kn,this._destroyed=new U.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+zn++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new u.vpe,this.entered=new u.vpe,this.exited=new u.vpe,this.sorted=new u.vpe,this._unsortedItems=new Set,this._dropListRef=Le.createDropList(It),this._dropListRef.data=this,Ei&&this._assignDefaults(Ei),this._dropListRef.enterPredicate=(Bi,un)=>this.enterPredicate(Bi.data,un.data),this._dropListRef.sortPredicate=(Bi,un,_n)=>this.sortPredicate(Bi,un.data,_n.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),cn._dropLists.push(this),kn&&kn._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(It){this._dropListRef.disabled=this._disabled=(0,t.Ig)(It)}addItem(It){this._unsortedItems.add(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(It){this._unsortedItems.delete(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((It,Le)=>It._dragRef.getVisibleElement().compareDocumentPosition(Le._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const It=cn._dropLists.indexOf(this);It>-1&&cn._dropLists.splice(It,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(It){this._dir&&this._dir.change.pipe((0,lt.O)(this._dir.value),(0,ct.R)(this._destroyed)).subscribe(Le=>It.withDirection(Le)),It.beforeStarted.subscribe(()=>{const Le=(0,t.Eq)(this.connectedTo).map(zt=>"string"==typeof zt?cn._dropLists.find(He=>He.id===zt):zt);if(this._group&&this._group._items.forEach(zt=>{-1===Le.indexOf(zt)&&Le.push(zt)}),!this._scrollableParentsResolved){const zt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(we=>we.getElementRef().nativeElement);this._dropListRef.withScrollableParents(zt),this._scrollableParentsResolved=!0}It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.sortingDisabled=(0,t.Ig)(this.sortingDisabled),It.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),It.autoScrollStep=(0,t.su)(this.autoScrollStep,2),It.connectedTo(Le.filter(zt=>zt&&zt!==this).map(zt=>zt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(It){It.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Le=>{this.entered.emit({container:this,item:Le.item.data,currentIndex:Le.currentIndex})}),It.exited.subscribe(Le=>{this.exited.emit({container:this,item:Le.item.data}),this._changeDetectorRef.markForCheck()}),It.sorted.subscribe(Le=>{this.sorted.emit({previousIndex:Le.previousIndex,currentIndex:Le.currentIndex,container:this,item:Le.item.data})}),It.dropped.subscribe(Le=>{this.dropped.emit({previousIndex:Le.previousIndex,currentIndex:Le.currentIndex,previousContainer:Le.previousContainer.data,container:Le.container.data,item:Le.item.data,isPointerOverContainer:Le.isPointerOverContainer,distance:Le.distance,dropPoint:Le.dropPoint,event:Le.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(It){const{lockAxis:Le,draggingDisabled:zt,sortingDisabled:we,listAutoScrollDisabled:He,listOrientation:kn}=It;this.disabled=zt??!1,this.sortingDisabled=we??!1,this.autoScrollDisabled=He??!1,this.orientation=kn||"vertical",Le&&(this.lockAxis=Le)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(It=>It._dragRef))}}return cn._dropLists=[],cn.\u0275fac=function(It){return new(It||cn)(u.Y36(u.SBq),u.Y36(vn),u.Y36(u.sBO),u.Y36(v.mF),u.Y36(Gt.Is,8),u.Y36(mi,12),u.Y36(bo,8))},cn.\u0275dir=u.lG2({type:cn,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(It,Le){2&It&&(u.uIk("id",Le.id),u.ekj("cdk-drop-list-disabled",Le.disabled)("cdk-drop-list-dragging",Le._dropListRef.isDragging())("cdk-drop-list-receiving",Le._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[u._Bn([{provide:mi,useValue:void 0},{provide:Bn,useExisting:cn}])]}),cn})();const xn=new u.OlP("CdkDragHandle"),Ne=new u.OlP("CdkDragPlaceholder"),ce=new u.OlP("CdkDragPreview");let rn=(()=>{class cn{constructor(It,Le,zt,we,He,kn,Ei,Bi,un,_n,Ke){this.element=It,this.dropContainer=Le,this._ngZone=we,this._viewContainerRef=He,this._dir=Ei,this._changeDetectorRef=un,this._selfHandle=_n,this._parentDrag=Ke,this._destroyed=new U.xQ,this.started=new u.vpe,this.released=new u.vpe,this.ended=new u.vpe,this.entered=new u.vpe,this.exited=new u.vpe,this.dropped=new u.vpe,this.moved=new P.y(ai=>{const xi=this._dragRef.moved.pipe((0,Ct.U)(co=>({source:this,pointerPosition:co.pointerPosition,event:co.event,delta:co.delta,distance:co.distance}))).subscribe(ai);return()=>{xi.unsubscribe()}}),this._dragRef=Bi.createDrag(It,{dragStartThreshold:kn&&null!=kn.dragStartThreshold?kn.dragStartThreshold:5,pointerDirectionChangeThreshold:kn&&null!=kn.pointerDirectionChangeThreshold?kn.pointerDirectionChangeThreshold:5,zIndex:kn?.zIndex}),this._dragRef.data=this,cn._dragInstances.push(this),kn&&this._assignDefaults(kn),Le&&(this._dragRef._withDropContainer(Le._dropListRef),Le.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(It){this._disabled=(0,t.Ig)(It),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(It){this._dragRef.setFreeDragPosition(It)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Dt.q)(1),(0,ct.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(It){const Le=It.rootElementSelector,zt=It.freeDragPosition;Le&&!Le.firstChange&&this._updateRootElement(),zt&&!zt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const It=cn._dragInstances.indexOf(this);It>-1&&cn._dragInstances.splice(It,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const It=this.element.nativeElement;let Le=It;this.rootElementSelector&&(Le=void 0!==It.closest?It.closest(this.rootElementSelector):It.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Le||It)}_getBoundaryElement(){const It=this.boundaryElement;return It?"string"==typeof It?this.element.nativeElement.closest(It):(0,t.fI)(It):null}_syncInputs(It){It.beforeStarted.subscribe(()=>{if(!It.isDragging()){const Le=this._dir,zt=this.dragStartDelay,we=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,He=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.dragStartDelay="object"==typeof zt&&zt?zt:(0,t.su)(zt),It.constrainPosition=this.constrainPosition,It.previewClass=this.previewClass,It.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(we).withPreviewTemplate(He).withPreviewContainer(this.previewContainer||"global"),Le&&It.withDirection(Le.value)}}),It.beforeStarted.pipe((0,Dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void It.withParent(this._parentDrag._dragRef);let Le=this.element.nativeElement.parentElement;for(;Le;){if(Le.classList.contains("cdk-drag")){It.withParent(cn._dragInstances.find(zt=>zt.element.nativeElement===Le)?._dragRef||null);break}Le=Le.parentElement}})}_handleEvents(It){It.started.subscribe(Le=>{this.started.emit({source:this,event:Le.event}),this._changeDetectorRef.markForCheck()}),It.released.subscribe(Le=>{this.released.emit({source:this,event:Le.event})}),It.ended.subscribe(Le=>{this.ended.emit({source:this,distance:Le.distance,dropPoint:Le.dropPoint,event:Le.event}),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Le=>{this.entered.emit({container:Le.container.data,item:this,currentIndex:Le.currentIndex})}),It.exited.subscribe(Le=>{this.exited.emit({container:Le.container.data,item:this})}),It.dropped.subscribe(Le=>{this.dropped.emit({previousIndex:Le.previousIndex,currentIndex:Le.currentIndex,previousContainer:Le.previousContainer.data,container:Le.container.data,isPointerOverContainer:Le.isPointerOverContainer,item:this,distance:Le.distance,dropPoint:Le.dropPoint,event:Le.event})})}_assignDefaults(It){const{lockAxis:Le,dragStartDelay:zt,constrainPosition:we,previewClass:He,boundaryElement:kn,draggingDisabled:Ei,rootElementSelector:Bi,previewContainer:un}=It;this.disabled=Ei??!1,this.dragStartDelay=zt||0,Le&&(this.lockAxis=Le),we&&(this.constrainPosition=we),He&&(this.previewClass=He),kn&&(this.boundaryElement=kn),Bi&&(this.rootElementSelector=Bi),un&&(this.previewContainer=un)}_setupHandlesListener(){this._handles.changes.pipe((0,lt.O)(this._handles),(0,Zt.b)(It=>{const Le=It.filter(zt=>zt._parentDrag===this).map(zt=>zt.element);this._selfHandle&&this.rootElementSelector&&Le.push(this.element),this._dragRef.withHandles(Le)}),(0,Rt.w)(It=>(0,et.T)(...It.map(Le=>Le._stateChanges.pipe((0,lt.O)(Le))))),(0,ct.R)(this._destroyed)).subscribe(It=>{const Le=this._dragRef,zt=It.element.nativeElement;It.disabled?Le.disableHandle(zt):Le.enableHandle(zt)})}}return cn._dragInstances=[],cn.\u0275fac=function(It){return new(It||cn)(u.Y36(u.SBq),u.Y36(Bn,12),u.Y36(d.K0),u.Y36(u.R0b),u.Y36(u.s_b),u.Y36(bo,8),u.Y36(Gt.Is,8),u.Y36(vn),u.Y36(u.sBO),u.Y36(xn,10),u.Y36(qn,12))},cn.\u0275dir=u.lG2({type:cn,selectors:[["","cdkDrag",""]],contentQueries:function(It,Le,zt){if(1&It&&(u.Suo(zt,ce,5),u.Suo(zt,Ne,5),u.Suo(zt,xn,5)),2&It){let we;u.iGM(we=u.CRH())&&(Le._previewTemplate=we.first),u.iGM(we=u.CRH())&&(Le._placeholderTemplate=we.first),u.iGM(we=u.CRH())&&(Le._handles=we)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(It,Le){2&It&&u.ekj("cdk-drag-disabled",Le.disabled)("cdk-drag-dragging",Le._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[u._Bn([{provide:qn,useExisting:cn}]),u.TTD]}),cn})(),gn=(()=>{class cn{}return cn.\u0275fac=function(It){return new(It||cn)},cn.\u0275mod=u.oAB({type:cn}),cn.\u0275inj=u.cJS({providers:[vn],imports:[v.ZD]}),cn})()},29521:(tt,W,f)=>{"use strict";f.d(W,{A:()=>ie,JH:()=>Zt,JU:()=>T,K5:()=>t,Ku:()=>B,LH:()=>Ct,L_:()=>N,MW:()=>qn,Mf:()=>v,SV:()=>Dt,Sd:()=>ct,VM:()=>K,Vb:()=>cc,Z:()=>vn,ZH:()=>d,aO:()=>Fe,b2:()=>Or,hY:()=>L,jx:()=>U,oh:()=>lt,uR:()=>et,xE:()=>bt,yY:()=>Ut,zL:()=>w});const d=8,v=9,t=13,T=16,U=17,w=18,L=27,N=32,B=33,K=34,et=35,ct=36,lt=37,Ct=38,Dt=39,Zt=40,Ut=46,bt=48,Fe=57,ie=65,vn=90,qn=91,Or=224;function cc(nr,...ls){return ls.length?ls.some(Ar=>nr[Ar]):nr.altKey||nr.shiftKey||nr.ctrlKey||nr.metaKey}},62289:(tt,W,f)=>{"use strict";f.d(W,{Yg:()=>Zt,u3:()=>Gt,xu:()=>K});var u=f(94650),d=f(21281),v=f(8929),g=f(23426),t=f(61221),T=f(56498),U=f(72986),w=f(31307),P=f(80013),O=f(24850),L=f(1059),N=f(7625),B=f(83353);let K=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=u.oAB({type:Tt}),Tt.\u0275inj=u.cJS({}),Tt})();const et=new Set;let ct,lt=(()=>{class Tt{constructor(bt){this._platform=bt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dt}matchMedia(bt){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ct(Tt){if(!et.has(Tt))try{ct||(ct=document.createElement("style"),ct.setAttribute("type","text/css"),document.head.appendChild(ct)),ct.sheet&&(ct.sheet.insertRule(`@media ${Tt} {body{ }}`,0),et.add(Tt))}catch(Ut){console.error(Ut)}}(bt),this._matchMedia(bt)}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.LFG(B.t4))},Tt.\u0275prov=u.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();function Dt(Tt){return{matches:"all"===Tt||""===Tt,media:Tt,addListener:()=>{},removeListener:()=>{}}}let Zt=(()=>{class Tt{constructor(bt,mt){this._mediaMatcher=bt,this._zone=mt,this._queries=new Map,this._destroySubject=new v.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(bt){return Rt((0,d.Eq)(bt)).some(Lt=>this._registerQuery(Lt).mql.matches)}observe(bt){const Lt=Rt((0,d.Eq)(bt)).map(kt=>this._registerQuery(kt).observable);let Bt=(0,g.aj)(Lt);return Bt=(0,t.z)(Bt.pipe((0,U.q)(1)),Bt.pipe((0,w.T)(1),(0,P.b)(0))),Bt.pipe((0,O.U)(kt=>{const le={matches:!1,breakpoints:{}};return kt.forEach(({matches:Vt,query:be})=>{le.matches=le.matches||Vt,le.breakpoints[be]=Vt}),le}))}_registerQuery(bt){if(this._queries.has(bt))return this._queries.get(bt);const mt=this._mediaMatcher.matchMedia(bt),Bt={observable:new T.y(kt=>{const le=Vt=>this._zone.run(()=>kt.next(Vt));return mt.addListener(le),()=>{mt.removeListener(le)}}).pipe((0,L.O)(mt),(0,O.U)(({matches:kt})=>({query:bt,matches:kt})),(0,N.R)(this._destroySubject)),mql:mt};return this._queries.set(bt,Bt),Bt}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.LFG(lt),u.LFG(u.R0b))},Tt.\u0275prov=u.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();function Rt(Tt){return Tt.map(Ut=>Ut.split(",")).reduce((Ut,bt)=>Ut.concat(bt)).map(Ut=>Ut.trim())}const Gt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(tt,W,f)=>{"use strict";f.d(W,{Q8:()=>P,wD:()=>w});var u=f(21281),d=f(94650),v=f(56498),g=f(8929),t=f(80013);let T=(()=>{class O{create(N){return typeof MutationObserver>"u"?null:new MutationObserver(N)}}return O.\u0275fac=function(N){return new(N||O)},O.\u0275prov=d.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),U=(()=>{class O{constructor(N){this._mutationObserverFactory=N,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((N,B)=>this._cleanupObserver(B))}observe(N){const B=(0,u.fI)(N);return new v.y(K=>{const ct=this._observeElement(B).subscribe(K);return()=>{ct.unsubscribe(),this._unobserveElement(B)}})}_observeElement(N){if(this._observedElements.has(N))this._observedElements.get(N).count++;else{const B=new g.xQ,K=this._mutationObserverFactory.create(et=>B.next(et));K&&K.observe(N,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(N,{observer:K,stream:B,count:1})}return this._observedElements.get(N).stream}_unobserveElement(N){this._observedElements.has(N)&&(this._observedElements.get(N).count--,this._observedElements.get(N).count||this._cleanupObserver(N))}_cleanupObserver(N){if(this._observedElements.has(N)){const{observer:B,stream:K}=this._observedElements.get(N);B&&B.disconnect(),K.complete(),this._observedElements.delete(N)}}}return O.\u0275fac=function(N){return new(N||O)(d.LFG(T))},O.\u0275prov=d.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),w=(()=>{class O{constructor(N,B,K){this._contentObserver=N,this._elementRef=B,this._ngZone=K,this.event=new d.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,u.Ig)(N),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(N){this._debounce=(0,u.su)(N),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const N=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?N.pipe((0,t.b)(this.debounce)):N).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return O.\u0275fac=function(N){return new(N||O)(d.Y36(U),d.Y36(d.SBq),d.Y36(d.R0b))},O.\u0275dir=d.lG2({type:O,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),O})(),P=(()=>{class O{}return O.\u0275fac=function(N){return new(N||O)},O.\u0275mod=d.oAB({type:O}),O.\u0275inj=d.cJS({providers:[T]}),O})()},98184:(tt,W,f)=>{"use strict";f.d(W,{Iu:()=>Fe,U8:()=>oi,X_:()=>Ut,Xj:()=>ge,_G:()=>Qt,aV:()=>Ce,pI:()=>Pn,xu:()=>dn});var u=f(67376),d=f(36895),v=f(94650),g=f(21281),t=f(83353),T=f(40445),U=f(84080),w=f(8929),P=f(42654),O=f(36787),L=f(72986),N=f(7625),B=f(44290),K=f(29521);const et=(0,t.Mq)();class ct{constructor(ot,X){this._viewportRuler=ot,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=X}attach(){}enable(){if(this._canBeEnabled()){const ot=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ot.style.left||"",this._previousHTMLStyles.top=ot.style.top||"",ot.style.left=(0,g.HM)(-this._previousScrollPosition.left),ot.style.top=(0,g.HM)(-this._previousScrollPosition.top),ot.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ot=this._document.documentElement,At=ot.style,Ht=this._document.body.style,ue=At.scrollBehavior||"",ye=Ht.scrollBehavior||"";this._isEnabled=!1,At.left=this._previousHTMLStyles.left,At.top=this._previousHTMLStyles.top,ot.classList.remove("cdk-global-scrollblock"),et&&(At.scrollBehavior=Ht.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),et&&(At.scrollBehavior=ue,Ht.scrollBehavior=ye)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const X=this._document.body,At=this._viewportRuler.getViewportSize();return X.scrollHeight>At.height||X.scrollWidth>At.width}}class Ct{constructor(ot,X,At,Ht){this._scrollDispatcher=ot,this._ngZone=X,this._viewportRuler=At,this._config=Ht,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ot){this._overlayRef=ot}enable(){if(this._scrollSubscription)return;const ot=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ot.subscribe(()=>{const X=this._viewportRuler.getViewportScrollPosition().top;Math.abs(X-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ot.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dt{enable(){}disable(){}attach(){}}function Zt(ee,ot){return ot.some(X=>ee.bottomX.bottom||ee.rightX.right)}function Rt(ee,ot){return ot.some(X=>ee.topX.bottom||ee.leftX.right)}class Gt{constructor(ot,X,At,Ht){this._scrollDispatcher=ot,this._viewportRuler=X,this._ngZone=At,this._config=Ht,this._scrollSubscription=null}attach(ot){this._overlayRef=ot}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const X=this._overlayRef.overlayElement.getBoundingClientRect(),{width:At,height:Ht}=this._viewportRuler.getViewportSize();Zt(X,[{width:At,height:Ht,bottom:Ht,right:At,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Tt=(()=>{class ee{constructor(X,At,Ht,ue){this._scrollDispatcher=X,this._viewportRuler=At,this._ngZone=Ht,this.noop=()=>new Dt,this.close=ye=>new Ct(this._scrollDispatcher,this._ngZone,this._viewportRuler,ye),this.block=()=>new ct(this._viewportRuler,this._document),this.reposition=ye=>new Gt(this._scrollDispatcher,this._viewportRuler,this._ngZone,ye),this._document=ue}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(u.mF),v.LFG(u.rL),v.LFG(v.R0b),v.LFG(d.K0))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();class Ut{constructor(ot){if(this.scrollStrategy=new Dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ot){const X=Object.keys(ot);for(const At of X)void 0!==ot[At]&&(this[At]=ot[At])}}}class Lt{constructor(ot,X){this.connectionPair=ot,this.scrollableViewProperties=X}}let le=(()=>{class ee{constructor(X){this._attachedOverlays=[],this._document=X}ngOnDestroy(){this.detach()}add(X){this.remove(X),this._attachedOverlays.push(X)}remove(X){const At=this._attachedOverlays.indexOf(X);At>-1&&this._attachedOverlays.splice(At,1),0===this._attachedOverlays.length&&this.detach()}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(d.K0))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Vt=(()=>{class ee extends le{constructor(X,At){super(X),this._ngZone=At,this._keydownListener=Ht=>{const ue=this._attachedOverlays;for(let ye=ue.length-1;ye>-1;ye--)if(ue[ye]._keydownEvents.observers.length>0){const Se=ue[ye]._keydownEvents;this._ngZone?this._ngZone.run(()=>Se.next(Ht)):Se.next(Ht);break}}}add(X){super.add(X),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(d.K0),v.LFG(v.R0b,8))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),be=(()=>{class ee extends le{constructor(X,At,Ht){super(X),this._platform=At,this._ngZone=Ht,this._cursorStyleIsSet=!1,this._pointerDownListener=ue=>{this._pointerDownEventTarget=(0,t.sA)(ue)},this._clickListener=ue=>{const ye=(0,t.sA)(ue),Se="click"===ue.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ye;this._pointerDownEventTarget=null;const vn=this._attachedOverlays.slice();for(let qn=vn.length-1;qn>-1;qn--){const mi=vn[qn];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(ye)||mi.overlayElement.contains(Se))break;const Di=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Di.next(ue)):Di.next(ue)}}}add(X){if(super.add(X),!this._isAttached){const At=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(At)):this._addEventListeners(At),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=At.style.cursor,At.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const X=this._document.body;X.removeEventListener("pointerdown",this._pointerDownListener,!0),X.removeEventListener("click",this._clickListener,!0),X.removeEventListener("auxclick",this._clickListener,!0),X.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(X.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(X){X.addEventListener("pointerdown",this._pointerDownListener,!0),X.addEventListener("click",this._clickListener,!0),X.addEventListener("auxclick",this._clickListener,!0),X.addEventListener("contextmenu",this._clickListener,!0)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(d.K0),v.LFG(t.t4),v.LFG(v.R0b,8))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),ge=(()=>{class ee{constructor(X,At){this._platform=At,this._document=X}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const X="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Ht=this._document.querySelectorAll(`.${X}[platform="server"], .${X}[platform="test"]`);for(let ue=0;uethis._backdropClick.next(Di),this._backdropTransitionendHandler=Di=>{this._disposeBackdrop(Di.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,Ht.scrollStrategy&&(this._scrollStrategy=Ht.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ht.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ot){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const X=this._portalOutlet.attach(ot);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof X?.onDestroy&&X.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),X}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ot=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ot}dispose(){const ot=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ot&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ot){ot!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ot,this.hasAttached()&&(ot.attach(this),this.updatePosition()))}updateSize(ot){this._config={...this._config,...ot},this._updateElementSize()}setDirection(ot){this._config={...this._config,direction:ot},this._updateElementDirection()}addPanelClass(ot){this._pane&&this._toggleClasses(this._pane,ot,!0)}removePanelClass(ot){this._pane&&this._toggleClasses(this._pane,ot,!1)}getDirection(){const ot=this._config.direction;return ot?"string"==typeof ot?ot:ot.value:"ltr"}updateScrollStrategy(ot){ot!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ot,this.hasAttached()&&(ot.attach(this),ot.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ot=this._pane.style;ot.width=(0,g.HM)(this._config.width),ot.height=(0,g.HM)(this._config.height),ot.minWidth=(0,g.HM)(this._config.minWidth),ot.minHeight=(0,g.HM)(this._config.minHeight),ot.maxWidth=(0,g.HM)(this._config.maxWidth),ot.maxHeight=(0,g.HM)(this._config.maxHeight)}_togglePointerEvents(ot){this._pane.style.pointerEvents=ot?"":"none"}_attachBackdrop(){const ot="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ot)})}):this._backdropElement.classList.add(ot)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ot=this._backdropElement;if(ot){if(this._animationsDisabled)return void this._disposeBackdrop(ot);ot.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ot.addEventListener("transitionend",this._backdropTransitionendHandler)}),ot.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ot)},500))}}_toggleClasses(ot,X,At){const Ht=(0,g.Eq)(X||[]).filter(ue=>!!ue);Ht.length&&(At?ot.classList.add(...Ht):ot.classList.remove(...Ht))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ot=this._ngZone.onStable.pipe((0,N.R)((0,O.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ot.unsubscribe())})})}_disposeScrollStrategy(){const ot=this._scrollStrategy;ot&&(ot.disable(),ot.detach&&ot.detach())}_disposeBackdrop(ot){ot&&(ot.removeEventListener("click",this._backdropClickHandler),ot.removeEventListener("transitionend",this._backdropTransitionendHandler),ot.remove(),this._backdropElement===ot&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qe="cdk-overlay-connected-position-bounding-box",je=/([A-Za-z%]+)$/;class Qt{constructor(ot,X,At,Ht,ue){this._viewportRuler=X,this._document=At,this._platform=Ht,this._overlayContainer=ue,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w.xQ,this._resizeSubscription=P.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ot)}get positions(){return this._preferredPositions}attach(ot){this._validatePositions(),ot.hostElement.classList.add(qe),this._overlayRef=ot,this._boundingBox=ot.hostElement,this._pane=ot.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ot=this._originRect,X=this._overlayRect,At=this._viewportRect,Ht=this._containerRect,ue=[];let ye;for(let Se of this._preferredPositions){let vn=this._getOriginPoint(ot,Ht,Se),qn=this._getOverlayPoint(vn,X,Se),mi=this._getOverlayFit(qn,X,At,Se);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Se,vn);this._canFitWithFlexibleDimensions(mi,qn,At)?ue.push({position:Se,origin:vn,overlayRect:X,boundingBoxRect:this._calculateBoundingBoxRect(vn,Se)}):(!ye||ye.overlayFit.visibleAreavn&&(vn=mi,Se=qn)}return this._isPushed=!1,void this._applyPosition(Se.position,Se.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ye.position,ye.originPoint);this._applyPosition(ye.position,ye.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ue(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ot=this._lastPosition;if(ot){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const X=this._getOriginPoint(this._originRect,this._containerRect,ot);this._applyPosition(ot,X)}else this.apply()}withScrollableContainers(ot){return this._scrollables=ot,this}withPositions(ot){return this._preferredPositions=ot,-1===ot.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ot){return this._viewportMargin=ot,this}withFlexibleDimensions(ot=!0){return this._hasFlexibleDimensions=ot,this}withGrowAfterOpen(ot=!0){return this._growAfterOpen=ot,this}withPush(ot=!0){return this._canPush=ot,this}withLockedPosition(ot=!0){return this._positionLocked=ot,this}setOrigin(ot){return this._origin=ot,this}withDefaultOffsetX(ot){return this._offsetX=ot,this}withDefaultOffsetY(ot){return this._offsetY=ot,this}withTransformOriginOn(ot){return this._transformOriginSelector=ot,this}_getOriginPoint(ot,X,At){let Ht,ue;if("center"==At.originX)Ht=ot.left+ot.width/2;else{const ye=this._isRtl()?ot.right:ot.left,Se=this._isRtl()?ot.left:ot.right;Ht="start"==At.originX?ye:Se}return X.left<0&&(Ht-=X.left),ue="center"==At.originY?ot.top+ot.height/2:"top"==At.originY?ot.top:ot.bottom,X.top<0&&(ue-=X.top),{x:Ht,y:ue}}_getOverlayPoint(ot,X,At){let Ht,ue;return Ht="center"==At.overlayX?-X.width/2:"start"===At.overlayX?this._isRtl()?-X.width:0:this._isRtl()?0:-X.width,ue="center"==At.overlayY?-X.height/2:"top"==At.overlayY?0:-X.height,{x:ot.x+Ht,y:ot.y+ue}}_getOverlayFit(ot,X,At,Ht){const ue=Wt(X);let{x:ye,y:Se}=ot,vn=this._getOffset(Ht,"x"),qn=this._getOffset(Ht,"y");vn&&(ye+=vn),qn&&(Se+=qn);let bo=0-Se,hi=Se+ue.height-At.height,zn=this._subtractOverflows(ue.width,0-ye,ye+ue.width-At.width),Bn=this._subtractOverflows(ue.height,bo,hi),Qe=zn*Bn;return{visibleArea:Qe,isCompletelyWithinViewport:ue.width*ue.height===Qe,fitsInViewportVertically:Bn===ue.height,fitsInViewportHorizontally:zn==ue.width}}_canFitWithFlexibleDimensions(ot,X,At){if(this._hasFlexibleDimensions){const Ht=At.bottom-X.y,ue=At.right-X.x,ye=ie(this._overlayRef.getConfig().minHeight),Se=ie(this._overlayRef.getConfig().minWidth),qn=ot.fitsInViewportHorizontally||null!=Se&&Se<=ue;return(ot.fitsInViewportVertically||null!=ye&&ye<=Ht)&&qn}return!1}_pushOverlayOnScreen(ot,X,At){if(this._previousPushAmount&&this._positionLocked)return{x:ot.x+this._previousPushAmount.x,y:ot.y+this._previousPushAmount.y};const Ht=Wt(X),ue=this._viewportRect,ye=Math.max(ot.x+Ht.width-ue.width,0),Se=Math.max(ot.y+Ht.height-ue.height,0),vn=Math.max(ue.top-At.top-ot.y,0),qn=Math.max(ue.left-At.left-ot.x,0);let mi=0,Di=0;return mi=Ht.width<=ue.width?qn||-ye:ot.xzn&&!this._isInitialRender&&!this._growAfterOpen&&(ye=ot.y-zn/2)}if("end"===X.overlayX&&!Ht||"start"===X.overlayX&&Ht)bo=At.width-ot.x+this._viewportMargin,mi=ot.x-this._viewportMargin;else if("start"===X.overlayX&&!Ht||"end"===X.overlayX&&Ht)Di=ot.x,mi=At.right-ot.x;else{const hi=Math.min(At.right-ot.x+At.left,ot.x),zn=this._lastBoundingBoxSize.width;mi=2*hi,Di=ot.x-hi,mi>zn&&!this._isInitialRender&&!this._growAfterOpen&&(Di=ot.x-zn/2)}return{top:ye,left:Di,bottom:Se,right:bo,width:mi,height:ue}}_setBoundingBoxStyles(ot,X){const At=this._calculateBoundingBoxRect(ot,X);!this._isInitialRender&&!this._growAfterOpen&&(At.height=Math.min(At.height,this._lastBoundingBoxSize.height),At.width=Math.min(At.width,this._lastBoundingBoxSize.width));const Ht={};if(this._hasExactPosition())Ht.top=Ht.left="0",Ht.bottom=Ht.right=Ht.maxHeight=Ht.maxWidth="",Ht.width=Ht.height="100%";else{const ue=this._overlayRef.getConfig().maxHeight,ye=this._overlayRef.getConfig().maxWidth;Ht.height=(0,g.HM)(At.height),Ht.top=(0,g.HM)(At.top),Ht.bottom=(0,g.HM)(At.bottom),Ht.width=(0,g.HM)(At.width),Ht.left=(0,g.HM)(At.left),Ht.right=(0,g.HM)(At.right),Ht.alignItems="center"===X.overlayX?"center":"end"===X.overlayX?"flex-end":"flex-start",Ht.justifyContent="center"===X.overlayY?"center":"bottom"===X.overlayY?"flex-end":"flex-start",ue&&(Ht.maxHeight=(0,g.HM)(ue)),ye&&(Ht.maxWidth=(0,g.HM)(ye))}this._lastBoundingBoxSize=At,Ue(this._boundingBox.style,Ht)}_resetBoundingBoxStyles(){Ue(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ue(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ot,X){const At={},Ht=this._hasExactPosition(),ue=this._hasFlexibleDimensions,ye=this._overlayRef.getConfig();if(Ht){const mi=this._viewportRuler.getViewportScrollPosition();Ue(At,this._getExactOverlayY(X,ot,mi)),Ue(At,this._getExactOverlayX(X,ot,mi))}else At.position="static";let Se="",vn=this._getOffset(X,"x"),qn=this._getOffset(X,"y");vn&&(Se+=`translateX(${vn}px) `),qn&&(Se+=`translateY(${qn}px)`),At.transform=Se.trim(),ye.maxHeight&&(Ht?At.maxHeight=(0,g.HM)(ye.maxHeight):ue&&(At.maxHeight="")),ye.maxWidth&&(Ht?At.maxWidth=(0,g.HM)(ye.maxWidth):ue&&(At.maxWidth="")),Ue(this._pane.style,At)}_getExactOverlayY(ot,X,At){let Ht={top:"",bottom:""},ue=this._getOverlayPoint(X,this._overlayRect,ot);return this._isPushed&&(ue=this._pushOverlayOnScreen(ue,this._overlayRect,At)),"bottom"===ot.overlayY?Ht.bottom=this._document.documentElement.clientHeight-(ue.y+this._overlayRect.height)+"px":Ht.top=(0,g.HM)(ue.y),Ht}_getExactOverlayX(ot,X,At){let ye,Ht={left:"",right:""},ue=this._getOverlayPoint(X,this._overlayRect,ot);return this._isPushed&&(ue=this._pushOverlayOnScreen(ue,this._overlayRect,At)),ye=this._isRtl()?"end"===ot.overlayX?"left":"right":"end"===ot.overlayX?"right":"left","right"===ye?Ht.right=this._document.documentElement.clientWidth-(ue.x+this._overlayRect.width)+"px":Ht.left=(0,g.HM)(ue.x),Ht}_getScrollVisibility(){const ot=this._getOriginRect(),X=this._pane.getBoundingClientRect(),At=this._scrollables.map(Ht=>Ht.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rt(ot,At),isOriginOutsideView:Zt(ot,At),isOverlayClipped:Rt(X,At),isOverlayOutsideView:Zt(X,At)}}_subtractOverflows(ot,...X){return X.reduce((At,Ht)=>At-Math.max(Ht,0),ot)}_getNarrowedViewportRect(){const ot=this._document.documentElement.clientWidth,X=this._document.documentElement.clientHeight,At=this._viewportRuler.getViewportScrollPosition();return{top:At.top+this._viewportMargin,left:At.left+this._viewportMargin,right:At.left+ot-this._viewportMargin,bottom:At.top+X-this._viewportMargin,width:ot-2*this._viewportMargin,height:X-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ot,X){return"x"===X?ot.offsetX??this._offsetX:ot.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(ot){this._pane&&(0,g.Eq)(ot).forEach(X=>{""!==X&&-1===this._appliedPanelClasses.indexOf(X)&&(this._appliedPanelClasses.push(X),this._pane.classList.add(X))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ot=>{this._pane.classList.remove(ot)}),this._appliedPanelClasses=[])}_getOriginRect(){const ot=this._origin;if(ot instanceof v.SBq)return ot.nativeElement.getBoundingClientRect();if(ot instanceof Element)return ot.getBoundingClientRect();const X=ot.width||0,At=ot.height||0;return{top:ot.y,bottom:ot.y+At,left:ot.x,right:ot.x+X,height:At,width:X}}}function Ue(ee,ot){for(let X in ot)ot.hasOwnProperty(X)&&(ee[X]=ot[X]);return ee}function ie(ee){if("number"!=typeof ee&&null!=ee){const[ot,X]=ee.split(je);return X&&"px"!==X?null:parseFloat(ot)}return ee||null}function Wt(ee){return{top:Math.floor(ee.top),right:Math.floor(ee.right),bottom:Math.floor(ee.bottom),left:Math.floor(ee.left),width:Math.floor(ee.width),height:Math.floor(ee.height)}}const ae="cdk-global-overlay-wrapper";class De{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ot){const X=ot.getConfig();this._overlayRef=ot,this._width&&!X.width&&ot.updateSize({width:this._width}),this._height&&!X.height&&ot.updateSize({height:this._height}),ot.hostElement.classList.add(ae),this._isDisposed=!1}top(ot=""){return this._bottomOffset="",this._topOffset=ot,this._alignItems="flex-start",this}left(ot=""){return this._xOffset=ot,this._xPosition="left",this}bottom(ot=""){return this._topOffset="",this._bottomOffset=ot,this._alignItems="flex-end",this}right(ot=""){return this._xOffset=ot,this._xPosition="right",this}start(ot=""){return this._xOffset=ot,this._xPosition="start",this}end(ot=""){return this._xOffset=ot,this._xPosition="end",this}width(ot=""){return this._overlayRef?this._overlayRef.updateSize({width:ot}):this._width=ot,this}height(ot=""){return this._overlayRef?this._overlayRef.updateSize({height:ot}):this._height=ot,this}centerHorizontally(ot=""){return this.left(ot),this._xPosition="center",this}centerVertically(ot=""){return this.top(ot),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ot=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement.style,At=this._overlayRef.getConfig(),{width:Ht,height:ue,maxWidth:ye,maxHeight:Se}=At,vn=!("100%"!==Ht&&"100vw"!==Ht||ye&&"100%"!==ye&&"100vw"!==ye),qn=!("100%"!==ue&&"100vh"!==ue||Se&&"100%"!==Se&&"100vh"!==Se),mi=this._xPosition,Di=this._xOffset,bo="rtl"===this._overlayRef.getConfig().direction;let hi="",zn="",Bn="";vn?Bn="flex-start":"center"===mi?(Bn="center",bo?zn=Di:hi=Di):bo?"left"===mi||"end"===mi?(Bn="flex-end",hi=Di):("right"===mi||"start"===mi)&&(Bn="flex-start",zn=Di):"left"===mi||"start"===mi?(Bn="flex-start",hi=Di):("right"===mi||"end"===mi)&&(Bn="flex-end",zn=Di),ot.position=this._cssPosition,ot.marginLeft=vn?"0":hi,ot.marginTop=qn?"0":this._topOffset,ot.marginBottom=this._bottomOffset,ot.marginRight=vn?"0":zn,X.justifyContent=Bn,X.alignItems=qn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ot=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement,At=X.style;X.classList.remove(ae),At.justifyContent=At.alignItems=ot.marginTop=ot.marginBottom=ot.marginLeft=ot.marginRight=ot.position="",this._overlayRef=null,this._isDisposed=!0}}let nn=(()=>{class ee{constructor(X,At,Ht,ue){this._viewportRuler=X,this._document=At,this._platform=Ht,this._overlayContainer=ue}global(){return new De}flexibleConnectedTo(X){return new Qt(X,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(u.rL),v.LFG(d.K0),v.LFG(t.t4),v.LFG(ge))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),hn=0,Ce=(()=>{class ee{constructor(X,At,Ht,ue,ye,Se,vn,qn,mi,Di,bo,hi){this.scrollStrategies=X,this._overlayContainer=At,this._componentFactoryResolver=Ht,this._positionBuilder=ue,this._keyboardDispatcher=ye,this._injector=Se,this._ngZone=vn,this._document=qn,this._directionality=mi,this._location=Di,this._outsideClickDispatcher=bo,this._animationsModuleType=hi}create(X){const At=this._createHostElement(),Ht=this._createPaneElement(At),ue=this._createPortalOutlet(Ht),ye=new Ut(X);return ye.direction=ye.direction||this._directionality.value,new Fe(ue,At,Ht,ye,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(X){const At=this._document.createElement("div");return At.id="cdk-overlay-"+hn++,At.classList.add("cdk-overlay-pane"),X.appendChild(At),At}_createHostElement(){const X=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(X),X}_createPortalOutlet(X){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new U.u0(X,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(Tt),v.LFG(ge),v.LFG(v._Vd),v.LFG(nn),v.LFG(Vt),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(d.K0),v.LFG(T.Is),v.LFG(d.Ye),v.LFG(be),v.LFG(v.QbO,8))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const bn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Oe=new v.OlP("cdk-connected-overlay-scroll-strategy");let dn=(()=>{class ee{constructor(X){this.elementRef=X}}return ee.\u0275fac=function(X){return new(X||ee)(v.Y36(v.SBq))},ee.\u0275dir=v.lG2({type:ee,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ee})(),Pn=(()=>{class ee{constructor(X,At,Ht,ue,ye){this._overlay=X,this._dir=ye,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=P.w.EMPTY,this._attachSubscription=P.w.EMPTY,this._detachSubscription=P.w.EMPTY,this._positionSubscription=P.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new U.UE(At,Ht),this._scrollStrategyFactory=ue,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(X){this._offsetX=X,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(X){this._offsetY=X,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(X){this._hasBackdrop=(0,g.Ig)(X)}get lockPosition(){return this._lockPosition}set lockPosition(X){this._lockPosition=(0,g.Ig)(X)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(X){this._flexibleDimensions=(0,g.Ig)(X)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(X){this._growAfterOpen=(0,g.Ig)(X)}get push(){return this._push}set push(X){this._push=(0,g.Ig)(X)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(X){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),X.origin&&this.open&&this._position.apply()),X.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bn);const X=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=X.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=X.detachments().subscribe(()=>this.detach.emit()),X.keydownEvents().subscribe(At=>{this.overlayKeydown.next(At),At.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(At)&&(At.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(At=>{this.overlayOutsideClick.next(At)})}_buildConfig(){const X=this._position=this.positionStrategy||this._createPositionStrategy(),At=new Ut({direction:this._dir,positionStrategy:X,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(At.width=this.width),(this.height||0===this.height)&&(At.height=this.height),(this.minWidth||0===this.minWidth)&&(At.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(At.minHeight=this.minHeight),this.backdropClass&&(At.backdropClass=this.backdropClass),this.panelClass&&(At.panelClass=this.panelClass),At}_updatePositionStrategy(X){const At=this.positions.map(Ht=>({originX:Ht.originX,originY:Ht.originY,overlayX:Ht.overlayX,overlayY:Ht.overlayY,offsetX:Ht.offsetX||this.offsetX,offsetY:Ht.offsetY||this.offsetY,panelClass:Ht.panelClass||void 0}));return X.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(At).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const X=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(X),X}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof dn?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(X=>{this.backdropClick.emit(X)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,B.o)(()=>this.positionChange.observers.length>0)).subscribe(X=>{this.positionChange.emit(X),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ee.\u0275fac=function(X){return new(X||ee)(v.Y36(Ce),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Oe),v.Y36(T.Is,8))},ee.\u0275dir=v.lG2({type:ee,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.TTD]}),ee})();const _i={provide:Oe,deps:[Ce],useFactory:function ii(ee){return()=>ee.scrollStrategies.reposition()}};let oi=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=v.oAB({type:ee}),ee.\u0275inj=v.cJS({providers:[Ce,_i],imports:[T.vT,U.eL,u.Cl,u.Cl]}),ee})()},83353:(tt,W,f)=>{"use strict";f.d(W,{Mq:()=>K,Oy:()=>Rt,_i:()=>et,ht:()=>Dt,i$:()=>L,kV:()=>Ct,qK:()=>w,sA:()=>Zt,t4:()=>g,ud:()=>t});var u=f(94650),d=f(36895);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let T,g=(()=>{class Gt{constructor(Ut){this._platformId=Ut,this.isBrowser=this._platformId?(0,d.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Gt.\u0275fac=function(Ut){return new(Ut||Gt)(u.LFG(u.Lbi))},Gt.\u0275prov=u.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),t=(()=>{class Gt{}return Gt.\u0275fac=function(Ut){return new(Ut||Gt)},Gt.\u0275mod=u.oAB({type:Gt}),Gt.\u0275inj=u.cJS({}),Gt})();const U=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function w(){if(T)return T;if("object"!=typeof document||!document)return T=new Set(U),T;let Gt=document.createElement("input");return T=new Set(U.filter(Tt=>(Gt.setAttribute("type",Tt),Gt.type===Tt))),T}let P,N,B,ct;function L(Gt){return function O(){if(null==P&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?Gt:!!Gt.capture}function K(){if(null==B){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return B=!1,B;if("scrollBehavior"in document.documentElement.style)B=!0;else{const Gt=Element.prototype.scrollTo;B=!!Gt&&!/\{\s*\[native code\]\s*\}/.test(Gt.toString())}}return B}function et(){if("object"!=typeof document||!document)return 0;if(null==N){const Gt=document.createElement("div"),Tt=Gt.style;Gt.dir="rtl",Tt.width="1px",Tt.overflow="auto",Tt.visibility="hidden",Tt.pointerEvents="none",Tt.position="absolute";const Ut=document.createElement("div"),bt=Ut.style;bt.width="2px",bt.height="1px",Gt.appendChild(Ut),document.body.appendChild(Gt),N=0,0===Gt.scrollLeft&&(Gt.scrollLeft=1,N=0===Gt.scrollLeft?1:2),Gt.remove()}return N}function Ct(Gt){if(function lt(){if(null==ct){const Gt=typeof document<"u"?document.head:null;ct=!(!Gt||!Gt.createShadowRoot&&!Gt.attachShadow)}return ct}()){const Tt=Gt.getRootNode?Gt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Tt instanceof ShadowRoot)return Tt}return null}function Dt(){let Gt=typeof document<"u"&&document?document.activeElement:null;for(;Gt&&Gt.shadowRoot;){const Tt=Gt.shadowRoot.activeElement;if(Tt===Gt)break;Gt=Tt}return Gt}function Zt(Gt){return Gt.composedPath?Gt.composedPath()[0]:Gt.target}function Rt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(tt,W,f)=>{"use strict";f.d(W,{C5:()=>O,Pl:()=>Dt,UE:()=>L,eL:()=>Rt,en:()=>B,ig:()=>lt,u0:()=>et});var u=f(94650),d=f(36895);class P{attach(Ut){return this._attachedHost=Ut,Ut.attach(this)}detach(){let Ut=this._attachedHost;null!=Ut&&(this._attachedHost=null,Ut.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ut){this._attachedHost=Ut}}class O extends P{constructor(Ut,bt,mt,Lt){super(),this.component=Ut,this.viewContainerRef=bt,this.injector=mt,this.componentFactoryResolver=Lt}}class L extends P{constructor(Ut,bt,mt,Lt){super(),this.templateRef=Ut,this.viewContainerRef=bt,this.context=mt,this.injector=Lt}get origin(){return this.templateRef.elementRef}attach(Ut,bt=this.context){return this.context=bt,super.attach(Ut)}detach(){return this.context=void 0,super.detach()}}class N extends P{constructor(Ut){super(),this.element=Ut instanceof u.SBq?Ut.nativeElement:Ut}}class B{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Ut){return Ut instanceof O?(this._attachedPortal=Ut,this.attachComponentPortal(Ut)):Ut instanceof L?(this._attachedPortal=Ut,this.attachTemplatePortal(Ut)):this.attachDomPortal&&Ut instanceof N?(this._attachedPortal=Ut,this.attachDomPortal(Ut)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Ut){this._disposeFn=Ut}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class et extends B{constructor(Ut,bt,mt,Lt,Bt){super(),this.outletElement=Ut,this._componentFactoryResolver=bt,this._appRef=mt,this._defaultInjector=Lt,this.attachDomPortal=kt=>{const le=kt.element,Vt=this._document.createComment("dom-portal");le.parentNode.insertBefore(Vt,le),this.outletElement.appendChild(le),this._attachedPortal=kt,super.setDisposeFn(()=>{Vt.parentNode&&Vt.parentNode.replaceChild(le,Vt)})},this._document=Bt}attachComponentPortal(Ut){const mt=(Ut.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ut.component);let Lt;return Ut.viewContainerRef?(Lt=Ut.viewContainerRef.createComponent(mt,Ut.viewContainerRef.length,Ut.injector||Ut.viewContainerRef.injector),this.setDisposeFn(()=>Lt.destroy())):(Lt=mt.create(Ut.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(Lt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Lt.hostView),Lt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Lt)),this._attachedPortal=Ut,Lt}attachTemplatePortal(Ut){let bt=Ut.viewContainerRef,mt=bt.createEmbeddedView(Ut.templateRef,Ut.context,{injector:Ut.injector});return mt.rootNodes.forEach(Lt=>this.outletElement.appendChild(Lt)),mt.detectChanges(),this.setDisposeFn(()=>{let Lt=bt.indexOf(mt);-1!==Lt&&bt.remove(Lt)}),this._attachedPortal=Ut,mt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ut){return Ut.hostView.rootNodes[0]}}let lt=(()=>{class Tt extends L{constructor(bt,mt){super(bt,mt)}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(u.Rgc),u.Y36(u.s_b))},Tt.\u0275dir=u.lG2({type:Tt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[u.qOj]}),Tt})(),Dt=(()=>{class Tt extends B{constructor(bt,mt,Lt){super(),this._componentFactoryResolver=bt,this._viewContainerRef=mt,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=Bt=>{const kt=Bt.element,le=this._document.createComment("dom-portal");Bt.setAttachedHost(this),kt.parentNode.insertBefore(le,kt),this._getRootNode().appendChild(kt),this._attachedPortal=Bt,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(kt,le)})},this._document=Lt}get portal(){return this._attachedPortal}set portal(bt){this.hasAttached()&&!bt&&!this._isInitialized||(this.hasAttached()&&super.detach(),bt&&super.attach(bt),this._attachedPortal=bt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(bt){bt.setAttachedHost(this);const mt=null!=bt.viewContainerRef?bt.viewContainerRef:this._viewContainerRef,Bt=(bt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(bt.component),kt=mt.createComponent(Bt,mt.length,bt.injector||mt.injector);return mt!==this._viewContainerRef&&this._getRootNode().appendChild(kt.hostView.rootNodes[0]),super.setDisposeFn(()=>kt.destroy()),this._attachedPortal=bt,this._attachedRef=kt,this.attached.emit(kt),kt}attachTemplatePortal(bt){bt.setAttachedHost(this);const mt=this._viewContainerRef.createEmbeddedView(bt.templateRef,bt.context,{injector:bt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=bt,this._attachedRef=mt,this.attached.emit(mt),mt}_getRootNode(){const bt=this._viewContainerRef.element.nativeElement;return bt.nodeType===bt.ELEMENT_NODE?bt:bt.parentNode}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(d.K0))},Tt.\u0275dir=u.lG2({type:Tt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),Tt})(),Rt=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=u.oAB({type:Tt}),Tt.\u0275inj=u.cJS({}),Tt})()},67376:(tt,W,f)=>{"use strict";f.d(W,{Cl:()=>je,PQ:()=>Tt,ZD:()=>qe,mF:()=>Gt,rL:()=>bt});var u=f(21281),d=f(94650),v=f(8929),g=f(21086),t=f(56498),T=f(23753),P=(f(90352),f(8139),f(57138)),O=f(92198),L=f(7625),N=f(83353),B=f(36895),K=f(40445);let Gt=(()=>{class Qt{constructor(ie,Wt,se){this._ngZone=ie,this._platform=Wt,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=se}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const Wt=this.scrollContainers.get(ie);Wt&&(Wt.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new t.y(Wt=>{this._globalSubscription||this._addGlobalListener();const se=ie>0?this._scrolled.pipe((0,P.e)(ie)).subscribe(Wt):this._scrolled.subscribe(Wt);return this._scrolledCount++,()=>{se.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,g.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,Wt)=>this.deregister(Wt)),this._scrolled.complete()}ancestorScrolled(ie,Wt){const se=this.getAncestorScrollContainers(ie);return this.scrolled(Wt).pipe((0,O.h)(Xt=>!Xt||se.indexOf(Xt)>-1))}getAncestorScrollContainers(ie){const Wt=[];return this.scrollContainers.forEach((se,Xt)=>{this._scrollableContainsElement(Xt,ie)&&Wt.push(Xt)}),Wt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,Wt){let se=(0,u.fI)(Wt),Xt=ie.getElementRef().nativeElement;do{if(se==Xt)return!0}while(se=se.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,T.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(d.LFG(d.R0b),d.LFG(N.t4),d.LFG(B.K0,8))},Qt.\u0275prov=d.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"}),Qt})(),Tt=(()=>{class Qt{constructor(ie,Wt,se,Xt){this.elementRef=ie,this.scrollDispatcher=Wt,this.ngZone=se,this.dir=Xt,this._destroyed=new v.xQ,this._elementScrolled=new t.y(ae=>this.ngZone.runOutsideAngular(()=>(0,T.R)(this.elementRef.nativeElement,"scroll").pipe((0,L.R)(this._destroyed)).subscribe(ae)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ie){const Wt=this.elementRef.nativeElement,se=this.dir&&"rtl"==this.dir.value;null==ie.left&&(ie.left=se?ie.end:ie.start),null==ie.right&&(ie.right=se?ie.start:ie.end),null!=ie.bottom&&(ie.top=Wt.scrollHeight-Wt.clientHeight-ie.bottom),se&&0!=(0,N._i)()?(null!=ie.left&&(ie.right=Wt.scrollWidth-Wt.clientWidth-ie.left),2==(0,N._i)()?ie.left=ie.right:1==(0,N._i)()&&(ie.left=ie.right?-ie.right:ie.right)):null!=ie.right&&(ie.left=Wt.scrollWidth-Wt.clientWidth-ie.right),this._applyScrollToOptions(ie)}_applyScrollToOptions(ie){const Wt=this.elementRef.nativeElement;(0,N.Mq)()?Wt.scrollTo(ie):(null!=ie.top&&(Wt.scrollTop=ie.top),null!=ie.left&&(Wt.scrollLeft=ie.left))}measureScrollOffset(ie){const Wt="left",Xt=this.elementRef.nativeElement;if("top"==ie)return Xt.scrollTop;if("bottom"==ie)return Xt.scrollHeight-Xt.clientHeight-Xt.scrollTop;const ae=this.dir&&"rtl"==this.dir.value;return"start"==ie?ie=ae?"right":Wt:"end"==ie&&(ie=ae?Wt:"right"),ae&&2==(0,N._i)()?ie==Wt?Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft:Xt.scrollLeft:ae&&1==(0,N._i)()?ie==Wt?Xt.scrollLeft+Xt.scrollWidth-Xt.clientWidth:-Xt.scrollLeft:ie==Wt?Xt.scrollLeft:Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(d.Y36(d.SBq),d.Y36(Gt),d.Y36(d.R0b),d.Y36(K.Is,8))},Qt.\u0275dir=d.lG2({type:Qt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Qt})(),bt=(()=>{class Qt{constructor(ie,Wt,se){this._platform=ie,this._change=new v.xQ,this._changeListener=Xt=>{this._change.next(Xt)},this._document=se,Wt.runOutsideAngular(()=>{if(ie.isBrowser){const Xt=this._getWindow();Xt.addEventListener("resize",this._changeListener),Xt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:Wt,height:se}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+se,right:ie.left+Wt,height:se,width:Wt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,Wt=this._getWindow(),se=ie.documentElement,Xt=se.getBoundingClientRect();return{top:-Xt.top||ie.body.scrollTop||Wt.scrollY||se.scrollTop||0,left:-Xt.left||ie.body.scrollLeft||Wt.scrollX||se.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,P.e)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(d.LFG(N.t4),d.LFG(d.R0b),d.LFG(B.K0,8))},Qt.\u0275prov=d.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"}),Qt})(),qe=(()=>{class Qt{}return Qt.\u0275fac=function(ie){return new(ie||Qt)},Qt.\u0275mod=d.oAB({type:Qt}),Qt.\u0275inj=d.cJS({}),Qt})(),je=(()=>{class Qt{}return Qt.\u0275fac=function(ie){return new(ie||Qt)},Qt.\u0275mod=d.oAB({type:Qt}),Qt.\u0275inj=d.cJS({imports:[K.vT,qe,K.vT,qe]}),Qt})()},12138:(tt,W,f)=>{"use strict";f.d(W,{B8:()=>Zt,KL:()=>B,U5:()=>Tt,be:()=>Dt,gx:()=>Ct,po:()=>Gt,st:()=>Rt,u6:()=>K});var u=f(12687),d=f(40445),v=f(21281),g=f(29521),t=f(94650),T=f(83353),U=f(8929),w=f(21086),P=f(1059),O=f(7625);function L(Ut,bt){1&Ut&&t.Hsn(0)}const N=["*"];let B=(()=>{class Ut{constructor(mt){this._elementRef=mt}focus(){this._elementRef.nativeElement.focus()}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(t.SBq))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Ut})(),K=(()=>{class Ut{constructor(mt){this.template=mt}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(t.Rgc))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["","cdkStepLabel",""]]}),Ut})(),et=0;const Ct=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Dt=(()=>{class Ut{constructor(mt,Lt){this._stepper=mt,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Lt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(mt){this._editable=(0,v.Ig)(mt)}get optional(){return this._optional}set optional(mt){this._optional=(0,v.Ig)(mt)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(mt){this._completedOverride=(0,v.Ig)(mt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(mt){this._customError=(0,v.Ig)(mt)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36((0,t.Gpc)(()=>Zt)),t.Y36(Ct,8))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["cdk-step"]],contentQueries:function(mt,Lt,Bt){if(1&mt&&t.Suo(Bt,K,5),2&mt){let kt;t.iGM(kt=t.CRH())&&(Lt.stepLabel=kt.first)}},viewQuery:function(mt,Lt){if(1&mt&&t.Gf(t.Rgc,7),2&mt){let Bt;t.iGM(Bt=t.CRH())&&(Lt.content=Bt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:N,decls:1,vars:0,template:function(mt,Lt){1&mt&&(t.F$t(),t.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Ut})(),Zt=(()=>{class Ut{constructor(mt,Lt,Bt){this._dir=mt,this._changeDetectorRef=Lt,this._elementRef=Bt,this._destroyed=new U.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=et++}get linear(){return this._linear}set linear(mt){this._linear=(0,v.Ig)(mt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(mt){const Lt=(0,v.su)(mt);this.steps&&this._steps?(this._isValidIndex(Lt),this.selected?._markAsInteracted(),this._selectedIndex!==Lt&&!this._anyControlsInvalidOrPending(Lt)&&(Lt>=this._selectedIndex||this.steps.toArray()[Lt].editable)&&this._updateSelectedItemIndex(Lt)):this._selectedIndex=Lt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(mt){this.selectedIndex=mt&&this.steps?this.steps.toArray().indexOf(mt):-1}get orientation(){return this._orientation}set orientation(mt){this._orientation=mt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===mt)}ngAfterContentInit(){this._steps.changes.pipe((0,P.O)(this._steps),(0,O.R)(this._destroyed)).subscribe(mt=>{this.steps.reset(mt.filter(Lt=>Lt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,P.O)(this._stepHeader),(0,O.R)(this._destroyed)).subscribe(mt=>{this._sortedHeaders.reset(mt.toArray().sort((Lt,Bt)=>Lt._elementRef.nativeElement.compareDocumentPosition(Bt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new u.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,w.of)()).pipe((0,P.O)(this._layoutDirection()),(0,O.R)(this._destroyed)).subscribe(mt=>this._keyManager.withHorizontalOrientation(mt)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(mt=>mt.reset()),this._stateChanged()}_getStepLabelId(mt){return`cdk-step-label-${this._groupId}-${mt}`}_getStepContentId(mt){return`cdk-step-content-${this._groupId}-${mt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(mt){const Lt=mt-this._selectedIndex;return Lt<0?"rtl"===this._layoutDirection()?"next":"previous":Lt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(mt,Lt="number"){const Bt=this.steps.toArray()[mt],kt=this._isCurrentStep(mt);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,kt):this._getGuidelineLogic(Bt,kt,Lt)}_getDefaultIndicatorLogic(mt,Lt){return mt._showError()&&mt.hasError&&!Lt?"error":!mt.completed||Lt?"number":mt.editable?"edit":"done"}_getGuidelineLogic(mt,Lt,Bt="number"){return mt._showError()&&mt.hasError&&!Lt?"error":mt.completed&&!Lt?"done":mt.completed&&Lt?Bt:mt.editable&&Lt?"edit":Bt}_isCurrentStep(mt){return this._selectedIndex===mt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(mt){const Lt=this.steps.toArray();this.selectionChange.emit({selectedIndex:mt,previouslySelectedIndex:this._selectedIndex,selectedStep:Lt[mt],previouslySelectedStep:Lt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(mt):this._keyManager.updateActiveItem(mt),this._selectedIndex=mt,this._stateChanged()}_onKeydown(mt){const Lt=(0,g.Vb)(mt),Bt=mt.keyCode,kt=this._keyManager;null==kt.activeItemIndex||Lt||Bt!==g.L_&&Bt!==g.K5?kt.onKeydown(mt):(this.selectedIndex=kt.activeItemIndex,mt.preventDefault())}_anyControlsInvalidOrPending(mt){return!!(this._linear&&mt>=0)&&this.steps.toArray().slice(0,mt).some(Lt=>{const Bt=Lt.stepControl;return(Bt?Bt.invalid||Bt.pending||!Lt.interacted:!Lt.completed)&&!Lt.optional&&!Lt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const mt=this._elementRef.nativeElement,Lt=(0,T.ht)();return mt===Lt||mt.contains(Lt)}_isValidIndex(mt){return mt>-1&&(!this.steps||mt{class Ut{constructor(mt){this._stepper=mt,this.type="submit"}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(Zt))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&t.NdJ("click",function(){return Lt._stepper.next()}),2&mt&&t.Ikx("type",Lt.type)},inputs:{type:"type"}}),Ut})(),Gt=(()=>{class Ut{constructor(mt){this._stepper=mt,this.type="button"}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(Zt))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&t.NdJ("click",function(){return Lt._stepper.previous()}),2&mt&&t.Ikx("type",Lt.type)},inputs:{type:"type"}}),Ut})(),Tt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=t.oAB({type:Ut}),Ut.\u0275inj=t.cJS({imports:[d.vT]}),Ut})()},39349:(tt,W,f)=>{"use strict";f.d(W,{IC:()=>B,Ky:()=>K,Lq:()=>L});var u=f(83353),d=f(94650),v=f(21281),g=f(68896),t=f(8929),T=f(23753),U=f(57138),w=f(7625),P=f(36895);const O=(0,u.i$)({passive:!0});let L=(()=>{class et{constructor(lt,Ct){this._platform=lt,this._ngZone=Ct,this._monitoredElements=new Map}monitor(lt){if(!this._platform.isBrowser)return g.E;const Ct=(0,v.fI)(lt),Dt=this._monitoredElements.get(Ct);if(Dt)return Dt.subject;const Zt=new t.xQ,Rt="cdk-text-field-autofilled",Gt=Tt=>{"cdk-text-field-autofill-start"!==Tt.animationName||Ct.classList.contains(Rt)?"cdk-text-field-autofill-end"===Tt.animationName&&Ct.classList.contains(Rt)&&(Ct.classList.remove(Rt),this._ngZone.run(()=>Zt.next({target:Tt.target,isAutofilled:!1}))):(Ct.classList.add(Rt),this._ngZone.run(()=>Zt.next({target:Tt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Ct.addEventListener("animationstart",Gt,O),Ct.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Ct,{subject:Zt,unlisten:()=>{Ct.removeEventListener("animationstart",Gt,O)}}),Zt}stopMonitoring(lt){const Ct=(0,v.fI)(lt),Dt=this._monitoredElements.get(Ct);Dt&&(Dt.unlisten(),Dt.subject.complete(),Ct.classList.remove("cdk-text-field-autofill-monitored"),Ct.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Ct))}ngOnDestroy(){this._monitoredElements.forEach((lt,Ct)=>this.stopMonitoring(Ct))}}return et.\u0275fac=function(lt){return new(lt||et)(d.LFG(u.t4),d.LFG(d.R0b))},et.\u0275prov=d.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),B=(()=>{class et{constructor(lt,Ct,Dt,Zt){this._elementRef=lt,this._platform=Ct,this._ngZone=Dt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Rt=>{this._hasFocus="focus"===Rt.type},this._document=Zt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(lt){this._minRows=(0,v.su)(lt),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(lt){this._maxRows=(0,v.su)(lt),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(lt){lt=(0,v.Ig)(lt),this._enabled!==lt&&((this._enabled=lt)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(lt){this._cachedPlaceholderHeight=void 0,lt?this._textareaElement.setAttribute("placeholder",lt):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const lt=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.minHeight=lt)}_setMaxHeight(){const lt=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.maxHeight=lt)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const lt=this._getWindow();(0,T.R)(lt,"resize").pipe((0,U.e)(16),(0,w.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let lt=this._textareaElement.cloneNode(!1);lt.rows=1,lt.style.position="absolute",lt.style.visibility="hidden",lt.style.border="none",lt.style.padding="0",lt.style.height="",lt.style.minHeight="",lt.style.maxHeight="",lt.style.overflow="hidden",this._textareaElement.parentNode.appendChild(lt),this._cachedLineHeight=lt.clientHeight,lt.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const lt=this._textareaElement,Ct=lt.style.marginBottom||"",Dt=this._platform.FIREFOX,Zt=Dt&&this._hasFocus,Rt=Dt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Zt&&(lt.style.marginBottom=`${lt.clientHeight}px`),lt.classList.add(Rt);const Gt=lt.scrollHeight-4;return lt.classList.remove(Rt),Zt&&(lt.style.marginBottom=Ct),Gt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const lt=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=lt}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(lt=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Ct=this._elementRef.nativeElement,Dt=Ct.value;if(!lt&&this._minRows===this._previousMinRows&&Dt===this._previousValue)return;const Zt=this._measureScrollHeight(),Rt=Math.max(Zt,this._cachedPlaceholderHeight||0);Ct.style.height=`${Rt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Ct)):setTimeout(()=>this._scrollToCaretPosition(Ct))}),this._previousValue=Dt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(lt){const{selectionStart:Ct,selectionEnd:Dt}=lt;!this._destroyed.isStopped&&this._hasFocus&<.setSelectionRange(Ct,Dt)}}return et.\u0275fac=function(lt){return new(lt||et)(d.Y36(d.SBq),d.Y36(u.t4),d.Y36(d.R0b),d.Y36(P.K0,8))},et.\u0275dir=d.lG2({type:et,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(lt,Ct){1<&&d.NdJ("input",function(){return Ct._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),et})(),K=(()=>{class et{}return et.\u0275fac=function(lt){return new(lt||et)},et.\u0275mod=d.oAB({type:et}),et.\u0275inj=d.cJS({}),et})()},57851:(tt,W,f)=>{"use strict";f.d(W,{C2:()=>B,HI:()=>et,Hs:()=>bt,Ud:()=>Vt,VY:()=>K,XJ:()=>le,Xx:()=>Bt,_0:()=>Ut,cu:()=>ct,nZ:()=>ge,rO:()=>Ct});var u=f(95017),d=f(54715),v=f(8929),g=f(591),t=f(21086),T=f(72986),U=f(92198),w=f(7625),P=f(94650),O=f(21281),L=f(40445);class N{constructor(){this.expansionModel=new u.Ov(!0)}toggle(qe){this.expansionModel.toggle(this._trackByValue(qe))}expand(qe){this.expansionModel.select(this._trackByValue(qe))}collapse(qe){this.expansionModel.deselect(this._trackByValue(qe))}isExpanded(qe){return this.expansionModel.isSelected(this._trackByValue(qe))}toggleDescendants(qe){this.expansionModel.isSelected(this._trackByValue(qe))?this.collapseDescendants(qe):this.expandDescendants(qe)}collapseAll(){this.expansionModel.clear()}expandDescendants(qe){let je=[qe];je.push(...this.getDescendants(qe)),this.expansionModel.select(...je.map(Qt=>this._trackByValue(Qt)))}collapseDescendants(qe){let je=[qe];je.push(...this.getDescendants(qe)),this.expansionModel.deselect(...je.map(Qt=>this._trackByValue(Qt)))}_trackByValue(qe){return this.trackBy?this.trackBy(qe):qe}}class B extends N{constructor(qe,je,Qt){super(),this.getLevel=qe,this.isExpandable=je,this.options=Qt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(qe){const Qt=[];for(let Ue=this.dataNodes.indexOf(qe)+1;Uethis._trackByValue(qe)))}}class K extends N{constructor(qe,je){super(),this.getChildren=qe,this.options=je,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const qe=this.dataNodes.reduce((je,Qt)=>[...je,...this.getDescendants(Qt),Qt],[]);this.expansionModel.select(...qe.map(je=>this._trackByValue(je)))}getDescendants(qe){const je=[];return this._getDescendants(je,qe),je.splice(1)}_getDescendants(qe,je){qe.push(je);const Qt=this.getChildren(je);Array.isArray(Qt)?Qt.forEach(Ue=>this._getDescendants(qe,Ue)):(0,d.b)(Qt)&&Qt.pipe((0,T.q)(1),(0,U.h)(Boolean)).subscribe(Ue=>{for(const ie of Ue)this._getDescendants(qe,ie)})}}const et=new P.OlP("CDK_TREE_NODE_OUTLET_NODE");let ct=(()=>{class Fe{constructor(je,Qt){this.viewContainer=je,this._node=Qt}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.s_b),P.Y36(et,8))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodeOutlet",""]]}),Fe})();class lt{constructor(qe){this.$implicit=qe}}let Ct=(()=>{class Fe{constructor(je){this.template=je}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.Rgc))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Fe})(),Ut=(()=>{class Fe{constructor(je,Qt){this._differs=je,this._changeDetectorRef=Qt,this._onDestroy=new v.xQ,this._levels=new Map,this.viewChange=new g.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(je){this._dataSource!==je&&this._switchDataSource(je)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const je=this._nodeDefs.filter(Qt=>!Qt.when);this._defaultNodeDef=je[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(je){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),je||this._nodeOutlet.viewContainer.clear(),this._dataSource=je,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let je;(0,u.Z9)(this._dataSource)?je=this._dataSource.connect(this):(0,d.b)(this._dataSource)?je=this._dataSource:Array.isArray(this._dataSource)&&(je=(0,t.of)(this._dataSource)),je&&(this._dataSubscription=je.pipe((0,w.R)(this._onDestroy)).subscribe(Qt=>this.renderNodeChanges(Qt)))}renderNodeChanges(je,Qt=this._dataDiffer,Ue=this._nodeOutlet.viewContainer,ie){const Wt=Qt.diff(je);!Wt||(Wt.forEachOperation((se,Xt,ae)=>{if(null==se.previousIndex)this.insertNode(je[ae],ae,Ue,ie);else if(null==ae)Ue.remove(Xt),this._levels.delete(se.item);else{const De=Ue.get(Xt);Ue.move(De,ae)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(je,Qt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ie=>ie.when&&ie.when(Qt,je))||this._defaultNodeDef}insertNode(je,Qt,Ue,ie){const Wt=this._getNodeDef(je,Qt),se=new lt(je);se.level=this.treeControl.getLevel?this.treeControl.getLevel(je):typeof ie<"u"&&this._levels.has(ie)?this._levels.get(ie)+1:0,this._levels.set(je,se.level),(Ue||this._nodeOutlet.viewContainer).createEmbeddedView(Wt.template,se,Qt),bt.mostRecentTreeNode&&(bt.mostRecentTreeNode.data=je)}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.ZZ4),P.Y36(P.sBO))},Fe.\u0275cmp=P.Xpm({type:Fe,selectors:[["cdk-tree"]],contentQueries:function(je,Qt,Ue){if(1&je&&P.Suo(Ue,Ct,5),2&je){let ie;P.iGM(ie=P.CRH())&&(Qt._nodeDefs=ie)}},viewQuery:function(je,Qt){if(1&je&&P.Gf(ct,7),2&je){let Ue;P.iGM(Ue=P.CRH())&&(Qt._nodeOutlet=Ue.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(je,Qt){1&je&&P.GkF(0,0)},dependencies:[ct],encapsulation:2}),Fe})(),bt=(()=>{class Fe{constructor(je,Qt){this._elementRef=je,this._tree=Qt,this._destroyed=new v.xQ,this._dataChanges=new v.xQ,Fe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(je){this._elementRef.nativeElement.setAttribute("role",je)}get data(){return this._data}set data(je){je!==this._data&&(this._data=je,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function mt(Fe){let qe=Fe.parentElement;for(;qe&&!Lt(qe);)qe=qe.parentElement;return qe?qe.classList.contains("cdk-nested-tree-node")?(0,O.su)(qe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Fe.mostRecentTreeNode===this&&(Fe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Fe.mostRecentTreeNode=null,Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.SBq),P.Y36(Ut))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(je,Qt){2&je&&P.uIk("aria-expanded",Qt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Fe})();function Lt(Fe){const qe=Fe.classList;return!(!qe?.contains("cdk-nested-tree-node")&&!qe?.contains("cdk-tree"))}let Bt=(()=>{class Fe extends bt{constructor(je,Qt,Ue){super(je,Qt),this._differs=Ue}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const je=this._tree.treeControl.getChildren(this.data);Array.isArray(je)?this.updateChildrenNodes(je):(0,d.b)(je)&&je.pipe((0,w.R)(this._destroyed)).subscribe(Qt=>this.updateChildrenNodes(Qt)),this.nodeOutlet.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(je){const Qt=this._getNodeOutlet();je&&(this._children=je),Qt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Qt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const je=this._getNodeOutlet();je&&(je.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const je=this.nodeOutlet;return je&&je.find(Qt=>!Qt._node||Qt._node===this)}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.SBq),P.Y36(Ut),P.Y36(P.ZZ4))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(je,Qt,Ue){if(1&je&&P.Suo(Ue,ct,5),2&je){let ie;P.iGM(ie=P.CRH())&&(Qt.nodeOutlet=ie)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[P._Bn([{provide:bt,useExisting:Fe},{provide:et,useExisting:Fe}]),P.qOj]}),Fe})();const kt=/([A-Za-z%]+)$/;let le=(()=>{class Fe{constructor(je,Qt,Ue,ie){this._treeNode=je,this._tree=Qt,this._element=Ue,this._dir=ie,this._destroyed=new v.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ie&&ie.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),je._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(je){this._setLevelInput(je)}get indent(){return this._indent}set indent(je){this._setIndentInput(je)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const je=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Qt=this._level??je;return"number"==typeof Qt?`${Qt*this._indent}${this.indentUnits}`:null}_setPadding(je=!1){const Qt=this._paddingIndent();if(Qt!==this._currentPadding||je){const Ue=this._element.nativeElement,ie=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Wt="paddingLeft"===ie?"paddingRight":"paddingLeft";Ue.style[ie]=Qt||"",Ue.style[Wt]="",this._currentPadding=Qt}}_setLevelInput(je){this._level=(0,O.su)(je,null),this._setPadding()}_setIndentInput(je){let Qt=je,Ue="px";if("string"==typeof je){const ie=je.split(kt);Qt=ie[0],Ue=ie[1]||Ue}this.indentUnits=Ue,this._indent=(0,O.su)(Qt),this._setPadding()}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(bt),P.Y36(Ut),P.Y36(P.SBq),P.Y36(L.Is,8))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Fe})(),Vt=(()=>{class Fe{constructor(je,Qt){this._tree=je,this._treeNode=Qt,this._recursive=!1}get recursive(){return this._recursive}set recursive(je){this._recursive=(0,O.Ig)(je)}_toggle(je){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),je.stopPropagation()}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(Ut),P.Y36(bt))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(je,Qt){1&je&&P.NdJ("click",function(ie){return Qt._toggle(ie)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Fe})(),ge=(()=>{class Fe{}return Fe.\u0275fac=function(je){return new(je||Fe)},Fe.\u0275mod=P.oAB({type:Fe}),Fe.\u0275inj=P.cJS({}),Fe})()},36895:(tt,W,f)=>{"use strict";f.d(W,{Do:()=>Zt,ED:()=>Js,EM:()=>wr,H9:()=>zl,HT:()=>t,JF:()=>ds,JJ:()=>wl,K0:()=>U,Mx:()=>Vn,NF:()=>Vl,Nd:()=>Jc,O5:()=>nr,Ov:()=>uc,PC:()=>us,PM:()=>Pr,RF:()=>Oc,S$:()=>lt,V_:()=>O,Ye:()=>Rt,b0:()=>Dt,bD:()=>Ia,ez:()=>Ku,i8:()=>Bc,mk:()=>Xi,n9:()=>Al,q:()=>v,qS:()=>ze,rS:()=>js,sg:()=>Ja,tP:()=>Hs,uU:()=>sl,w_:()=>T});var u=f(94650);let d=null;function v(){return d}function t(Pt){d||(d=Pt)}class T{}const U=new u.OlP("DocumentToken");let w=(()=>{class Pt{historyGo(Yt){throw new Error("Not implemented")}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function P(){return(0,u.LFG)(L)}()},providedIn:"platform"}),Pt})();const O=new u.OlP("Location Initialized");let L=(()=>{class Pt extends w{constructor(Yt){super(),this._doc=Yt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(Yt){const Ge=v().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("popstate",Yt,!1),()=>Ge.removeEventListener("popstate",Yt)}onHashChange(Yt){const Ge=v().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("hashchange",Yt,!1),()=>Ge.removeEventListener("hashchange",Yt)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Yt){this.location.pathname=Yt}pushState(Yt,Ge,En){N()?this._history.pushState(Yt,Ge,En):this.location.hash=En}replaceState(Yt,Ge,En){N()?this._history.replaceState(Yt,Ge,En):this.location.hash=En}forward(){this._history.forward()}back(){this._history.back()}historyGo(Yt=0){this._history.go(Yt)}getState(){return this._history.state}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(U))},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function B(){return new L((0,u.LFG)(U))}()},providedIn:"platform"}),Pt})();function N(){return!!window.history.pushState}function K(Pt,me){if(0==Pt.length)return me;if(0==me.length)return Pt;let Yt=0;return Pt.endsWith("/")&&Yt++,me.startsWith("/")&&Yt++,2==Yt?Pt+me.substring(1):1==Yt?Pt+me:Pt+"/"+me}function et(Pt){const me=Pt.match(/#|\?|$/),Yt=me&&me.index||Pt.length;return Pt.slice(0,Yt-("/"===Pt[Yt-1]?1:0))+Pt.slice(Yt)}function ct(Pt){return Pt&&"?"!==Pt[0]?"?"+Pt:Pt}let lt=(()=>{class Pt{historyGo(Yt){throw new Error("Not implemented")}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return(0,u.f3M)(Dt)},providedIn:"root"}),Pt})();const Ct=new u.OlP("appBaseHref");let Dt=(()=>{class Pt extends lt{constructor(Yt,Ge){super(),this._platformLocation=Yt,this._removeListenerFns=[],this._baseHref=Ge??this._platformLocation.getBaseHrefFromDOM()??(0,u.f3M)(U).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Yt){this._removeListenerFns.push(this._platformLocation.onPopState(Yt),this._platformLocation.onHashChange(Yt))}getBaseHref(){return this._baseHref}prepareExternalUrl(Yt){return K(this._baseHref,Yt)}path(Yt=!1){const Ge=this._platformLocation.pathname+ct(this._platformLocation.search),En=this._platformLocation.hash;return En&&Yt?`${Ge}${En}`:Ge}pushState(Yt,Ge,En,St){const pe=this.prepareExternalUrl(En+ct(St));this._platformLocation.pushState(Yt,Ge,pe)}replaceState(Yt,Ge,En,St){const pe=this.prepareExternalUrl(En+ct(St));this._platformLocation.replaceState(Yt,Ge,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Yt=0){this._platformLocation.historyGo?.(Yt)}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(w),u.LFG(Ct,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),Zt=(()=>{class Pt extends lt{constructor(Yt,Ge){super(),this._platformLocation=Yt,this._baseHref="",this._removeListenerFns=[],null!=Ge&&(this._baseHref=Ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Yt){this._removeListenerFns.push(this._platformLocation.onPopState(Yt),this._platformLocation.onHashChange(Yt))}getBaseHref(){return this._baseHref}path(Yt=!1){let Ge=this._platformLocation.hash;return null==Ge&&(Ge="#"),Ge.length>0?Ge.substring(1):Ge}prepareExternalUrl(Yt){const Ge=K(this._baseHref,Yt);return Ge.length>0?"#"+Ge:Ge}pushState(Yt,Ge,En,St){let pe=this.prepareExternalUrl(En+ct(St));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(Yt,Ge,pe)}replaceState(Yt,Ge,En,St){let pe=this.prepareExternalUrl(En+ct(St));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(Yt,Ge,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Yt=0){this._platformLocation.historyGo?.(Yt)}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(w),u.LFG(Ct,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})(),Rt=(()=>{class Pt{constructor(Yt){this._subject=new u.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Yt;const Ge=this._locationStrategy.getBaseHref();this._baseHref=et(Ut(Ge)),this._locationStrategy.onPopState(En=>{this._subject.emit({url:this.path(!0),pop:!0,state:En.state,type:En.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Yt=!1){return this.normalize(this._locationStrategy.path(Yt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Yt,Ge=""){return this.path()==this.normalize(Yt+ct(Ge))}normalize(Yt){return Pt.stripTrailingSlash(function Tt(Pt,me){return Pt&&me.startsWith(Pt)?me.substring(Pt.length):me}(this._baseHref,Ut(Yt)))}prepareExternalUrl(Yt){return Yt&&"/"!==Yt[0]&&(Yt="/"+Yt),this._locationStrategy.prepareExternalUrl(Yt)}go(Yt,Ge="",En=null){this._locationStrategy.pushState(En,"",Yt,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+ct(Ge)),En)}replaceState(Yt,Ge="",En=null){this._locationStrategy.replaceState(En,"",Yt,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+ct(Ge)),En)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Yt=0){this._locationStrategy.historyGo?.(Yt)}onUrlChange(Yt){return this._urlChangeListeners.push(Yt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ge=>{this._notifyUrlChangeListeners(Ge.url,Ge.state)})),()=>{const Ge=this._urlChangeListeners.indexOf(Yt);this._urlChangeListeners.splice(Ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Yt="",Ge){this._urlChangeListeners.forEach(En=>En(Yt,Ge))}subscribe(Yt,Ge,En){return this._subject.subscribe({next:Yt,error:Ge,complete:En})}}return Pt.normalizeQueryParams=ct,Pt.joinWithSlash=K,Pt.stripTrailingSlash=et,Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(lt))},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function Gt(){return new Rt((0,u.LFG)(lt))}()},providedIn:"root"}),Pt})();function Ut(Pt){return Pt.replace(/\/index.html$/,"")}const bt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Percent=1]="Percent",mt[mt.Currency=2]="Currency",mt[mt.Scientific=3]="Scientific",mt))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),kt=(()=>((kt=kt||{})[kt.Narrow=0]="Narrow",kt[kt.Abbreviated=1]="Abbreviated",kt[kt.Wide=2]="Wide",kt[kt.Short=3]="Short",kt))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),Vt=(()=>((Vt=Vt||{})[Vt.Decimal=0]="Decimal",Vt[Vt.Group=1]="Group",Vt[Vt.List=2]="List",Vt[Vt.PercentSign=3]="PercentSign",Vt[Vt.PlusSign=4]="PlusSign",Vt[Vt.MinusSign=5]="MinusSign",Vt[Vt.Exponential=6]="Exponential",Vt[Vt.SuperscriptingExponent=7]="SuperscriptingExponent",Vt[Vt.PerMille=8]="PerMille",Vt[Vt.Infinity=9]="Infinity",Vt[Vt.NaN=10]="NaN",Vt[Vt.TimeSeparator=11]="TimeSeparator",Vt[Vt.CurrencyDecimal=12]="CurrencyDecimal",Vt[Vt.CurrencyGroup=13]="CurrencyGroup",Vt))();function Wt(Pt,me){return oi((0,u.cg1)(Pt)[u.wAp.DateFormat],me)}function se(Pt,me){return oi((0,u.cg1)(Pt)[u.wAp.TimeFormat],me)}function Xt(Pt,me){return oi((0,u.cg1)(Pt)[u.wAp.DateTimeFormat],me)}function ae(Pt,me){const Yt=(0,u.cg1)(Pt),Ge=Yt[u.wAp.NumberSymbols][me];if(typeof Ge>"u"){if(me===Vt.CurrencyDecimal)return Yt[u.wAp.NumberSymbols][Vt.Decimal];if(me===Vt.CurrencyGroup)return Yt[u.wAp.NumberSymbols][Vt.Group]}return Ge}function De(Pt,me){return(0,u.cg1)(Pt)[u.wAp.NumberFormats][me]}function dn(Pt){if(!Pt[u.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Pt[u.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function oi(Pt,me){for(let Yt=me;Yt>-1;Yt--)if(typeof Pt[Yt]<"u")return Pt[Yt];throw new Error("Locale data API: locale data undefined")}function We(Pt){const[me,Yt]=Pt.split(":");return{hours:+me,minutes:+Yt}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ht={},ue=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ye=(()=>((ye=ye||{})[ye.Short=0]="Short",ye[ye.ShortGMT=1]="ShortGMT",ye[ye.Long=2]="Long",ye[ye.Extended=3]="Extended",ye))(),Se=(()=>((Se=Se||{})[Se.FullYear=0]="FullYear",Se[Se.Month=1]="Month",Se[Se.Date=2]="Date",Se[Se.Hours=3]="Hours",Se[Se.Minutes=4]="Minutes",Se[Se.Seconds=5]="Seconds",Se[Se.FractionalSeconds=6]="FractionalSeconds",Se[Se.Day=7]="Day",Se))(),vn=(()=>((vn=vn||{})[vn.DayPeriods=0]="DayPeriods",vn[vn.Days=1]="Days",vn[vn.Months=2]="Months",vn[vn.Eras=3]="Eras",vn))();function qn(Pt,me,Yt,Ge){let En=function we(Pt){if(kn(Pt))return Pt;if("number"==typeof Pt&&!isNaN(Pt))return new Date(Pt);if("string"==typeof Pt){if(Pt=Pt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Pt)){const[En,St=1,pe=1]=Pt.split("-").map(Te=>+Te);return mi(En,St-1,pe)}const Yt=parseFloat(Pt);if(!isNaN(Pt-Yt))return new Date(Yt);let Ge;if(Ge=Pt.match(At))return function He(Pt){const me=new Date(0);let Yt=0,Ge=0;const En=Pt[8]?me.setUTCFullYear:me.setFullYear,St=Pt[8]?me.setUTCHours:me.setHours;Pt[9]&&(Yt=Number(Pt[9]+Pt[10]),Ge=Number(Pt[9]+Pt[11])),En.call(me,Number(Pt[1]),Number(Pt[2])-1,Number(Pt[3]));const pe=Number(Pt[4]||0)-Yt,Te=Number(Pt[5]||0)-Ge,Xe=Number(Pt[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(Pt[7]||0)));return St.call(me,pe,Te,Xe,Tn),me}(Ge)}const me=new Date(Pt);if(!kn(me))throw new Error(`Unable to convert "${Pt}" into a date`);return me}(Pt);me=Di(Yt,me)||me;let Te,pe=[];for(;me;){if(Te=ue.exec(me),!Te){pe.push(me);break}{pe=pe.concat(Te.slice(1));const Xn=pe.pop();if(!Xn)break;me=Xn}}let Xe=En.getTimezoneOffset();Ge&&(Xe=It(Ge,Xe),En=function zt(Pt,me,Yt){const Ge=Yt?-1:1,En=Pt.getTimezoneOffset();return function Le(Pt,me){return(Pt=new Date(Pt.getTime())).setMinutes(Pt.getMinutes()+me),Pt}(Pt,Ge*(It(me,En)-En))}(En,Ge,!0));let Tn="";return pe.forEach(Xn=>{const ei=function xe(Pt){if(cn[Pt])return cn[Pt];let me;switch(Pt){case"G":case"GG":case"GGG":me=xn(vn.Eras,kt.Abbreviated);break;case"GGGG":me=xn(vn.Eras,kt.Wide);break;case"GGGGG":me=xn(vn.Eras,kt.Narrow);break;case"y":me=Bn(Se.FullYear,1,0,!1,!0);break;case"yy":me=Bn(Se.FullYear,2,0,!0,!0);break;case"yyy":me=Bn(Se.FullYear,3,0,!1,!0);break;case"yyyy":me=Bn(Se.FullYear,4,0,!1,!0);break;case"Y":me=gn(1);break;case"YY":me=gn(2,!0);break;case"YYY":me=gn(3);break;case"YYYY":me=gn(4);break;case"M":case"L":me=Bn(Se.Month,1,1);break;case"MM":case"LL":me=Bn(Se.Month,2,1);break;case"MMM":me=xn(vn.Months,kt.Abbreviated);break;case"MMMM":me=xn(vn.Months,kt.Wide);break;case"MMMMM":me=xn(vn.Months,kt.Narrow);break;case"LLL":me=xn(vn.Months,kt.Abbreviated,Bt.Standalone);break;case"LLLL":me=xn(vn.Months,kt.Wide,Bt.Standalone);break;case"LLLLL":me=xn(vn.Months,kt.Narrow,Bt.Standalone);break;case"w":me=rn(1);break;case"ww":me=rn(2);break;case"W":me=rn(1,!0);break;case"d":me=Bn(Se.Date,1);break;case"dd":me=Bn(Se.Date,2);break;case"c":case"cc":me=Bn(Se.Day,1);break;case"ccc":me=xn(vn.Days,kt.Abbreviated,Bt.Standalone);break;case"cccc":me=xn(vn.Days,kt.Wide,Bt.Standalone);break;case"ccccc":me=xn(vn.Days,kt.Narrow,Bt.Standalone);break;case"cccccc":me=xn(vn.Days,kt.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":me=xn(vn.Days,kt.Abbreviated);break;case"EEEE":me=xn(vn.Days,kt.Wide);break;case"EEEEE":me=xn(vn.Days,kt.Narrow);break;case"EEEEEE":me=xn(vn.Days,kt.Short);break;case"a":case"aa":case"aaa":me=xn(vn.DayPeriods,kt.Abbreviated);break;case"aaaa":me=xn(vn.DayPeriods,kt.Wide);break;case"aaaaa":me=xn(vn.DayPeriods,kt.Narrow);break;case"b":case"bb":case"bbb":me=xn(vn.DayPeriods,kt.Abbreviated,Bt.Standalone,!0);break;case"bbbb":me=xn(vn.DayPeriods,kt.Wide,Bt.Standalone,!0);break;case"bbbbb":me=xn(vn.DayPeriods,kt.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":me=xn(vn.DayPeriods,kt.Abbreviated,Bt.Format,!0);break;case"BBBB":me=xn(vn.DayPeriods,kt.Wide,Bt.Format,!0);break;case"BBBBB":me=xn(vn.DayPeriods,kt.Narrow,Bt.Format,!0);break;case"h":me=Bn(Se.Hours,1,-12);break;case"hh":me=Bn(Se.Hours,2,-12);break;case"H":me=Bn(Se.Hours,1);break;case"HH":me=Bn(Se.Hours,2);break;case"m":me=Bn(Se.Minutes,1);break;case"mm":me=Bn(Se.Minutes,2);break;case"s":me=Bn(Se.Seconds,1);break;case"ss":me=Bn(Se.Seconds,2);break;case"S":me=Bn(Se.FractionalSeconds,1);break;case"SS":me=Bn(Se.FractionalSeconds,2);break;case"SSS":me=Bn(Se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=Ne(ye.Short);break;case"ZZZZZ":me=Ne(ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=Ne(ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=Ne(ye.Long);break;default:return null}return cn[Pt]=me,me}(Xn);Tn+=ei?ei(En,Yt,Xe):"''"===Xn?"'":Xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function mi(Pt,me,Yt){const Ge=new Date(0);return Ge.setFullYear(Pt,me,Yt),Ge.setHours(0,0,0),Ge}function Di(Pt,me){const Yt=function ge(Pt){return(0,u.cg1)(Pt)[u.wAp.LocaleId]}(Pt);if(Ht[Yt]=Ht[Yt]||{},Ht[Yt][me])return Ht[Yt][me];let Ge="";switch(me){case"shortDate":Ge=Wt(Pt,le.Short);break;case"mediumDate":Ge=Wt(Pt,le.Medium);break;case"longDate":Ge=Wt(Pt,le.Long);break;case"fullDate":Ge=Wt(Pt,le.Full);break;case"shortTime":Ge=se(Pt,le.Short);break;case"mediumTime":Ge=se(Pt,le.Medium);break;case"longTime":Ge=se(Pt,le.Long);break;case"fullTime":Ge=se(Pt,le.Full);break;case"short":const En=Di(Pt,"shortTime"),St=Di(Pt,"shortDate");Ge=bo(Xt(Pt,le.Short),[En,St]);break;case"medium":const pe=Di(Pt,"mediumTime"),Te=Di(Pt,"mediumDate");Ge=bo(Xt(Pt,le.Medium),[pe,Te]);break;case"long":const Xe=Di(Pt,"longTime"),Tn=Di(Pt,"longDate");Ge=bo(Xt(Pt,le.Long),[Xe,Tn]);break;case"full":const Xn=Di(Pt,"fullTime"),ei=Di(Pt,"fullDate");Ge=bo(Xt(Pt,le.Full),[Xn,ei])}return Ge&&(Ht[Yt][me]=Ge),Ge}function bo(Pt,me){return me&&(Pt=Pt.replace(/\{([^}]+)}/g,function(Yt,Ge){return null!=me&&Ge in me?me[Ge]:Yt})),Pt}function hi(Pt,me,Yt="-",Ge,En){let St="";(Pt<0||En&&Pt<=0)&&(En?Pt=1-Pt:(Pt=-Pt,St=Yt));let pe=String(Pt);for(;pe.length0||Te>-Yt)&&(Te+=Yt),Pt===Se.Hours)0===Te&&-12===Yt&&(Te=12);else if(Pt===Se.FractionalSeconds)return function zn(Pt,me){return hi(Pt,3).substring(0,me)}(Te,me);const Xe=ae(pe,Vt.MinusSign);return hi(Te,me,Xe,Ge,En)}}function xn(Pt,me,Yt=Bt.Format,Ge=!1){return function(En,St){return function Ve(Pt,me,Yt,Ge,En,St){switch(Yt){case vn.Months:return function je(Pt,me,Yt){const Ge=(0,u.cg1)(Pt),St=oi([Ge[u.wAp.MonthsFormat],Ge[u.wAp.MonthsStandalone]],me);return oi(St,Yt)}(me,En,Ge)[Pt.getMonth()];case vn.Days:return function qe(Pt,me,Yt){const Ge=(0,u.cg1)(Pt),St=oi([Ge[u.wAp.DaysFormat],Ge[u.wAp.DaysStandalone]],me);return oi(St,Yt)}(me,En,Ge)[Pt.getDay()];case vn.DayPeriods:const pe=Pt.getHours(),Te=Pt.getMinutes();if(St){const Tn=function Pn(Pt){const me=(0,u.cg1)(Pt);return dn(me),(me[u.wAp.ExtraData][2]||[]).map(Ge=>"string"==typeof Ge?We(Ge):[We(Ge[0]),We(Ge[1])])}(me),Xn=function ii(Pt,me,Yt){const Ge=(0,u.cg1)(Pt);dn(Ge);const St=oi([Ge[u.wAp.ExtraData][0],Ge[u.wAp.ExtraData][1]],me)||[];return oi(St,Yt)||[]}(me,En,Ge),ei=Tn.findIndex(yi=>{if(Array.isArray(yi)){const[Ui,xo]=yi,vi=pe>=Ui.hours&&Te>=Ui.minutes,zi=pe0?Math.floor(En/60):Math.ceil(En/60);switch(Pt){case ye.Short:return(En>=0?"+":"")+hi(pe,2,St)+hi(Math.abs(En%60),2,St);case ye.ShortGMT:return"GMT"+(En>=0?"+":"")+hi(pe,1,St);case ye.Long:return"GMT"+(En>=0?"+":"")+hi(pe,2,St)+":"+hi(Math.abs(En%60),2,St);case ye.Extended:return 0===Ge?"Z":(En>=0?"+":"")+hi(pe,2,St)+":"+hi(Math.abs(En%60),2,St);default:throw new Error(`Unknown zone width "${Pt}"`)}}}function oe(Pt){return mi(Pt.getFullYear(),Pt.getMonth(),Pt.getDate()+(4-Pt.getDay()))}function rn(Pt,me=!1){return function(Yt,Ge){let En;if(me){const St=new Date(Yt.getFullYear(),Yt.getMonth(),1).getDay()-1,pe=Yt.getDate();En=1+Math.floor((pe+St)/7)}else{const St=oe(Yt),pe=function Be(Pt){const me=mi(Pt,0,1).getDay();return mi(Pt,0,1+(me<=4?4:11)-me)}(St.getFullYear()),Te=St.getTime()-pe.getTime();En=1+Math.round(Te/6048e5)}return hi(En,Pt,ae(Ge,Vt.MinusSign))}}function gn(Pt,me=!1){return function(Yt,Ge){return hi(oe(Yt).getFullYear(),Pt,ae(Ge,Vt.MinusSign),me)}}const cn={};function It(Pt,me){Pt=Pt.replace(/:/g,"");const Yt=Date.parse("Jan 01, 1970 00:00:00 "+Pt)/6e4;return isNaN(Yt)?me:Yt}function kn(Pt){return Pt instanceof Date&&!isNaN(Pt.valueOf())}const Ei=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function So(Pt,me,Yt,Ge,En,St,pe=!1){let Te="",Xe=!1;if(isFinite(Pt)){let Tn=function Me(Pt){let Ge,En,St,pe,Te,me=Math.abs(Pt)+"",Yt=0;for((En=me.indexOf("."))>-1&&(me=me.replace(".","")),(St=me.search(/e/i))>0?(En<0&&(En=St),En+=+me.slice(St+1),me=me.substring(0,St)):En<0&&(En=me.length),St=0;"0"===me.charAt(St);St++);if(St===(Te=me.length))Ge=[0],En=1;else{for(Te--;"0"===me.charAt(Te);)Te--;for(En-=St,Ge=[],pe=0;St<=Te;St++,pe++)Ge[pe]=Number(me.charAt(St))}return En>22&&(Ge=Ge.splice(0,21),Yt=En-1,En=1),{digits:Ge,exponent:Yt,integerLen:En}}(Pt);pe&&(Tn=function Ye(Pt){if(0===Pt.digits[0])return Pt;const me=Pt.digits.length-Pt.integerLen;return Pt.exponent?Pt.exponent+=2:(0===me?Pt.digits.push(0,0):1===me&&Pt.digits.push(0),Pt.integerLen+=2),Pt}(Tn));let Xn=me.minInt,ei=me.minFrac,yi=me.maxFrac;if(St){const ea=St.match(Ei);if(null===ea)throw new Error(`${St} is not a valid digit info`);const ga=ea[1],$r=ea[3],fs=ea[5];null!=ga&&(Xn=j(ga)),null!=$r&&(ei=j($r)),null!=fs?yi=j(fs):null!=$r&&ei>yi&&(yi=ei)}!function an(Pt,me,Yt){if(me>Yt)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${Yt}).`);let Ge=Pt.digits,En=Ge.length-Pt.integerLen;const St=Math.min(Math.max(me,En),Yt);let pe=St+Pt.integerLen,Te=Ge[pe];if(pe>0){Ge.splice(Math.max(Pt.integerLen,pe));for(let ei=pe;ei=5)if(pe-1<0){for(let ei=0;ei>pe;ei--)Ge.unshift(0),Pt.integerLen++;Ge.unshift(1),Pt.integerLen++}else Ge[pe-1]++;for(;En=Tn?xo.pop():Xe=!1),yi>=10?1:0},0);Xn&&(Ge.unshift(Xn),Pt.integerLen++)}(Tn,ei,yi);let Ui=Tn.digits,xo=Tn.integerLen;const vi=Tn.exponent;let zi=[];for(Xe=Ui.every(ea=>!ea);xo0?zi=Ui.splice(xo,Ui.length):(zi=Ui,Ui=[0]);const ua=[];for(Ui.length>=me.lgSize&&ua.unshift(Ui.splice(-me.lgSize,Ui.length).join(""));Ui.length>me.gSize;)ua.unshift(Ui.splice(-me.gSize,Ui.length).join(""));Ui.length&&ua.unshift(Ui.join("")),Te=ua.join(ae(Yt,Ge)),zi.length&&(Te+=ae(Yt,En)+zi.join("")),vi&&(Te+=ae(Yt,Vt.Exponential)+"+"+vi)}else Te=ae(Yt,Vt.Infinity);return Te=Pt<0&&!Xe?me.negPre+Te+me.negSuf:me.posPre+Te+me.posSuf,Te}function Rn(Pt,me="-"){const Yt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ge=Pt.split(";"),En=Ge[0],St=Ge[1],pe=-1!==En.indexOf(".")?En.split("."):[En.substring(0,En.lastIndexOf("0")+1),En.substring(En.lastIndexOf("0")+1)],Te=pe[0],Xe=pe[1]||"";Yt.posPre=Te.substring(0,Te.indexOf("#"));for(let Xn=0;Xn{class Pt{constructor(Yt,Ge,En,St){this._iterableDiffers=Yt,this._keyValueDiffers=Ge,this._ngEl=En,this._renderer=St,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Yt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Yt?Yt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Yt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Yt?Yt.split(/\s+/):Yt,this._rawClass&&((0,u.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Yt=this._iterableDiffer.diff(this._rawClass);Yt&&this._applyIterableChanges(Yt)}else if(this._keyValueDiffer){const Yt=this._keyValueDiffer.diff(this._rawClass);Yt&&this._applyKeyValueChanges(Yt)}}_applyKeyValueChanges(Yt){Yt.forEachAddedItem(Ge=>this._toggleClass(Ge.key,Ge.currentValue)),Yt.forEachChangedItem(Ge=>this._toggleClass(Ge.key,Ge.currentValue)),Yt.forEachRemovedItem(Ge=>{Ge.previousValue&&this._toggleClass(Ge.key,!1)})}_applyIterableChanges(Yt){Yt.forEachAddedItem(Ge=>{if("string"!=typeof Ge.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,u.AaK)(Ge.item)}`);this._toggleClass(Ge.item,!0)}),Yt.forEachRemovedItem(Ge=>this._toggleClass(Ge.item,!1))}_applyClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ge=>this._toggleClass(Ge,!0)):Object.keys(Yt).forEach(Ge=>this._toggleClass(Ge,!!Yt[Ge])))}_removeClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ge=>this._toggleClass(Ge,!1)):Object.keys(Yt).forEach(Ge=>this._toggleClass(Ge,!1)))}_toggleClass(Yt,Ge){(Yt=Yt.trim())&&Yt.split(/\s+/g).forEach(En=>{Ge?this._renderer.addClass(this._ngEl.nativeElement,En):this._renderer.removeClass(this._ngEl.nativeElement,En)})}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.ZZ4),u.Y36(u.aQg),u.Y36(u.SBq),u.Y36(u.Qsj))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Pt})();class jr{constructor(me,Yt,Ge,En){this.$implicit=me,this.ngForOf=Yt,this.index=Ge,this.count=En}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ja=(()=>{class Pt{constructor(Yt,Ge,En){this._viewContainer=Yt,this._template=Ge,this._differs=En,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Yt){this._ngForOf=Yt,this._ngForOfDirty=!0}set ngForTrackBy(Yt){this._trackByFn=Yt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Yt){Yt&&(this._template=Yt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Yt=this._ngForOf;!this._differ&&Yt&&(this._differ=this._differs.find(Yt).create(this.ngForTrackBy))}if(this._differ){const Yt=this._differ.diff(this._ngForOf);Yt&&this._applyChanges(Yt)}}_applyChanges(Yt){const Ge=this._viewContainer;Yt.forEachOperation((En,St,pe)=>{if(null==En.previousIndex)Ge.createEmbeddedView(this._template,new jr(En.item,this._ngForOf,-1,-1),null===pe?void 0:pe);else if(null==pe)Ge.remove(null===St?void 0:St);else if(null!==St){const Te=Ge.get(St);Ge.move(Te,pe),Or(Te,En)}});for(let En=0,St=Ge.length;En{Or(Ge.get(En.currentIndex),En)})}static ngTemplateContextGuard(Yt,Ge){return!0}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(u.ZZ4))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Pt})();function Or(Pt,me){Pt.context.$implicit=me.item}let nr=(()=>{class Pt{constructor(Yt,Ge){this._viewContainer=Yt,this._context=new ls,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}set ngIf(Yt){this._context.$implicit=this._context.ngIf=Yt,this._updateView()}set ngIfThen(Yt){Ar("ngIfThen",Yt),this._thenTemplateRef=Yt,this._thenViewRef=null,this._updateView()}set ngIfElse(Yt){Ar("ngIfElse",Yt),this._elseTemplateRef=Yt,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Yt,Ge){return!0}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Pt})();class ls{constructor(){this.$implicit=null,this.ngIf=null}}function Ar(Pt,me){if(me&&!me.createEmbeddedView)throw new Error(`${Pt} must be a TemplateRef, but received '${(0,u.AaK)(me)}'.`)}class Ur{constructor(me,Yt){this._viewContainerRef=me,this._templateRef=Yt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Oc=(()=>{class Pt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Yt){this._ngSwitch=Yt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Yt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Yt)}_matchCase(Yt){const Ge=Yt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ge}_updateDefaultCases(Yt){if(this._defaultViews&&Yt!==this._defaultUsed){this._defaultUsed=Yt;for(let Ge=0;Ge{class Pt{constructor(Yt,Ge,En){this.ngSwitch=En,En._addCase(),this._view=new Ur(Yt,Ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(Oc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Pt})(),Js=(()=>{class Pt{constructor(Yt,Ge,En){En._addDefault(new Ur(Yt,Ge))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(Oc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Pt})(),us=(()=>{class Pt{constructor(Yt,Ge,En){this._ngEl=Yt,this._differs=Ge,this._renderer=En,this._ngStyle=null,this._differ=null}set ngStyle(Yt){this._ngStyle=Yt,!this._differ&&Yt&&(this._differ=this._differs.find(Yt).create())}ngDoCheck(){if(this._differ){const Yt=this._differ.diff(this._ngStyle);Yt&&this._applyChanges(Yt)}}_setStyle(Yt,Ge){const[En,St]=Yt.split("."),pe=-1===En.indexOf("-")?void 0:u.JOm.DashCase;null!=Ge?this._renderer.setStyle(this._ngEl.nativeElement,En,St?`${Ge}${St}`:Ge,pe):this._renderer.removeStyle(this._ngEl.nativeElement,En,pe)}_applyChanges(Yt){Yt.forEachRemovedItem(Ge=>this._setStyle(Ge.key,null)),Yt.forEachAddedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue)),Yt.forEachChangedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.SBq),u.Y36(u.aQg),u.Y36(u.Qsj))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Pt})(),Hs=(()=>{class Pt{constructor(Yt){this._viewContainerRef=Yt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Yt){if(Yt.ngTemplateOutlet||Yt.ngTemplateOutletInjector){const Ge=this._viewContainerRef;if(this._viewRef&&Ge.remove(Ge.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:En,ngTemplateOutletContext:St,ngTemplateOutletInjector:pe}=this;this._viewRef=Ge.createEmbeddedView(En,St,pe?{injector:pe}:void 0)}else this._viewRef=null}else this._viewRef&&Yt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.TTD]}),Pt})();function Lr(Pt,me){return new u.vHH(2100,!1)}class Ad{createSubscription(me,Yt){return me.subscribe({next:Yt,error:Ge=>{throw Ge}})}dispose(me){me.unsubscribe()}}class e1{createSubscription(me,Yt){return me.then(Yt,Ge=>{throw Ge})}dispose(me){}}const Vc=new e1,lc=new Ad;let uc=(()=>{class Pt{constructor(Yt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Yt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Yt){return this._obj?Yt!==this._obj?(this._dispose(),this.transform(Yt)):this._latestValue:(Yt&&this._subscribe(Yt),this._latestValue)}_subscribe(Yt){this._obj=Yt,this._strategy=this._selectStrategy(Yt),this._subscription=this._strategy.createSubscription(Yt,Ge=>this._updateLatestValue(Yt,Ge))}_selectStrategy(Yt){if((0,u.QGY)(Yt))return Vc;if((0,u.F4k)(Yt))return lc;throw Lr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Yt,Ge){Yt===this._obj&&(this._latestValue=Ge,this._ref.markForCheck())}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.sBO,16))},Pt.\u0275pipe=u.Yjl({name:"async",type:Pt,pure:!1,standalone:!0}),Pt})(),Bc=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Lr();return Yt.toLowerCase()}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275pipe=u.Yjl({name:"lowercase",type:Pt,pure:!0,standalone:!0}),Pt})();const Gc=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let js=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Lr();return Yt.replace(Gc,Ge=>Ge[0].toUpperCase()+Ge.slice(1).toLowerCase())}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275pipe=u.Yjl({name:"titlecase",type:Pt,pure:!0,standalone:!0}),Pt})();const Ws=new u.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let sl=(()=>{class Pt{constructor(Yt,Ge){this.locale=Yt,this.defaultTimezone=Ge}transform(Yt,Ge="mediumDate",En,St){if(null==Yt||""===Yt||Yt!=Yt)return null;try{return qn(Yt,Ge,St||this.locale,En??this.defaultTimezone??void 0)}catch(pe){throw Lr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16),u.Y36(Ws,24))},Pt.\u0275pipe=u.Yjl({name:"date",type:Pt,pure:!0,standalone:!0}),Pt})(),Jc=(()=>{class Pt{constructor(Yt){this.differs=Yt,this.keyValues=[],this.compareFn=$s}transform(Yt,Ge=$s){if(!Yt||!(Yt instanceof Map)&&"object"!=typeof Yt)return null;this.differ||(this.differ=this.differs.find(Yt).create());const En=this.differ.diff(Yt),St=Ge!==this.compareFn;return En&&(this.keyValues=[],En.forEachItem(pe=>{this.keyValues.push(function Ys(Pt,me){return{key:Pt,value:me}}(pe.key,pe.currentValue))})),(En||St)&&(this.keyValues.sort(Ge),this.compareFn=Ge),this.keyValues}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.aQg,16))},Pt.\u0275pipe=u.Yjl({name:"keyvalue",type:Pt,pure:!1,standalone:!0}),Pt})();function $s(Pt,me){const Yt=Pt.key,Ge=me.key;if(Yt===Ge)return 0;if(void 0===Yt)return 1;if(void 0===Ge)return-1;if(null===Yt)return 1;if(null===Ge)return-1;if("string"==typeof Yt&&"string"==typeof Ge)return Yt{class Pt{constructor(Yt){this._locale=Yt}transform(Yt,Ge,En){if(!xa(Yt))return null;En=En||this._locale;try{return function Re(Pt,me,Yt){return So(Pt,Rn(De(me,mt.Decimal),ae(me,Vt.MinusSign)),me,Vt.Group,Vt.Decimal,Yt)}(ir(Yt),En,Ge)}catch(St){throw Lr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16))},Pt.\u0275pipe=u.Yjl({name:"number",type:Pt,pure:!0,standalone:!0}),Pt})(),zl=(()=>{class Pt{constructor(Yt,Ge="USD"){this._locale=Yt,this._defaultCurrencyCode=Ge}transform(Yt,Ge=this._defaultCurrencyCode,En="symbol",St,pe){if(!xa(Yt))return null;pe=pe||this._locale,"boolean"==typeof En&&(En=En?"symbol":"code");let Te=Ge||this._defaultCurrencyCode;"code"!==En&&(Te="symbol"===En||"symbol-narrow"===En?function ee(Pt,me,Yt="en"){const Ge=function bn(Pt){return(0,u.cg1)(Pt)[u.wAp.Currencies]}(Yt)[Pt]||bt[Pt]||[],En=Ge[1];return"narrow"===me&&"string"==typeof En?En:Ge[0]||Pt}(Te,"symbol"===En?"wide":"narrow",pe):En);try{return function ma(Pt,me,Yt,Ge,En){const pe=Rn(De(me,mt.Currency),ae(me,Vt.MinusSign));return pe.minFrac=function X(Pt){let me;const Yt=bt[Pt];return Yt&&(me=Yt[2]),"number"==typeof me?me:2}(Ge),pe.maxFrac=pe.minFrac,So(Pt,pe,me,Vt.CurrencyGroup,Vt.CurrencyDecimal,En).replace("\xa4",Yt).replace("\xa4","").trim()}(ir(Yt),pe,Te,Ge,St)}catch(Xe){throw Lr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16),u.Y36(u.EJc,16))},Pt.\u0275pipe=u.Yjl({name:"currency",type:Pt,pure:!0,standalone:!0}),Pt})();function xa(Pt){return!(null==Pt||""===Pt||Pt!=Pt)}function ir(Pt){if("string"==typeof Pt&&!isNaN(Number(Pt)-parseFloat(Pt)))return Number(Pt);if("number"!=typeof Pt)throw new Error(`${Pt} is not a number`);return Pt}let Ku=(()=>{class Pt{}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275mod=u.oAB({type:Pt}),Pt.\u0275inj=u.cJS({}),Pt})();const Ia="browser";function Vl(Pt){return Pt===Ia}function Pr(Pt){return"server"===Pt}let wr=(()=>{class Pt{}return Pt.\u0275prov=(0,u.Yz7)({token:Pt,providedIn:"root",factory:()=>new xr((0,u.LFG)(U),window)}),Pt})();class xr{constructor(me,Yt){this.document=me,this.window=Yt,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const Yt=function jn(Pt,me){const Yt=Pt.getElementById(me)||Pt.getElementsByName(me)[0];if(Yt)return Yt;if("function"==typeof Pt.createTreeWalker&&Pt.body&&(Pt.body.createShadowRoot||Pt.body.attachShadow)){const Ge=Pt.createTreeWalker(Pt.body,NodeFilter.SHOW_ELEMENT);let En=Ge.currentNode;for(;En;){const St=En.shadowRoot;if(St){const pe=St.getElementById(me)||St.querySelector(`[name="${me}"]`);if(pe)return pe}En=Ge.nextNode()}}return null}(this.document,me);Yt&&(this.scrollToElement(Yt),Yt.focus())}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const Yt=this.window.history;Yt&&Yt.scrollRestoration&&(Yt.scrollRestoration=me)}}scrollToElement(me){const Yt=me.getBoundingClientRect(),Ge=Yt.left+this.window.pageXOffset,En=Yt.top+this.window.pageYOffset,St=this.offset();this.window.scrollTo(Ge-St[0],En-St[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=ns(this.window.history)||ns(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ns(Pt){return Object.getOwnPropertyDescriptor(Pt,"scrollRestoration")}class ds{}},80529:(tt,W,f)=>{"use strict";f.d(W,{JF:()=>X,LE:()=>Ct,PG:()=>w,TP:()=>qe,Zn:()=>le,eN:()=>ge});var u=f(36895),d=f(94650),v=f(21086),g=f(56498),t=f(21406),T=f(92198),U=f(24850);class w{}class P{}class O{constructor(ye){this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?()=>{this.headers=new Map,ye.split("\n").forEach(Se=>{const vn=Se.indexOf(":");if(vn>0){const qn=Se.slice(0,vn),mi=qn.toLowerCase(),Di=Se.slice(vn+1).trim();this.maybeSetNormalizedName(qn,mi),this.headers.has(mi)?this.headers.get(mi).push(Di):this.headers.set(mi,[Di])}})}:()=>{this.headers=new Map,Object.keys(ye).forEach(Se=>{let vn=ye[Se];const qn=Se.toLowerCase();"string"==typeof vn&&(vn=[vn]),vn.length>0&&(this.headers.set(qn,vn),this.maybeSetNormalizedName(Se,qn))})}:this.headers=new Map}has(ye){return this.init(),this.headers.has(ye.toLowerCase())}get(ye){this.init();const Se=this.headers.get(ye.toLowerCase());return Se&&Se.length>0?Se[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}append(ye,Se){return this.clone({name:ye,value:Se,op:"a"})}set(ye,Se){return this.clone({name:ye,value:Se,op:"s"})}delete(ye,Se){return this.clone({name:ye,value:Se,op:"d"})}maybeSetNormalizedName(ye,Se){this.normalizedNames.has(Se)||this.normalizedNames.set(Se,ye)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ye=>this.applyUpdate(ye)),this.lazyUpdate=null))}copyFrom(ye){ye.init(),Array.from(ye.headers.keys()).forEach(Se=>{this.headers.set(Se,ye.headers.get(Se)),this.normalizedNames.set(Se,ye.normalizedNames.get(Se))})}clone(ye){const Se=new O;return Se.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,Se.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),Se}applyUpdate(ye){const Se=ye.name.toLowerCase();switch(ye.op){case"a":case"s":let vn=ye.value;if("string"==typeof vn&&(vn=[vn]),0===vn.length)return;this.maybeSetNormalizedName(ye.name,Se);const qn=("a"===ye.op?this.headers.get(Se):void 0)||[];qn.push(...vn),this.headers.set(Se,qn);break;case"d":const mi=ye.value;if(mi){let Di=this.headers.get(Se);if(!Di)return;Di=Di.filter(bo=>-1===mi.indexOf(bo)),0===Di.length?(this.headers.delete(Se),this.normalizedNames.delete(Se)):this.headers.set(Se,Di)}else this.headers.delete(Se),this.normalizedNames.delete(Se)}}forEach(ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(Se=>ye(this.normalizedNames.get(Se),this.headers.get(Se)))}}class N{encodeKey(ye){return ct(ye)}encodeValue(ye){return ct(ye)}decodeKey(ye){return decodeURIComponent(ye)}decodeValue(ye){return decodeURIComponent(ye)}}const K=/%(\d[a-f0-9])/gi,et={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ct(ue){return encodeURIComponent(ue).replace(K,(ye,Se)=>et[Se]??ye)}function lt(ue){return`${ue}`}class Ct{constructor(ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new N,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function B(ue,ye){const Se=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(qn=>{const mi=qn.indexOf("="),[Di,bo]=-1==mi?[ye.decodeKey(qn),""]:[ye.decodeKey(qn.slice(0,mi)),ye.decodeValue(qn.slice(mi+1))],hi=Se.get(Di)||[];hi.push(bo),Se.set(Di,hi)}),Se}(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(Se=>{const vn=ye.fromObject[Se],qn=Array.isArray(vn)?vn.map(lt):[lt(vn)];this.map.set(Se,qn)})):this.map=null}has(ye){return this.init(),this.map.has(ye)}get(ye){this.init();const Se=this.map.get(ye);return Se?Se[0]:null}getAll(ye){return this.init(),this.map.get(ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ye,Se){return this.clone({param:ye,value:Se,op:"a"})}appendAll(ye){const Se=[];return Object.keys(ye).forEach(vn=>{const qn=ye[vn];Array.isArray(qn)?qn.forEach(mi=>{Se.push({param:vn,value:mi,op:"a"})}):Se.push({param:vn,value:qn,op:"a"})}),this.clone(Se)}set(ye,Se){return this.clone({param:ye,value:Se,op:"s"})}delete(ye,Se){return this.clone({param:ye,value:Se,op:"d"})}toString(){return this.init(),this.keys().map(ye=>{const Se=this.encoder.encodeKey(ye);return this.map.get(ye).map(vn=>Se+"="+this.encoder.encodeValue(vn)).join("&")}).filter(ye=>""!==ye).join("&")}clone(ye){const Se=new Ct({encoder:this.encoder});return Se.cloneFrom=this.cloneFrom||this,Se.updates=(this.updates||[]).concat(ye),Se}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ye=>this.map.set(ye,this.cloneFrom.map.get(ye))),this.updates.forEach(ye=>{switch(ye.op){case"a":case"s":const Se=("a"===ye.op?this.map.get(ye.param):void 0)||[];Se.push(lt(ye.value)),this.map.set(ye.param,Se);break;case"d":if(void 0===ye.value){this.map.delete(ye.param);break}{let vn=this.map.get(ye.param)||[];const qn=vn.indexOf(lt(ye.value));-1!==qn&&vn.splice(qn,1),vn.length>0?this.map.set(ye.param,vn):this.map.delete(ye.param)}}}),this.cloneFrom=this.updates=null)}}class Zt{constructor(){this.map=new Map}set(ye,Se){return this.map.set(ye,Se),this}get(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}delete(ye){return this.map.delete(ye),this}has(ye){return this.map.has(ye)}keys(){return this.map.keys()}}function Gt(ue){return typeof ArrayBuffer<"u"&&ue instanceof ArrayBuffer}function Tt(ue){return typeof Blob<"u"&&ue instanceof Blob}function Ut(ue){return typeof FormData<"u"&&ue instanceof FormData}class mt{constructor(ye,Se,vn,qn){let mi;if(this.url=Se,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function Rt(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qn?(this.body=void 0!==vn?vn:null,mi=qn):mi=vn,mi&&(this.reportProgress=!!mi.reportProgress,this.withCredentials=!!mi.withCredentials,mi.responseType&&(this.responseType=mi.responseType),mi.headers&&(this.headers=mi.headers),mi.context&&(this.context=mi.context),mi.params&&(this.params=mi.params)),this.headers||(this.headers=new O),this.context||(this.context=new Zt),this.params){const Di=this.params.toString();if(0===Di.length)this.urlWithParams=Se;else{const bo=Se.indexOf("?");this.urlWithParams=Se+(-1===bo?"?":boQe.set(xn,ye.setHeaders[xn]),hi)),ye.setParams&&(zn=Object.keys(ye.setParams).reduce((Qe,xn)=>Qe.set(xn,ye.setParams[xn]),zn)),new mt(Se,vn,mi,{params:zn,headers:hi,context:Bn,reportProgress:bo,responseType:qn,withCredentials:Di})}}var Lt=(()=>((Lt=Lt||{})[Lt.Sent=0]="Sent",Lt[Lt.UploadProgress=1]="UploadProgress",Lt[Lt.ResponseHeader=2]="ResponseHeader",Lt[Lt.DownloadProgress=3]="DownloadProgress",Lt[Lt.Response=4]="Response",Lt[Lt.User=5]="User",Lt))();class Bt{constructor(ye,Se=200,vn="OK"){this.headers=ye.headers||new O,this.status=void 0!==ye.status?ye.status:Se,this.statusText=ye.statusText||vn,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}}class kt extends Bt{constructor(ye={}){super(ye),this.type=Lt.ResponseHeader}clone(ye={}){return new kt({headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class le extends Bt{constructor(ye={}){super(ye),this.type=Lt.Response,this.body=void 0!==ye.body?ye.body:null}clone(ye={}){return new le({body:void 0!==ye.body?ye.body:this.body,headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class Vt extends Bt{constructor(ye){super(ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ye.url||"(unknown url)"}`:`Http failure response for ${ye.url||"(unknown url)"}: ${ye.status} ${ye.statusText}`,this.error=ye.error||null}}function be(ue,ye){return{body:ye,headers:ue.headers,context:ue.context,observe:ue.observe,params:ue.params,reportProgress:ue.reportProgress,responseType:ue.responseType,withCredentials:ue.withCredentials}}let ge=(()=>{class ue{constructor(Se){this.handler=Se}request(Se,vn,qn={}){let mi;if(Se instanceof mt)mi=Se;else{let hi,zn;hi=qn.headers instanceof O?qn.headers:new O(qn.headers),qn.params&&(zn=qn.params instanceof Ct?qn.params:new Ct({fromObject:qn.params})),mi=new mt(Se,vn,void 0!==qn.body?qn.body:null,{headers:hi,context:qn.context,params:zn,reportProgress:qn.reportProgress,responseType:qn.responseType||"json",withCredentials:qn.withCredentials})}const Di=(0,v.of)(mi).pipe((0,t.b)(hi=>this.handler.handle(hi)));if(Se instanceof mt||"events"===qn.observe)return Di;const bo=Di.pipe((0,T.h)(hi=>hi instanceof le));switch(qn.observe||"body"){case"body":switch(mi.responseType){case"arraybuffer":return bo.pipe((0,U.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return hi.body}));case"blob":return bo.pipe((0,U.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof Blob))throw new Error("Response is not a Blob.");return hi.body}));case"text":return bo.pipe((0,U.U)(hi=>{if(null!==hi.body&&"string"!=typeof hi.body)throw new Error("Response is not a string.");return hi.body}));default:return bo.pipe((0,U.U)(hi=>hi.body))}case"response":return bo;default:throw new Error(`Unreachable: unhandled observe type ${qn.observe}}`)}}delete(Se,vn={}){return this.request("DELETE",Se,vn)}get(Se,vn={}){return this.request("GET",Se,vn)}head(Se,vn={}){return this.request("HEAD",Se,vn)}jsonp(Se,vn){return this.request("JSONP",Se,{params:(new Ct).append(vn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Se,vn={}){return this.request("OPTIONS",Se,vn)}patch(Se,vn,qn={}){return this.request("PATCH",Se,be(qn,vn))}post(Se,vn,qn={}){return this.request("POST",Se,be(qn,vn))}put(Se,vn,qn={}){return this.request("PUT",Se,be(qn,vn))}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(w))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class Fe{constructor(ye,Se){this.next=ye,this.interceptor=Se}handle(ye){return this.interceptor.intercept(ye,this.next)}}const qe=new d.OlP("HTTP_INTERCEPTORS");let je=(()=>{class ue{intercept(Se,vn){return vn.handle(Se)}}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const hn=/^\)\]\}',?\n/;let bn=(()=>{class ue{constructor(Se){this.xhrFactory=Se}handle(Se){if("JSONP"===Se.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new g.y(vn=>{const qn=this.xhrFactory.build();if(qn.open(Se.method,Se.urlWithParams),Se.withCredentials&&(qn.withCredentials=!0),Se.headers.forEach((Ve,Ne)=>qn.setRequestHeader(Ve,Ne.join(","))),Se.headers.has("Accept")||qn.setRequestHeader("Accept","application/json, text/plain, */*"),!Se.headers.has("Content-Type")){const Ve=Se.detectContentTypeHeader();null!==Ve&&qn.setRequestHeader("Content-Type",Ve)}if(Se.responseType){const Ve=Se.responseType.toLowerCase();qn.responseType="json"!==Ve?Ve:"text"}const mi=Se.serializeBody();let Di=null;const bo=()=>{if(null!==Di)return Di;const Ve=qn.statusText||"OK",Ne=new O(qn.getAllResponseHeaders()),tn=function Ce(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(qn)||Se.url;return Di=new kt({headers:Ne,status:qn.status,statusText:Ve,url:tn}),Di},hi=()=>{let{headers:Ve,status:Ne,statusText:tn,url:ce}=bo(),Be=null;204!==Ne&&(Be=typeof qn.response>"u"?qn.responseText:qn.response),0===Ne&&(Ne=Be?200:0);let oe=Ne>=200&&Ne<300;if("json"===Se.responseType&&"string"==typeof Be){const rn=Be;Be=Be.replace(hn,"");try{Be=""!==Be?JSON.parse(Be):null}catch(gn){Be=rn,oe&&(oe=!1,Be={error:gn,text:Be})}}oe?(vn.next(new le({body:Be,headers:Ve,status:Ne,statusText:tn,url:ce||void 0})),vn.complete()):vn.error(new Vt({error:Be,headers:Ve,status:Ne,statusText:tn,url:ce||void 0}))},zn=Ve=>{const{url:Ne}=bo(),tn=new Vt({error:Ve,status:qn.status||0,statusText:qn.statusText||"Unknown Error",url:Ne||void 0});vn.error(tn)};let Bn=!1;const Qe=Ve=>{Bn||(vn.next(bo()),Bn=!0);let Ne={type:Lt.DownloadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(Ne.total=Ve.total),"text"===Se.responseType&&!!qn.responseText&&(Ne.partialText=qn.responseText),vn.next(Ne)},xn=Ve=>{let Ne={type:Lt.UploadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(Ne.total=Ve.total),vn.next(Ne)};return qn.addEventListener("load",hi),qn.addEventListener("error",zn),qn.addEventListener("timeout",zn),qn.addEventListener("abort",zn),Se.reportProgress&&(qn.addEventListener("progress",Qe),null!==mi&&qn.upload&&qn.upload.addEventListener("progress",xn)),qn.send(mi),vn.next({type:Lt.Sent}),()=>{qn.removeEventListener("error",zn),qn.removeEventListener("abort",zn),qn.removeEventListener("load",hi),qn.removeEventListener("timeout",zn),Se.reportProgress&&(qn.removeEventListener("progress",Qe),null!==mi&&qn.upload&&qn.upload.removeEventListener("progress",xn)),qn.readyState!==qn.DONE&&qn.abort()}})}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(u.JF))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const Oe=new d.OlP("XSRF_COOKIE_NAME"),dn=new d.OlP("XSRF_HEADER_NAME");class Pn{}let ii=(()=>{class ue{constructor(Se,vn,qn){this.doc=Se,this.platform=vn,this.cookieName=qn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Se=this.doc.cookie||"";return Se!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,u.Mx)(Se,this.cookieName),this.lastCookieString=Se),this.lastToken}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(u.K0),d.LFG(d.Lbi),d.LFG(Oe))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),_i=(()=>{class ue{constructor(Se,vn){this.tokenService=Se,this.headerName=vn}intercept(Se,vn){const qn=Se.url.toLowerCase();if("GET"===Se.method||"HEAD"===Se.method||qn.startsWith("http://")||qn.startsWith("https://"))return vn.handle(Se);const mi=this.tokenService.getToken();return null!==mi&&!Se.headers.has(this.headerName)&&(Se=Se.clone({headers:Se.headers.set(this.headerName,mi)})),vn.handle(Se)}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(Pn),d.LFG(dn))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),oi=(()=>{class ue{constructor(Se,vn){this.backend=Se,this.injector=vn,this.chain=null}handle(Se){if(null===this.chain){const vn=this.injector.get(qe,[]);this.chain=vn.reduceRight((qn,mi)=>new Fe(qn,mi),this.backend)}return this.chain.handle(Se)}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(P),d.LFG(d.zs3))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),ot=(()=>{class ue{static disable(){return{ngModule:ue,providers:[{provide:_i,useClass:je}]}}static withOptions(Se={}){return{ngModule:ue,providers:[Se.cookieName?{provide:Oe,useValue:Se.cookieName}:[],Se.headerName?{provide:dn,useValue:Se.headerName}:[]]}}}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({providers:[_i,{provide:qe,useExisting:_i,multi:!0},{provide:Pn,useClass:ii},{provide:Oe,useValue:"XSRF-TOKEN"},{provide:dn,useValue:"X-XSRF-TOKEN"}]}),ue})(),X=(()=>{class ue{}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({providers:[ge,{provide:w,useClass:oi},bn,{provide:P,useExisting:bn}],imports:[ot.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ue})()},94650:(tt,W,f)=>{"use strict";f.d(W,{$8M:()=>Au,$Z:()=>J1,AFp:()=>Rx,ALo:()=>px,AaK:()=>w,AsE:()=>A4,B6R:()=>Be,BQk:()=>G2,CHM:()=>or,CRH:()=>Ax,CZH:()=>q4,CqO:()=>e_,D6c:()=>fy,DdM:()=>ax,Dn7:()=>fx,EJc:()=>R7,EiD:()=>Ff,EpF:()=>i4,F$t:()=>Bg,F4k:()=>rc,FYo:()=>x1,FiY:()=>ic,G48:()=>X7,Gf:()=>uv,GfV:()=>_g,GkF:()=>J2,Gpc:()=>L,Gre:()=>_0,HOy:()=>m0,Hsn:()=>l0,Ikx:()=>Z,JOm:()=>Du,JVY:()=>_2,Jf7:()=>Xp,KtG:()=>Wr,L6k:()=>Pf,LAX:()=>F0,LFG:()=>nc,LSH:()=>Is,Lbi:()=>E7,Lck:()=>zC,MAs:()=>$1,MGl:()=>U1,MMx:()=>W5,NdJ:()=>n_,O4$:()=>ki,OlP:()=>io,Oqu:()=>T4,PXZ:()=>nb,Q6J:()=>wp,QGY:()=>o4,QP$:()=>kn,QbO:()=>N7,Qsj:()=>pg,R0b:()=>dm,RDi:()=>tl,Rgc:()=>N4,SBq:()=>oo,Sil:()=>Vx,Suo:()=>Tx,TTD:()=>iu,TgZ:()=>Hg,Tol:()=>h6,Udp:()=>jg,VKq:()=>rx,W1O:()=>wx,WFA:()=>Vg,WLB:()=>sx,XFs:()=>oi,Xpm:()=>ce,Xts:()=>Nf,Y36:()=>C1,YKP:()=>P6,YNc:()=>Rg,Yjl:()=>Le,Yz7:()=>se,Z0I:()=>nn,ZZ4:()=>Ov,_Bn:()=>Q5,_UZ:()=>c0,_Vd:()=>Im,_c5:()=>bb,_uU:()=>L5,aQg:()=>H4,c2e:()=>I7,cJS:()=>ae,cg1:()=>he,d8E:()=>k,dDg:()=>tb,dqk:()=>qn,dwT:()=>Mt,eBb:()=>Od,eFA:()=>ob,ekj:()=>h4,eoX:()=>eb,evT:()=>T2,f3M:()=>Lp,g9A:()=>Yx,gM2:()=>O6,h0i:()=>x0,hGG:()=>_y,hij:()=>$g,iGM:()=>lv,ifc:()=>vn,ip1:()=>qx,jDz:()=>K8,kL8:()=>fn,kYT:()=>cn,kcU:()=>vo,lG2:()=>It,lcZ:()=>mx,lnq:()=>W2,lqb:()=>V1,lri:()=>Kx,mCW:()=>Ld,n5z:()=>cp,n_E:()=>L6,oAB:()=>gn,oJD:()=>Jp,oxw:()=>r4,pB0:()=>w_,q3G:()=>Ns,qLn:()=>Cp,qOj:()=>Uh,qZA:()=>Yg,qzn:()=>kd,rWj:()=>Xx,s9C:()=>Gg,sBO:()=>pb,sIi:()=>fi,s_b:()=>E6,soG:()=>G6,tb:()=>zx,tp0:()=>Ep,uIk:()=>tu,uOi:()=>h2,vHH:()=>et,vpe:()=>X1,wAp:()=>Qn,xDo:()=>U4,xi3:()=>_x,xp6:()=>Bf,ynx:()=>zg,z2F:()=>t5,z3N:()=>h1,zSh:()=>$p,zs3:()=>mu});var u=f(8929),d=f(42654),v=f(56498),g=f(36787),t=f(12474);function T(_){for(let h in _)if(_[h]===T)return h;throw Error("Could not find renamed property on target object.")}function U(_,h){for(const y in h)h.hasOwnProperty(y)&&!_.hasOwnProperty(y)&&(_[y]=h[y])}function w(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(w).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const h=_.toString();if(null==h)return""+h;const y=h.indexOf("\n");return-1===y?h:h.substring(0,y)}function P(_,h){return null==_||""===_?null===h?"":h:null==h||""===h?_:_+" "+h}const O=T({__forward_ref__:T});function L(_){return _.__forward_ref__=L,_.toString=function(){return w(this())},_}function N(_){return B(_)?_():_}function B(_){return"function"==typeof _&&_.hasOwnProperty(O)&&_.__forward_ref__===L}class et extends Error{constructor(h,y){super(function ct(_,h){return`NG0${Math.abs(_)}${h?": "+h.trim():""}`}(h,y)),this.code=h}}function lt(_){return"string"==typeof _?_:null==_?"":String(_)}function Gt(_,h){throw new et(-201,!1)}function je(_,h){null==_&&function Qt(_,h,y,S){throw new Error(`ASSERTION ERROR: ${_}`+(null==S?"":` [Expected=> ${y} ${S} ${h} <=Actual]`))}(h,_,null,"!=")}function se(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function ae(_){return{providers:_.providers||[],imports:_.imports||[]}}function De(_){return hn(_,dn)||hn(_,ii)}function nn(_){return null!==De(_)}function hn(_,h){return _.hasOwnProperty(h)?_[h]:null}function Oe(_){return _&&(_.hasOwnProperty(Pn)||_.hasOwnProperty(_i))?_[Pn]:null}const dn=T({\u0275prov:T}),Pn=T({\u0275inj:T}),ii=T({ngInjectableDef:T}),_i=T({ngInjectorDef:T});var oi=(()=>((oi=oi||{})[oi.Default=0]="Default",oi[oi.Host=1]="Host",oi[oi.Self=2]="Self",oi[oi.SkipSelf=4]="SkipSelf",oi[oi.Optional=8]="Optional",oi))();let We;function ot(_){const h=We;return We=_,h}function X(_,h,y){const S=De(_);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:y&oi.Optional?null:void 0!==h?h:void Gt(w(_))}function Ht(_){return{toString:_}.toString()}var ue=(()=>((ue=ue||{})[ue.OnPush=0]="OnPush",ue[ue.Default=1]="Default",ue))(),vn=(()=>{return(_=vn||(vn={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",vn;var _})();const qn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bo={},hi=[],zn=T({\u0275cmp:T}),Bn=T({\u0275dir:T}),Qe=T({\u0275pipe:T}),xn=T({\u0275mod:T}),Ve=T({\u0275fac:T}),Ne=T({__NG_ELEMENT_ID__:T});let tn=0;function ce(_){return Ht(()=>{const y=!0===_.standalone,S={},F={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:S,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===ue.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||hi,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||vn.Emulated,id:"c"+tn++,styles:_.styles||hi,_:null,setInput:null,schemas:_.schemas||null,tView:null},z=_.dependencies,at=_.features;return F.inputs=xe(_.inputs,S),F.outputs=xe(_.outputs),at&&at.forEach(yt=>yt(F)),F.directiveDefs=z?()=>("function"==typeof z?z():z).map(oe).filter(rn):null,F.pipeDefs=z?()=>("function"==typeof z?z():z).map(He).filter(rn):null,F})}function Be(_,h,y){const S=_.\u0275cmp;S.directiveDefs=()=>("function"==typeof h?h():h).map(oe),S.pipeDefs=()=>("function"==typeof y?y():y).map(He)}function oe(_){return zt(_)||we(_)}function rn(_){return null!==_}function gn(_){return Ht(()=>({type:_.type,bootstrap:_.bootstrap||hi,declarations:_.declarations||hi,imports:_.imports||hi,exports:_.exports||hi,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function cn(_,h){return Ht(()=>{const y=Ei(_,!0);y.declarations=h.declarations||hi,y.imports=h.imports||hi,y.exports=h.exports||hi})}function xe(_,h){if(null==_)return bo;const y={};for(const S in _)if(_.hasOwnProperty(S)){let F=_[S],z=F;Array.isArray(F)&&(z=F[1],F=F[0]),y[F]=S,h&&(h[F]=z)}return y}const It=ce;function Le(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function zt(_){return _[zn]||null}function we(_){return _[Bn]||null}function He(_){return _[Qe]||null}function kn(_){const h=zt(_)||we(_)||He(_);return null!==h&&h.standalone}function Ei(_,h){const y=_[xn]||null;if(!y&&!0===h)throw new Error(`Type ${w(_)} does not have '\u0275mod' property.`);return y}const j=16,J=18;function Ar(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ur(_){return Array.isArray(_)&&!0===_[1]}function Oc(_){return 0!=(8&_.flags)}function Al(_){return 2==(2&_.flags)}function Js(_){return 1==(1&_.flags)}function Ps(_){return null!==_.template}function Qs(_){return 0!=(256&_[2])}function $s(_,h){return _.hasOwnProperty(Ve)?_[Ve]:null}class wl{constructor(h,y,S){this.previousValue=h,this.currentValue=y,this.firstChange=S}isFirstChange(){return this.firstChange}}function iu(){return zl}function zl(_){return _.type.prototype.ngOnChanges&&(_.setInput=ir),xa}function xa(){const _=vu(this),h=_?.current;if(h){const y=_.previous;if(y===bo)_.previous=h;else for(let S in h)y[S]=h[S];_.current=null,this.ngOnChanges(h)}}function ir(_,h,y,S){const F=vu(_)||function Ku(_,h){return _[bc]=h}(_,{previous:bo,current:null}),z=F.current||(F.current={}),at=F.previous,yt=this.declaredInputs[y],qt=at[yt];z[yt]=new wl(qt&&qt.currentValue,h,at===bo),_[S]=h}iu.ngInherit=!0;const bc="__ngSimpleChanges__";function vu(_){return _[bc]||null}function Ya(_){for(;Array.isArray(_);)_=_[0];return _}function ns(_,h){return Ya(h[_])}function jn(_,h){return Ya(h[_.index])}function ds(_,h){return _.data[h]}function wa(_,h){return _[h]}function is(_,h){const y=h[_];return Ar(y)?y:y[0]}function As(_){return 64==(64&_[2])}function Ks(_,h){return null==h?null:_[h]}function Os(_){_[J]=0}function za(_,h){_[5]+=h;let y=_,S=_[3];for(;null!==S&&(1===h&&1===y[5]||-1===h&&0===y[5]);)S[5]+=h,y=S,S=S[3]}const ao={lFrame:dt(null),bindingsEnabled:!0};function Cc(){return ao.bindingsEnabled}function Qi(){return ao.lFrame.lView}function la(){return ao.lFrame.tView}function or(_){return ao.lFrame.contextLView=_,_[8]}function Wr(_){return ao.lFrame.contextLView=null,_}function Qa(){let _=re();for(;null!==_&&64===_.type;)_=_.parent;return _}function re(){return ao.lFrame.currentTNode}function Nt(_,h){const y=ao.lFrame;y.currentTNode=_,y.isParent=h}function nt(){return ao.lFrame.isParent}function wi(){ao.lFrame.isParent=!1}function Fr(){const _=ao.lFrame;let h=_.bindingRootIndex;return-1===h&&(h=_.bindingRootIndex=_.tView.bindingStartIndex),h}function Nr(){return ao.lFrame.bindingIndex}function Va(){return ao.lFrame.bindingIndex++}function jc(_){const h=ao.lFrame,y=h.bindingIndex;return h.bindingIndex=h.bindingIndex+_,y}function O1(_,h){const y=ao.lFrame;y.bindingIndex=y.bindingRootIndex=_,au(h)}function au(_){ao.lFrame.currentDirectiveIndex=_}function Nc(_){const h=ao.lFrame.currentDirectiveIndex;return-1===h?null:_[h]}function Ic(){return ao.lFrame.currentQueryIndex}function ll(_){ao.lFrame.currentQueryIndex=_}function rp(_){const h=_[1];return 2===h.type?h.declTNode:1===h.type?_[6]:null}function Zl(_,h,y){if(y&oi.SkipSelf){let F=h,z=_;for(;!(F=F.parent,null!==F||y&oi.Host||(F=rp(z),null===F||(z=z[15],10&F.type))););if(null===F)return!1;h=F,_=z}const S=ao.lFrame=Gi();return S.currentTNode=h,S.lView=_,!0}function yc(_){const h=Gi(),y=_[1];ao.lFrame=h,h.currentTNode=y.firstChild,h.lView=_,h.tView=y,h.contextLView=_,h.bindingIndex=y.bindingStartIndex,h.inI18n=!1}function Gi(){const _=ao.lFrame,h=null===_?null:_.child;return null===h?dt(_):h}function dt(_){const h={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=h),h}function ru(){const _=ao.lFrame;return ao.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Bl=ru;function Ua(){const _=ru();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ir(){return ao.lFrame.selectedIndex}function _s(_){ao.lFrame.selectedIndex=_}function Da(){const _=ao.lFrame;return ds(_.tView,_.selectedIndex)}function ki(){ao.lFrame.currentNamespace="svg"}function vo(){!function mn(){ao.lFrame.currentNamespace=null}()}function Mi(_,h){for(let y=h.directiveStart,S=h.directiveEnd;y=S)break}else h[qt]<0&&(_[J]+=65536),(yt>11<_[J]>>16&&(3&_[2])===h){_[2]+=2048;try{z.call(yt)}finally{}}}else try{z.call(yt)}finally{}}class bu{constructor(h,y,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=S}}function Ge(_,h,y){let S=0;for(;Sh){at=z-1;break}}}for(;z<_.length;){const yt=_[z];if("number"==typeof yt)break;if(yt===y){if(null===S)return void(null!==F&&(_[z+1]=F));if(S===_[z+1])return void(_[z+2]=F)}z++,null!==S&&z++,null!==F&&z++}-1!==at&&(_.splice(at,0,h),z=at+1),_.splice(z++,0,y),null!==S&&_.splice(z++,0,S),null!==F&&_.splice(z++,0,F)}function Xe(_){return-1!==_}function Tn(_){return 32767&_}function ei(_,h){let y=function Xn(_){return _>>16}(_),S=h;for(;y>0;)S=S[15],y--;return S}let yi=!0;function Ui(_){const h=yi;return yi=_,h}let ua=0;const ea={};function $r(_,h){const y=Us(_,h);if(-1!==y)return y;const S=h[1];S.firstCreatePass&&(_.injectorIndex=h.length,fs(S.data,_),fs(h,null),fs(S.blueprint,null));const F=Kr(_,h),z=_.injectorIndex;if(Xe(F)){const at=Tn(F),yt=ei(F,h),qt=yt[1].data;for(let ve=0;ve<8;ve++)h[z+ve]=yt[at+ve]|qt[at+ve]}return h[z+8]=F,z}function fs(_,h){_.push(0,0,0,0,0,0,0,0,h)}function Us(_,h){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===h[_.injectorIndex+8]?-1:_.injectorIndex}function Kr(_,h){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let y=0,S=null,F=h;for(;null!==F;){if(S=lp(F),null===S)return-1;if(y++,F=F[15],-1!==S.injectorIndex)return S.injectorIndex|y<<16}return-1}function Vr(_,h,y){!function ga(_,h,y){let S;"string"==typeof y?S=y.charCodeAt(0)||0:y.hasOwnProperty(Ne)&&(S=y[Ne]),null==S&&(S=y[Ne]=ua++);const F=255&S;h.data[_+(F>>5)]|=1<=0?255&h:a1:h}(y);if("function"==typeof z){if(!Zl(h,_,S))return S&oi.Host?tc(F,0,S):ec(h,y,S,F);try{const at=z(S);if(null!=at||S&oi.Optional)return at;Gt()}finally{Bl()}}else if("number"==typeof z){let at=null,yt=Us(_,h),qt=-1,ve=S&oi.Host?h[j][6]:null;for((-1===yt||S&oi.SkipSelf)&&(qt=-1===yt?Kr(_,h):h[yt+8],-1!==qt&&ed(S,!1)?(at=h[1],yt=Tn(qt),h=ei(qt,h)):yt=-1);-1!==yt;){const $e=h[1];if(L1(z,yt,$e.data)){const Un=rr(yt,h,y,at,S,ve);if(Un!==ea)return Un}qt=h[yt+8],-1!==qt&&ed(S,h[1].data[yt+8]===ve)&&L1(z,yt,h)?(at=$e,yt=Tn(qt),h=ei(qt,h)):yt=-1}}return F}function rr(_,h,y,S,F,z){const at=h[1],yt=at.data[_+8],$e=na(yt,at,y,null==S?Al(yt)&&yi:S!=at&&0!=(3&yt.type),F&oi.Host&&z===yt);return null!==$e?Ba(h,at,$e,yt):ea}function na(_,h,y,S,F){const z=_.providerIndexes,at=h.data,yt=1048575&z,qt=_.directiveStart,$e=z>>20,ri=F?yt+$e:_.directiveEnd;for(let Ci=S?yt:yt+$e;Ci=qt&&ji.type===y)return Ci}if(F){const Ci=at[qt];if(Ci&&Ps(Ci)&&Ci.type===y)return qt}return null}function Ba(_,h,y,S){let F=_[y];const z=h.data;if(function Xa(_){return _ instanceof bu}(F)){const at=F;at.resolving&&function Dt(_,h){const y=h?`. Dependency path: ${h.join(" > ")} > ${_}`:"";throw new et(-200,`Circular dependency in DI detected for ${_}${y}`)}(function Ct(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():lt(_)}(z[y]));const yt=Ui(at.canSeeViewProviders);at.resolving=!0;const qt=at.injectImpl?ot(at.injectImpl):null;Zl(_,S,oi.Default);try{F=_[y]=at.factory(void 0,z,_,S),h.firstCreatePass&&y>=S.directiveStart&&function Si(_,h,y){const{ngOnChanges:S,ngOnInit:F,ngDoCheck:z}=h.type.prototype;if(S){const at=zl(h);(y.preOrderHooks||(y.preOrderHooks=[])).push(_,at),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,at)}F&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-_,F),z&&((y.preOrderHooks||(y.preOrderHooks=[])).push(_,z),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,z))}(y,z[y],h)}finally{null!==qt&&ot(qt),Ui(yt),at.resolving=!1,Bl()}}return F}function L1(_,h,y){return!!(y[h+(_>>5)]&1<<_)}function ed(_,h){return!(_&oi.Self||_&oi.Host&&h)}class Wc{constructor(h,y){this._tNode=h,this._lView=y}get(h,y,S){return ws(this._tNode,this._lView,h,S,y)}}function a1(){return new Wc(Qa(),Qi())}function cp(_){return Ht(()=>{const h=_.prototype.constructor,y=h[Ve]||yu(h),S=Object.prototype;let F=Object.getPrototypeOf(_.prototype).constructor;for(;F&&F!==S;){const z=F[Ve]||yu(F);if(z&&z!==y)return z;F=Object.getPrototypeOf(F)}return z=>new z})}function yu(_){return B(_)?()=>{const h=yu(N(_));return h&&h()}:$s(_)}function lp(_){const h=_[1],y=h.type;return 2===y?h.declTNode:1===y?_[6]:null}function Au(_){return function os(_,h){if("class"===h)return _.classes;if("style"===h)return _.styles;const y=_.attrs;if(y){const S=y.length;let F=0;for(;F{const S=function Br(_){return function(...y){if(_){const S=_(...y);for(const F in S)this[F]=S[F]}}}(h);function F(...z){if(this instanceof F)return S.apply(this,z),this;const at=new F(...z);return yt.annotation=at,yt;function yt(qt,ve,$e){const Un=qt.hasOwnProperty(Gl)?qt[Gl]:Object.defineProperty(qt,Gl,{value:[]})[Gl];for(;Un.length<=$e;)Un.push(null);return(Un[$e]=Un[$e]||[]).push(at),qt}}return y&&(F.prototype=Object.create(y.prototype)),F.prototype.ngMetadataName=_,F.annotationCls=F,F})}class io{constructor(h,y){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=se({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function mc(_,h){void 0===h&&(h=_);for(let y=0;y<_.length;y++){let S=_[y];Array.isArray(S)?(h===_&&(h=_.slice(0,y)),mc(S,h)):h!==_&&h.push(S)}return h}function Tc(_,h){_.forEach(y=>Array.isArray(y)?Tc(y,h):h(y))}function cu(_,h,y){h>=_.length?_.push(y):_.splice(h,0,y)}function id(_,h){return h>=_.length-1?_.pop():_.splice(h,1)[0]}function od(_,h){const y=[];for(let S=0;S<_;S++)y.push(h);return y}function ne(_,h,y){let S=de(_,h);return S>=0?_[1|S]=y:(S=~S,function ht(_,h,y,S){let F=_.length;if(F==h)_.push(y,S);else if(1===F)_.push(S,_[0]),_[0]=y;else{for(F--,_.push(_[F-1],_[F]);F>h;)_[F]=_[F-2],F--;_[h]=y,_[h+1]=S}}(_,S,h,y)),S}function fe(_,h){const y=de(_,h);if(y>=0)return _[1|y]}function de(_,h){return function Cn(_,h,y){let S=0,F=_.length>>y;for(;F!==S;){const z=S+(F-S>>1),at=_[z<h?F=z:S=z+1}return~(F<((Du=Du||{})[Du.Important=1]="Important",Du[Du.DashCase=2]="DashCase",Du))();const Fp=new Map;let ff=0;const Bs="__ngContext__";function Zs(_,h){Ar(h)?(_[Bs]=h[20],function Np(_){Fp.set(_[20],_)}(h)):_[Bs]=h}function c2(_,h){return undefined(_,h)}function Rp(_){const h=_[3];return Ur(h)?h[3]:h}function jh(_){return Wh(_[13])}function Af(_){return Wh(_[4])}function Wh(_){for(;null!==_&&!Ur(_);)_=_[4];return _}function du(_,h,y,S,F){if(null!=S){let z,at=!1;Ur(S)?z=S:Ar(S)&&(at=!0,S=S[0]);const yt=Ya(S);0===_&&null!==y?null==F?R1(h,y,yt):d1(h,y,yt,F||null,!0):1===_&&null!==y?d1(h,y,yt,F||null,!0):2===_?function gp(_,h,y){const S=fc(_,h);S&&function _c(_,h,y,S){_.removeChild(h,y,S)}(_,S,h,y)}(h,yt,at):3===_&&h.destroyNode(yt),null!=z&&function f1(_,h,y,S,F){const z=y[7];z!==Ya(y)&&du(h,_,S,z,F);for(let yt=10;yt0&&(_[y-1][4]=S[4]);const z=id(_,10+h);!function Uc(_,h){H1(_,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const at=z[19];null!==at&&at.detachView(z[1]),S[3]=null,S[4]=null,S[2]&=-65}return S}function Su(_,h){if(!(128&h[2])){const y=h[11];y.destroyNode&&H1(_,h,y,3,null,null),function Uf(_){let h=_[13];if(!h)return ku(_[1],_);for(;h;){let y=null;if(Ar(h))y=h[13];else{const S=h[10];S&&(y=S)}if(!y){for(;h&&!h[4]&&h!==_;)Ar(h)&&ku(h[1],h),h=h[3];null===h&&(h=_),Ar(h)&&ku(h[1],h),y=h&&h[4]}h=y}}(h)}}function ku(_,h){if(!(128&h[2])){h[2]&=-65,h[2]|=128,function oc(_,h){let y;if(null!=_&&null!=(y=_.destroyHooks))for(let S=0;S=0?S[F=ve]():S[F=-ve].unsubscribe(),z+=2}else{const at=S[F=y[z+1]];y[z].call(at)}if(null!==S){for(let z=F+1;z_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Pd}()?.createHTML(_)||_}function tl(_){wc=_}function ud(){if(void 0===m2&&(m2=null,qn.trustedTypes))try{m2=qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return m2}function jl(_){return ud()?.createHTML(_)||_}function Bp(_){return ud()?.createScriptURL(_)||_}class Y1{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class g3 extends Y1{getTypeName(){return"HTML"}}class Dl extends Y1{getTypeName(){return"Style"}}class vp extends Y1{getTypeName(){return"Script"}}class Mf extends Y1{getTypeName(){return"URL"}}class Df extends Y1{getTypeName(){return"ResourceURL"}}function h1(_){return _ instanceof Y1?_.changingThisBreaksApplicationSecurity:_}function kd(_,h){const y=function Gp(_){return _ instanceof Y1&&_.getTypeName()||null}(_);if(null!=y&&y!==h){if("ResourceURL"===y&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===h}function _2(_){return new g3(_)}function Pf(_){return new Dl(_)}function Od(_){return new vp(_)}function F0(_){return new Mf(_)}function w_(_){return new Df(_)}class Sm{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const y=(new window.DOMParser).parseFromString(hs(h),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(h):(y.removeChild(y.firstChild),y)}catch{return null}}}class Sf{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const S=this.inertDocument.createElement("body");y.appendChild(S)}}getInertBodyElement(h){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=hs(h),y;const S=this.inertDocument.createElement("body");return S.innerHTML=hs(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const y=h.attributes;for(let F=y.length-1;0"),!0}endElement(h){const y=h.nodeName.toLowerCase();Lf.hasOwnProperty(y)&&!Ed.hasOwnProperty(y)&&(this.buf.push(""))}chars(h){this.buf.push(og(h))}checkClobberedElement(h,y){if(y&&(h.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return y}}const ng=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ig=/([^\#-~ |!])/g;function og(_){return _.replace(/&/g,"&").replace(ng,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(ig,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let xp;function Ff(_,h){let y=null;try{xp=xp||function Lu(_){const h=new Sf(_);return function kf(){try{return!!(new window.DOMParser).parseFromString(hs(""),"text/html")}catch{return!1}}()?new Sm(h):h}(_);let S=h?String(h):"";y=xp.getInertBodyElement(S);let F=5,z=S;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,S=z,z=y.innerHTML,y=xp.getInertBodyElement(S)}while(S!==z);return hs((new Z_).sanitizeChildren(jo(y)||y))}finally{if(y){const S=jo(y)||y;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function jo(_){return"content"in _&&function x3(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Ns=(()=>((Ns=Ns||{})[Ns.NONE=0]="NONE",Ns[Ns.HTML=1]="HTML",Ns[Ns.STYLE=2]="STYLE",Ns[Ns.SCRIPT=3]="SCRIPT",Ns[Ns.URL=4]="URL",Ns[Ns.RESOURCE_URL=5]="RESOURCE_URL",Ns))();function Jp(_){const h=Om();return h?jl(h.sanitize(Ns.HTML,_)||""):kd(_,"HTML")?jl(h1(_)):Ff(function p2(){return void 0!==wc?wc:typeof document<"u"?document:void 0}(),lt(_))}function Is(_){const h=Om();return h?h.sanitize(Ns.URL,_)||"":kd(_,"URL")?h1(_):Ld(lt(_))}function h2(_){const h=Om();if(h)return Bp(h.sanitize(Ns.RESOURCE_URL,_)||"");if(kd(_,"ResourceURL"))return Bp(h1(_));throw new et(904,!1)}function Om(){const _=Qi();return _&&_[12]}const Nf=new io("ENVIRONMENT_INITIALIZER"),C3=new io("INJECTOR",-1),Lm=new io("INJECTOR_DEF_TYPES");class z1{get(h,y=Fs){if(y===Fs){const S=new Error(`NullInjectorError: No provider for ${w(h)}!`);throw S.name="NullInjectorError",S}return y}}function I0(..._){return{\u0275providers:Qp(0,_)}}function Qp(_,...h){const y=[],S=new Set;let F;return Tc(h,z=>{const at=z;Em(at,y,[],S)&&(F||(F=[]),F.push(at))}),void 0!==F&&jp(F,y),y}function jp(_,h){for(let y=0;y<_.length;y++){const{providers:F}=_[y];Tc(F,z=>{h.push(z)})}}function Em(_,h,y,S){if(!(_=N(_)))return!1;let F=null,z=Oe(_);const at=!z&&zt(_);if(z||at){if(at&&!at.standalone)return!1;F=_}else{const qt=_.ngModule;if(z=Oe(qt),!z)return!1;F=qt}const yt=S.has(F);if(at){if(yt)return!1;if(S.add(F),at.dependencies){const qt="function"==typeof at.dependencies?at.dependencies():at.dependencies;for(const ve of qt)Em(ve,h,y,S)}}else{if(!z)return!1;{if(null!=z.imports&&!yt){let ve;S.add(F);try{Tc(z.imports,$e=>{Em($e,h,y,S)&&(ve||(ve=[]),ve.push($e))})}finally{}void 0!==ve&&jp(ve,h)}if(!yt){const ve=$s(F)||(()=>new F);h.push({provide:F,useFactory:ve,deps:hi},{provide:Lm,useValue:F,multi:!0},{provide:Nf,useValue:()=>nc(F),multi:!0})}const qt=z.providers;null==qt||yt||Tc(qt,$e=>{h.push($e)})}}return F!==_&&void 0!==_.providers}const Fm=T({provide:String,useValue:T});function g2(_){return null!==_&&"object"==typeof _&&Fm in _}function Wp(_){return"function"==typeof _}const $p=new io("Set Injector scope."),Kp={},y3={};let qs;function Nm(){return void 0===qs&&(qs=new z1),qs}class V1{}class Rf extends V1{constructor(h,y,S,F){super(),this.parent=y,this.source=S,this.scopes=F,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ug(h,at=>this.processProvider(at)),this.records.set(C3,v1(void 0,this)),F.has("environment")&&this.records.set(V1,v1(void 0,this));const z=this.records.get($p);null!=z&&"string"==typeof z.value&&this.scopes.add(z.value),this.injectorDefTypes=new Set(this.get(Lm.multi,hi,oi.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const h of this._ngOnDestroyHooks)h.ngOnDestroy();for(const h of this._onDestroyHooks)h()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(h){this._onDestroyHooks.push(h)}runInContext(h){this.assertNotDestroyed();const y=Ac(this),S=ot(void 0);try{return h()}finally{Ac(y),ot(S)}}get(h,y=Fs,S=oi.Default){this.assertNotDestroyed();const F=Ac(this),z=ot(void 0);try{if(!(S&oi.SkipSelf)){let yt=this.records.get(h);if(void 0===yt){const qt=function R0(_){return"function"==typeof _||"object"==typeof _&&_ instanceof io}(h)&&De(h);yt=qt&&this.injectableDefInScope(qt)?v1(lg(h),Kp):null,this.records.set(h,yt)}if(null!=yt)return this.hydrate(h,yt)}return(S&oi.Self?Nm():this.parent).get(h,y=S&oi.Optional&&y===Fs?null:y)}catch(at){if("NullInjectorError"===at.name){if((at[Op]=at[Op]||[]).unshift(w(h)),F)throw at;return function up(_,h,y,S){const F=_[Op];throw h[g_]&&F.unshift(h[g_]),_.message=function n2(_,h,y,S=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let F=w(h);if(Array.isArray(h))F=h.map(w).join(" -> ");else if("object"==typeof h){let z=[];for(let at in h)if(h.hasOwnProperty(at)){let yt=h[at];z.push(at+":"+("string"==typeof yt?JSON.stringify(yt):w(yt)))}F=`{${z.join(", ")}}`}return`${y}${S?"("+S+")":""}[${F}]: ${_.replace(df,"\n ")}`}("\n"+_.message,F,y,S),_.ngTokenPath=F,_[Op]=null,_}(at,h,"R3InjectorError",this.source)}throw at}finally{ot(z),Ac(F)}}resolveInjectorInitializers(){const h=Ac(this),y=ot(void 0);try{const S=this.get(Nf.multi,hi,oi.Self);for(const F of S)F()}finally{Ac(h),ot(y)}}toString(){const h=[],y=this.records;for(const S of y.keys())h.push(w(S));return`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new et(205,!1)}processProvider(h){let y=Wp(h=N(h))?h:N(h&&h.provide);const S=function M_(_){return g2(_)?v1(void 0,_.useValue):v1(v2(_),Kp)}(h);if(Wp(h)||!0!==h.multi)this.records.get(y);else{let F=this.records.get(y);F||(F=v1(void 0,Kp,!0),F.factory=()=>ad(F.multi),this.records.set(y,F)),y=h,F.multi.push(h)}this.records.set(y,S)}hydrate(h,y){return y.value===Kp&&(y.value=y3,y.value=y.factory()),"object"==typeof y.value&&y.value&&function x2(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(h){if(!h.providedIn)return!1;const y=N(h.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function lg(_){const h=De(_),y=null!==h?h.factory:$s(_);if(null!==y)return y;if(_ instanceof io)throw new et(204,!1);if(_ instanceof Function)return function q0(_){const h=_.length;if(h>0)throw od(h,"?"),new et(204,!1);const y=function Ce(_){const h=_&&(_[dn]||_[ii]);if(h){const y=function bn(_){if(_.hasOwnProperty("name"))return _.name;const h=(""+_).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),h}return null}(_);return null!==y?()=>y.factory(_):()=>new _}(_);throw new et(204,!1)}function v2(_,h,y){let S;if(Wp(_)){const F=N(_);return $s(F)||lg(F)}if(g2(_))S=()=>N(_.useValue);else if(function qf(_){return!(!_||!_.useFactory)}(_))S=()=>_.useFactory(...ad(_.deps||[]));else if(function If(_){return!(!_||!_.useExisting)}(_))S=()=>nc(N(_.useExisting));else{const F=N(_&&(_.useClass||_.provide));if(!function T3(_){return!!_.deps}(_))return $s(F)||lg(F);S=()=>new F(...ad(_.deps))}return S}function v1(_,h,y=!1){return{factory:_,value:h,multi:y?[]:void 0}}function b2(_){return!!_.\u0275providers}function ug(_,h){for(const y of _)Array.isArray(y)?ug(y,h):b2(y)?ug(y.\u0275providers,h):h(y)}class C2{}class A3{resolveComponentFactory(h){throw function ko(_){const h=Error(`No component factory found for ${w(_)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=_,h}(h)}}let Im=(()=>{class _{}return _.NULL=new A3,_})();function qm(){return tr(Qa(),Qi())}function tr(_,h){return new oo(jn(_,h))}let oo=(()=>{class _{constructor(y){this.nativeElement=y}}return _.__NG_ELEMENT_ID__=qm,_})();function U3(_){return _ instanceof oo?_.nativeElement:_}class x1{}let pg=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Y0(){const _=Qi(),y=is(Qa().index,_);return(Ar(y)?y:_)[11]}(),_})(),mg=(()=>{class _{}return _.\u0275prov=se({token:_,providedIn:"root",factory:()=>null}),_})();class _g{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const y2=new _g("14.3.0"),Yf={};function bp(_){return _.ngOriginalError}class Cp{constructor(){this._console=console}handleError(h){const y=this._findOriginalError(h);this._console.error("ERROR",h),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(h){let y=h&&bp(h);for(;y&&bp(y);)y=bp(y);return y||null}}function Xp(_){return _.ownerDocument.defaultView}function T2(_){return _.ownerDocument}function B1(_){return _ instanceof Function?_():_}function Fd(_,h,y){let S=_.length;for(;;){const F=_.indexOf(h,y);if(-1===F)return F;if(0===F||_.charCodeAt(F-1)<=32){const z=h.length;if(F+z===S||_.charCodeAt(F+z)<=32)return F}y=F+1}}const Mr="ng-template";function k3(_,h,y){let S=0;for(;S<_.length;){let F=_[S++];if(y&&"class"===F){if(F=_[S],-1!==Fd(F.toLowerCase(),h,0))return!0}else if(1===F){for(;S<_.length&&"string"==typeof(F=_[S++]);)if(F.toLowerCase()===h)return!0;return!1}}return!1}function U2(_){return 4===_.type&&_.value!==Mr}function P_(_,h,y){return h===(4!==_.type||y?_.value:Mr)}function tm(_,h,y){let S=4;const F=_.attrs||[],z=function S_(_){for(let h=0;h<_.length;h++)if(En(_[h]))return h;return _.length}(F);let at=!1;for(let yt=0;ytz?"":F[Un+1].toLowerCase();const Ci=8&S?ri:null;if(Ci&&-1!==Fd(Ci,ve,0)||2&S&&ve!==ri){if(dd(S))return!1;at=!0}}}}else{if(!at&&!dd(S)&&!dd(qt))return!1;if(at&&dd(qt))continue;at=!1,S=qt|1&S}}return dd(S)||at}function dd(_){return 0==(1&_)}function gg(_,h,y,S){if(null===h)return-1;let F=0;if(S||!y){let z=!1;for(;F-1)for(y++;y<_.length;){const S=_[y];if("number"==typeof S)return-1;if(S===h)return y;y++}return-1}(h,_)}function Hm(_,h,y=!1){for(let S=0;S0?'="'+yt+'"':"")+"]"}else 8&S?F+="."+at:4&S&&(F+=" "+at);else""!==F&&!dd(at)&&(h+=k_(z,F),F=""),S=at,z=z||!dd(S);y++}return""!==F&&(h+=k_(z,F)),h}const Ea={};function Bf(_){L3(la(),Qi(),Ir()+_,!1)}function L3(_,h,y,S){if(!S)if(3==(3&h[2])){const z=_.preOrderCheckHooks;null!==z&&Lo(h,z,y)}else{const z=_.preOrderHooks;null!==z&&$o(h,z,0,y)}_s(y)}function Wl(_,h=null,y=null,S){const F=Pl(_,h,y,S);return F.resolveInjectorInitializers(),F}function Pl(_,h=null,y=null,S,F=new Set){const z=[y||hi,I0(_)];return S=S||("object"==typeof _?void 0:w(_)),new Rf(z,h||Nm(),S||null,F)}let mu=(()=>{class _{static create(y,S){if(Array.isArray(y))return Wl({name:""},S,y,"");{const F=y.name??"";return Wl({name:F},y.parent,y.providers,F)}}}return _.THROW_IF_NOT_FOUND=Fs,_.NULL=new z1,_.\u0275prov=se({token:_,providedIn:"any",factory:()=>nc(C3)}),_.__NG_ELEMENT_ID__=-1,_})();function C1(_,h=oi.Default){const y=Qi();return null===y?nc(_,h):ws(Qa(),y,N(_),h)}function J1(){throw new Error("invalid")}function qu(_,h){return _<<17|h<<2}function md(_){return _>>17&32767}function zm(_){return 2|_}function Kl(_){return(131068&_)>>2}function S2(_,h){return-131069&_|h<<2}function Ra(_){return 1|_}function oh(_,h){const y=_.contentQueries;if(null!==y)for(let S=0;S22&&L3(_,h,22,!1),y(S,F)}finally{_s(z)}}function sh(_,h,y){if(Oc(h)){const F=h.directiveEnd;for(let z=h.directiveStart;z0;){const y=_[--h];if("number"==typeof y&&y<0)return y}return 0})(yt)!=qt&&yt.push(qt),yt.push(S,F,at)}}function ph(_,h){null!==_.hostBindings&&_.hostBindings(1,h)}function mh(_,h){h.flags|=2,(_.components||(_.components=[])).push(h.index)}function fh(_,h,y){if(y){if(h.exportAs)for(let S=0;S0&&Wm(y)}}function Wm(_){for(let S=jh(_);null!==S;S=Af(S))for(let F=10;F0&&Wm(z)}const y=_[1].components;if(null!==y)for(let S=0;S0&&Wm(F)}}function e0(_,h){const y=is(h,_),S=y[1];(function q2(_,h){for(let y=h.length;y<_.blueprint.length;y++)h.push(_.blueprint[y])})(S,y),ah(S,y,y[8])}function $m(_,h){return _[13]?_[14][4]=h:_[13]=h,_[14]=h,h}function q_(_){for(;_;){_[2]|=32;const h=Rp(_);if(Qs(_)&&!h)return _;_=h}return null}function R_(_,h,y,S=!0){const F=h[10];F.begin&&F.begin();try{Up(_,h,_.template,y)}catch(at){throw S&&Y_(h,at),at}finally{F.end&&F.end()}}function Km(_,h,y){ll(0),h(_,y)}function H_(_){return _[7]||(_[7]=[])}function xh(_){return _.cleanup||(_.cleanup=[])}function Eg(_,h,y){return(null===_||Ps(_))&&(y=function wr(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(y[h.index])),y[11]}function Y_(_,h){const y=_[9],S=y?y.get(Cp,null):null;S&&S.handleError(h)}function z_(_,h,y,S,F){for(let z=0;z-1&&(Dm(h,S),id(y,S))}this._attachedToViewContainer=!1}Su(this._lView[1],this._lView)}onDestroy(h){E2(this._lView[1],this._lView,null,h)}markForCheck(){q_(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){R_(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new et(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function h3(_,h){H1(_,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new et(902,!1);this._appRef=h}}class n0 extends B_{constructor(h){super(h),this._view=h}detectChanges(){const h=this._view;R_(h[1],h,h[8],!1)}checkNoChanges(){}get context(){return null}}class Xm extends Im{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const y=zt(h);return new z2(y,this.ngModule)}}function H2(_){const h=[];for(let y in _)_.hasOwnProperty(y)&&h.push({propName:_[y],templateName:y});return h}class bh{constructor(h,y){this.injector=h,this.parentInjector=y}get(h,y,S){const F=this.injector.get(h,Yf,S);return F!==Yf||y===Yf?F:this.parentInjector.get(h,y,S)}}class z2 extends C2{constructor(h,y){super(),this.componentDef=h,this.ngModule=y,this.componentType=h.type,this.selector=function B0(_){return _.map(O3).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return H2(this.componentDef.inputs)}get outputs(){return H2(this.componentDef.outputs)}create(h,y,S,F){let z=(F=F||this.ngModule)instanceof V1?F:F?.injector;z&&null!==this.componentDef.getStandaloneInjector&&(z=this.componentDef.getStandaloneInjector(z)||z);const at=z?new bh(h,z):h,yt=at.get(x1,null);if(null===yt)throw new et(407,!1);const qt=at.get(mg,null),ve=yt.createRenderer(null,this.componentDef),$e=this.componentDef.selectors[0][0]||"div",Un=S?function kg(_,h,y){return _.selectRootElement(h,y===vn.ShadowDom)}(ve,S,this.componentDef.encapsulation):Dd(ve,$e,function Y2(_){const h=_.toLowerCase();return"svg"===h?"svg":"math"===h?"math":null}($e)),ri=this.componentDef.onPush?288:272,Ci=Xr(0,null,null,1,0,null,null,null,null,null),ji=zd(null,Ci,null,ri,null,null,yt,ve,qt,at,null);let Ao,Io;yc(ji);try{const oa=function Fg(_,h,y,S,F,z){const at=y[1];y[22]=_;const qt=Gm(at,22,2,"#host",null),ve=qt.mergedAttrs=h.hostAttrs;null!==ve&&(R2(qt,ve,!0),null!==_&&(Ge(F,_,ve),null!==qt.classes&&A_(F,_,qt.classes),null!==qt.styles&&zp(F,_,qt.styles)));const $e=S.createRenderer(_,h),Un=zd(y,W3(h),null,h.onPush?32:16,y[22],qt,S,$e,z||null,null,null);return at.firstCreatePass&&(Vr($r(qt,y),at,h.type),mh(at,qt),sm(qt,y.length,1)),$m(y,Un),y[22]=Un}(Un,this.componentDef,ji,yt,ve);if(Un)if(S)Ge(ve,Un,["ng-version",y2.full]);else{const{attrs:ya,classes:ln}=function Vf(_){const h=[],y=[];let S=1,F=2;for(;S<_.length;){let z=_[S];if("string"==typeof z)2===F?""!==z&&h.push(z,_[++S]):8===F&&y.push(z);else{if(!dd(F))break;F=z}S++}return{attrs:h,classes:y}}(this.componentDef.selectors[0]);ya&&Ge(ve,Un,ya),ln&&ln.length>0&&A_(ve,Un,ln.join(" "))}if(Io=ds(Ci,22),void 0!==y){const ya=Io.projection=[];for(let ln=0;ln=0;S--){const F=_[S];F.hostVars=h+=F.hostVars,F.hostAttrs=pe(F.hostAttrs,y=pe(y,F.hostAttrs))}}(S)}function V2(_){return _===bo?{}:_===hi?[]:_}function $0(_,h){const y=_.viewQuery;_.viewQuery=y?(S,F)=>{h(S,F),y(S,F)}:h}function D(_,h){const y=_.contentQueries;_.contentQueries=y?(S,F,z)=>{h(S,F,z),y(S,F,z)}:h}function I(_,h){const y=_.hostBindings;_.hostBindings=y?(S,F)=>{h(S,F),y(S,F)}:h}let pn=null;function Yn(){if(!pn){const _=qn.Symbol;if(_&&_.iterator)pn=_.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yyt(Ya(ts[S.index])):S.index;let Na=null;if(!yt&&qt&&(Na=function u6(_,h,y,S){const F=_.cleanup;if(null!=F)for(let z=0;zqt?yt[qt]:null}"string"==typeof at&&(z+=2)}return null}(_,h,F,S.index)),null!==Na)(Na.__ngLastListenerFn__||Na).__ngNextListenerFn__=z,Na.__ngLastListenerFn__=z,Ci=!1;else{z=d6(S,h,Un,z,!1);const ts=y.listen(oa,F,z);ri.push(z,ts),$e&&$e.push(F,ln,ya,ya+1)}}else z=d6(S,h,Un,z,!1);const ji=S.outputs;let Ao;if(Ci&&null!==ji&&(Ao=ji[F])){const Io=Ao.length;if(Io)for(let oa=0;oa0;)h=h[15],_--;return h}(_,ao.lFrame.contextLView))[8]}(_)}function M5(_,h){let y=null;const S=function vg(_){const h=_.attrs;if(null!=h){const y=h.indexOf(5);if(0==(1&y))return h[y+1]}return null}(_);for(let F=0;F=0}const xl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function u4(_){return _.substring(xl.key,xl.keyEnd)}function d4(_,h){const y=xl.textEnd;return y===h?-1:(h=xl.keyEnd=function u0(_,h,y){for(;h32;)h++;return h}(_,xl.key=h,y),j2(_,h,y))}function j2(_,h,y){for(;h=0;y=d4(h,y))ne(_,u4(h),!0)}function w1(_,h,y,S){const F=Qi(),z=la(),at=jc(2);z.firstUpdatePass&&Mc(z,_,at,S),h!==Ea&&fa(F,at,h)&&b4(z,z.data[Ir()],F,F[11],_,F[at+1]=function C4(_,h){return null==_||("string"==typeof h?_+=h:"object"==typeof _&&(_=w(h1(_)))),_}(h,y),S,at)}function Hu(_,h,y,S){const F=la(),z=jc(2);F.firstUpdatePass&&Mc(F,null,z,S);const at=Qi();if(y!==Ea&&fa(at,z,y)){const yt=F.data[Ir()];if(y4(yt,S)&&!g4(F,z)){let qt=S?yt.classesWithoutHost:yt.stylesWithoutHost;null!==qt&&(y=P(qt,y||"")),e4(F,yt,at,y,S)}else!function O5(_,h,y,S,F,z,at,yt){F===Ea&&(F=hi);let qt=0,ve=0,$e=0=_.expandoStartIndex}function Mc(_,h,y,S){const F=_.data;if(null===F[y+1]){const z=F[Ir()],at=g4(_,y);y4(z,S)&&null===h&&!at&&(h=!1),h=function P5(_,h,y,S){const F=Nc(_);let z=S?h.residualClasses:h.residualStyles;if(null===F)0===(S?h.classBindings:h.styleBindings)&&(y=Wg(y=v4(null,_,h,y,S),h.attrs,S),z=null);else{const at=h.directiveStylingLast;if(-1===at||_[at]!==F)if(y=v4(F,_,h,y,S),null===z){let qt=function g6(_,h,y){const S=y?h.classBindings:h.styleBindings;if(0!==Kl(S))return _[md(S)]}(_,h,S);void 0!==qt&&Array.isArray(qt)&&(qt=v4(null,_,h,qt[1],S),qt=Wg(qt,h.attrs,S),function v6(_,h,y,S){_[md(y?h.classBindings:h.styleBindings)]=S}(_,h,S,qt))}else z=function S5(_,h,y){let S;const F=h.directiveEnd;for(let z=1+h.directiveStylingLast;z0)&&(ve=!0)}else $e=y;if(F)if(0!==qt){const ri=md(_[yt+1]);_[S+1]=qu(ri,yt),0!==ri&&(_[ri+1]=S2(_[ri+1],S)),_[yt+1]=function Zg(_,h){return 131071&_|h<<17}(_[yt+1],S)}else _[S+1]=qu(yt,0),0!==yt&&(_[yt+1]=S2(_[yt+1],S)),yt=S;else _[S+1]=qu(qt,0),0===yt?yt=S:_[qt+1]=S2(_[qt+1],S),qt=S;ve&&(_[S+1]=zm(_[S+1])),Gd(_,$e,S,!0),Gd(_,$e,S,!1),function c4(_,h,y,S,F){const z=F?_.residualClasses:_.residualStyles;null!=z&&"string"==typeof h&&de(z,h)>=0&&(y[S+1]=Ra(y[S+1]))}(h,$e,_,S,z),at=qu(yt,qt),z?h.classBindings=at:h.styleBindings=at}(F,z,h,y,at,S)}}function v4(_,h,y,S,F){let z=null;const at=y.directiveEnd;let yt=y.directiveStylingLast;for(-1===yt?yt=y.directiveStart:yt++;yt0;){const qt=_[F],ve=Array.isArray(qt),$e=ve?qt[1]:qt,Un=null===$e;let ri=y[F+1];ri===Ea&&(ri=Un?hi:void 0);let Ci=Un?fe(ri,S):$e===S?ri:void 0;if(ve&&!Mh(Ci)&&(Ci=fe(qt,S)),Mh(Ci)&&(yt=Ci,at))return yt;const ji=_[F+1];F=at?md(ji):Kl(ji)}if(null!==h){let qt=z?h.residualClasses:h.residualStyles;null!=qt&&(yt=fe(qt,S))}return yt}function Mh(_){return void 0!==_}function y4(_,h){return 0!=(_.flags&(h?16:32))}function L5(_,h=""){const y=Qi(),S=la(),F=_+22,z=S.firstCreatePass?Gm(S,F,1,h,null):S.data[F],at=y[F]=function $h(_,h){return _.createText(h)}(y[11],h);Jr(S,y,at,z),Nt(z,!1)}function T4(_){return $g("",_,""),T4}function $g(_,h,y){const S=Qi(),F=hl(S,_,h,y);return F!==Ea&&Vd(S,Ir(),F),$g}function A4(_,h,y,S,F){const z=Qi(),at=function xs(_,h,y,S,F,z){const yt=ca(_,Nr(),y,F);return jc(2),yt?h+lt(y)+S+lt(F)+z:Ea}(z,_,h,y,S,F);return at!==Ea&&Vd(z,Ir(),at),A4}function W2(_,h,y,S,F,z,at){const yt=Qi(),qt=function gl(_,h,y,S,F,z,at,yt){const ve=Wa(_,Nr(),y,F,at);return jc(3),ve?h+lt(y)+S+lt(F)+z+lt(at)+yt:Ea}(yt,_,h,y,S,F,z,at);return qt!==Ea&&Vd(yt,Ir(),qt),W2}function m0(_,h,y,S,F,z,at,yt,qt){const ve=Qi(),$e=function vl(_,h,y,S,F,z,at,yt,qt,ve){const Un=Fa(_,Nr(),y,F,at,qt);return jc(4),Un?h+lt(y)+S+lt(F)+z+lt(at)+yt+lt(qt)+ve:Ea}(ve,_,h,y,S,F,z,at,yt,qt);return $e!==Ea&&Vd(ve,Ir(),$e),m0}function U4(_,h,y,S,F,z,at,yt,qt,ve,$e){const Un=Qi(),ri=function cm(_,h,y,S,F,z,at,yt,qt,ve,$e,Un){const ri=Nr();let Ci=Fa(_,ri,y,F,at,qt);return Ci=fa(_,ri+4,$e)||Ci,jc(5),Ci?h+lt(y)+S+lt(F)+z+lt(at)+yt+lt(qt)+ve+lt($e)+Un:Ea}(Un,_,h,y,S,F,z,at,yt,qt,ve,$e);return ri!==Ea&&Vd(Un,Ir(),ri),U4}function _0(_,h,y){Hu(ne,Ru,hl(Qi(),_,h,y),!0)}function Z(_,h,y){const S=Qi();return fa(S,Va(),h)&&Xl(la(),Da(),S,_,h,S[11],y,!0),Z}function k(_,h,y){const S=Qi();if(fa(S,Va(),h)){const z=la(),at=Da();Xl(z,at,S,_,h,Eg(Nc(z.data),at,S),y,!0)}return k}const H=void 0;var rt=["en",[["a","p"],["AM","PM"],H],[["AM","PM"],H,H],[["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"]],H,[["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"]],H,[["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}",H,"{1} 'at' {0}",H],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function G(_){const y=Math.floor(Math.abs(_)),S=_.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===S?1:5}];let ft={};function Mt(_,h,y){"string"!=typeof h&&(y=h,h=_[Qn.LocaleId]),h=h.toLowerCase().replace(/_/g,"-"),ft[h]=_,y&&(ft[h][Qn.ExtraData]=y)}function he(_){const h=function Fi(_){return _.toLowerCase().replace(/_/g,"-")}(_);let y=Mn(h);if(y)return y;const S=h.split("-")[0];if(y=Mn(S),y)return y;if("en"===S)return rt;throw new et(701,!1)}function fn(_){return he(_)[Qn.PluralCase]}function Mn(_){return _ in ft||(ft[_]=qn.ng&&qn.ng.common&&qn.ng.common.locales&&qn.ng.common.locales[_]),ft[_]}var Qn=(()=>((Qn=Qn||{})[Qn.LocaleId=0]="LocaleId",Qn[Qn.DayPeriodsFormat=1]="DayPeriodsFormat",Qn[Qn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qn[Qn.DaysFormat=3]="DaysFormat",Qn[Qn.DaysStandalone=4]="DaysStandalone",Qn[Qn.MonthsFormat=5]="MonthsFormat",Qn[Qn.MonthsStandalone=6]="MonthsStandalone",Qn[Qn.Eras=7]="Eras",Qn[Qn.FirstDayOfWeek=8]="FirstDayOfWeek",Qn[Qn.WeekendRange=9]="WeekendRange",Qn[Qn.DateFormat=10]="DateFormat",Qn[Qn.TimeFormat=11]="TimeFormat",Qn[Qn.DateTimeFormat=12]="DateTimeFormat",Qn[Qn.NumberSymbols=13]="NumberSymbols",Qn[Qn.NumberFormats=14]="NumberFormats",Qn[Qn.CurrencyCode=15]="CurrencyCode",Qn[Qn.CurrencySymbol=16]="CurrencySymbol",Qn[Qn.CurrencyName=17]="CurrencyName",Qn[Qn.Currencies=18]="Currencies",Qn[Qn.Directionality=19]="Directionality",Qn[Qn.PluralCase=20]="PluralCase",Qn[Qn.ExtraData=21]="ExtraData",Qn))();const va="en-US";let Yu=va;function D6(_,h,y,S,F){if(_=N(_),Array.isArray(_))for(let z=0;z<_.length;z++)D6(_[z],h,y,S,F);else{const z=la(),at=Qi();let yt=Wp(_)?_:N(_.provide),qt=v2(_);const ve=Qa(),$e=1048575&ve.providerIndexes,Un=ve.directiveStart,ri=ve.providerIndexes>>20;if(Wp(_)||!_.multi){const Ci=new bu(qt,F,C1),ji=gi(yt,h,F?$e:$e+ri,Un);-1===ji?(Vr($r(ve,at),z,yt),G5(z,_,h.length),h.push(yt),ve.directiveStart++,ve.directiveEnd++,F&&(ve.providerIndexes+=1048576),y.push(Ci),at.push(Ci)):(y[ji]=Ci,at[ji]=Ci)}else{const Ci=gi(yt,h,$e+ri,Un),ji=gi(yt,h,$e,$e+ri),Ao=Ci>=0&&y[Ci],Io=ji>=0&&y[ji];if(F&&!Io||!F&&!Ao){Vr($r(ve,at),z,yt);const oa=function YC(_,h,y,S,F){const z=new bu(_,y,C1);return z.multi=[],z.index=h,z.componentProviders=0,ha(z,F,S&&!y),z}(F?HC:RC,y.length,F,S,qt);!F&&Io&&(y[ji].providerFactory=oa),G5(z,_,h.length,0),h.push(yt),ve.directiveStart++,ve.directiveEnd++,F&&(ve.providerIndexes+=1048576),y.push(oa),at.push(oa)}else G5(z,_,Ci>-1?Ci:ji,ha(y[F?ji:Ci],qt,!F&&S));!F&&S&&Io&&y[ji].componentProviders++}}}function G5(_,h,y,S){const F=Wp(h),z=function cg(_){return!!_.useClass}(h);if(F||z){const qt=(z?N(h.useClass):h).prototype.ngOnDestroy;if(qt){const ve=_.destroyHooks||(_.destroyHooks=[]);if(!F&&h.multi){const $e=ve.indexOf(y);-1===$e?ve.push(y,[S,qt]):ve[$e+1].push(S,qt)}else ve.push(y,qt)}}}function ha(_,h,y){return y&&_.componentProviders++,_.multi.push(h)-1}function gi(_,h,y,S){for(let F=y;F{y.providersResolver=(S,F)=>function qC(_,h,y){const S=la();if(S.firstCreatePass){const F=Ps(_);D6(y,S.data,S.blueprint,F,!0),D6(h,S.data,S.blueprint,F,!1)}}(S,F?F(_):_,h)}}class x0{}class P6{}function zC(_,h){return new j5(_,h??null)}class j5 extends x0{constructor(h,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xm(this);const S=Ei(h);this._bootstrapComponents=B1(S.bootstrap),this._r3Injector=Pl(h,y,[{provide:x0,useValue:this},{provide:Im,useValue:this.componentFactoryResolver}],w(h),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(h)}get injector(){return this._r3Injector}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class S6 extends P6{constructor(h){super(),this.moduleType=h}create(h){return new j5(this.moduleType,h)}}class VC extends x0{constructor(h,y,S){super(),this.componentFactoryResolver=new Xm(this),this.instance=null;const F=new Rf([...h,{provide:x0,useValue:this},{provide:Im,useValue:this.componentFactoryResolver}],y||Nm(),S,new Set(["environment"]));this.injector=F,F.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(h){this.injector.onDestroy(h)}}function W5(_,h,y=null){return new VC(_,h,y).injector}let BC=(()=>{class _{constructor(y){this._injector=y,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(y){if(!y.standalone)return null;if(!this.cachedInjectors.has(y.id)){const S=Qp(0,y.type),F=S.length>0?W5([S],this._injector,`Standalone[${y.type.name}]`):null;this.cachedInjectors.set(y.id,F)}return this.cachedInjectors.get(y.id)}ngOnDestroy(){try{for(const y of this.cachedInjectors.values())null!==y&&y.destroy()}finally{this.cachedInjectors.clear()}}}return _.\u0275prov=se({token:_,providedIn:"environment",factory:()=>new _(nc(V1))}),_})();function K8(_){_.getStandaloneInjector=h=>h.get(BC).getOrCreateStandaloneInjector(_)}function ax(_,h,y){const S=Fr()+_,F=Qi();return F[S]===Ea?Go(F,S,y?h.call(y):h()):function da(_,h){return _[h]}(F,S)}function rx(_,h,y,S){return tv(Qi(),Fr(),_,h,y,S)}function sx(_,h,y,S,F){return lx(Qi(),Fr(),_,h,y,S,F)}function E4(_,h){const y=_[h];return y===Ea?void 0:y}function tv(_,h,y,S,F,z){const at=h+y;return fa(_,at,F)?Go(_,at+1,z?S.call(z,F):S(F)):E4(_,at+1)}function lx(_,h,y,S,F,z,at){const yt=h+y;return ca(_,yt,F,z)?Go(_,yt+2,at?S.call(at,F,z):S(F,z)):E4(_,yt+2)}function px(_,h){const y=la();let S;const F=_+22;y.firstCreatePass?(S=function o7(_,h){if(h)for(let y=h.length-1;y>=0;y--){const S=h[y];if(_===S.name)return S}}(h,y.pipeRegistry),y.data[F]=S,S.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(F,S.onDestroy)):S=y.data[F];const z=S.factory||(S.factory=$s(S.type)),at=ot(C1);try{const yt=Ui(!1),qt=z();return Ui(yt),function s0(_,h,y,S){y>=_.data.length&&(_.data[y]=null,_.blueprint[y]=null),h[y]=S}(y,Qi(),F,qt),qt}finally{ot(at)}}function mx(_,h,y){const S=_+22,F=Qi(),z=wa(F,S);return F4(F,S)?tv(F,Fr(),h,z.transform,y,z):z.transform(y)}function _x(_,h,y,S){const F=_+22,z=Qi(),at=wa(z,F);return F4(z,F)?lx(z,Fr(),h,at.transform,y,S,at):at.transform(y,S)}function fx(_,h,y,S,F){const z=_+22,at=Qi(),yt=wa(at,z);return F4(at,z)?function k6(_,h,y,S,F,z,at,yt){const qt=h+y;return Wa(_,qt,F,z,at)?Go(_,qt+3,yt?S.call(yt,F,z,at):S(F,z,at)):E4(_,qt+3)}(at,Fr(),h,yt.transform,y,S,F,yt):yt.transform(y,S,F)}function O6(_,h,y,S,F,z){const at=_+22,yt=Qi(),qt=wa(yt,at);return F4(yt,at)?function ux(_,h,y,S,F,z,at,yt,qt){const ve=h+y;return Fa(_,ve,F,z,at,yt)?Go(_,ve+4,qt?S.call(qt,F,z,at,yt):S(F,z,at,yt)):E4(_,ve+4)}(yt,Fr(),h,qt.transform,y,S,F,z,qt):qt.transform(y,S,F,z)}function F4(_,h){return _[1].data[h].pure}function ev(_){return h=>{setTimeout(_,void 0,h)}}const X1=class r7 extends u.xQ{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,y,S){let F=h,z=y||(()=>null),at=S;if(h&&"object"==typeof h){const qt=h;F=qt.next?.bind(qt),z=qt.error?.bind(qt),at=qt.complete?.bind(qt)}this.__isAsync&&(z=ev(z),F&&(F=ev(F)),at&&(at=ev(at)));const yt=super.subscribe({next:F,error:z,complete:at});return h instanceof d.w&&h.add(yt),yt}};function s7(){return this._results[Yn()]()}class L6{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Yn(),S=L6.prototype;S[y]||(S[y]=s7)}get changes(){return this._changes||(this._changes=new X1)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,y){return this._results.reduce(h,y)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,y){const S=this;S.dirty=!1;const F=mc(h);(this._changesDetected=!function qc(_,h,y){if(_.length!==h.length)return!1;for(let S=0;S<_.length;S++){let F=_[S],z=h[S];if(y&&(F=y(F),z=y(z)),z!==F)return!1}return!0}(S._results,F,y))&&(S._results=F,S.length=F.length,S.last=F[this.length-1],S.first=F[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let N4=(()=>{class _{}return _.__NG_ELEMENT_ID__=c7,_})();const hx=N4,gx=class extends hx{constructor(h,y,S){super(),this._declarationLView=h,this._declarationTContainer=y,this.elementRef=S}createEmbeddedView(h,y){const S=this._declarationTContainer.tViews,F=zd(this._declarationLView,S,h,16,null,S.declTNode,null,null,null,null,y||null);F[17]=this._declarationLView[this._declarationTContainer.index];const at=this._declarationLView[19];return null!==at&&(F[19]=at.createEmbeddedView(S)),ah(S,F,h),new B_(F)}};function c7(){return I4(Qa(),Qi())}function I4(_,h){return 4&_.type?new gx(h,_,tr(_,h)):null}let E6=(()=>{class _{}return _.__NG_ELEMENT_ID__=l7,_})();function l7(){return iv(Qa(),Qi())}const vx=E6,xx=class extends vx{constructor(h,y,S){super(),this._lContainer=h,this._hostTNode=y,this._hostLView=S}get element(){return tr(this._hostTNode,this._hostLView)}get injector(){return new Wc(this._hostTNode,this._hostLView)}get parentInjector(){const h=Kr(this._hostTNode,this._hostLView);if(Xe(h)){const y=ei(h,this._hostLView),S=Tn(h);return new Wc(y[1].data[S+8],y)}return new Wc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const y=bx(this._lContainer);return null!==y&&y[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,y,S){let F,z;"number"==typeof S?F=S:null!=S&&(F=S.index,z=S.injector);const at=h.createEmbeddedView(y||{},z);return this.insert(at,F),at}createComponent(h,y,S,F,z){const at=h&&!function E1(_){return"function"==typeof _}(h);let yt;if(at)yt=y;else{const Un=y||{};yt=Un.index,S=Un.injector,F=Un.projectableNodes,z=Un.environmentInjector||Un.ngModuleRef}const qt=at?h:new z2(zt(h)),ve=S||this.parentInjector;if(!z&&null==qt.ngModule){const ri=(at?ve:this.parentInjector).get(V1,null);ri&&(z=ri)}const $e=qt.create(ve,F,void 0,z);return this.insert($e.hostView,yt),$e}insert(h,y){const S=h._lView,F=S[1];if(function ks(_){return Ur(_[3])}(S)){const $e=this.indexOf(h);if(-1!==$e)this.detach($e);else{const Un=S[3],ri=new xx(Un,Un[6],Un[3]);ri.detach(ri.indexOf(h))}}const z=this._adjustIndex(y),at=this._lContainer;!function y_(_,h,y,S){const F=10+S,z=y.length;S>0&&(y[F-1][4]=h),S0)S.push(at[yt/2]);else{const ve=z[yt+1],$e=h[-qt];for(let Un=10;Un<$e.length;Un++){const ri=$e[Un];ri[17]===ri[3]&&N6(ri[1],ri,ve,S)}if(null!==$e[9]){const Un=$e[9];for(let ri=0;ri{class _{constructor(y){this.appInits=y,this.resolve=V6,this.reject=V6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,F)=>{this.resolve=S,this.reject=F})}runInitializers(){if(this.initialized)return;const y=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{z.subscribe({complete:yt,error:qt})});y.push(at)}}Promise.all(y).then(()=>{S()}).catch(F=>{this.reject(F)}),0===y.length&&S(),this.initialized=!0}}return _.\u0275fac=function(y){return new(y||_)(nc(qx,8))},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Rx=new io("AppId",{providedIn:"root",factory:function Hx(){return`${B6()}${B6()}${B6()}`}});function B6(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yx=new io("Platform Initializer"),E7=new io("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),zx=new io("appBootstrapListener"),N7=new io("AnimationModuleType");let I7=(()=>{class _{log(y){console.log(y)}warn(y){console.warn(y)}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const G6=new io("LocaleId",{providedIn:"root",factory:()=>Lp(G6,oi.Optional|oi.SkipSelf)||function q7(){return typeof $localize<"u"&&$localize.locale||va}()}),R7=new io("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Y7{constructor(h,y){this.ngModuleFactory=h,this.componentFactories=y}}let Vx=(()=>{class _{compileModuleSync(y){return new S6(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const S=this.compileModuleSync(y),z=B1(Ei(y).declarations).reduce((at,yt)=>{const qt=zt(yt);return qt&&at.push(new z2(qt)),at},[]);return new Y7(S,z)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const V7=(()=>Promise.resolve(0))();function J6(_){typeof Zone>"u"?V7.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class dm{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X1(!1),this.onMicrotaskEmpty=new X1(!1),this.onStable=new X1(!1),this.onError=new X1(!1),typeof Zone>"u")throw new et(908,!1);Zone.assertZonePatched();const F=this;if(F._nesting=0,F._outer=F._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const z=Zone.AsyncStackTaggingZoneSpec;F._inner=F._inner.fork(new z("Angular"))}Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!S&&y,F.shouldCoalesceRunChangeDetection=S,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function Qx(){let _=qn.requestAnimationFrame,h=qn.cancelAnimationFrame;if(typeof Zone<"u"&&_&&h){const y=_[Zone.__symbol__("OriginalDelegate")];y&&(_=y);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function B7(_){const h=()=>{!function Q6(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(qn,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,yv(_),_.isCheckStableRunning=!0,Cv(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),yv(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,S,F,z,at,yt)=>{try{return Wx(_),y.invokeTask(F,z,at,yt)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===z.type||_.shouldCoalesceRunChangeDetection)&&h(),$x(_)}},onInvoke:(y,S,F,z,at,yt,qt)=>{try{return Wx(_),y.invoke(F,z,at,yt,qt)}finally{_.shouldCoalesceRunChangeDetection&&h(),$x(_)}},onHasTask:(y,S,F,z)=>{y.hasTask(F,z),S===F&&("microTask"==z.change?(_._hasPendingMicrotasks=z.microTask,yv(_),Cv(_)):"macroTask"==z.change&&(_.hasPendingMacrotasks=z.macroTask))},onHandleError:(y,S,F,z)=>(y.handleError(F,z),_.runOutsideAngular(()=>_.onError.emit(z)),!1)})}(F)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dm.isInAngularZone())throw new et(909,!1)}static assertNotInAngularZone(){if(dm.isInAngularZone())throw new et(909,!1)}run(h,y,S){return this._inner.run(h,y,S)}runTask(h,y,S,F){const z=this._inner,at=z.scheduleEventTask("NgZoneEvent: "+F,h,jx,V6,V6);try{return z.runTask(at,y,S)}finally{z.cancelTask(at)}}runGuarded(h,y,S){return this._inner.runGuarded(h,y,S)}runOutsideAngular(h){return this._outer.run(h)}}const jx={};function Cv(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function yv(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Wx(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function $x(_){_._nesting--,Cv(_)}class Tv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X1,this.onMicrotaskEmpty=new X1,this.onStable=new X1,this.onError=new X1}run(h,y,S){return h.apply(y,S)}runGuarded(h,y,S){return h.apply(y,S)}runOutsideAngular(h){return h()}runTask(h,y,S,F){return h.apply(y,S)}}const Kx=new io(""),Xx=new io("");let j6,tb=(()=>{class _{constructor(y,S,F){this._ngZone=y,this.registry=S,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,j6||(function G7(_){j6=_}(F),F.addToWindow(S)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{dm.assertNotInAngularZone(),J6(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())J6(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(y)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,S,F){let z=-1;S&&S>0&&(z=setTimeout(()=>{this._callbacks=this._callbacks.filter(at=>at.timeoutId!==z),y(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:y,timeoutId:z,updateCb:F})}whenStable(y,S,F){if(F&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,S,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,S,F){return[]}}return _.\u0275fac=function(y){return new(y||_)(nc(dm),nc(eb),nc(Xx))},_.\u0275prov=se({token:_,factory:_.\u0275fac}),_})(),eb=(()=>{class _{constructor(){this._applications=new Map}registerApplication(y,S){this._applications.set(y,S)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,S=!0){return j6?.findTestabilityInTree(this,y,S)??null}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Dh=null;const Av=new io("AllowMultipleToken"),Uv=new io("PlatformDestroyListeners");class nb{constructor(h,y){this.name=h,this.token=y}}function ob(_,h,y=[]){const S=`Platform: ${h}`,F=new io(S);return(z=[])=>{let at=$6();if(!at||at.injector.get(Av,!1)){const yt=[...y,...z,{provide:F,useValue:!0}];_?_(yt):function Q7(_){if(Dh&&!Dh.get(Av,!1))throw new et(400,!1);Dh=_;const h=_.get(K6);(function ib(_){const h=_.get(Yx,null);h&&h.forEach(y=>y())})(_)}(function ab(_=[],h){return mu.create({name:h,providers:[{provide:$p,useValue:"platform"},{provide:Uv,useValue:new Set([()=>Dh=null])},..._]})}(yt,S))}return function W7(_){const h=$6();if(!h)throw new et(401,!1);return h}()}}function $6(){return Dh?.get(K6)??null}let K6=(()=>{class _{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,S){const F=function rb(_,h){let y;return y="noop"===_?new Tv:("zone.js"===_?void 0:_)||new dm(h),y}(S?.ngZone,function X6(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(S)),z=[{provide:dm,useValue:F}];return F.run(()=>{const at=mu.create({providers:z,parent:this.injector,name:y.moduleType.name}),yt=y.create(at),qt=yt.injector.get(Cp,null);if(!qt)throw new et(402,!1);return F.runOutsideAngular(()=>{const ve=F.onError.subscribe({next:$e=>{qt.handleError($e)}});yt.onDestroy(()=>{R4(this._modules,yt),ve.unsubscribe()})}),function sb(_,h,y){try{const S=y();return o4(S)?S.catch(F=>{throw h.runOutsideAngular(()=>_.handleError(F)),F}):S}catch(S){throw h.runOutsideAngular(()=>_.handleError(S)),S}}(qt,F,()=>{const ve=yt.injector.get(q4);return ve.runInitializers(),ve.donePromise.then(()=>(function nl(_){je(_,"Expected localeId to be defined"),"string"==typeof _&&(Yu=_.toLowerCase().replace(/_/g,"-"))}(yt.injector.get(G6,va)||va),this._moduleDoBootstrap(yt),yt))})})}bootstrapModule(y,S=[]){const F=wv({},S);return function J7(_,h,y){const S=new S6(y);return Promise.resolve(S)}(0,0,y).then(z=>this.bootstrapModuleFactory(z,F))}_moduleDoBootstrap(y){const S=y.injector.get(t5);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(F=>S.bootstrap(F));else{if(!y.instance.ngDoBootstrap)throw new et(403,!1);y.instance.ngDoBootstrap(S)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new et(404,!1);this._modules.slice().forEach(S=>S.destroy()),this._destroyListeners.forEach(S=>S());const y=this._injector.get(Uv,null);y&&(y.forEach(S=>S()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(y){return new(y||_)(nc(mu))},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function wv(_,h){return Array.isArray(h)?h.reduce(wv,_):{..._,...h}}let t5=(()=>{class _{constructor(y,S,F){this._zone=y,this._injector=S,this._exceptionHandler=F,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const z=new v.y(yt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{yt.next(this._stable),yt.complete()})}),at=new v.y(yt=>{let qt;this._zone.runOutsideAngular(()=>{qt=this._zone.onStable.subscribe(()=>{dm.assertNotInAngularZone(),J6(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,yt.next(!0))})})});const ve=this._zone.onUnstable.subscribe(()=>{dm.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{yt.next(!1)}))});return()=>{qt.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,g.T)(z,at.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,S){const F=y instanceof C2;if(!this._injector.get(q4).done)throw!F&&kn(y),new et(405,false);let at;at=F?y:this._injector.get(Im).resolveComponentFactory(y),this.componentTypes.push(at.componentType);const yt=function W6(_){return _.isBoundToModule}(at)?void 0:this._injector.get(x0),ve=at.create(mu.NULL,[],S||at.selector,yt),$e=ve.location.nativeElement,Un=ve.injector.get(Kx,null);return Un?.registerApplication($e),ve.onDestroy(()=>{this.detachView(ve.hostView),R4(this.components,ve),Un?.unregisterApplication($e)}),this._loadComponent(ve),ve}tick(){if(this._runningTick)throw new et(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const S=y;this._views.push(S),S.attachToAppRef(this)}detachView(y){const S=y;R4(this._views,S),S.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(zx,[]).concat(this._bootstrapListeners).forEach(F=>F(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>R4(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new et(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(y){return new(y||_)(nc(dm),nc(V1),nc(Cp))},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function R4(_,h){const y=_.indexOf(h);y>-1&&_.splice(y,1)}let lb=!0;function X7(){lb=!1}let pb=(()=>{class _{}return _.__NG_ELEMENT_ID__=ey,_})();function ey(_){return function mb(_,h,y){if(Al(_)&&!y){const S=is(_.index,h);return new B_(S,S)}return 47&_.type?new B_(h[j],h):null}(Qa(),Qi(),16==(16&_))}class hb{constructor(){}supports(h){return fi(h)}create(h){return new sy(h)}}const ry=(_,h)=>h;class sy{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||ry}forEachItem(h){let y;for(y=this._itHead;null!==y;y=y._next)h(y)}forEachOperation(h){let y=this._itHead,S=this._removalsHead,F=0,z=null;for(;y||S;){const at=!S||y&&y.currentIndex{at=this._trackByFn(F,yt),null!==y&&Object.is(y.trackById,at)?(S&&(y=this._verifyReinsertion(y,yt,at,F)),Object.is(y.item,yt)||this._addIdentityChange(y,yt)):(y=this._mismatch(y,yt,at,F),S=!0),y=y._next,F++}),this.length=F;return this._truncate(y),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,y,S,F){let z;return null===h?z=this._itTail:(z=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,y)||this._addIdentityChange(h,y),this._reinsertAfter(h,z,F)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,F))?(Object.is(h.item,y)||this._addIdentityChange(h,y),this._moveAfter(h,z,F)):h=this._addAfter(new cy(y,S),z,F),h}_verifyReinsertion(h,y,S,F){let z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==z?h=this._reinsertAfter(z,h._prev,F):h.currentIndex!=F&&(h.currentIndex=F,this._addToMoves(h,F)),h}_truncate(h){for(;null!==h;){const y=h._next;this._addToRemovals(this._unlink(h)),h=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(h,y,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const F=h._prevRemoved,z=h._nextRemoved;return null===F?this._removalsHead=z:F._nextRemoved=z,null===z?this._removalsTail=F:z._prevRemoved=F,this._insertAfter(h,y,S),this._addToMoves(h,S),h}_moveAfter(h,y,S){return this._unlink(h),this._insertAfter(h,y,S),this._addToMoves(h,S),h}_addAfter(h,y,S){return this._insertAfter(h,y,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,y,S){const F=null===y?this._itHead:y._next;return h._next=F,h._prev=y,null===F?this._itTail=h:F._prev=h,null===y?this._itHead=h:y._next=h,null===this._linkedRecords&&(this._linkedRecords=new Sv),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const y=h._prev,S=h._next;return null===y?this._itHead=S:y._next=S,null===S?this._itTail=y:S._prev=y,h}_addToMoves(h,y){return h.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sv),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,y){return h.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class cy{constructor(h,y){this.item=h,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ly{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,y){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===y||y<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const y=h._prevDup,S=h._nextDup;return null===y?this._head=S:y._nextDup=S,null===S?this._tail=y:S._prevDup=y,null===this._head}}class Sv{constructor(){this.map=new Map}put(h){const y=h.trackById;let S=this.map.get(y);S||(S=new ly,this.map.set(y,S)),S.add(h)}get(h,y){const F=this.map.get(h);return F?F.get(h,y):null}remove(h){const y=h.trackById;return this.map.get(y).remove(h)&&this.map.delete(y),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gb(_,h,y){const S=_.previousIndex;if(null===S)return S;let F=0;return y&&S{if(y&&y.key===F)this._maybeAddToChanges(y,S),this._appendAfter=y,y=y._next;else{const z=this._getOrCreateRecordForKey(F,S);y=this._insertBeforeOrAppend(y,z)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let S=y;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,y){if(h){const S=h._prev;return y._next=h,y._prev=S,h._prev=y,S&&(S._next=y),h===this._mapHead&&(this._mapHead=y),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(h,y){if(this._records.has(h)){const F=this._records.get(h);this._maybeAddToChanges(F,y);const z=F._prev,at=F._next;return z&&(z._next=at),at&&(at._prev=z),F._next=null,F._prev=null,F}const S=new dy(h);return this._records.set(h,S),S.currentValue=y,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,y){Object.is(y,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=y,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,y){h instanceof Map?h.forEach(y):Object.keys(h).forEach(S=>y(h[S],S))}}class dy{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kv(){return new Ov([new hb])}let Ov=(()=>{class _{constructor(y){this.factories=y}static create(y,S){if(null!=S){const F=S.factories.slice();y=y.concat(F)}return new _(y)}static extend(y){return{provide:_,useFactory:S=>_.create(y,S||kv()),deps:[[_,new Ep,new ic]]}}find(y){const S=this.factories.find(F=>F.supports(y));if(null!=S)return S;throw new et(901,!1)}}return _.\u0275prov=se({token:_,providedIn:"root",factory:kv}),_})();function xb(){return new H4([new vb])}let H4=(()=>{class _{constructor(y){this.factories=y}static create(y,S){if(S){const F=S.factories.slice();y=y.concat(F)}return new _(y)}static extend(y){return{provide:_,useFactory:S=>_.create(y,S||xb()),deps:[[_,new Ep,new ic]]}}find(y){const S=this.factories.find(F=>F.supports(y));if(S)return S;throw new et(901,!1)}}return _.\u0275prov=se({token:_,providedIn:"root",factory:xb}),_})();const bb=ob(null,"core",[]);let _y=(()=>{class _{constructor(y){}}return _.\u0275fac=function(y){return new(y||_)(nc(t5))},_.\u0275mod=gn({type:_}),_.\u0275inj=ae({}),_})();function fy(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},85863:(tt,W,f)=>{"use strict";function u(O){for(let L in O){let N=O[L]??"";switch(L){case"display":O.display="flex"===N?["-webkit-flex","flex"]:"inline-flex"===N?["-webkit-inline-flex","inline-flex"]:N;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":O["-webkit-"+L]=N;break;case"flex-direction":O["-webkit-flex-direction"]=N,O["flex-direction"]=N;break;case"order":O.order=O["-webkit-"+L]=isNaN(+N)?"0":N}}return O}f.d(W,{Ar:()=>g,GK:()=>u,iQ:()=>v,kt:()=>P,tj:()=>T});const d="inline",v=["row","column","row-reverse","column-reverse"];function g(O){let[L,N,B]=t(O);return function w(O,L=null,N=!1){return{display:N?"inline-flex":"flex","box-sizing":"border-box","flex-direction":O,"flex-wrap":L||null}}(L,N,B)}function t(O){O=O?.toLowerCase()??"";let[L,N,B]=O.split(" ");return v.find(K=>K===L)||(L=v[0]),N===d&&(N=B!==d?B:"",B=d),[L,U(N),!!B]}function T(O){let[L]=t(O);return L.indexOf("row")>-1}function U(O){if(O)switch(O.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":O="wrap-reverse";break;case"no":case"none":case"nowrap":O="nowrap";break;default:O="wrap"}return O}function P(O,...L){if(null==O)throw TypeError("Cannot convert undefined or null to object");for(let N of L)if(null!=N)for(let B in N)N.hasOwnProperty(B)&&(O[B]=N[B]);return O}},32233:(tt,W,f)=>{"use strict";f.d(W,{Bs:()=>Dt,FL:()=>hi,IR:()=>B,Ot:()=>mi,QI:()=>Rt,RK:()=>Gt,WU:()=>lt,g5:()=>ct,iR:()=>ot,wY:()=>Ct,yB:()=>We});var u=f(94650),d=f(36895),v=f(591),g=f(56498),t=f(36787),T=f(8929),U=f(85863),w=f(92198),P=f(22868);const L={provide:u.tb,useFactory:function O(zn,Bn){return()=>{if((0,d.NF)(Bn)){const Qe=Array.from(zn.querySelectorAll(`[class*=${N}]`)),xn=/\bflex-layout-.+?\b/g;Qe.forEach(Ve=>{Ve.classList.contains(`${N}ssr`)&&Ve.parentNode?Ve.parentNode.removeChild(Ve):Ve.className.replace(xn,"")})}}},deps:[d.K0,u.Lbi],multi:!0},N="flex-layout-";let B=(()=>{class zn{}return zn.\u0275fac=function(Qe){return new(Qe||zn)},zn.\u0275mod=u.oAB({type:zn}),zn.\u0275inj=u.cJS({providers:[L]}),zn})();class K{constructor(Bn=!1,Qe="all",xn="",Ve="",Ne=0){this.matches=Bn,this.mediaQuery=Qe,this.mqAlias=xn,this.suffix=Ve,this.priority=Ne,this.property=""}clone(){return new K(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let et=(()=>{class zn{constructor(){this.stylesheet=new Map}addStyleToElement(Qe,xn,Ve){const Ne=this.stylesheet.get(Qe);Ne?Ne.set(xn,Ve):this.stylesheet.set(Qe,new Map([[xn,Ve]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Qe,xn){const Ve=this.stylesheet.get(Qe);let Ne="";if(Ve){const tn=Ve.get(xn);("number"==typeof tn||"string"==typeof tn)&&(Ne=tn+"")}return Ne}}return zn.\u0275fac=function(Qe){return new(Qe||zn)},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();const ct={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},lt=new u.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ct}),Ct=new u.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Dt=new u.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Zt(zn,Bn){return zn=zn?.clone()??new K,Bn&&(zn.mqAlias=Bn.alias,zn.mediaQuery=Bn.mediaQuery,zn.suffix=Bn.suffix,zn.priority=Bn.priority),zn}class Rt{constructor(){this.shouldCache=!0}sideEffect(Bn,Qe,xn){}}let Gt=(()=>{class zn{constructor(Qe,xn,Ve,Ne){this._serverStylesheet=Qe,this._serverModuleLoaded=xn,this._platformId=Ve,this.layoutConfig=Ne}applyStyleToElement(Qe,xn,Ve=null){let Ne={};"string"==typeof xn&&(Ne[xn]=Ve,xn=Ne),Ne=this.layoutConfig.disableVendorPrefixes?xn:(0,U.GK)(xn),this._applyMultiValueStyleToElement(Ne,Qe)}applyStyleToElements(Qe,xn=[]){const Ve=this.layoutConfig.disableVendorPrefixes?Qe:(0,U.GK)(Qe);xn.forEach(Ne=>{this._applyMultiValueStyleToElement(Ve,Ne)})}getFlowDirection(Qe){const xn="flex-direction";let Ve=this.lookupStyle(Qe,xn);return[Ve||"row",this.lookupInlineStyle(Qe,xn)||(0,d.PM)(this._platformId)&&this._serverModuleLoaded?Ve:""]}hasWrap(Qe){return"wrap"===this.lookupStyle(Qe,"flex-wrap")}lookupAttributeValue(Qe,xn){return Qe.getAttribute(xn)??""}lookupInlineStyle(Qe,xn){return(0,d.NF)(this._platformId)?Qe.style.getPropertyValue(xn):function Tt(zn,Bn){return mt(zn)[Bn]??""}(Qe,xn)}lookupStyle(Qe,xn,Ve=!1){let Ne="";return Qe&&((Ne=this.lookupInlineStyle(Qe,xn))||((0,d.NF)(this._platformId)?Ve||(Ne=getComputedStyle(Qe).getPropertyValue(xn)):this._serverModuleLoaded&&(Ne=this._serverStylesheet.getStyleForElement(Qe,xn)))),Ne?Ne.trim():""}_applyMultiValueStyleToElement(Qe,xn){Object.keys(Qe).sort().forEach(Ve=>{const Ne=Qe[Ve],tn=Array.isArray(Ne)?Ne:[Ne];tn.sort();for(let ce of tn)ce=ce?ce+"":"",(0,d.NF)(this._platformId)||!this._serverModuleLoaded?(0,d.NF)(this._platformId)?xn.style.setProperty(Ve,ce):Ut(xn,Ve,ce):this._serverStylesheet.addStyleToElement(xn,Ve,ce)})}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(et),u.LFG(Ct),u.LFG(u.Lbi),u.LFG(lt))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();function Ut(zn,Bn,Qe){Bn=Bn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const xn=mt(zn);xn[Bn]=Qe??"",function bt(zn,Bn){let Qe="";for(const xn in Bn)Bn[xn]&&(Qe+=`${xn}:${Bn[xn]};`);zn.setAttribute("style",Qe)}(zn,xn)}function mt(zn){const Bn={},Qe=zn.getAttribute("style");if(Qe){const xn=Qe.split(/;+/g);for(let Ve=0;Ve0){const tn=Ne.indexOf(":");if(-1===tn)throw new Error(`Invalid CSS style: ${Ne}`);Bn[Ne.substr(0,tn).trim()]=Ne.substr(tn+1).trim()}}}return Bn}function Lt(zn,Bn){return(Bn&&Bn.priority||0)-(zn&&zn.priority||0)}function Bt(zn,Bn){return(zn.priority||0)-(Bn.priority||0)}let kt=(()=>{class zn{constructor(Qe,xn,Ve){this._zone=Qe,this._platformId=xn,this._document=Ve,this.source=new v.X(new K(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Qe=[];return this.registry.forEach((xn,Ve)=>{xn.matches&&Qe.push(Ve)}),Qe}isActive(Qe){return this.registry.get(Qe)?.matches??this.registerQuery(Qe).some(Ve=>Ve.matches)}observe(Qe,xn=!1){if(Qe&&Qe.length){const Ve=this._observable$.pipe((0,w.h)(tn=>!xn||Qe.indexOf(tn.mediaQuery)>-1)),Ne=new g.y(tn=>{const ce=this.registerQuery(Qe);if(ce.length){const Be=ce.pop();ce.forEach(oe=>{tn.next(oe)}),this.source.next(Be)}tn.complete()});return(0,t.T)(Ne,Ve)}return this._observable$}registerQuery(Qe){const xn=Array.isArray(Qe)?Qe:[Qe],Ve=[];return function Vt(zn,Bn){const Qe=zn.filter(xn=>!le[xn]);if(Qe.length>0){const xn=Qe.join(", ");try{const Ve=Bn.createElement("style");Ve.setAttribute("type","text/css"),Ve.styleSheet||Ve.appendChild(Bn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${xn} {.fx-query-test{ }}\n`)),Bn.head.appendChild(Ve),Qe.forEach(Ne=>le[Ne]=Ve)}catch(Ve){console.error(Ve)}}}(xn,this._document),xn.forEach(Ne=>{const tn=Be=>{this._zone.run(()=>this.source.next(new K(Be.matches,Ne)))};let ce=this.registry.get(Ne);ce||(ce=this.buildMQL(Ne),ce.addListener(tn),this.pendingRemoveListenerFns.push(()=>ce.removeListener(tn)),this.registry.set(Ne,ce)),ce.matches&&Ve.push(new K(!0,Ne))}),Ve}ngOnDestroy(){let Qe;for(;Qe=this.pendingRemoveListenerFns.pop();)Qe()}buildMQL(Qe){return function ge(zn,Bn){return Bn&&window.matchMedia("all").addListener?window.matchMedia(zn):function be(zn){const Bn=new EventTarget;return Bn.matches="all"===zn||""===zn,Bn.media=zn,Bn.addListener=()=>{},Bn.removeListener=()=>{},Bn.addEventListener=()=>{},Bn.dispatchEvent=()=>!1,Bn.onchange=null,Bn}(zn)}(Qe,(0,d.NF)(this._platformId))}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(u.R0b),u.LFG(u.Lbi),u.LFG(d.K0))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();const le={},Fe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],qe="(orientation: portrait) and (max-width: 599.98px)",je="(orientation: landscape) and (max-width: 959.98px)",Qt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Ue="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ie="(orientation: portrait) and (min-width: 840px)",Wt="(orientation: landscape) and (min-width: 1280px)",se={HANDSET:`${qe}, ${je}`,TABLET:`${Qt} , ${Ue}`,WEB:`${ie}, ${Wt} `,HANDSET_PORTRAIT:`${qe}`,TABLET_PORTRAIT:`${Qt} `,WEB_PORTRAIT:`${ie}`,HANDSET_LANDSCAPE:`${je}`,TABLET_LANDSCAPE:`${Ue}`,WEB_LANDSCAPE:`${Wt}`},Xt=[{alias:"handset",priority:2e3,mediaQuery:se.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:se.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:se.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:se.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:se.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:se.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:se.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:se.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:se.WEB_PORTRAIT,overlapping:!0}],ae=/(\.|-|_)/g;function De(zn){let Bn=zn.length>0?zn.charAt(0):"",Qe=zn.length>1?zn.slice(1):"";return Bn.toUpperCase()+Qe}const bn=new u.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const zn=(0,u.f3M)(Dt),Bn=(0,u.f3M)(lt),Qe=[].concat.apply([],(zn||[]).map(Ve=>Array.isArray(Ve)?Ve:[Ve]));return function Ce(zn,Bn=[]){const Qe={};return zn.forEach(xn=>{Qe[xn.alias]=xn}),Bn.forEach(xn=>{Qe[xn.alias]?(0,U.kt)(Qe[xn.alias],xn):Qe[xn.alias]=xn}),function hn(zn){return zn.forEach(Bn=>{Bn.suffix||(Bn.suffix=function nn(zn){return zn.replace(ae,"|").split("|").map(De).join("")}(Bn.alias),Bn.overlapping=!!Bn.overlapping)}),zn}(Object.keys(Qe).map(xn=>Qe[xn]))}((Bn.disableDefaultBps?[]:Fe).concat(Bn.addOrientationBps?Xt:[]),Qe)}});let Oe=(()=>{class zn{constructor(Qe){this.findByMap=new Map,this.items=[...Qe].sort(Bt)}findByAlias(Qe){return Qe?this.findWithPredicate(Qe,xn=>xn.alias===Qe):null}findByQuery(Qe){return this.findWithPredicate(Qe,xn=>xn.mediaQuery===Qe)}get overlappings(){return this.items.filter(Qe=>Qe.overlapping)}get aliases(){return this.items.map(Qe=>Qe.alias)}get suffixes(){return this.items.map(Qe=>Qe?.suffix??"")}findWithPredicate(Qe,xn){let Ve=this.findByMap.get(Qe);return Ve||(Ve=this.items.find(xn)??null,this.findByMap.set(Qe,Ve)),Ve??null}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(bn))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();const dn="print",Pn={alias:dn,mediaQuery:dn,priority:1e3};let ii=(()=>{class zn{constructor(Qe,xn,Ve){this.breakpoints=Qe,this.layoutConfig=xn,this._document=Ve,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new _i,this.deactivations=[]}withPrintQuery(Qe){return[...Qe,dn]}isPrintEvent(Qe){return Qe.mediaQuery.startsWith(dn)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Qe=>this.breakpoints.findByAlias(Qe)).filter(Qe=>null!==Qe)}getEventBreakpoints({mediaQuery:Qe}){const xn=this.breakpoints.findByQuery(Qe);return(xn?[...this.printBreakPoints,xn]:this.printBreakPoints).sort(Lt)}updateEvent(Qe){let xn=this.breakpoints.findByQuery(Qe.mediaQuery);return this.isPrintEvent(Qe)&&(xn=this.getEventBreakpoints(Qe)[0],Qe.mediaQuery=xn?.mediaQuery??""),Zt(Qe,xn)}registerBeforeAfterPrintHooks(Qe){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const xn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Qe,this.getEventBreakpoints(new K(!0,dn))),Qe.updateStyles())},Ve=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Qe),Qe.updateStyles())};this._document.defaultView.addEventListener("beforeprint",xn),this._document.defaultView.addEventListener("afterprint",Ve),this.beforePrintEventListeners.push(xn),this.afterPrintEventListeners.push(Ve)}interceptEvents(Qe){return xn=>{this.isPrintEvent(xn)?xn.matches&&!this.isPrinting?(this.startPrinting(Qe,this.getEventBreakpoints(xn)),Qe.updateStyles()):!xn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Qe),Qe.updateStyles()):this.collectActivations(Qe,xn)}}blockPropagation(){return Qe=>!(this.isPrinting||this.isPrintEvent(Qe))}startPrinting(Qe,xn){this.isPrinting=!0,this.formerActivations=Qe.activatedBreakpoints,Qe.activatedBreakpoints=this.queue.addPrintBreakpoints(xn)}stopPrinting(Qe){Qe.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Qe,xn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!xn.matches){const Ve=this.breakpoints.findByQuery(xn.mediaQuery);if(Ve){const Ne=this.formerActivations&&this.formerActivations.includes(Ve),tn=!this.formerActivations&&Qe.activatedBreakpoints.includes(Ve);(Ne||tn)&&(this.deactivations.push(Ve),this.deactivations.sort(Lt))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Qe=>this._document.defaultView.removeEventListener("beforeprint",Qe)),this.afterPrintEventListeners.forEach(Qe=>this._document.defaultView.removeEventListener("afterprint",Qe)))}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(Oe),u.LFG(lt),u.LFG(d.K0))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();class _i{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Bn){return Bn.push(Pn),Bn.sort(Lt),Bn.forEach(Qe=>this.addBreakpoint(Qe)),this.printBreakpoints}addBreakpoint(Bn){Bn&&void 0===this.printBreakpoints.find(xn=>xn.mediaQuery===Bn.mediaQuery)&&(this.printBreakpoints=function oi(zn){return zn?.mediaQuery.startsWith(dn)??!1}(Bn)?[Bn,...this.printBreakpoints]:[...this.printBreakpoints,Bn])}clear(){this.printBreakpoints=[]}}let We=(()=>{class zn{constructor(Qe,xn,Ve){this.matchMedia=Qe,this.breakpoints=xn,this.hook=Ve,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new T.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Qe){this._activatedBreakpoints=[...Qe]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Qe){this._useFallbacks=Qe}onMediaChange(Qe){const xn=this.findByQuery(Qe.mediaQuery);if(xn){Qe=Zt(Qe,xn);const Ve=this.activatedBreakpoints.indexOf(xn);Qe.matches&&-1===Ve?(this._activatedBreakpoints.push(xn),this._activatedBreakpoints.sort(Lt),this.updateStyles()):!Qe.matches&&-1!==Ve&&(this._activatedBreakpoints.splice(Ve,1),this._activatedBreakpoints.sort(Lt),this.updateStyles())}}init(Qe,xn,Ve,Ne,tn=[]){ee(this.updateMap,Qe,xn,Ve),ee(this.clearMap,Qe,xn,Ne),this.buildElementKeyMap(Qe,xn),this.watchExtraTriggers(Qe,xn,tn)}getValue(Qe,xn,Ve){const Ne=this.elementMap.get(Qe);if(Ne){const tn=void 0!==Ve?Ne.get(Ve):this.getActivatedValues(Ne,xn);if(tn)return tn.get(xn)}}hasValue(Qe,xn){const Ve=this.elementMap.get(Qe);if(Ve){const Ne=this.getActivatedValues(Ve,xn);if(Ne)return void 0!==Ne.get(xn)||!1}return!1}setValue(Qe,xn,Ve,Ne){let tn=this.elementMap.get(Qe);if(tn){const Be=(tn.get(Ne)??new Map).set(xn,Ve);tn.set(Ne,Be),this.elementMap.set(Qe,tn)}else tn=(new Map).set(Ne,(new Map).set(xn,Ve)),this.elementMap.set(Qe,tn);const ce=this.getValue(Qe,xn);void 0!==ce&&this.updateElement(Qe,xn,ce)}trackValue(Qe,xn){return this.subject.asObservable().pipe((0,w.h)(Ve=>Ve.element===Qe&&Ve.key===xn))}updateStyles(){this.elementMap.forEach((Qe,xn)=>{const Ve=new Set(this.elementKeyMap.get(xn));let Ne=this.getActivatedValues(Qe);Ne&&Ne.forEach((tn,ce)=>{this.updateElement(xn,ce,tn),Ve.delete(ce)}),Ve.forEach(tn=>{if(Ne=this.getActivatedValues(Qe,tn),Ne){const ce=Ne.get(tn);this.updateElement(xn,tn,ce)}else this.clearElement(xn,tn)})})}clearElement(Qe,xn){const Ve=this.clearMap.get(Qe);if(Ve){const Ne=Ve.get(xn);Ne&&(Ne(),this.subject.next({element:Qe,key:xn,value:""}))}}updateElement(Qe,xn,Ve){const Ne=this.updateMap.get(Qe);if(Ne){const tn=Ne.get(xn);tn&&(tn(Ve),this.subject.next({element:Qe,key:xn,value:Ve}))}}releaseElement(Qe){const xn=this.watcherMap.get(Qe);xn&&(xn.forEach(Ne=>Ne.unsubscribe()),this.watcherMap.delete(Qe));const Ve=this.elementMap.get(Qe);Ve&&(Ve.forEach((Ne,tn)=>Ve.delete(tn)),this.elementMap.delete(Qe))}triggerUpdate(Qe,xn){const Ve=this.elementMap.get(Qe);if(Ve){const Ne=this.getActivatedValues(Ve,xn);Ne&&(xn?this.updateElement(Qe,xn,Ne.get(xn)):Ne.forEach((tn,ce)=>this.updateElement(Qe,ce,tn)))}}buildElementKeyMap(Qe,xn){let Ve=this.elementKeyMap.get(Qe);Ve||(Ve=new Set,this.elementKeyMap.set(Qe,Ve)),Ve.add(xn)}watchExtraTriggers(Qe,xn,Ve){if(Ve&&Ve.length){let Ne=this.watcherMap.get(Qe);if(Ne||(Ne=new Map,this.watcherMap.set(Qe,Ne)),!Ne.get(xn)){const ce=(0,t.T)(...Ve).subscribe(()=>{const Be=this.getValue(Qe,xn);this.updateElement(Qe,xn,Be)});Ne.set(xn,ce)}}}findByQuery(Qe){return this.breakpoints.findByQuery(Qe)}getActivatedValues(Qe,xn){for(let Ne=0;Nexn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Qe)).pipe((0,P.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(kt),u.LFG(Oe),u.LFG(ii))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();function ee(zn,Bn,Qe,xn){if(void 0!==xn){const Ve=zn.get(Bn)??new Map;Ve.set(Qe,xn),zn.set(Bn,Ve)}}let ot=(()=>{class zn{constructor(Qe,xn,Ve,Ne){this.elementRef=Qe,this.styleBuilder=xn,this.styler=Ve,this.marshal=Ne,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new T.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(Qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Qe,this.marshal.activatedAlias)}ngOnChanges(Qe){Object.keys(Qe).forEach(xn=>{if(-1!==this.inputs.indexOf(xn)){const Ve=xn.split(".").slice(1).join(".");this.setValue(Qe[xn].currentValue,Ve)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Qe=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Qe)}addStyles(Qe,xn){const Ve=this.styleBuilder,Ne=Ve.shouldCache;let tn=this.styleCache.get(Qe);(!tn||!Ne)&&(tn=Ve.buildStyles(Qe,xn),Ne&&this.styleCache.set(Qe,tn)),this.mru={...tn},this.applyStyleToElement(tn),Ve.sideEffect(Qe,tn,xn)}clearStyles(){Object.keys(this.mru).forEach(Qe=>{this.mru[Qe]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Qe,xn=!1){if(Qe){const[Ve,Ne]=this.styler.getFlowDirection(Qe);if(!Ne&&xn){const tn=(0,U.Ar)(Ve);this.styler.applyStyleToElements(tn,[Qe])}return Ve.trim()}return"row"}hasWrap(Qe){return this.styler.hasWrap(Qe)}applyStyleToElement(Qe,xn,Ve=this.nativeElement){this.styler.applyStyleToElement(Ve,Qe,xn)}setValue(Qe,xn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Qe,xn)}updateWithValue(Qe){this.currentValue!==Qe&&(this.addStyles(Qe),this.currentValue=Qe)}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.Y36(u.SBq),u.Y36(Rt),u.Y36(Gt),u.Y36(We))},zn.\u0275dir=u.lG2({type:zn,features:[u.TTD]}),zn})();function mi(zn,Bn="1",Qe="1"){let xn=[Bn,Qe,zn],Ve=zn.indexOf("calc");if(Ve>0){xn[2]=Di(zn.substring(Ve).trim());let Ne=zn.substr(0,Ve).trim().split(" ");2==Ne.length&&(xn[0]=Ne[0],xn[1]=Ne[1])}else if(0==Ve)xn[2]=Di(zn.trim());else{let Ne=zn.split(" ");xn=3===Ne.length?Ne:[Bn,Qe,zn]}return xn}function Di(zn){return zn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(zn,Bn){if(void 0===Bn)return zn;const Qe=xn=>{const Ve=+xn.slice(0,-"x".length);return zn.endsWith("x")&&!isNaN(Ve)?`${Ve*Bn.value}${Bn.unit}`:zn};return zn.includes(" ")?zn.split(" ").map(Qe).join(" "):Qe(zn)}EventTarget},55829:(tt,W,f)=>{"use strict";f.d(W,{Zl:()=>ge,aT:()=>je,b8:()=>Gt,oO:()=>ct});var u=f(94650),d=f(32233),v=f(36895),g=f(21281),t=f(7625),T=f(11481);let B=(()=>{class Qt extends d.iR{constructor(ie,Wt,se,Xt,ae,De,nn){super(ie,null,Wt,se),this.ngClassInstance=nn,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(Xt,ae,ie,De)),this.init(),this.setValue("","")}set klass(ie){this.ngClassInstance.klass=ie,this.setValue(ie,"")}updateWithValue(ie){this.ngClassInstance.ngClass=ie,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(u.Y36(u.SBq),u.Y36(d.RK),u.Y36(d.yB),u.Y36(u.ZZ4),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(v.mk,10))},Qt.\u0275dir=u.lG2({type:Qt,inputs:{klass:["class","klass"]},features:[u.qOj]}),Qt})();const K=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ct=(()=>{class Qt extends B{constructor(){super(...arguments),this.inputs=K}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275dir=u.lG2({type:Qt,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[u.qOj]}),Qt})(),lt=(()=>{class Qt extends d.QI{buildStyles(ie,Wt){return{display:"true"===ie?Wt.display||(Wt.isServer?"initial":""):"none"}}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275prov=u.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"}),Qt})(),Ct=(()=>{class Qt extends d.iR{constructor(ie,Wt,se,Xt,ae,De,nn){super(ie,Wt,se,Xt),this.layoutConfig=ae,this.platformId=De,this.serverModuleLoaded=nn,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ie=Array.from(this.nativeElement.children);for(let se=0;se{if(-1!==this.inputs.indexOf(Wt)){const se=Wt.split("."),Xt=se.slice(1).join("."),ae=ie[Wt].currentValue;let De=""===ae||0!==ae&&(0,g.Ig)(ae);"fxHide"===se[0]&&(De=!De),this.setValue(De,Xt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ie=>{this.marshal.trackValue(this.nativeElement,ie).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(ie=!0){if(""===ie)return;const Wt=(0,v.PM)(this.platformId);this.addStyles(ie?"true":"false",{display:this.display,isServer:Wt}),Wt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(u.Y36(u.SBq),u.Y36(lt),u.Y36(d.RK),u.Y36(d.yB),u.Y36(d.WU),u.Y36(u.Lbi),u.Y36(d.wY))},Qt.\u0275dir=u.lG2({type:Qt,features:[u.qOj,u.TTD]}),Qt})();const Dt=new WeakMap,Zt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Gt=(()=>{class Qt extends Ct{constructor(){super(...arguments),this.inputs=Zt}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275dir=u.lG2({type:Qt,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[u.qOj]}),Qt})();class Tt{constructor(Ue,ie,Wt=!0){this.key=Ue,this.value=ie,this.key=Wt?Ue.replace(/['"]/g,"").trim():Ue.trim(),this.value=Wt?ie.replace(/['"]/g,"").trim():ie.trim(),this.value=this.value.replace(/;/,"")}}function Ut(Qt){let Ue=typeof Qt;return"object"===Ue?Qt.constructor===Array?"array":Qt.constructor===Set?"set":"object":Ue}function Bt(Qt){const[Ue,...ie]=Qt.split(":");return new Tt(Ue,ie.join(":"))}function kt(Qt,Ue){return Ue.key&&(Qt[Ue.key]=Ue.value),Qt}let le=(()=>{class Qt extends d.iR{constructor(ie,Wt,se,Xt,ae,De,nn,hn,Ce){super(ie,null,Wt,se),this.sanitizer=Xt,this.ngStyleInstance=nn,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(ie,ae,De)),this.init();const bn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(bn),this.isServer=hn&&(0,v.PM)(Ce)}updateWithValue(ie){const Wt=this.buildStyleMap(ie);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Wt},this.isServer&&this.applyStyleToElement(Wt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ie){const Wt=se=>this.sanitizer.sanitize(u.q3G.STYLE,se)??"";if(ie)switch(Ut(ie)){case"string":return Fe(function bt(Qt,Ue=";"){return String(Qt).trim().split(Ue).map(ie=>ie.trim()).filter(ie=>""!==ie)}(ie),Wt);case"array":return Fe(ie,Wt);default:return function Lt(Qt,Ue){let ie=[];return"set"===Ut(Qt)?Qt.forEach(Wt=>ie.push(Wt)):Object.keys(Qt).forEach(Wt=>{ie.push(`${Wt}:${Qt[Wt]}`)}),function mt(Qt,Ue){return Qt.map(Bt).filter(Wt=>!!Wt).map(Wt=>(Ue&&(Wt.value=Ue(Wt.value)),Wt)).reduce(kt,{})}(ie,Ue)}(ie,Wt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(u.Y36(u.SBq),u.Y36(d.RK),u.Y36(d.yB),u.Y36(T.H7),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(v.PC,10),u.Y36(d.wY),u.Y36(u.Lbi))},Qt.\u0275dir=u.lG2({type:Qt,features:[u.qOj]}),Qt})();const Vt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let ge=(()=>{class Qt extends le{constructor(){super(...arguments),this.inputs=Vt}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275dir=u.lG2({type:Qt,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[u.qOj]}),Qt})();function Fe(Qt,Ue){return Qt.map(Bt).filter(Wt=>!!Wt).map(Wt=>(Ue&&(Wt.value=Ue(Wt.value)),Wt)).reduce(kt,{})}let je=(()=>{class Qt{}return Qt.\u0275fac=function(ie){return new(ie||Qt)},Qt.\u0275mod=u.oAB({type:Qt}),Qt.\u0275inj=u.cJS({imports:[d.IR]}),Qt})()},1576:(tt,W,f)=>{"use strict";f.d(W,{SQ:()=>Ct,Wh:()=>mi,XD:()=>ot,ae:()=>tn,s9:()=>Ht,xw:()=>L,yH:()=>be});var u=f(94650),d=f(40445),v=f(32233),g=f(85863),t=f(8929),T=f(7625);let U=(()=>{class ce extends v.QI{buildStyles(oe,{display:rn}){const gn=(0,g.Ar)(oe);return{...gn,display:"none"===rn?rn:gn.display}}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let O=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn,xe){super(oe,gn,rn,cn),this._config=xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(oe){const gn=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=N.get(gn)??new Map,N.set(gn,this.styleCache),this.currentValue!==oe&&(this.addStyles(oe,{display:gn}),this.currentValue=oe)}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(U),u.Y36(v.yB),u.Y36(v.WU))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})(),L=(()=>{class ce extends O{constructor(){super(...arguments),this.inputs=w}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[u.qOj]}),ce})();const N=new Map,B={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let K=(()=>{class ce extends v.QI{constructor(oe,rn){super(),this._styler=oe,this._config=rn}buildStyles(oe,rn){return oe.endsWith(Tt)?(oe=oe.slice(0,oe.indexOf(Tt)),function bt(ce,Be){const[oe,rn]=ce.split(" "),cn=zt=>`-${zt}`;let xe="0px",It=cn(rn??oe),Le="0px";return"rtl"===Be?Le=cn(oe):xe=cn(oe),{margin:`0px ${xe} ${It} ${Le}`}}(oe=(0,v.FL)(oe,this._config.multiplier),rn.directionality)):{}}sideEffect(oe,rn,gn){const cn=gn.items;if(oe.endsWith(Tt)){oe=oe.slice(0,oe.indexOf(Tt));const xe=function Ut(ce,Be){const[oe,rn]=ce.split(" ");let cn="0px",It="0px";return"rtl"===Be?It=oe:cn=oe,{padding:`0px ${cn} ${rn??oe} ${It}`}}(oe=(0,v.FL)(oe,this._config.multiplier),gn.directionality);this._styler.applyStyleToElements(xe,gn.items)}else{oe=(0,v.FL)(oe,this._config.multiplier),oe=this.addFallbackUnit(oe);const xe=cn.pop(),It=function Lt(ce,Be){const oe=mt(Be.directionality,Be.layout),rn={...B};return rn[oe]=ce,rn}(oe,gn);this._styler.applyStyleToElements(It,cn),this._styler.applyStyleToElements(B,[xe])}}addFallbackUnit(oe){return isNaN(+oe)?oe:`${oe}${this._config.defaultUnit}`}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.LFG(v.RK),u.LFG(v.WU))},ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const et=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let lt=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn,xe,It){super(oe,xe,cn,It),this.zone=rn,this.directionality=gn,this.styleUtils=cn,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Le=[this.directionality.change,this.observerSubject.asObservable()];this.init(Le),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const oe=this.nativeElement.children,rn=[];for(let gn=oe.length;gn--;)rn[gn]=oe[gn];return rn}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(oe){const gn=oe.value.split(" ");this.layout=gn[0],g.iQ.find(cn=>cn===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(oe){const rn=this.childrenNodes.filter(gn=>1===gn.nodeType&&this.willDisplay(gn)).sort((gn,cn)=>{const xe=+this.styler.lookupStyle(gn,"order"),It=+this.styler.lookupStyle(cn,"order");return isNaN(xe)||isNaN(It)||xe===It?0:xe>It?1:-1});if(rn.length>0){const gn=this.directionality.value,cn=this.layout;"row"===cn&&"rtl"===gn?this.styleCache=Dt:"row"===cn&&"rtl"!==gn?this.styleCache=Rt:"column"===cn&&"rtl"===gn?this.styleCache=Zt:"column"===cn&&"rtl"!==gn&&(this.styleCache=Gt),this.addStyles(oe,{directionality:gn,items:rn,layout:cn})}}clearStyles(){const oe=Object.keys(this.mru).length>0,rn=oe?"padding":mt(this.directionality.value,this.layout);oe&&super.clearStyles(),this.styleUtils.applyStyleToElements({[rn]:""},this.childrenNodes)}willDisplay(oe){const rn=this.marshal.getValue(oe,"show-hide");return!0===rn||void 0===rn&&"none"!==this.styleUtils.lookupStyle(oe,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(oe=>{oe.some(gn=>gn.addedNodes&&gn.addedNodes.length>0||gn.removedNodes&&gn.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(d.Is),u.Y36(v.RK),u.Y36(K),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})(),Ct=(()=>{class ce extends lt{constructor(){super(...arguments),this.inputs=et}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[u.qOj]}),ce})();const Dt=new Map,Zt=new Map,Rt=new Map,Gt=new Map,Tt=" grid";function mt(ce,Be){switch(Be){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===ce?"margin-left":"margin-right";case"row-reverse":return"rtl"===ce?"margin-right":"margin-left"}}let Bt=(()=>{class ce extends v.QI{constructor(oe){super(),this.layoutConfig=oe}buildStyles(oe,rn){let[gn,cn,...xe]=oe.split(" "),It=xe.join(" ");const Le=rn.direction.indexOf("column")>-1?"column":"row",zt=(0,g.tj)(Le)?"max-width":"max-height",we=(0,g.tj)(Le)?"min-width":"min-height",He=String(It).indexOf("calc")>-1,kn=He||"auto"===It,Ei=String(It).indexOf("%")>-1&&!He,Bi=String(It).indexOf("px")>-1||String(It).indexOf("rem")>-1||String(It).indexOf("em")>-1||String(It).indexOf("vw")>-1||String(It).indexOf("vh")>-1;let un=He||Bi;gn="0"==gn?0:gn,cn="0"==cn?0:cn;const _n=!gn&&!cn;let Ke={};const ai={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(It||""){case"":const xi=!1!==this.layoutConfig.useColumnBasisZero;It="row"===Le?"0%":xi?"0.000000001px":"auto";break;case"initial":case"nogrow":gn=0,It="auto";break;case"grow":It="100%";break;case"noshrink":cn=0,It="auto";break;case"auto":break;case"none":gn=0,cn=0,It="auto";break;default:!un&&!Ei&&!isNaN(It)&&(It+="%"),"0%"===It&&(un=!0),"0px"===It&&(It="0%"),Ke=(0,g.kt)(ai,He?{"flex-grow":gn,"flex-shrink":cn,"flex-basis":un?It:"100%"}:{flex:`${gn} ${cn} ${un?It:"100%"}`})}return Ke.flex||Ke["flex-grow"]||(Ke=(0,g.kt)(ai,He?{"flex-grow":gn,"flex-shrink":cn,"flex-basis":It}:{flex:`${gn} ${cn} ${It}`})),"0%"!==It&&"0px"!==It&&"0.000000001px"!==It&&"auto"!==It&&(Ke[we]=_n||un&&gn?It:null,Ke[zt]=_n||!kn&&cn?It:null),Ke[we]||Ke[zt]?rn.hasWrap&&(Ke[He?"flex-basis":"flex"]=Ke[zt]?He?Ke[zt]:`${gn} ${cn} ${Ke[zt]}`:He?Ke[we]:`${gn} ${cn} ${Ke[we]}`):Ke=(0,g.kt)(ai,He?{"flex-grow":gn,"flex-shrink":cn,"flex-basis":It}:{flex:`${gn} ${cn} ${It}`}),(0,g.kt)(Ke,{"box-sizing":"border-box"})}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.LFG(v.WU))},ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const kt=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Vt=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn,xe){super(oe,cn,rn,xe),this.layoutConfig=gn,this.marshal=xe,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(oe){this.flexShrink=oe||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(oe){this.flexGrow=oe||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,T.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(oe){const gn=oe.value.split(" ");this.direction=gn[0],this.wrap=void 0!==gn[1]&&"wrap"===gn[1],this.triggerUpdate()}updateWithValue(oe){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const gn=this.direction,cn=gn.startsWith("row"),xe=this.wrap;cn&&xe?this.styleCache=qe:cn&&!xe?this.styleCache=ge:!cn&&xe?this.styleCache=je:!cn&&!xe&&(this.styleCache=Fe);const It=String(oe).replace(";",""),Le=(0,v.Ot)(It,this.flexGrow,this.flexShrink);this.addStyles(Le.join(" "),{direction:gn,hasWrap:xe})}triggerReflow(){const oe=this.activatedValue;if(void 0!==oe){const rn=(0,v.Ot)(oe+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,rn.join(" "))}}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(v.WU),u.Y36(Bt),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[u.qOj]}),ce})(),be=(()=>{class ce extends Vt{constructor(){super(...arguments),this.inputs=kt}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[u.qOj]}),ce})();const ge=new Map,Fe=new Map,qe=new Map,je=new Map;let ii=(()=>{class ce extends v.QI{buildStyles(oe){const rn={};switch(oe=oe||"stretch"){case"start":rn["align-self"]="flex-start";break;case"end":rn["align-self"]="flex-end";break;default:rn["align-self"]=oe}return rn}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const _i=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let We=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn){super(oe,gn,rn,cn),this.DIRECTIVE_KEY="flex-align",this.styleCache=ee,this.init()}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(ii),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})();const ee=new Map;let ot=(()=>{class ce extends We{constructor(){super(...arguments),this.inputs=_i}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[u.qOj]}),ce})();const X={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let At=(()=>{class ce extends v.QI{buildStyles(oe){return X}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),Ht=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn){super(oe,gn,rn,cn),this.styleCache=ue,this.addStyles("")}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(At),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[u.qOj]}),ce})();const ue=new Map;let ye=(()=>{class ce extends v.QI{buildStyles(oe,rn){const gn={},[cn,xe]=oe.split(" ");switch(cn){case"center":gn["justify-content"]="center";break;case"space-around":gn["justify-content"]="space-around";break;case"space-between":gn["justify-content"]="space-between";break;case"space-evenly":gn["justify-content"]="space-evenly";break;case"end":case"flex-end":gn["justify-content"]="flex-end";break;default:gn["justify-content"]="flex-start"}switch(xe){case"start":case"flex-start":gn["align-items"]=gn["align-content"]="flex-start";break;case"center":gn["align-items"]=gn["align-content"]="center";break;case"end":case"flex-end":gn["align-items"]=gn["align-content"]="flex-end";break;case"space-between":gn["align-content"]="space-between",gn["align-items"]="stretch";break;case"space-around":gn["align-content"]="space-around",gn["align-items"]="stretch";break;case"baseline":gn["align-content"]="stretch",gn["align-items"]="baseline";break;default:gn["align-items"]=gn["align-content"]="stretch"}return(0,g.kt)(gn,{display:rn.inline?"inline-flex":"flex","flex-direction":rn.layout,"box-sizing":"border-box","max-width":"stretch"===xe?(0,g.tj)(rn.layout)?null:"100%":null,"max-height":"stretch"===xe&&(0,g.tj)(rn.layout)?"100%":null})}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const Se=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let qn=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn){super(oe,gn,rn,cn),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(oe){const rn=this.layout||"row",gn=this.inline;"row"===rn&&gn?this.styleCache=Bn:"row"!==rn||gn?"row-reverse"===rn&&gn?this.styleCache=xn:"row-reverse"!==rn||gn?"column"===rn&&gn?this.styleCache=Qe:"column"!==rn||gn?"column-reverse"===rn&&gn?this.styleCache=Ve:"column-reverse"===rn&&!gn&&(this.styleCache=zn):this.styleCache=bo:this.styleCache=hi:this.styleCache=Di,this.addStyles(oe,{layout:rn,inline:gn})}onLayoutChange(oe){const rn=oe.value.split(" ");this.layout=rn[0],this.inline=oe.value.includes("inline"),g.iQ.find(gn=>gn===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(ye),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})(),mi=(()=>{class ce extends qn{constructor(){super(...arguments),this.inputs=Se}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[u.qOj]}),ce})();const Di=new Map,bo=new Map,hi=new Map,zn=new Map,Bn=new Map,Qe=new Map,xn=new Map,Ve=new Map;let tn=(()=>{class ce{}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=u.oAB({type:ce}),ce.\u0275inj=u.cJS({imports:[v.IR,d.vT]}),ce})()},24006:(tt,W,f)=>{"use strict";f.d(W,{CE:()=>Ys,Cf:()=>Ct,F:()=>fr,Fd:()=>Ya,Fj:()=>K,JJ:()=>oi,JL:()=>We,JU:()=>w,NI:()=>Or,On:()=>us,Q7:()=>zs,QS:()=>Wr,UX:()=>cl,Zs:()=>ds,_Y:()=>Hs,a5:()=>dn,kI:()=>Rt,nD:()=>Ks,nJ:()=>we,oH:()=>Ws,p4:()=>cc,qQ:()=>xr,qu:()=>la,sg:()=>$u,u:()=>wl,u5:()=>Ec,wV:()=>Lr,x0:()=>Ss});var u=f(94650),d=f(36895),v=f(5254),g=f(30567),t=f(24850);let T=(()=>{class re{constructor(Nt,nt){this._renderer=Nt,this._elementRef=nt,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Nt,nt){this._renderer.setProperty(this._elementRef.nativeElement,Nt,nt)}registerOnTouched(Nt){this.onTouched=Nt}registerOnChange(Nt){this.onChange=Nt}setDisabledState(Nt){this.setProperty("disabled",Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(u.Qsj),u.Y36(u.SBq))},re.\u0275dir=u.lG2({type:re}),re})(),U=(()=>{class re extends T{}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,features:[u.qOj]}),re})();const w=new u.OlP("NgValueAccessor"),L={provide:w,useExisting:(0,u.Gpc)(()=>K),multi:!0},B=new u.OlP("CompositionEventMode");let K=(()=>{class re extends T{constructor(Nt,nt,wi){super(Nt,nt),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const re=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(re.toLowerCase())}())}writeValue(Nt){this.setProperty("value",Nt??"")}_handleInput(Nt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Nt)}_compositionStart(){this._composing=!0}_compositionEnd(Nt){this._composing=!1,this._compositionMode&&this.onChange(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(B,8))},re.\u0275dir=u.lG2({type:re,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("input",function(zo){return nt._handleInput(zo.target.value)})("blur",function(){return nt.onTouched()})("compositionstart",function(){return nt._compositionStart()})("compositionend",function(zo){return nt._compositionEnd(zo.target.value)})},features:[u._Bn([L]),u.qOj]}),re})();function ct(re){return null==re||("string"==typeof re||Array.isArray(re))&&0===re.length}function lt(re){return null!=re&&"number"==typeof re.length}const Ct=new u.OlP("NgValidators"),Dt=new u.OlP("NgAsyncValidators"),Zt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rt{static min($t){return Gt($t)}static max($t){return Tt($t)}static required($t){return Ut($t)}static requiredTrue($t){return bt($t)}static email($t){return function mt(re){return ct(re.value)||Zt.test(re.value)?null:{email:!0}}($t)}static minLength($t){return function Lt(re){return $t=>ct($t.value)||!lt($t.value)?null:$t.value.length{if(ct(nt.value))return null;const wi=nt.value;return $t.test(wi)?null:{pattern:{requiredPattern:Nt,actualValue:wi}}}}($t)}static nullValidator($t){return null}static compose($t){return Qt($t)}static composeAsync($t){return ie($t)}}function Gt(re){return $t=>{if(ct($t.value)||ct(re))return null;const Nt=parseFloat($t.value);return!isNaN(Nt)&&Nt{if(ct($t.value)||ct(re))return null;const Nt=parseFloat($t.value);return!isNaN(Nt)&&Nt>re?{max:{max:re,actual:$t.value}}:null}}function Ut(re){return ct(re.value)?{required:!0}:null}function bt(re){return!0===re.value?null:{required:!0}}function Bt(re){return $t=>lt($t.value)&&$t.value.length>re?{maxlength:{requiredLength:re,actualLength:$t.value.length}}:null}function le(re){return null}function Vt(re){return null!=re}function be(re){return(0,u.QGY)(re)?(0,v.D)(re):re}function ge(re){let $t={};return re.forEach(Nt=>{$t=null!=Nt?{...$t,...Nt}:$t}),0===Object.keys($t).length?null:$t}function Fe(re,$t){return $t.map(Nt=>Nt(re))}function je(re){return re.map($t=>function qe(re){return!re.validate}($t)?$t:Nt=>$t.validate(Nt))}function Qt(re){if(!re)return null;const $t=re.filter(Vt);return 0==$t.length?null:function(Nt){return ge(Fe(Nt,$t))}}function Ue(re){return null!=re?Qt(je(re)):null}function ie(re){if(!re)return null;const $t=re.filter(Vt);return 0==$t.length?null:function(Nt){const nt=Fe(Nt,$t).map(be);return(0,g.D)(nt).pipe((0,t.U)(ge))}}function Wt(re){return null!=re?ie(je(re)):null}function se(re,$t){return null===re?[$t]:Array.isArray(re)?[...re,$t]:[re,$t]}function Xt(re){return re._rawValidators}function ae(re){return re._rawAsyncValidators}function De(re){return re?Array.isArray(re)?re:[re]:[]}function nn(re,$t){return Array.isArray(re)?re.includes($t):re===$t}function hn(re,$t){const Nt=De($t);return De(re).forEach(wi=>{nn(Nt,wi)||Nt.push(wi)}),Nt}function Ce(re,$t){return De($t).filter(Nt=>!nn(re,Nt))}class bn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators($t){this._rawValidators=$t||[],this._composedValidatorFn=Ue(this._rawValidators)}_setAsyncValidators($t){this._rawAsyncValidators=$t||[],this._composedAsyncValidatorFn=Wt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy($t){this._onDestroyCallbacks.push($t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach($t=>$t()),this._onDestroyCallbacks=[]}reset($t){this.control&&this.control.reset($t)}hasError($t,Nt){return!!this.control&&this.control.hasError($t,Nt)}getError($t,Nt){return this.control?this.control.getError($t,Nt):null}}class Oe extends bn{get formDirective(){return null}get path(){return null}}class dn extends bn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pn{constructor($t){this._cd=$t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let oi=(()=>{class re extends Pn{constructor(Nt){super(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(dn,2))},re.\u0275dir=u.lG2({type:re,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Nt,nt){2&Nt&&u.ekj("ng-untouched",nt.isUntouched)("ng-touched",nt.isTouched)("ng-pristine",nt.isPristine)("ng-dirty",nt.isDirty)("ng-valid",nt.isValid)("ng-invalid",nt.isInvalid)("ng-pending",nt.isPending)},features:[u.qOj]}),re})(),We=(()=>{class re extends Pn{constructor(Nt){super(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Nt,nt){2&Nt&&u.ekj("ng-untouched",nt.isUntouched)("ng-touched",nt.isTouched)("ng-pristine",nt.isPristine)("ng-dirty",nt.isDirty)("ng-valid",nt.isValid)("ng-invalid",nt.isInvalid)("ng-pending",nt.isPending)("ng-submitted",nt.isSubmitted)},features:[u.qOj]}),re})();const Ve="VALID",Ne="INVALID",tn="PENDING",ce="DISABLED";function Be(re){return(cn(re)?re.validators:re)||null}function oe(re){return Array.isArray(re)?Ue(re):re||null}function rn(re,$t){return(cn($t)?$t.asyncValidators:re)||null}function gn(re){return Array.isArray(re)?Wt(re):re||null}function cn(re){return null!=re&&!Array.isArray(re)&&"object"==typeof re}function xe(re,$t,Nt){const nt=re.controls;if(!($t?Object.keys(nt):nt).length)throw new u.vHH(1e3,"");if(!nt[Nt])throw new u.vHH(1001,"")}function It(re,$t,Nt){re._forEachChild((nt,wi)=>{if(void 0===Nt[wi])throw new u.vHH(1002,"")})}class Le{constructor($t,Nt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=$t,this._rawAsyncValidators=Nt,this._composedValidatorFn=oe(this._rawValidators),this._composedAsyncValidatorFn=gn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator($t){this._rawValidators=this._composedValidatorFn=$t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator($t){this._rawAsyncValidators=this._composedAsyncValidatorFn=$t}get parent(){return this._parent}get valid(){return this.status===Ve}get invalid(){return this.status===Ne}get pending(){return this.status==tn}get disabled(){return this.status===ce}get enabled(){return this.status!==ce}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators($t){this._rawValidators=$t,this._composedValidatorFn=oe($t)}setAsyncValidators($t){this._rawAsyncValidators=$t,this._composedAsyncValidatorFn=gn($t)}addValidators($t){this.setValidators(hn($t,this._rawValidators))}addAsyncValidators($t){this.setAsyncValidators(hn($t,this._rawAsyncValidators))}removeValidators($t){this.setValidators(Ce($t,this._rawValidators))}removeAsyncValidators($t){this.setAsyncValidators(Ce($t,this._rawAsyncValidators))}hasValidator($t){return nn(this._rawValidators,$t)}hasAsyncValidator($t){return nn(this._rawAsyncValidators,$t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched($t={}){this.touched=!0,this._parent&&!$t.onlySelf&&this._parent.markAsTouched($t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild($t=>$t.markAllAsTouched())}markAsUntouched($t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Nt=>{Nt.markAsUntouched({onlySelf:!0})}),this._parent&&!$t.onlySelf&&this._parent._updateTouched($t)}markAsDirty($t={}){this.pristine=!1,this._parent&&!$t.onlySelf&&this._parent.markAsDirty($t)}markAsPristine($t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Nt=>{Nt.markAsPristine({onlySelf:!0})}),this._parent&&!$t.onlySelf&&this._parent._updatePristine($t)}markAsPending($t={}){this.status=tn,!1!==$t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!$t.onlySelf&&this._parent.markAsPending($t)}disable($t={}){const Nt=this._parentMarkedDirty($t.onlySelf);this.status=ce,this.errors=null,this._forEachChild(nt=>{nt.disable({...$t,onlySelf:!0})}),this._updateValue(),!1!==$t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...$t,skipPristineCheck:Nt}),this._onDisabledChange.forEach(nt=>nt(!0))}enable($t={}){const Nt=this._parentMarkedDirty($t.onlySelf);this.status=Ve,this._forEachChild(nt=>{nt.enable({...$t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent}),this._updateAncestors({...$t,skipPristineCheck:Nt}),this._onDisabledChange.forEach(nt=>nt(!1))}_updateAncestors($t){this._parent&&!$t.onlySelf&&(this._parent.updateValueAndValidity($t),$t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent($t){this._parent=$t}getRawValue(){return this.value}updateValueAndValidity($t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ve||this.status===tn)&&this._runAsyncValidator($t.emitEvent)),!1!==$t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!$t.onlySelf&&this._parent.updateValueAndValidity($t)}_updateTreeValidity($t={emitEvent:!0}){this._forEachChild(Nt=>Nt._updateTreeValidity($t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ce:Ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator($t){if(this.asyncValidator){this.status=tn,this._hasOwnPendingAsyncValidator=!0;const Nt=be(this.asyncValidator(this));this._asyncValidationSubscription=Nt.subscribe(nt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(nt,{emitEvent:$t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors($t,Nt={}){this.errors=$t,this._updateControlsErrors(!1!==Nt.emitEvent)}get($t){let Nt=$t;return null==Nt||(Array.isArray(Nt)||(Nt=Nt.split(".")),0===Nt.length)?null:Nt.reduce((nt,wi)=>nt&&nt._find(wi),this)}getError($t,Nt){const nt=Nt?this.get(Nt):this;return nt&&nt.errors?nt.errors[$t]:null}hasError($t,Nt){return!!this.getError($t,Nt)}get root(){let $t=this;for(;$t._parent;)$t=$t._parent;return $t}_updateControlsErrors($t){this.status=this._calculateStatus(),$t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors($t)}_initObservables(){this.valueChanges=new u.vpe,this.statusChanges=new u.vpe}_calculateStatus(){return this._allControlsDisabled()?ce:this.errors?Ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tn)?tn:this._anyControlsHaveStatus(Ne)?Ne:Ve}_anyControlsHaveStatus($t){return this._anyControls(Nt=>Nt.status===$t)}_anyControlsDirty(){return this._anyControls($t=>$t.dirty)}_anyControlsTouched(){return this._anyControls($t=>$t.touched)}_updatePristine($t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!$t.onlySelf&&this._parent._updatePristine($t)}_updateTouched($t={}){this.touched=this._anyControlsTouched(),this._parent&&!$t.onlySelf&&this._parent._updateTouched($t)}_registerOnCollectionChange($t){this._onCollectionChange=$t}_setUpdateStrategy($t){cn($t)&&null!=$t.updateOn&&(this._updateOn=$t.updateOn)}_parentMarkedDirty($t){return!$t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find($t){return null}}class zt extends Le{constructor($t,Nt,nt){super(Be(Nt),rn(nt,Nt)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Nt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl($t,Nt){return this.controls[$t]?this.controls[$t]:(this.controls[$t]=Nt,Nt.setParent(this),Nt._registerOnCollectionChange(this._onCollectionChange),Nt)}addControl($t,Nt,nt={}){this.registerControl($t,Nt),this.updateValueAndValidity({emitEvent:nt.emitEvent}),this._onCollectionChange()}removeControl($t,Nt={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],this.updateValueAndValidity({emitEvent:Nt.emitEvent}),this._onCollectionChange()}setControl($t,Nt,nt={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],Nt&&this.registerControl($t,Nt),this.updateValueAndValidity({emitEvent:nt.emitEvent}),this._onCollectionChange()}contains($t){return this.controls.hasOwnProperty($t)&&this.controls[$t].enabled}setValue($t,Nt={}){It(this,0,$t),Object.keys($t).forEach(nt=>{xe(this,!0,nt),this.controls[nt].setValue($t[nt],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt)}patchValue($t,Nt={}){null!=$t&&(Object.keys($t).forEach(nt=>{const wi=this.controls[nt];wi&&wi.patchValue($t[nt],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt))}reset($t={},Nt={}){this._forEachChild((nt,wi)=>{nt.reset($t[wi],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this._updatePristine(Nt),this._updateTouched(Nt),this.updateValueAndValidity(Nt)}getRawValue(){return this._reduceChildren({},($t,Nt,nt)=>($t[nt]=Nt.getRawValue(),$t))}_syncPendingControls(){let $t=this._reduceChildren(!1,(Nt,nt)=>!!nt._syncPendingControls()||Nt);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){Object.keys(this.controls).forEach(Nt=>{const nt=this.controls[Nt];nt&&$t(nt,Nt)})}_setUpControls(){this._forEachChild($t=>{$t.setParent(this),$t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls($t){for(const[Nt,nt]of Object.entries(this.controls))if(this.contains(Nt)&&$t(nt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Nt,nt,wi)=>((nt.enabled||this.disabled)&&(Nt[wi]=nt.value),Nt))}_reduceChildren($t,Nt){let nt=$t;return this._forEachChild((wi,zo)=>{nt=Nt(nt,wi,zo)}),nt}_allControlsDisabled(){for(const $t of Object.keys(this.controls))if(this.controls[$t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find($t){return this.controls.hasOwnProperty($t)?this.controls[$t]:null}}const we=zt;class kn extends zt{}function Bi(re,$t){return[...$t.path,re]}function un(re,$t){xi(re,$t),$t.valueAccessor.writeValue(re.value),re.disabled&&$t.valueAccessor.setDisabledState?.(!0),function Co(re,$t){$t.valueAccessor.registerOnChange(Nt=>{re._pendingValue=Nt,re._pendingChange=!0,re._pendingDirty=!0,"change"===re.updateOn&&ma(re,$t)})}(re,$t),function Ta(re,$t){const Nt=(nt,wi)=>{$t.valueAccessor.writeValue(nt),wi&&$t.viewToModelUpdate(nt)};re.registerOnChange(Nt),$t._registerOnDestroy(()=>{re._unregisterOnChange(Nt)})}(re,$t),function So(re,$t){$t.valueAccessor.registerOnTouched(()=>{re._pendingTouched=!0,"blur"===re.updateOn&&re._pendingChange&&ma(re,$t),"submit"!==re.updateOn&&re.markAsTouched()})}(re,$t),function ai(re,$t){if($t.valueAccessor.setDisabledState){const Nt=nt=>{$t.valueAccessor.setDisabledState(nt)};re.registerOnDisabledChange(Nt),$t._registerOnDestroy(()=>{re._unregisterOnDisabledChange(Nt)})}}(re,$t)}function _n(re,$t,Nt=!0){const nt=()=>{};$t.valueAccessor&&($t.valueAccessor.registerOnChange(nt),$t.valueAccessor.registerOnTouched(nt)),co(re,$t),re&&($t._invokeOnDestroyCallbacks(),re._registerOnCollectionChange(()=>{}))}function Ke(re,$t){re.forEach(Nt=>{Nt.registerOnValidatorChange&&Nt.registerOnValidatorChange($t)})}function xi(re,$t){const Nt=Xt(re);null!==$t.validator?re.setValidators(se(Nt,$t.validator)):"function"==typeof Nt&&re.setValidators([Nt]);const nt=ae(re);null!==$t.asyncValidator?re.setAsyncValidators(se(nt,$t.asyncValidator)):"function"==typeof nt&&re.setAsyncValidators([nt]);const wi=()=>re.updateValueAndValidity();Ke($t._rawValidators,wi),Ke($t._rawAsyncValidators,wi)}function co(re,$t){let Nt=!1;if(null!==re){if(null!==$t.validator){const wi=Xt(re);if(Array.isArray(wi)&&wi.length>0){const zo=wi.filter(Aa=>Aa!==$t.validator);zo.length!==wi.length&&(Nt=!0,re.setValidators(zo))}}if(null!==$t.asyncValidator){const wi=ae(re);if(Array.isArray(wi)&&wi.length>0){const zo=wi.filter(Aa=>Aa!==$t.asyncValidator);zo.length!==wi.length&&(Nt=!0,re.setAsyncValidators(zo))}}}const nt=()=>{};return Ke($t._rawValidators,nt),Ke($t._rawAsyncValidators,nt),Nt}function ma(re,$t){re._pendingDirty&&re.markAsDirty(),re.setValue(re._pendingValue,{emitModelToViewChange:!1}),$t.viewToModelUpdate(re._pendingValue),re._pendingChange=!1}function Re(re,$t){xi(re,$t)}function Ft(re,$t){if(!re.hasOwnProperty("model"))return!1;const Nt=re.model;return!!Nt.isFirstChange()||!Object.is($t,Nt.currentValue)}function Et(re,$t){re._syncPendingControls(),$t.forEach(Nt=>{const nt=Nt.control;"submit"===nt.updateOn&&nt._pendingChange&&(Nt.viewToModelUpdate(nt._pendingValue),nt._pendingChange=!1)})}function ze(re,$t){if(!$t)return null;let Nt,nt,wi;return Array.isArray($t),$t.forEach(zo=>{zo.constructor===K?Nt=zo:function J(re){return Object.getPrototypeOf(re.constructor)===U}(zo)?nt=zo:wi=zo}),wi||nt||Nt||null}const To={provide:Oe,useExisting:(0,u.Gpc)(()=>fr)},_r=(()=>Promise.resolve())();let fr=(()=>{class re extends Oe{constructor(Nt,nt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new zt({},Ue(Nt),Wt(nt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path);Nt.control=nt.registerControl(Nt.name,Nt.control),un(Nt.control,Nt),Nt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Nt)})}getControl(Nt){return this.form.get(Nt.path)}removeControl(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path);nt&&nt.removeControl(Nt.name),this._directives.delete(Nt)})}addFormGroup(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path),wi=new zt({});Re(wi,Nt),nt.registerControl(Nt.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path);nt&&nt.removeControl(Nt.name)})}getFormGroup(Nt){return this.form.get(Nt.path)}updateModel(Nt,nt){_r.then(()=>{this.form.get(Nt.path).setValue(nt)})}setValue(Nt){this.control.setValue(Nt)}onSubmit(Nt){return this.submitted=!0,Et(this.form,this._directives),this.ngSubmit.emit(Nt),"dialog"===Nt?.target?.method}onReset(){this.resetForm()}resetForm(Nt){this.form.reset(Nt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Nt){return Nt.pop(),Nt.length?this.form.get(Nt):this.form}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("submit",function(zo){return nt.onSubmit(zo)})("reset",function(){return nt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([To]),u.qOj]}),re})();function jr(re,$t){const Nt=re.indexOf($t);Nt>-1&&re.splice(Nt,1)}function Ja(re){return"object"==typeof re&&null!==re&&2===Object.keys(re).length&&"value"in re&&"disabled"in re}const Or=class extends Le{constructor($t=null,Nt,nt){super(Be(Nt),rn(nt,Nt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState($t),this._setUpdateStrategy(Nt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cn(Nt)&&(Nt.nonNullable||Nt.initialValueIsDefault)&&(this.defaultValue=Ja($t)?$t.value:$t)}setValue($t,Nt={}){this.value=this._pendingValue=$t,this._onChange.length&&!1!==Nt.emitModelToViewChange&&this._onChange.forEach(nt=>nt(this.value,!1!==Nt.emitViewToModelChange)),this.updateValueAndValidity(Nt)}patchValue($t,Nt={}){this.setValue($t,Nt)}reset($t=this.defaultValue,Nt={}){this._applyFormState($t),this.markAsPristine(Nt),this.markAsUntouched(Nt),this.setValue(this.value,Nt),this._pendingChange=!1}_updateValue(){}_anyControls($t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange($t){this._onChange.push($t)}_unregisterOnChange($t){jr(this._onChange,$t)}registerOnDisabledChange($t){this._onDisabledChange.push($t)}_unregisterOnDisabledChange($t){jr(this._onDisabledChange,$t)}_forEachChild($t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState($t){Ja($t)?(this.value=this._pendingValue=$t.value,$t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=$t}},cc=Or;let ls=(()=>{class re extends Oe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Bi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,features:[u.qOj]}),re})();const Qs={provide:dn,useExisting:(0,u.Gpc)(()=>us)},Lc=(()=>Promise.resolve())();let us=(()=>{class re extends dn{constructor(Nt,nt,wi,zo,Aa){super(),this._changeDetectorRef=Aa,this.control=new Or,this._registered=!1,this.update=new u.vpe,this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi),this.valueAccessor=ze(0,zo)}ngOnChanges(Nt){if(this._checkForErrors(),!this._registered||"name"in Nt){if(this._registered&&(this._checkName(),this.formDirective)){const nt=Nt.name.previousValue;this.formDirective.removeControl({name:nt,path:this._getPath(nt)})}this._setUpControl()}"isDisabled"in Nt&&this._updateDisabled(Nt),Ft(Nt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Nt){this.viewModel=Nt,this.update.emit(Nt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){un(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Nt){Lc.then(()=>{this.control.setValue(Nt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Nt){const nt=Nt.isDisabled.currentValue,wi=0!==nt&&(0,u.D6c)(nt);Lc.then(()=>{wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Nt){return this._parent?Bi(Nt,this._parent):[Nt]}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,9),u.Y36(Ct,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(u.sBO,8))},re.\u0275dir=u.lG2({type:re,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u._Bn([Qs]),u.qOj,u.TTD]}),re})(),Hs=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275dir=u.lG2({type:re,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),re})();const t1={provide:w,useExisting:(0,u.Gpc)(()=>Lr),multi:!0};let Lr=(()=>{class re extends U{writeValue(Nt){this.setProperty("value",Nt??"")}registerOnChange(Nt){this.onChange=nt=>{Nt(""==nt?null:parseFloat(nt))}}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("input",function(zo){return nt.onChange(zo.target.value)})("blur",function(){return nt.onTouched()})},features:[u._Bn([t1]),u.qOj]}),re})(),Vc=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({}),re})();const js=new u.OlP("NgModelWithFormControlWarning"),xc={provide:dn,useExisting:(0,u.Gpc)(()=>Ws)};let Ws=(()=>{class re extends dn{constructor(Nt,nt,wi,zo){super(),this._ngModelWarningConfig=zo,this.update=new u.vpe,this._ngModelWarningSent=!1,this._setValidators(Nt),this._setAsyncValidators(nt),this.valueAccessor=ze(0,wi)}set isDisabled(Nt){}ngOnChanges(Nt){if(this._isControlChanged(Nt)){const nt=Nt.form.previousValue;nt&&_n(nt,this,!1),un(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ft(Nt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_n(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Nt){this.viewModel=Nt,this.update.emit(Nt)}_isControlChanged(Nt){return Nt.hasOwnProperty("form")}}return re._ngModelWarningSentOnce=!1,re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Ct,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(js,8))},re.\u0275dir=u.lG2({type:re,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u._Bn([xc]),u.qOj,u.TTD]}),re})();const sl={provide:Oe,useExisting:(0,u.Gpc)(()=>$u)};let $u=(()=>{class re extends Oe{constructor(Nt,nt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.vpe,this._setValidators(Nt),this._setAsyncValidators(nt)}ngOnChanges(Nt){this._checkFormPresent(),Nt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(co(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Nt){const nt=this.form.get(Nt.path);return un(nt,Nt),nt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Nt),nt}getControl(Nt){return this.form.get(Nt.path)}removeControl(Nt){_n(Nt.control||null,Nt,!1),function Vn(re,$t){const Nt=re.indexOf($t);Nt>-1&&re.splice(Nt,1)}(this.directives,Nt)}addFormGroup(Nt){this._setUpFormContainer(Nt)}removeFormGroup(Nt){this._cleanUpFormContainer(Nt)}getFormGroup(Nt){return this.form.get(Nt.path)}addFormArray(Nt){this._setUpFormContainer(Nt)}removeFormArray(Nt){this._cleanUpFormContainer(Nt)}getFormArray(Nt){return this.form.get(Nt.path)}updateModel(Nt,nt){this.form.get(Nt.path).setValue(nt)}onSubmit(Nt){return this.submitted=!0,Et(this.form,this.directives),this.ngSubmit.emit(Nt),"dialog"===Nt?.target?.method}onReset(){this.resetForm()}resetForm(Nt){this.form.reset(Nt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Nt=>{const nt=Nt.control,wi=this.form.get(Nt.path);nt!==wi&&(_n(nt||null,Nt),(re=>re instanceof Or)(wi)&&(un(wi,Nt),Nt.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Nt){const nt=this.form.get(Nt.path);Re(nt,Nt),nt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Nt){if(this.form){const nt=this.form.get(Nt.path);nt&&function Rn(re,$t){return co(re,$t)}(nt,Nt)&&nt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xi(this.form,this),this._oldForm&&co(this._oldForm,this)}_checkFormPresent(){}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formGroup",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("submit",function(zo){return nt.onSubmit(zo)})("reset",function(){return nt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([sl]),u.qOj,u.TTD]}),re})();const Yl={provide:Oe,useExisting:(0,u.Gpc)(()=>Ss)};let Ss=(()=>{class re extends ls{constructor(Nt,nt,wi){super(),this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi)}_checkParentType(){Jc(this._parent)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,13),u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[u._Bn([Yl]),u.qOj]}),re})();const Ul={provide:Oe,useExisting:(0,u.Gpc)(()=>Ys)};let Ys=(()=>{class re extends Oe{constructor(Nt,nt,wi){super(),this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Bi(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Jc(this._parent)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,13),u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[u._Bn([Ul]),u.qOj]}),re})();function Jc(re){return!(re instanceof Ss||re instanceof $u||re instanceof Ys)}const $s={provide:dn,useExisting:(0,u.Gpc)(()=>wl)};let wl=(()=>{class re extends dn{constructor(Nt,nt,wi,zo,Aa){super(),this._ngModelWarningConfig=Aa,this._added=!1,this.update=new u.vpe,this._ngModelWarningSent=!1,this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi),this.valueAccessor=ze(0,zo)}set isDisabled(Nt){}ngOnChanges(Nt){this._added||this._setUpControl(),Ft(Nt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Nt){this.viewModel=Nt,this.update.emit(Nt)}get path(){return Bi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return re._ngModelWarningSentOnce=!1,re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,13),u.Y36(Ct,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(js,8))},re.\u0275dir=u.lG2({type:re,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[u._Bn([$s]),u.qOj,u.TTD]}),re})();function Pr(re){return"number"==typeof re?re:parseFloat(re)}let dc=(()=>{class re{constructor(){this._validator=le}ngOnChanges(Nt){if(this.inputName in Nt){const nt=this.normalizeInput(Nt[this.inputName].currentValue);this._enabled=this.enabled(nt),this._validator=this._enabled?this.createValidator(nt):le,this._onChange&&this._onChange()}}validate(Nt){return this._validator(Nt)}registerOnValidatorChange(Nt){this._onChange=Nt}enabled(Nt){return null!=Nt}}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275dir=u.lG2({type:re,features:[u.TTD]}),re})();const Ha={provide:Ct,useExisting:(0,u.Gpc)(()=>Ya),multi:!0};let Ya=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Nt=>Pr(Nt),this.createValidator=Nt=>Tt(Nt)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("max",nt._enabled?nt.max:null)},inputs:{max:"max"},features:[u._Bn([Ha]),u.qOj]}),re})();const wr={provide:Ct,useExisting:(0,u.Gpc)(()=>xr),multi:!0};let xr=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Nt=>Pr(Nt),this.createValidator=Nt=>Gt(Nt)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("min",nt._enabled?nt.min:null)},inputs:{min:"min"},features:[u._Bn([wr]),u.qOj]}),re})();const ns={provide:Ct,useExisting:(0,u.Gpc)(()=>zs),multi:!0},jn={provide:Ct,useExisting:(0,u.Gpc)(()=>ds),multi:!0};let zs=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=Nt=>Ut}enabled(Nt){return Nt}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("required",nt._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([ns]),u.qOj]}),re})(),ds=(()=>{class re extends zs{constructor(){super(...arguments),this.createValidator=Nt=>bt}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("required",nt._enabled?"":null)},features:[u._Bn([jn]),u.qOj]}),re})();const ks={provide:Ct,useExisting:(0,u.Gpc)(()=>Ks),multi:!0};let Ks=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Nt=>function Vl(re){return"number"==typeof re?re:parseInt(re,10)}(Nt),this.createValidator=Nt=>Bt(Nt)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("maxlength",nt._enabled?nt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[u._Bn([ks]),u.qOj]}),re})(),zr=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[Vc]}),re})(),Ec=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[zr]}),re})(),cl=(()=>{class re{static withConfig(Nt){return{ngModule:re,providers:[{provide:js,useValue:Nt.warnOnNgModelWithFormControl}]}}}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[zr]}),re})();class Cc extends Le{constructor($t,Nt,nt){super(Be(Nt),rn(nt,Nt)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Nt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at($t){return this.controls[this._adjustIndex($t)]}push($t,Nt={}){this.controls.push($t),this._registerControl($t),this.updateValueAndValidity({emitEvent:Nt.emitEvent}),this._onCollectionChange()}insert($t,Nt,nt={}){this.controls.splice($t,0,Nt),this._registerControl(Nt),this.updateValueAndValidity({emitEvent:nt.emitEvent})}removeAt($t,Nt={}){let nt=this._adjustIndex($t);nt<0&&(nt=0),this.controls[nt]&&this.controls[nt]._registerOnCollectionChange(()=>{}),this.controls.splice(nt,1),this.updateValueAndValidity({emitEvent:Nt.emitEvent})}setControl($t,Nt,nt={}){let wi=this._adjustIndex($t);wi<0&&(wi=0),this.controls[wi]&&this.controls[wi]._registerOnCollectionChange(()=>{}),this.controls.splice(wi,1),Nt&&(this.controls.splice(wi,0,Nt),this._registerControl(Nt)),this.updateValueAndValidity({emitEvent:nt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue($t,Nt={}){It(this,0,$t),$t.forEach((nt,wi)=>{xe(this,!1,wi),this.at(wi).setValue(nt,{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt)}patchValue($t,Nt={}){null!=$t&&($t.forEach((nt,wi)=>{this.at(wi)&&this.at(wi).patchValue(nt,{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt))}reset($t=[],Nt={}){this._forEachChild((nt,wi)=>{nt.reset($t[wi],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this._updatePristine(Nt),this._updateTouched(Nt),this.updateValueAndValidity(Nt)}getRawValue(){return this.controls.map($t=>$t.getRawValue())}clear($t={}){this.controls.length<1||(this._forEachChild(Nt=>Nt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:$t.emitEvent}))}_adjustIndex($t){return $t<0?$t+this.length:$t}_syncPendingControls(){let $t=this.controls.reduce((Nt,nt)=>!!nt._syncPendingControls()||Nt,!1);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){this.controls.forEach((Nt,nt)=>{$t(Nt,nt)})}_updateValue(){this.value=this.controls.filter($t=>$t.enabled||this.disabled).map($t=>$t.value)}_anyControls($t){return this.controls.some(Nt=>Nt.enabled&&$t(Nt))}_setUpControls(){this._forEachChild($t=>this._registerControl($t))}_allControlsDisabled(){for(const $t of this.controls)if($t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl($t){$t.setParent(this),$t._registerOnCollectionChange(this._onCollectionChange)}_find($t){return this.at($t)??null}}function Qi(re){return!!re&&(void 0!==re.asyncValidators||void 0!==re.validators||void 0!==re.updateOn)}let la=(()=>{class re{constructor(){this.useNonNullable=!1}get nonNullable(){const Nt=new re;return Nt.useNonNullable=!0,Nt}group(Nt,nt=null){const wi=this._reduceControls(Nt);let zo={};return Qi(nt)?zo=nt:null!==nt&&(zo.validators=nt.validator,zo.asyncValidators=nt.asyncValidator),new zt(wi,zo)}record(Nt,nt=null){const wi=this._reduceControls(Nt);return new kn(wi,nt)}control(Nt,nt,wi){let zo={};return this.useNonNullable?(Qi(nt)?zo=nt:(zo.validators=nt,zo.asyncValidators=wi),new Or(Nt,{...zo,nonNullable:!0})):new Or(Nt,nt,wi)}array(Nt,nt,wi){const zo=Nt.map(Aa=>this._createControl(Aa));return new Cc(zo,nt,wi)}_reduceControls(Nt){const nt={};return Object.keys(Nt).forEach(wi=>{nt[wi]=this._createControl(Nt[wi])}),nt}_createControl(Nt){return Nt instanceof Or||Nt instanceof Le?Nt:Array.isArray(Nt)?this.control(Nt[0],Nt.length>1?Nt[1]:null,Nt.length>2?Nt[2]:null):this.control(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac,providedIn:cl}),re})(),Wr=(()=>{class re extends la{group(Nt,nt=null){return super.group(Nt,nt)}control(Nt,nt,wi){return super.control(Nt,nt,wi)}array(Nt,nt,wi){return super.array(Nt,nt,wi)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac,providedIn:cl}),re})()},47957:(tt,W,f)=>{"use strict";f.d(W,{Bb:()=>hn,XC:()=>je,ZL:()=>nn});var u=f(12687),d=f(21281),v=f(83353),g=f(94650),t=f(3238),T=f(42654),U=f(8929),w=f(88514),P=f(36787),O=f(21086),L=f(23753),N=f(36895),B=f(98184),K=f(67376),et=f(40445),ct=f(29521),lt=f(84080),Ct=f(24006),Dt=f(59549),Zt=f(1059),Rt=f(87545),Gt=f(72986),Tt=f(92198),Ut=f(24850),bt=f(22868),mt=f(18583);const Lt=["panel"];function Bt(Ce,bn){if(1&Ce&&(g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA()),2&Ce){const Oe=bn.id,dn=g.oxw();g.Q6J("id",dn.id)("ngClass",dn._classList),g.uIk("aria-label",dn.ariaLabel||null)("aria-labelledby",dn._getPanelAriaLabelledby(Oe))}}const kt=["*"];let le=0;class Vt{constructor(bn,Oe){this.source=bn,this.option=Oe}}const be=(0,t.Kr)(class{}),ge=new g.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Fe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let qe=(()=>{class Ce extends be{constructor(Oe,dn,Pn,ii){super(),this._changeDetectorRef=Oe,this._elementRef=dn,this._activeOptionChanges=T.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new g.vpe,this.opened=new g.vpe,this.closed=new g.vpe,this.optionActivated=new g.vpe,this._classList={},this.id="mat-autocomplete-"+le++,this.inertGroups=ii?.SAFARI||!1,this._autoActiveFirstOption=!!Pn.autoActiveFirstOption,this._autoSelectActiveOption=!!Pn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Oe){this._autoActiveFirstOption=(0,d.Ig)(Oe)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Oe){this._autoSelectActiveOption=(0,d.Ig)(Oe)}set classList(Oe){this._classList=Oe&&Oe.length?(0,d.du)(Oe).reduce((dn,Pn)=>(dn[Pn]=!0,dn),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new u.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Oe=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Oe]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Oe){this.panel&&(this.panel.nativeElement.scrollTop=Oe)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Oe){const dn=new Vt(this,Oe);this.optionSelected.emit(dn)}_getPanelAriaLabelledby(Oe){return this.ariaLabel?null:this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_setVisibilityClasses(Oe){Oe[this._visibleClass]=this.showPanel,Oe[this._hiddenClass]=!this.showPanel}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(g.Y36(g.sBO),g.Y36(g.SBq),g.Y36(ge),g.Y36(v.t4))},Ce.\u0275dir=g.lG2({type:Ce,viewQuery:function(Oe,dn){if(1&Oe&&(g.Gf(g.Rgc,7),g.Gf(Lt,5)),2&Oe){let Pn;g.iGM(Pn=g.CRH())&&(dn.template=Pn.first),g.iGM(Pn=g.CRH())&&(dn.panel=Pn.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[g.qOj]}),Ce})(),je=(()=>{class Ce extends qe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ce.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=g.n5z(Ce)))(dn||Ce)}}(),Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-autocomplete"]],contentQueries:function(Oe,dn,Pn){if(1&Oe&&(g.Suo(Pn,t.K7,5),g.Suo(Pn,t.ey,5)),2&Oe){let ii;g.iGM(ii=g.CRH())&&(dn.optionGroups=ii),g.iGM(ii=g.CRH())&&(dn.options=ii)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[g._Bn([{provide:t.HF,useExisting:Ce}]),g.qOj],ngContentSelectors:kt,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Oe,dn){1&Oe&&(g.F$t(),g.YNc(0,Bt,3,4,"ng-template"))},dependencies:[N.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Ce})();const ie=new g.OlP("mat-autocomplete-scroll-strategy"),se={provide:ie,deps:[B.aV],useFactory:function Wt(Ce){return()=>Ce.scrollStrategies.reposition()}},Xt={provide:Ct.JU,useExisting:(0,g.Gpc)(()=>nn),multi:!0};let De=(()=>{class Ce{constructor(Oe,dn,Pn,ii,_i,oi,We,ee,ot,X,At){this._element=Oe,this._overlay=dn,this._viewContainerRef=Pn,this._zone=ii,this._changeDetectorRef=_i,this._dir=We,this._formField=ee,this._document=ot,this._viewportRuler=X,this._defaults=At,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=T.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,w.P)(()=>{const Ht=this.autocomplete?this.autocomplete.options:null;return Ht?Ht.changes.pipe((0,Zt.O)(Ht),(0,Rt.w)(()=>(0,P.T)(...Ht.map(ue=>ue.onSelectionChange)))):this._zone.onStable.pipe((0,Gt.q)(1),(0,Rt.w)(()=>this.optionSelections))}),this._scrollStrategy=oi}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Oe){this._autocompleteDisabled=(0,d.Ig)(Oe)}ngAfterViewInit(){const Oe=this._getWindow();typeof Oe<"u"&&this._zone.runOutsideAngular(()=>Oe.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Oe){Oe.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Oe=this._getWindow();typeof Oe<"u"&&Oe.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,P.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Tt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Tt.h)(()=>this._overlayAttached)):(0,O.of)()).pipe((0,Ut.U)(Oe=>Oe instanceof t.rN?Oe:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,Tt.h)(Oe=>{const dn=(0,v.sA)(Oe),Pn=this._formField?this._formField._elementRef.nativeElement:null,ii=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&dn!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Pn||!Pn.contains(dn))&&(!ii||!ii.contains(dn))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(dn)}))}writeValue(Oe){Promise.resolve(null).then(()=>this._assignOptionValue(Oe))}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this._element.nativeElement.disabled=Oe}_handleKeydown(Oe){const dn=Oe.keyCode,Pn=(0,ct.Vb)(Oe);if(dn===ct.hY&&!Pn&&Oe.preventDefault(),this.activeOption&&dn===ct.K5&&this.panelOpen&&!Pn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Oe.preventDefault();else if(this.autocomplete){const ii=this.autocomplete._keyManager.activeItem,_i=dn===ct.LH||dn===ct.JH;dn===ct.Mf||_i&&!Pn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Oe):_i&&this._canOpen()&&this.openPanel(),(_i||this.autocomplete._keyManager.activeItem!==ii)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Oe){let dn=Oe.target,Pn=dn.value;"number"===dn.type&&(Pn=""==Pn?null:parseFloat(Pn)),this._previousValue!==Pn&&(this._previousValue=Pn,this._pendingAutoselectedOption=null,this._onChange(Pn),this._canOpen()&&this._document.activeElement===Oe.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Oe=!1){this._formField&&"auto"===this._formField.floatLabel&&(Oe?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Oe=this._zone.onStable.pipe((0,Gt.q)(1)),dn=this.autocomplete.options.changes.pipe((0,bt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,mt.g)(0));return(0,P.T)(Oe,dn).pipe((0,Rt.w)(()=>(this._zone.run(()=>{const Pn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Pn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Gt.q)(1)).subscribe(Pn=>this._setValueAndClose(Pn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Oe){const dn=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Oe):Oe;this._updateNativeInputValue(dn??"")}_updateNativeInputValue(Oe){this._formField?this._formField._control.value=Oe:this._element.nativeElement.value=Oe,this._previousValue=Oe}_setValueAndClose(Oe){const dn=Oe?Oe.source:this._pendingAutoselectedOption;dn&&(this._clearPreviousSelectedOption(dn),this._assignOptionValue(dn.value),this._onChange(dn.value),this.autocomplete._emitSelectEvent(dn),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Oe){this.autocomplete.options.forEach(dn=>{dn!==Oe&&dn.selected&&dn.deselect()})}_attachOverlay(){let Oe=this._overlayRef;Oe?(this._positionStrategy.setOrigin(this._getConnectedElement()),Oe.updateSize({width:this._getPanelWidth()})):(this._portal=new lt.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Oe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Oe,this._handleOverlayEvents(Oe),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Oe&&Oe.updateSize({width:this._getPanelWidth()})})),Oe&&!Oe.hasAttached()&&(Oe.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const dn=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&dn!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new B.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Oe=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Oe),this._positionStrategy=Oe,Oe}_setStrategyPositions(Oe){const dn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Pn=this._aboveClass,ii=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Pn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Pn}];let _i;_i="above"===this.position?ii:"below"===this.position?dn:[...dn,...ii],Oe.withPositions(_i)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Oe=this.autocomplete;Oe.autoActiveFirstOption?Oe._keyManager.setFirstItemActive():Oe._keyManager.setActiveItem(-1)}_canOpen(){const Oe=this._element.nativeElement;return!Oe.readOnly&&!Oe.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Oe){const dn=this.autocomplete,Pn=(0,t.CB)(Oe,dn.options,dn.optionGroups);if(0===Oe&&1===Pn)dn._setScrollTop(0);else if(dn.panel){const ii=dn.options.toArray()[Oe];if(ii){const _i=ii._getHostElement(),oi=(0,t.jH)(_i.offsetTop,_i.offsetHeight,dn._getScrollTop(),dn.panel.nativeElement.offsetHeight);dn._setScrollTop(oi)}}}_handleOverlayEvents(Oe){Oe.keydownEvents().subscribe(dn=>{(dn.keyCode===ct.hY&&!(0,ct.Vb)(dn)||dn.keyCode===ct.LH&&(0,ct.Vb)(dn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),dn.stopPropagation(),dn.preventDefault())}),Oe.outsidePointerEvents().subscribe()}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(g.Y36(g.SBq),g.Y36(B.aV),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(g.sBO),g.Y36(ie),g.Y36(et.Is,8),g.Y36(Dt.G_,9),g.Y36(N.K0,8),g.Y36(K.rL),g.Y36(ge,8))},Ce.\u0275dir=g.lG2({type:Ce,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[g.TTD]}),Ce})(),nn=(()=>{class Ce extends De{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ce.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=g.n5z(Ce)))(dn||Ce)}}(),Ce.\u0275dir=g.lG2({type:Ce,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Oe,dn){1&Oe&&g.NdJ("focusin",function(){return dn._handleFocus()})("blur",function(){return dn._onTouched()})("input",function(ii){return dn._handleInput(ii)})("keydown",function(ii){return dn._handleKeydown(ii)})("click",function(){return dn._handleClick()}),2&Oe&&g.uIk("autocomplete",dn.autocompleteAttribute)("role",dn.autocompleteDisabled?null:"combobox")("aria-autocomplete",dn.autocompleteDisabled?null:"list")("aria-activedescendant",dn.panelOpen&&dn.activeOption?dn.activeOption.id:null)("aria-expanded",dn.autocompleteDisabled?null:dn.panelOpen.toString())("aria-owns",dn.autocompleteDisabled||!dn.panelOpen||null==dn.autocomplete?null:dn.autocomplete.id)("aria-haspopup",dn.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[g._Bn([Xt]),g.qOj]}),Ce})(),hn=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[se],imports:[B.U8,t.Ng,t.BQ,N.ez,K.ZD,t.Ng,t.BQ]}),Ce})()},42673:(tt,W,f)=>{"use strict";f.d(W,{g:()=>P,k:()=>w});var u=f(94650),d=f(3238),v=f(12687),g=f(21281);let t=0;const T=(0,d.Id)(class{}),U="mat-badge-content";let w=(()=>{class O extends T{constructor(N,B,K,et,ct){super(),this._ngZone=N,this._elementRef=B,this._ariaDescriber=K,this._renderer=et,this._animationMode=ct,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(N){this._setColor(N),this._color=N}get overlap(){return this._overlap}set overlap(N){this._overlap=(0,g.Ig)(N)}get content(){return this._content}set content(N){this._updateRenderedContent(N)}get description(){return this._description}set description(N){this._updateHostAriaDescription(N)}get hidden(){return this._hidden}set hidden(N){this._hidden=(0,g.Ig)(N)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const N=this._renderer.createElement("span"),B="mat-badge-active";return N.setAttribute("id",`mat-badge-content-${this._id}`),N.setAttribute("aria-hidden","true"),N.classList.add(U),"NoopAnimations"===this._animationMode&&N.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(N),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{N.classList.add(B)})}):N.classList.add(B),N}_updateRenderedContent(N){const B=`${N??""}`.trim();this._isInitialized&&B&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=B),this._content=B}_updateHostAriaDescription(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),N&&this._ariaDescriber.describe(this._elementRef.nativeElement,N),this._description=N}_setColor(N){const B=this._elementRef.nativeElement.classList;B.remove(`mat-badge-${this._color}`),N&&B.add(`mat-badge-${N}`)}_clearExistingBadges(){const N=this._elementRef.nativeElement.querySelectorAll(`:scope > .${U}`);for(const B of Array.from(N))B!==this._badgeElement&&B.remove()}}return O.\u0275fac=function(N){return new(N||O)(u.Y36(u.R0b),u.Y36(u.SBq),u.Y36(v.$s),u.Y36(u.Qsj),u.Y36(u.QbO,8))},O.\u0275dir=u.lG2({type:O,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(N,B){2&N&&u.ekj("mat-badge-overlap",B.overlap)("mat-badge-above",B.isAbove())("mat-badge-below",!B.isAbove())("mat-badge-before",!B.isAfter())("mat-badge-after",B.isAfter())("mat-badge-small","small"===B.size)("mat-badge-medium","medium"===B.size)("mat-badge-large","large"===B.size)("mat-badge-hidden",B.hidden||!B.content)("mat-badge-disabled",B.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[u.qOj]}),O})(),P=(()=>{class O{}return O.\u0275fac=function(N){return new(N||O)},O.\u0275mod=u.oAB({type:O}),O.\u0275inj=u.cJS({imports:[v.rt,d.BQ,d.BQ]}),O})()},90811:(tt,W,f)=>{"use strict";f.d(W,{A9:()=>K,Yi:()=>ct,vV:()=>lt});var u=f(12687),d=f(21281),v=f(95017),g=f(94650),t=f(24006),T=f(3238);const U=["button"],w=["*"],P=new g.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),O=new g.OlP("MatButtonToggleGroup"),L={provide:t.JU,useExisting:(0,g.Gpc)(()=>K),multi:!0};let N=0;class B{constructor(Dt,Zt){this.source=Dt,this.value=Zt}}let K=(()=>{class Ct{constructor(Zt,Rt){this._changeDetector=Zt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+N++,this.valueChange=new g.vpe,this.change=new g.vpe,this.appearance=Rt&&Rt.appearance?Rt.appearance:"standard"}get name(){return this._name}set name(Zt){this._name=Zt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Zt){this._vertical=(0,d.Ig)(Zt)}get value(){const Zt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Zt.map(Rt=>Rt.value):Zt[0]?Zt[0].value:void 0}set value(Zt){this._setSelectionByValue(Zt),this.valueChange.emit(this.value)}get selected(){const Zt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Zt:Zt[0]||null}get multiple(){return this._multiple}set multiple(Zt){this._multiple=(0,d.Ig)(Zt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Zt){this._disabled=(0,d.Ig)(Zt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new v.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Zt=>Zt.checked))}writeValue(Zt){this.value=Zt,this._changeDetector.markForCheck()}registerOnChange(Zt){this._controlValueAccessorChangeFn=Zt}registerOnTouched(Zt){this._onTouched=Zt}setDisabledState(Zt){this.disabled=Zt}_emitChangeEvent(Zt){const Rt=new B(Zt,this.value);this._controlValueAccessorChangeFn(Rt.value),this.change.emit(Rt)}_syncButtonToggle(Zt,Rt,Gt=!1,Tt=!1){!this.multiple&&this.selected&&!Zt.checked&&(this.selected.checked=!1),this._selectionModel?Rt?this._selectionModel.select(Zt):this._selectionModel.deselect(Zt):Tt=!0,Tt?Promise.resolve().then(()=>this._updateModelValue(Zt,Gt)):this._updateModelValue(Zt,Gt)}_isSelected(Zt){return this._selectionModel&&this._selectionModel.isSelected(Zt)}_isPrechecked(Zt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(Rt=>null!=Zt.value&&Rt===Zt.value):Zt.value===this._rawValue)}_setSelectionByValue(Zt){this._rawValue=Zt,this._buttonToggles&&(this.multiple&&Zt?(Array.isArray(Zt),this._clearSelection(),Zt.forEach(Rt=>this._selectValue(Rt))):(this._clearSelection(),this._selectValue(Zt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Zt=>Zt.checked=!1)}_selectValue(Zt){const Rt=this._buttonToggles.find(Gt=>null!=Gt.value&&Gt.value===Zt);Rt&&(Rt.checked=!0,this._selectionModel.select(Rt))}_updateModelValue(Zt,Rt){Rt&&this._emitChangeEvent(Zt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Zt=>Zt._markForCheck())}}return Ct.\u0275fac=function(Zt){return new(Zt||Ct)(g.Y36(g.sBO),g.Y36(P,8))},Ct.\u0275dir=g.lG2({type:Ct,selectors:[["mat-button-toggle-group"]],contentQueries:function(Zt,Rt,Gt){if(1&Zt&&g.Suo(Gt,ct,5),2&Zt){let Tt;g.iGM(Tt=g.CRH())&&(Rt._buttonToggles=Tt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Zt,Rt){2&Zt&&(g.uIk("aria-disabled",Rt.disabled),g.ekj("mat-button-toggle-vertical",Rt.vertical)("mat-button-toggle-group-appearance-standard","standard"===Rt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[g._Bn([L,{provide:O,useExisting:Ct}])]}),Ct})();const et=(0,T.Kr)(class{});let ct=(()=>{class Ct extends et{constructor(Zt,Rt,Gt,Tt,Ut,bt){super(),this._changeDetectorRef=Rt,this._elementRef=Gt,this._focusMonitor=Tt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new g.vpe;const mt=Number(Ut);this.tabIndex=mt||0===mt?mt:null,this.buttonToggleGroup=Zt,this.appearance=bt&&bt.appearance?bt.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Zt){this._appearance=Zt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Zt){const Rt=(0,d.Ig)(Zt);Rt!==this._checked&&(this._checked=Rt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Zt){this._disabled=(0,d.Ig)(Zt)}ngOnInit(){const Zt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+N++,Zt&&(Zt._isPrechecked(this)?this.checked=!0:Zt._isSelected(this)!==this._checked&&Zt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Zt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Zt&&Zt._isSelected(this)&&Zt._syncButtonToggle(this,!1,!1,!0)}focus(Zt){this._buttonElement.nativeElement.focus(Zt)}_onButtonClick(){const Zt=!!this._isSingleSelector()||!this._checked;Zt!==this._checked&&(this._checked=Zt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new B(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return Ct.\u0275fac=function(Zt){return new(Zt||Ct)(g.Y36(O,8),g.Y36(g.sBO),g.Y36(g.SBq),g.Y36(u.tE),g.$8M("tabindex"),g.Y36(P,8))},Ct.\u0275cmp=g.Xpm({type:Ct,selectors:[["mat-button-toggle"]],viewQuery:function(Zt,Rt){if(1&Zt&&g.Gf(U,5),2&Zt){let Gt;g.iGM(Gt=g.CRH())&&(Rt._buttonElement=Gt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Zt,Rt){1&Zt&&g.NdJ("focus",function(){return Rt.focus()}),2&Zt&&(g.uIk("aria-label",null)("aria-labelledby",null)("id",Rt.id)("name",null),g.ekj("mat-button-toggle-standalone",!Rt.buttonToggleGroup)("mat-button-toggle-checked",Rt.checked)("mat-button-toggle-disabled",Rt.disabled)("mat-button-toggle-appearance-standard","standard"===Rt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[g.qOj],ngContentSelectors:w,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(Zt,Rt){if(1&Zt&&(g.F$t(),g.TgZ(0,"button",0,1),g.NdJ("click",function(){return Rt._onButtonClick()}),g.TgZ(2,"span",2),g.Hsn(3),g.qZA()(),g._UZ(4,"span",3)(5,"span",4)),2&Zt){const Gt=g.MAs(1);g.Q6J("id",Rt.buttonId)("disabled",Rt.disabled||null),g.uIk("tabindex",Rt.disabled?-1:Rt.tabIndex)("aria-pressed",Rt.checked)("name",Rt._getButtonName())("aria-label",Rt.ariaLabel)("aria-labelledby",Rt.ariaLabelledby),g.xp6(5),g.Q6J("matRippleTrigger",Gt)("matRippleDisabled",Rt.disableRipple||Rt.disabled)}},dependencies:[T.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),Ct})(),lt=(()=>{class Ct{}return Ct.\u0275fac=function(Zt){return new(Zt||Ct)},Ct.\u0275mod=g.oAB({type:Ct}),Ct.\u0275inj=g.cJS({imports:[T.BQ,T.si,T.BQ]}),Ct})()},4859:(tt,W,f)=>{"use strict";f.d(W,{lW:()=>O,ot:()=>N});var u=f(94650),d=f(3238),v=f(12687);const g=["mat-button",""],t=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],P=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(B){this._elementRef=B}})));let O=(()=>{class B extends P{constructor(et,ct,lt){super(et),this._focusMonitor=ct,this._animationMode=lt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ct of w)this._hasHostAttributes(Ct)&&this._getHostElement().classList.add(Ct);et.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(et,ct){et?this._focusMonitor.focusVia(this._getHostElement(),et,ct):this._getHostElement().focus(ct)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...et){return et.some(ct=>this._getHostElement().hasAttribute(ct))}}return B.\u0275fac=function(et){return new(et||B)(u.Y36(u.SBq),u.Y36(v.tE),u.Y36(u.QbO,8))},B.\u0275cmp=u.Xpm({type:B,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(et,ct){if(1&et&&u.Gf(d.wG,5),2&et){let lt;u.iGM(lt=u.CRH())&&(ct.ripple=lt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(et,ct){2&et&&(u.uIk("disabled",ct.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===ct._animationMode)("mat-button-disabled",ct.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:g,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(et,ct){1&et&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&et&&(u.xp6(2),u.ekj("mat-button-ripple-round",ct.isRoundButton||ct.isIconButton),u.Q6J("matRippleDisabled",ct._isRippleDisabled())("matRippleCentered",ct.isIconButton)("matRippleTrigger",ct._getHostElement()))},dependencies:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),B})(),N=(()=>{class B{}return B.\u0275fac=function(et){return new(et||B)},B.\u0275mod=u.oAB({type:B}),B.\u0275inj=u.cJS({imports:[d.si,d.BQ,d.BQ]}),B})()},73546:(tt,W,f)=>{"use strict";f.d(W,{$j:()=>L,C1:()=>Gt,G2:()=>K,QW:()=>Tt,a8:()=>Zt,dk:()=>Rt,dn:()=>P,hq:()=>N,n5:()=>O,nc:()=>ct});var u=f(94650),d=f(3238);const v=["*",[["mat-card-footer"]]],g=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],T=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],U=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let P=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Ut})(),O=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Ut})(),L=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Ut})(),N=(()=>{class Ut{constructor(){this.align="start"}}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(mt,Lt){2&mt&&u.ekj("mat-card-actions-align-end","end"===Lt.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Ut})(),K=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ut})(),ct=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Ut})(),Zt=(()=>{class Ut{constructor(mt){this._animationMode=mt}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(u.Y36(u.QbO,8))},Ut.\u0275cmp=u.Xpm({type:Ut,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(mt,Lt){2&mt&&u.ekj("_mat-animation-noopable","NoopAnimations"===Lt._animationMode)},exportAs:["matCard"],ngContentSelectors:g,decls:2,vars:0,template:function(mt,Lt){1&mt&&(u.F$t(v),u.Hsn(0),u.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Ut})(),Rt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275cmp=u.Xpm({type:Ut,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:T,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(mt,Lt){1&mt&&(u.F$t(t),u.Hsn(0),u.TgZ(1,"div",0),u.Hsn(2,1),u.qZA(),u.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ut})(),Gt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275cmp=u.Xpm({type:Ut,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(mt,Lt){1&mt&&(u.F$t(U),u.TgZ(0,"div"),u.Hsn(1),u.qZA(),u.Hsn(2,1),u.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ut})(),Tt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=u.oAB({type:Ut}),Ut.\u0275inj=u.cJS({imports:[d.BQ,d.BQ]}),Ut})()},56709:(tt,W,f)=>{"use strict";f.d(W,{e_:()=>Rt,oG:()=>Dt,p9:()=>Tt});var u=f(12687),d=f(21281),v=f(94650),g=f(24006),t=f(3238),T=f(49643);const U=["input"],w=["label"],P=function(Ut){return{enterDuration:Ut}},O=["*"],L=new v.OlP("mat-checkbox-default-options",{providedIn:"root",factory:N});function N(){return{color:"accent",clickAction:"check-indeterminate"}}let B=0;const K=N(),et={provide:g.JU,useExisting:(0,v.Gpc)(()=>Dt),multi:!0};class ct{}const lt=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Ut){this._elementRef=Ut}}))));let Ct=(()=>{class Ut extends lt{constructor(mt,Lt,Bt,kt,le,Vt,be){super(Lt),this._changeDetectorRef=Bt,this._ngZone=kt,this._animationMode=Vt,this._options=be,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new v.vpe,this.indeterminateChange=new v.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||K,this.color=this.defaultColor=this._options.color||K.color,this.tabIndex=parseInt(le)||0,this.id=this._uniqueId=`${mt}${++B}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(mt){this._required=(0,d.Ig)(mt)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(mt){const Lt=(0,d.Ig)(mt);Lt!=this.checked&&(this._checked=Lt,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(mt){const Lt=(0,d.Ig)(mt);Lt!==this.disabled&&(this._disabled=Lt,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(mt){const Lt=mt!=this._indeterminate;this._indeterminate=(0,d.Ig)(mt),Lt&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(mt){this.checked=!!mt}registerOnChange(mt){this._controlValueAccessorChangeFn=mt}registerOnTouched(mt){this._onTouched=mt}setDisabledState(mt){this.disabled=mt}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(mt){let Lt=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Lt!==mt&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Lt,mt),this._currentCheckState=mt,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const kt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(kt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const mt=this._options?.clickAction;this.disabled||"noop"===mt?!this.disabled&&"noop"===mt&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==mt&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(mt){mt.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(mt,Lt){if("NoopAnimations"===this._animationMode)return"";switch(mt){case 0:if(1===Lt)return this._animationClasses.uncheckedToChecked;if(3==Lt)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Lt?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Lt?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Lt?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(mt){const Lt=this._inputElement;Lt&&(Lt.nativeElement.indeterminate=mt)}}return Ut.\u0275fac=function(mt){v.$Z()},Ut.\u0275dir=v.lG2({type:Ut,viewQuery:function(mt,Lt){if(1&mt&&(v.Gf(U,5),v.Gf(w,5),v.Gf(t.wG,5)),2&mt){let Bt;v.iGM(Bt=v.CRH())&&(Lt._inputElement=Bt.first),v.iGM(Bt=v.CRH())&&(Lt._labelElement=Bt.first),v.iGM(Bt=v.CRH())&&(Lt.ripple=Bt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[v.qOj]}),Ut})(),Dt=(()=>{class Ut extends Ct{constructor(mt,Lt,Bt,kt,le,Vt,be){super("mat-checkbox-",mt,Lt,kt,le,Vt,be),this._focusMonitor=Bt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(mt){const Lt=new ct;return Lt.source=this,Lt.checked=mt,Lt}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(mt=>{mt||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(mt){mt.stopPropagation(),super._handleInputClick()}focus(mt,Lt){mt?this._focusMonitor.focusVia(this._inputElement,mt,Lt):this._inputElement.nativeElement.focus(Lt)}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(u.tE),v.Y36(v.R0b),v.$8M("tabindex"),v.Y36(v.QbO,8),v.Y36(L,8))},Ut.\u0275cmp=v.Xpm({type:Ut,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(mt,Lt){2&mt&&(v.Ikx("id",Lt.id),v.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),v.ekj("mat-checkbox-indeterminate",Lt.indeterminate)("mat-checkbox-checked",Lt.checked)("mat-checkbox-disabled",Lt.disabled)("mat-checkbox-label-before","before"==Lt.labelPosition)("_mat-animation-noopable","NoopAnimations"===Lt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[v._Bn([et]),v.qOj],ngContentSelectors:O,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(mt,Lt){if(1&mt&&(v.F$t(),v.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),v.NdJ("change",function(kt){return Lt._onInteractionEvent(kt)})("click",function(kt){return Lt._onInputClick(kt)}),v.qZA(),v.TgZ(5,"span",5),v._UZ(6,"span",6),v.qZA(),v._UZ(7,"span",7),v.TgZ(8,"span",8),v.O4$(),v.TgZ(9,"svg",9),v._UZ(10,"path",10),v.qZA(),v.kcU(),v._UZ(11,"span",11),v.qZA()(),v.TgZ(12,"span",12,13),v.NdJ("cdkObserveContent",function(){return Lt._onLabelTextChange()}),v.TgZ(14,"span",14),v._uU(15,"\xa0"),v.qZA(),v.Hsn(16),v.qZA()()),2&mt){const Bt=v.MAs(1),kt=v.MAs(13);v.uIk("for",Lt.inputId),v.xp6(2),v.ekj("mat-checkbox-inner-container-no-side-margin",!kt.textContent||!kt.textContent.trim()),v.xp6(1),v.Q6J("id",Lt.inputId)("required",Lt.required)("checked",Lt.checked)("disabled",Lt.disabled)("tabIndex",Lt.tabIndex),v.uIk("value",Lt.value)("name",Lt.name)("aria-label",Lt.ariaLabel||null)("aria-labelledby",Lt.ariaLabelledby)("aria-checked",Lt._getAriaChecked())("aria-describedby",Lt.ariaDescribedby),v.xp6(2),v.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Lt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",v.VKq(19,P,"NoopAnimations"===Lt._animationMode?0:150))}},dependencies:[t.wG,T.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ut})();const Zt={provide:g.Cf,useExisting:(0,v.Gpc)(()=>Rt),multi:!0};let Rt=(()=>{class Ut extends g.Zs{}return Ut.\u0275fac=function(){let bt;return function(Lt){return(bt||(bt=v.n5z(Ut)))(Lt||Ut)}}(),Ut.\u0275dir=v.lG2({type:Ut,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[v._Bn([Zt]),v.qOj]}),Ut})(),Gt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=v.oAB({type:Ut}),Ut.\u0275inj=v.cJS({}),Ut})(),Tt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=v.oAB({type:Ut}),Ut.\u0275inj=v.cJS({imports:[t.si,t.BQ,T.Q8,Gt,t.BQ,Gt]}),Ut})()},3238:(tt,W,f)=>{"use strict";f.d(W,{yN:()=>Ct,mZ:()=>Dt,_A:()=>Fe,rD:()=>ae,sG:()=>qe,Ad:()=>be,K7:()=>qn,HF:()=>ue,Y2:()=>ee,BQ:()=>Gt,X2:()=>De,uc:()=>Ce,XK:()=>se,ey:()=>zn,Ng:()=>xn,rN:()=>bo,nP:()=>At,us:()=>Ht,wG:()=>ot,si:()=>X,IR:()=>oi,CB:()=>Bn,jH:()=>Qe,pj:()=>Lt,Kr:()=>Bt,Id:()=>mt,FD:()=>le,dB:()=>Vt,sb:()=>kt,E0:()=>nn});var u=f(94650),d=f(12687),v=f(40445),t=f(36895),T=f(83353),U=f(21281),w=f(56498),P=f(8929),O=f(1059),L=f(29521);function K(Ve,Ne){if(1&Ve&&u._UZ(0,"mat-pseudo-checkbox",4),2&Ve){const tn=u.oxw();u.Q6J("state",tn.selected?"checked":"unchecked")("disabled",tn.disabled)}}function et(Ve,Ne){if(1&Ve&&(u.TgZ(0,"span",5),u._uU(1),u.qZA()),2&Ve){const tn=u.oxw();u.xp6(1),u.hij("(",tn.group.label,")")}}const ct=["*"];let Ct=(()=>{class Ve{}return Ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ve})(),Dt=(()=>{class Ve{}return Ve.COMPLEX="375ms",Ve.ENTERING="225ms",Ve.EXITING="195ms",Ve})();const Rt=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function Zt(){return!0}});let Gt=(()=>{class Ve{constructor(tn,ce,Be){this._sanityChecks=ce,this._document=Be,this._hasDoneGlobalChecks=!1,tn._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(tn){return!(0,T.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[tn])}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.LFG(d.qm),u.LFG(Rt,8),u.LFG(t.K0))},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[v.vT,v.vT]}),Ve})();function mt(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ne){this._disabled=(0,U.Ig)(Ne)}}}function Lt(Ve,Ne){return class extends Ve{constructor(...tn){super(...tn),this.defaultColor=Ne,this.color=Ne}get color(){return this._color}set color(tn){const ce=tn||this.defaultColor;ce!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ce&&this._elementRef.nativeElement.classList.add(`mat-${ce}`),this._color=ce)}}}function Bt(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ne){this._disableRipple=(0,U.Ig)(Ne)}}}function kt(Ve,Ne=0){return class extends Ve{constructor(...tn){super(...tn),this._tabIndex=Ne,this.defaultTabIndex=Ne}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(tn){this._tabIndex=null!=tn?(0,U.su)(tn):this.defaultTabIndex}}}function le(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this.errorState=!1}updateErrorState(){const Ne=this.errorState,oe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);oe!==Ne&&(this.errorState=oe,this.stateChanges.next())}}}function Vt(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(tn=>{this._isInitialized?this._notifySubscriber(tn):this._pendingSubscribers.push(tn)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ne){Ne.next(),Ne.complete()}}}const be=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function ge(){return(0,u.f3M)(u.soG)}});class Fe{constructor(){this._localeChanges=new P.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ne){return this.isDateInstance(Ne)&&this.isValid(Ne)?Ne:null}deserialize(Ne){return null==Ne||this.isDateInstance(Ne)&&this.isValid(Ne)?Ne:this.invalid()}setLocale(Ne){this.locale=Ne,this._localeChanges.next()}compareDate(Ne,tn){return this.getYear(Ne)-this.getYear(tn)||this.getMonth(Ne)-this.getMonth(tn)||this.getDate(Ne)-this.getDate(tn)}sameDate(Ne,tn){if(Ne&&tn){let ce=this.isValid(Ne),Be=this.isValid(tn);return ce&&Be?!this.compareDate(Ne,tn):ce==Be}return Ne==tn}clampDate(Ne,tn,ce){return tn&&this.compareDate(Ne,tn)<0?tn:ce&&this.compareDate(Ne,ce)>0?ce:Ne}}const qe=new u.OlP("mat-date-formats"),je=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Qt(Ve,Ne){const tn=Array(Ve);for(let ce=0;ce{class Ve extends Fe{constructor(tn,ce){super(),this.useUtcForDisplay=!1,super.setLocale(tn)}getYear(tn){return tn.getFullYear()}getMonth(tn){return tn.getMonth()}getDate(tn){return tn.getDate()}getDayOfWeek(tn){return tn.getDay()}getMonthNames(tn){const ce=new Intl.DateTimeFormat(this.locale,{month:tn,timeZone:"utc"});return Qt(12,Be=>this._format(ce,new Date(2017,Be,1)))}getDateNames(){const tn=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Qt(31,ce=>this._format(tn,new Date(2017,0,ce+1)))}getDayOfWeekNames(tn){const ce=new Intl.DateTimeFormat(this.locale,{weekday:tn,timeZone:"utc"});return Qt(7,Be=>this._format(ce,new Date(2017,0,Be+1)))}getYearName(tn){const ce=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ce,tn)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(tn){return this.getDate(this._createDateWithOverflow(this.getYear(tn),this.getMonth(tn)+1,0))}clone(tn){return new Date(tn.getTime())}createDate(tn,ce,Be){let oe=this._createDateWithOverflow(tn,ce,Be);return oe.getMonth(),oe}today(){return new Date}parse(tn,ce){return"number"==typeof tn?new Date(tn):tn?new Date(Date.parse(tn)):null}format(tn,ce){if(!this.isValid(tn))throw Error("NativeDateAdapter: Cannot format invalid date.");const Be=new Intl.DateTimeFormat(this.locale,{...ce,timeZone:"utc"});return this._format(Be,tn)}addCalendarYears(tn,ce){return this.addCalendarMonths(tn,12*ce)}addCalendarMonths(tn,ce){let Be=this._createDateWithOverflow(this.getYear(tn),this.getMonth(tn)+ce,this.getDate(tn));return this.getMonth(Be)!=((this.getMonth(tn)+ce)%12+12)%12&&(Be=this._createDateWithOverflow(this.getYear(Be),this.getMonth(Be),0)),Be}addCalendarDays(tn,ce){return this._createDateWithOverflow(this.getYear(tn),this.getMonth(tn),this.getDate(tn)+ce)}toIso8601(tn){return[tn.getUTCFullYear(),this._2digit(tn.getUTCMonth()+1),this._2digit(tn.getUTCDate())].join("-")}deserialize(tn){if("string"==typeof tn){if(!tn)return null;if(je.test(tn)){let ce=new Date(tn);if(this.isValid(ce))return ce}}return super.deserialize(tn)}isDateInstance(tn){return tn instanceof Date}isValid(tn){return!isNaN(tn.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(tn,ce,Be){const oe=new Date;return oe.setFullYear(tn,ce,Be),oe.setHours(0,0,0,0),oe}_2digit(tn){return("00"+tn).slice(-2)}_format(tn,ce){const Be=new Date;return Be.setUTCFullYear(ce.getFullYear(),ce.getMonth(),ce.getDate()),Be.setUTCHours(ce.getHours(),ce.getMinutes(),ce.getSeconds(),ce.getMilliseconds()),tn.format(Be)}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.LFG(be,8),u.LFG(T.t4))},Ve.\u0275prov=u.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ie={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Wt=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({providers:[{provide:Fe,useClass:Ue}]}),Ve})(),se=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({providers:[{provide:qe,useValue:ie}],imports:[Wt]}),Ve})(),ae=(()=>{class Ve{isErrorState(tn,ce){return!!(tn&&tn.invalid&&(tn.touched||ce&&ce.submitted))}}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275prov=u.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),De=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275dir=u.lG2({type:Ve,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ve})();function nn(Ve,Ne,tn="mat"){Ve.changes.pipe((0,O.O)(Ve)).subscribe(({length:ce})=>{hn(Ne,`${tn}-2-line`,!1),hn(Ne,`${tn}-3-line`,!1),hn(Ne,`${tn}-multi-line`,!1),2===ce||3===ce?hn(Ne,`${tn}-${ce}-line`,!0):ce>3&&hn(Ne,`${tn}-multi-line`,!0)})}function hn(Ve,Ne,tn){Ve.nativeElement.classList.toggle(Ne,tn)}let Ce=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[Gt,Gt]}),Ve})();class bn{constructor(Ne,tn,ce,Be=!1){this._renderer=Ne,this.element=tn,this.config=ce,this._animationForciblyDisabledThroughCss=Be,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Oe={enterDuration:225,exitDuration:150},Pn=(0,T.i$)({passive:!0}),ii=["mousedown","touchstart"],_i=["mouseup","mouseleave","touchend","touchcancel"];class oi{constructor(Ne,tn,ce,Be){this._target=Ne,this._ngZone=tn,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Be.isBrowser&&(this._containerElement=(0,U.fI)(ce))}fadeInRipple(Ne,tn,ce={}){const Be=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),oe={...Oe,...ce.animation};ce.centered&&(Ne=Be.left+Be.width/2,tn=Be.top+Be.height/2);const rn=ce.radius||function We(Ve,Ne,tn){const ce=Math.max(Math.abs(Ve-tn.left),Math.abs(Ve-tn.right)),Be=Math.max(Math.abs(Ne-tn.top),Math.abs(Ne-tn.bottom));return Math.sqrt(ce*ce+Be*Be)}(Ne,tn,Be),gn=Ne-Be.left,cn=tn-Be.top,xe=oe.enterDuration,It=document.createElement("div");It.classList.add("mat-ripple-element"),It.style.left=gn-rn+"px",It.style.top=cn-rn+"px",It.style.height=2*rn+"px",It.style.width=2*rn+"px",null!=ce.color&&(It.style.backgroundColor=ce.color),It.style.transitionDuration=`${xe}ms`,this._containerElement.appendChild(It);const Le=window.getComputedStyle(It),we=Le.transitionDuration,He="none"===Le.transitionProperty||"0s"===we||"0s, 0s"===we,kn=new bn(this,It,ce,He);It.style.transform="scale3d(1, 1, 1)",kn.state=0,ce.persistent||(this._mostRecentTransientRipple=kn);let Ei=null;return!He&&(xe||oe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Bi=()=>this._finishRippleTransition(kn),un=()=>this._destroyRipple(kn);It.addEventListener("transitionend",Bi),It.addEventListener("transitioncancel",un),Ei={onTransitionEnd:Bi,onTransitionCancel:un}}),this._activeRipples.set(kn,Ei),(He||!xe)&&this._finishRippleTransition(kn),kn}fadeOutRipple(Ne){if(2===Ne.state||3===Ne.state)return;const tn=Ne.element,ce={...Oe,...Ne.config.animation};tn.style.transitionDuration=`${ce.exitDuration}ms`,tn.style.opacity="0",Ne.state=2,(Ne._animationForciblyDisabledThroughCss||!ce.exitDuration)&&this._finishRippleTransition(Ne)}fadeOutAll(){this._getActiveRipples().forEach(Ne=>Ne.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ne=>{Ne.config.persistent||Ne.fadeOut()})}setupTriggerEvents(Ne){const tn=(0,U.fI)(Ne);!tn||tn===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=tn,this._registerEvents(ii))}handleEvent(Ne){"mousedown"===Ne.type?this._onMousedown(Ne):"touchstart"===Ne.type?this._onTouchStart(Ne):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_i),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ne){0===Ne.state?this._startFadeOutTransition(Ne):2===Ne.state&&this._destroyRipple(Ne)}_startFadeOutTransition(Ne){const tn=Ne===this._mostRecentTransientRipple,{persistent:ce}=Ne.config;Ne.state=1,!ce&&(!tn||!this._isPointerDown)&&Ne.fadeOut()}_destroyRipple(Ne){const tn=this._activeRipples.get(Ne)??null;this._activeRipples.delete(Ne),this._activeRipples.size||(this._containerRect=null),Ne===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ne.state=3,null!==tn&&(Ne.element.removeEventListener("transitionend",tn.onTransitionEnd),Ne.element.removeEventListener("transitioncancel",tn.onTransitionCancel)),Ne.element.remove()}_onMousedown(Ne){const tn=(0,d.X6)(Ne),ce=this._lastTouchStartEvent&&Date.now(){!Ne.config.persistent&&(1===Ne.state||Ne.config.terminateOnPointerUp&&0===Ne.state)&&Ne.fadeOut()}))}_registerEvents(Ne){this._ngZone.runOutsideAngular(()=>{Ne.forEach(tn=>{this._triggerElement.addEventListener(tn,this,Pn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ii.forEach(Ne=>{this._triggerElement.removeEventListener(Ne,this,Pn)}),this._pointerUpEventsRegistered&&_i.forEach(Ne=>{this._triggerElement.removeEventListener(Ne,this,Pn)}))}}const ee=new u.OlP("mat-ripple-global-options");let ot=(()=>{class Ve{constructor(tn,ce,Be,oe,rn){this._elementRef=tn,this._animationMode=rn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=oe||{},this._rippleRenderer=new oi(this,ce,tn,Be)}get disabled(){return this._disabled}set disabled(tn){tn&&this.fadeOutAllNonPersistent(),this._disabled=tn,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(tn){this._trigger=tn,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(tn,ce=0,Be){return"number"==typeof tn?this._rippleRenderer.fadeInRipple(tn,ce,{...this.rippleConfig,...Be}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...tn})}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(T.t4),u.Y36(ee,8),u.Y36(u.QbO,8))},Ve.\u0275dir=u.lG2({type:Ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(tn,ce){2&tn&&u.ekj("mat-ripple-unbounded",ce.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ve})(),X=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[Gt,Gt]}),Ve})(),At=(()=>{class Ve{constructor(tn){this._animationMode=tn,this.state="unchecked",this.disabled=!1}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.Y36(u.QbO,8))},Ve.\u0275cmp=u.Xpm({type:Ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(tn,ce){2&tn&&u.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ce.state)("mat-pseudo-checkbox-checked","checked"===ce.state)("mat-pseudo-checkbox-disabled",ce.disabled)("_mat-animation-noopable","NoopAnimations"===ce._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(tn,ce){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),Ve})(),Ht=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[Gt]}),Ve})();const ue=new u.OlP("MAT_OPTION_PARENT_COMPONENT"),qn=new u.OlP("MatOptgroup");let Di=0;class bo{constructor(Ne,tn=!1){this.source=Ne,this.isUserInput=tn}}let hi=(()=>{class Ve{constructor(tn,ce,Be,oe){this._element=tn,this._changeDetectorRef=ce,this._parent=Be,this.group=oe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Di++,this.onSelectionChange=new u.vpe,this._stateChanges=new P.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(tn){this._disabled=(0,U.Ig)(tn)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(tn,ce){const Be=this._getHostElement();"function"==typeof Be.focus&&Be.focus(ce)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(tn){(tn.keyCode===L.K5||tn.keyCode===L.L_)&&!(0,L.Vb)(tn)&&(this._selectViaInteraction(),tn.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const tn=this.viewValue;tn!==this._mostRecentViewValue&&(this._mostRecentViewValue=tn,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(tn=!1){this.onSelectionChange.emit(new bo(this,tn))}}return Ve.\u0275fac=function(tn){u.$Z()},Ve.\u0275dir=u.lG2({type:Ve,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ve})(),zn=(()=>{class Ve extends hi{constructor(tn,ce,Be,oe){super(tn,ce,Be,oe)}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(ue,8),u.Y36(qn,8))},Ve.\u0275cmp=u.Xpm({type:Ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(tn,ce){1&tn&&u.NdJ("click",function(){return ce._selectViaInteraction()})("keydown",function(oe){return ce._handleKeydown(oe)}),2&tn&&(u.Ikx("id",ce.id),u.uIk("tabindex",ce._getTabIndex())("aria-selected",ce._getAriaSelected())("aria-disabled",ce.disabled.toString()),u.ekj("mat-selected",ce.selected)("mat-option-multiple",ce.multiple)("mat-active",ce.active)("mat-option-disabled",ce.disabled))},exportAs:["matOption"],features:[u.qOj],ngContentSelectors:ct,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(tn,ce){1&tn&&(u.F$t(),u.YNc(0,K,1,2,"mat-pseudo-checkbox",0),u.TgZ(1,"span",1),u.Hsn(2),u.qZA(),u.YNc(3,et,2,1,"span",2),u._UZ(4,"div",3)),2&tn&&(u.Q6J("ngIf",ce.multiple),u.xp6(3),u.Q6J("ngIf",ce.group&&ce.group._inert),u.xp6(1),u.Q6J("matRippleTrigger",ce._getHostElement())("matRippleDisabled",ce.disabled||ce.disableRipple))},dependencies:[ot,t.O5,At],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),Ve})();function Bn(Ve,Ne,tn){if(tn.length){let ce=Ne.toArray(),Be=tn.toArray(),oe=0;for(let rn=0;rntn+ce?Math.max(0,Ve-ce+Ne):tn}let xn=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[X,t.ez,Gt,Ht]}),Ve})()},99602:(tt,W,f)=>{"use strict";f.d(W,{C0:()=>Pn,E2:()=>tn,FA:()=>Ye,Lv:()=>rn,Mq:()=>It,S8:()=>De,Uu:()=>Be,hl:()=>Ei,nW:()=>un});var u=f(12687),d=f(98184),v=f(84080),g=f(36895),t=f(94650),T=f(4859),U=f(67376),w=f(3238),P=f(8929),O=f(42654),L=f(36787),N=f(21086),B=f(29521),K=f(40445),et=f(72986),ct=f(1059),lt=f(92198),Ct=f(21281),Dt=f(83353),Zt=f(37340),Rt=f(24006),Gt=f(59549),Tt=f(284);const Ut=["mat-calendar-body",""];function bt(Me,an){if(1&Me&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Me){const j=t.oxw();t.xp6(1),t.Udp("padding-top",j._cellPadding)("padding-bottom",j._cellPadding),t.uIk("colspan",j.numCols),t.xp6(1),t.hij(" ",j.label," ")}}function mt(Me,an){if(1&Me&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Me){const j=t.oxw(2);t.Udp("padding-top",j._cellPadding)("padding-bottom",j._cellPadding),t.uIk("colspan",j._firstRowOffset),t.xp6(1),t.hij(" ",j._firstRowOffset>=j.labelMinRequiredCells?j.label:""," ")}}function Lt(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(J){const ze=t.CHM(j).$implicit,Vn=t.oxw(2);return t.KtG(Vn._cellClicked(ze,J))})("focus",function(J){const ze=t.CHM(j).$implicit,Vn=t.oxw(2);return t.KtG(Vn._emitActiveDateChange(ze,J))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Me){const j=an.$implicit,Ft=an.index,J=t.oxw().index,Et=t.oxw();t.Udp("width",Et._cellWidth)("padding-top",Et._cellPadding)("padding-bottom",Et._cellPadding),t.uIk("data-mat-row",J)("data-mat-col",Ft),t.xp6(1),t.ekj("mat-calendar-body-disabled",!j.enabled)("mat-calendar-body-active",Et._isActiveCell(J,Ft))("mat-calendar-body-range-start",Et._isRangeStart(j.compareValue))("mat-calendar-body-range-end",Et._isRangeEnd(j.compareValue))("mat-calendar-body-in-range",Et._isInRange(j.compareValue))("mat-calendar-body-comparison-bridge-start",Et._isComparisonBridgeStart(j.compareValue,J,Ft))("mat-calendar-body-comparison-bridge-end",Et._isComparisonBridgeEnd(j.compareValue,J,Ft))("mat-calendar-body-comparison-start",Et._isComparisonStart(j.compareValue))("mat-calendar-body-comparison-end",Et._isComparisonEnd(j.compareValue))("mat-calendar-body-in-comparison-range",Et._isInComparisonRange(j.compareValue))("mat-calendar-body-preview-start",Et._isPreviewStart(j.compareValue))("mat-calendar-body-preview-end",Et._isPreviewEnd(j.compareValue))("mat-calendar-body-in-preview",Et._isInPreview(j.compareValue)),t.Q6J("ngClass",j.cssClasses)("tabindex",Et._isActiveCell(J,Ft)?0:-1),t.uIk("aria-label",j.ariaLabel)("aria-disabled",!j.enabled||null)("aria-pressed",Et._isSelected(j.compareValue))("aria-current",Et.todayValue===j.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Et._isSelected(j.compareValue))("mat-calendar-body-comparison-identical",Et._isComparisonIdentical(j.compareValue))("mat-calendar-body-today",Et.todayValue===j.compareValue),t.xp6(1),t.hij(" ",j.displayValue," ")}}function Bt(Me,an){if(1&Me&&(t.TgZ(0,"tr",4),t.YNc(1,mt,2,6,"td",5),t.YNc(2,Lt,5,47,"td",6),t.qZA()),2&Me){const j=an.$implicit,Ft=an.index,J=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Ft&&J._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",j)}}function kt(Me,an){if(1&Me&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Me){const j=an.$implicit;t.xp6(2),t.Oqu(j.long),t.xp6(2),t.Oqu(j.narrow)}}const le=["*"];function Vt(Me,an){}function be(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et.activeDate=J)})("_userSelection",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._dateSelected(J))}),t.qZA()}if(2&Me){const j=t.oxw();t.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)("comparisonStart",j.comparisonStart)("comparisonEnd",j.comparisonEnd)}}function ge(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et.activeDate=J)})("monthSelected",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._monthSelectedInYearView(J))})("selectedChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._goToDateInView(J,"month"))}),t.qZA()}if(2&Me){const j=t.oxw();t.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)}}function Fe(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et.activeDate=J)})("yearSelected",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._yearSelectedInMultiYearView(J))})("selectedChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._goToDateInView(J,"year"))}),t.qZA()}if(2&Me){const j=t.oxw();t.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)}}function qe(Me,an){}const je=["button"];function Qt(Me,an){1&Me&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Ue=[[["","matDatepickerToggleIcon",""]]],ie=["[matDatepickerToggleIcon]"];let De=(()=>{class Me{constructor(){this.changes=new P.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(j,Ft){return`${j} \u2013 ${Ft}`}formatYearRangeLabel(j,Ft){return`${j} to ${Ft}`}}return Me.\u0275fac=function(j){return new(j||Me)},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();class nn{constructor(an,j,Ft,J,Et={},ze=an,Vn){this.value=an,this.displayValue=j,this.ariaLabel=Ft,this.enabled=J,this.cssClasses=Et,this.compareValue=ze,this.rawValue=Vn}}let hn=(()=>{class Me{constructor(j,Ft){this._elementRef=j,this._ngZone=Ft,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=J=>{if(this._skipNextFocus&&"focus"===J.type)this._skipNextFocus=!1;else if(J.target&&this.isRange){const Et=this._getCellFromElement(J.target);Et&&this._ngZone.run(()=>this.previewChange.emit({value:Et.enabled?Et:null,event:J}))}},this._leaveHandler=J=>{null!==this.previewEnd&&this.isRange&&J.target&&this._getCellFromElement(J.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:J}))},Ft.runOutsideAngular(()=>{const J=j.nativeElement;J.addEventListener("mouseenter",this._enterHandler,!0),J.addEventListener("focus",this._enterHandler,!0),J.addEventListener("mouseleave",this._leaveHandler,!0),J.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(j,Ft){j.enabled&&this.selectedValueChange.emit({value:j.value,event:Ft})}_emitActiveDateChange(j,Ft){j.enabled&&this.activeDateChange.emit({value:j.value,event:Ft})}_isSelected(j){return this.startValue===j||this.endValue===j}ngOnChanges(j){const Ft=j.numCols,{rows:J,numCols:Et}=this;(j.rows||Ft)&&(this._firstRowOffset=J&&J.length&&J[0].length?Et-J[0].length:0),(j.cellAspectRatio||Ft||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Et+"%"),(Ft||!this._cellWidth)&&(this._cellWidth=100/Et+"%")}ngOnDestroy(){const j=this._elementRef.nativeElement;j.removeEventListener("mouseenter",this._enterHandler,!0),j.removeEventListener("focus",this._enterHandler,!0),j.removeEventListener("mouseleave",this._leaveHandler,!0),j.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(j,Ft){let J=j*this.numCols+Ft;return j&&(J-=this._firstRowOffset),J==this.activeCell}_focusActiveCell(j=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,et.q)(1)).subscribe(()=>{setTimeout(()=>{const Ft=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ft&&(j||(this._skipNextFocus=!0),Ft.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(j){return bn(j,this.startValue,this.endValue)}_isRangeEnd(j){return Oe(j,this.startValue,this.endValue)}_isInRange(j){return dn(j,this.startValue,this.endValue,this.isRange)}_isComparisonStart(j){return bn(j,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(j,Ft,J){if(!this._isComparisonStart(j)||this._isRangeStart(j)||!this._isInRange(j))return!1;let Et=this.rows[Ft][J-1];if(!Et){const ze=this.rows[Ft-1];Et=ze&&ze[ze.length-1]}return Et&&!this._isRangeEnd(Et.compareValue)}_isComparisonBridgeEnd(j,Ft,J){if(!this._isComparisonEnd(j)||this._isRangeEnd(j)||!this._isInRange(j))return!1;let Et=this.rows[Ft][J+1];if(!Et){const ze=this.rows[Ft+1];Et=ze&&ze[0]}return Et&&!this._isRangeStart(Et.compareValue)}_isComparisonEnd(j){return Oe(j,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(j){return dn(j,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(j){return this.comparisonStart===this.comparisonEnd&&j===this.comparisonStart}_isPreviewStart(j){return bn(j,this.previewStart,this.previewEnd)}_isPreviewEnd(j){return Oe(j,this.previewStart,this.previewEnd)}_isInPreview(j){return dn(j,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(j){let Ft;if(Ce(j)?Ft=j:Ce(j.parentNode)&&(Ft=j.parentNode),Ft){const J=Ft.getAttribute("data-mat-row"),Et=Ft.getAttribute("data-mat-col");if(J&&Et)return this.rows[parseInt(J)][parseInt(Et)]}return null}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(t.R0b))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:Ut,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(j,Ft){1&j&&(t.YNc(0,bt,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&j&&(t.Q6J("ngIf",Ft._firstRowOffset=an&&Me===j}function dn(Me,an,j,Ft){return Ft&&null!==an&&null!==j&&an!==j&&Me>=an&&Me<=j}class Pn{constructor(an,j){this.start=an,this.end=j}}let ii=(()=>{class Me{constructor(j,Ft){this.selection=j,this._adapter=Ft,this._selectionChanged=new P.xQ,this.selectionChanged=this._selectionChanged,this.selection=j}updateSelection(j,Ft){const J=this.selection;this.selection=j,this._selectionChanged.next({selection:j,source:Ft,oldValue:J})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(j){return this._adapter.isDateInstance(j)&&this._adapter.isValid(j)}}return Me.\u0275fac=function(j){t.$Z()},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),_i=(()=>{class Me extends ii{constructor(j){super(null,j)}add(j){super.updateSelection(j,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const j=new Me(this._adapter);return j.updateSelection(this.selection,this),j}}return Me.\u0275fac=function(j){return new(j||Me)(t.LFG(w._A))},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const ee={provide:ii,deps:[[new t.FiY,new t.tp0,ii],w._A],useFactory:function We(Me,an){return Me||new _i(an)}},At=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let vn=(()=>{class Me{constructor(j,Ft,J,Et,ze){this._changeDetectorRef=j,this._dateFormats=Ft,this._dateAdapter=J,this._dir=Et,this._rangeStrategy=ze,this._rerenderSubscription=O.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){const Ft=this._activeDate,J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ft,this._activeDate)||this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ct.O)(null)).subscribe(()=>this._init())}ngOnChanges(j){const Ft=j.comparisonStart||j.comparisonEnd;Ft&&!Ft.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(j){const Ft=j.value,J=this._getDateFromDayOfMonth(Ft);let Et,ze;this._selected instanceof Pn?(Et=this._getDateInCurrentMonth(this._selected.start),ze=this._getDateInCurrentMonth(this._selected.end)):Et=ze=this._getDateInCurrentMonth(this._selected),(Et!==Ft||ze!==Ft)&&this.selectedChange.emit(J),this._userSelection.emit({value:J,event:j.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(j){const J=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(j.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(j){const Ft=this._activeDate,J=this._isRtl();switch(j.keyCode){case B.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?1:-1);break;case B.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?-1:1);break;case B.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case B.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case B.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case B.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case B.Ku:this.activeDate=j.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case B.VM:this.activeDate=j.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case B.K5:case B.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&j.preventDefault());case B.hY:return void(null!=this._previewEnd&&!(0,B.Vb)(j)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:j}),j.preventDefault(),j.stopPropagation()));default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===B.L_||j.keyCode===B.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let j=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(j)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(j){this._matCalendarBody._focusActiveCell(j)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:j,value:Ft}){if(this._rangeStrategy){const Et=this._rangeStrategy.createPreview(Ft?Ft.rawValue:null,this.selected,j);this._previewStart=this._getCellCompareValue(Et.start),this._previewEnd=this._getCellCompareValue(Et.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(j){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),j)}_initWeekdays(){const j=this._dateAdapter.getFirstDayOfWeek(),Ft=this._dateAdapter.getDayOfWeekNames("narrow");let Et=this._dateAdapter.getDayOfWeekNames("long").map((ze,Vn)=>({long:ze,narrow:Ft[Vn]}));this._weekdays=Et.slice(j).concat(Et.slice(0,j))}_createWeekCells(){const j=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ft=this._dateAdapter.getDateNames();this._weeks=[[]];for(let J=0,Et=this._firstWeekOffset;J=0)&&(!this.maxDate||this._dateAdapter.compareDate(j,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(j))}_getDateInCurrentMonth(j){return j&&this._hasSameMonthAndYear(j,this.activeDate)?this._dateAdapter.getDate(j):null}_hasSameMonthAndYear(j,Ft){return!(!j||!Ft||this._dateAdapter.getMonth(j)!=this._dateAdapter.getMonth(Ft)||this._dateAdapter.getYear(j)!=this._dateAdapter.getYear(Ft))}_getCellCompareValue(j){if(j){const Ft=this._dateAdapter.getYear(j),J=this._dateAdapter.getMonth(j),Et=this._dateAdapter.getDate(j);return new Date(Ft,J,Et).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(j){j instanceof Pn?(this._rangeStart=this._getCellCompareValue(j.start),this._rangeEnd=this._getCellCompareValue(j.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(j),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(j){return!this.dateFilter||this.dateFilter(j)}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.sBO),t.Y36(w.sG,8),t.Y36(w._A,8),t.Y36(K.Is,8),t.Y36(At,8))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-month-view"]],viewQuery:function(j,Ft){if(1&j&&t.Gf(hn,5),2&j){let J;t.iGM(J=t.CRH())&&(Ft._matCalendarBody=J.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(j,Ft){1&j&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,kt,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(Et){return Ft._dateSelected(Et)})("activeDateChange",function(Et){return Ft._updateActiveDate(Et)})("previewChange",function(Et){return Ft._previewChanged(Et)})("keyup",function(Et){return Ft._handleCalendarBodyKeyup(Et)})("keydown",function(Et){return Ft._handleCalendarBodyKeydown(Et)}),t.qZA()()),2&j&&(t.xp6(3),t.Q6J("ngForOf",Ft._weekdays),t.xp6(3),t.Q6J("label",Ft._monthLabel)("rows",Ft._weeks)("todayValue",Ft._todayDate)("startValue",Ft._rangeStart)("endValue",Ft._rangeEnd)("comparisonStart",Ft._comparisonRangeStart)("comparisonEnd",Ft._comparisonRangeEnd)("previewStart",Ft._previewStart)("previewEnd",Ft._previewEnd)("isRange",Ft._isRange)("labelMinRequiredCells",3)("activeCell",Ft._dateAdapter.getDate(Ft.activeDate)-1))},dependencies:[g.sg,hn],encapsulation:2,changeDetection:0}),Me})(),Di=(()=>{class Me{constructor(j,Ft,J){this._changeDetectorRef=j,this._dateAdapter=Ft,this._dir=J,this._rerenderSubscription=O.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){let Ft=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),bo(this._dateAdapter,Ft,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setSelectedYear(j)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ct.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ft=this._dateAdapter.getYear(this._activeDate)-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let J=0,Et=[];J<24;J++)Et.push(Ft+J),4==Et.length&&(this._years.push(Et.map(ze=>this._createCellForYear(ze))),Et=[]);this._changeDetectorRef.markForCheck()}_yearSelected(j){const Ft=j.value,J=this._dateAdapter.createDate(Ft,0,1),Et=this._getDateFromYear(Ft);this.yearSelected.emit(J),this.selectedChange.emit(Et)}_updateActiveDate(j){const J=this._activeDate;this.activeDate=this._getDateFromYear(j.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(j){const Ft=this._activeDate,J=this._isRtl();switch(j.keyCode){case B.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?1:-1);break;case B.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?-1:1);break;case B.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case B.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case B.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case B.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case B.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?-240:-24);break;case B.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?240:24);break;case B.K5:case B.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===B.L_||j.keyCode===B.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_getActiveCell(){return hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(j){const Ft=this._dateAdapter.getMonth(this.activeDate),J=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(j,Ft,1));return this._dateAdapter.createDate(j,Ft,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForYear(j){const Ft=this._dateAdapter.createDate(j,0,1),J=this._dateAdapter.getYearName(Ft),Et=this.dateClass?this.dateClass(Ft,"multi-year"):void 0;return new nn(j,J,J,this._shouldEnableYear(j),Et)}_shouldEnableYear(j){if(null==j||this.maxDate&&j>this._dateAdapter.getYear(this.maxDate)||this.minDate&&j{class Me{constructor(j,Ft,J,Et){this._changeDetectorRef=j,this._dateFormats=Ft,this._dateAdapter=J,this._dir=Et,this._rerenderSubscription=O.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){let Ft=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._dateAdapter.getYear(Ft)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setSelectedMonth(j)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ct.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(j){const Ft=j.value,J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,1);this.monthSelected.emit(J);const Et=this._getDateFromMonth(Ft);this.selectedChange.emit(Et)}_updateActiveDate(j){const J=this._activeDate;this.activeDate=this._getDateFromMonth(j.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(j){const Ft=this._activeDate,J=this._isRtl();switch(j.keyCode){case B.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?1:-1);break;case B.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?-1:1);break;case B.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case B.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case B.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case B.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case B.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?-10:-1);break;case B.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?10:1);break;case B.K5:case B.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===B.L_||j.keyCode===B.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let j=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ft=>Ft.map(J=>this._createCellForMonth(J,j[J]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(j){return j&&this._dateAdapter.getYear(j)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(j):null}_getDateFromMonth(j){const Ft=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1),J=this._dateAdapter.getNumDaysInMonth(Ft);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForMonth(j,Ft){const J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1),Et=this._dateAdapter.format(J,this._dateFormats.display.monthYearA11yLabel),ze=this.dateClass?this.dateClass(J,"year"):void 0;return new nn(j,Ft.toLocaleUpperCase(),Et,this._shouldEnableMonth(j),ze)}_shouldEnableMonth(j){const Ft=this._dateAdapter.getYear(this.activeDate);if(null==j||this._isYearAndMonthAfterMaxDate(Ft,j)||this._isYearAndMonthBeforeMinDate(Ft,j))return!1;if(!this.dateFilter)return!0;for(let Et=this._dateAdapter.createDate(Ft,j,1);this._dateAdapter.getMonth(Et)==j;Et=this._dateAdapter.addCalendarDays(Et,1))if(this.dateFilter(Et))return!0;return!1}_isYearAndMonthAfterMaxDate(j,Ft){if(this.maxDate){const J=this._dateAdapter.getYear(this.maxDate),Et=this._dateAdapter.getMonth(this.maxDate);return j>J||j===J&&Ft>Et}return!1}_isYearAndMonthBeforeMinDate(j,Ft){if(this.minDate){const J=this._dateAdapter.getYear(this.minDate),Et=this._dateAdapter.getMonth(this.minDate);return j{class Me{constructor(j,Ft,J,Et,ze){this._intl=j,this.calendar=Ft,this._dateAdapter=J,this._dateFormats=Et,this._buttonDescriptionId="mat-calendar-button-"+xn++,this.calendar.stateChanges.subscribe(()=>ze.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Ft=this._dateAdapter.getYear(this.calendar.activeDate)-hi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),J=Ft+24-1,Et=this._dateAdapter.getYearName(this._dateAdapter.createDate(Ft,0,1)),ze=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return this._intl.formatYearRange(Et,ze)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(j,Ft){return"month"==this.calendar.currentView?this._dateAdapter.getYear(j)==this._dateAdapter.getYear(Ft)&&this._dateAdapter.getMonth(j)==this._dateAdapter.getMonth(Ft):"year"==this.calendar.currentView?this._dateAdapter.getYear(j)==this._dateAdapter.getYear(Ft):bo(this._dateAdapter,j,Ft,this.calendar.minDate,this.calendar.maxDate)}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(De),t.Y36((0,t.Gpc)(()=>Ne)),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:le,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(j,Ft){1&j&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Ft.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Ft.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Ft.nextClicked()}),t.qZA()()()),2&j&&(t.xp6(2),t.uIk("aria-label",Ft.periodButtonLabel)("aria-describedby",Ft._buttonDescriptionId),t.xp6(1),t.uIk("id",Ft._buttonDescriptionId),t.xp6(1),t.Oqu(Ft.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Ft.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Ft.previousEnabled()),t.uIk("aria-label",Ft.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Ft.nextEnabled()),t.uIk("aria-label",Ft.nextButtonLabel))},dependencies:[T.lW],encapsulation:2,changeDetection:0}),Me})(),Ne=(()=>{class Me{constructor(j,Ft,J,Et){this._dateAdapter=Ft,this._dateFormats=J,this._changeDetectorRef=Et,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new P.xQ,this._intlChanges=j.changes.subscribe(()=>{Et.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(j){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get activeDate(){return this._clampedActiveDate}set activeDate(j){this._clampedActiveDate=this._dateAdapter.clampDate(j,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(j){const Ft=this._currentView!==j?j:null;this._currentView=j,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ft&&this.viewChanged.emit(Ft)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||Ve),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(j){const Ft=j.minDate&&!this._dateAdapter.sameDate(j.minDate.previousValue,j.minDate.currentValue)?j.minDate:void 0,J=j.maxDate&&!this._dateAdapter.sameDate(j.maxDate.previousValue,j.maxDate.currentValue)?j.maxDate:void 0,Et=Ft||J||j.dateFilter;if(Et&&!Et.firstChange){const ze=this._getCurrentViewComponent();ze&&(this._changeDetectorRef.detectChanges(),ze._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(j){const Ft=j.value;(this.selected instanceof Pn||Ft&&!this._dateAdapter.sameDate(Ft,this.selected))&&this.selectedChange.emit(Ft),this._userSelection.emit(j)}_yearSelectedInMultiYearView(j){this.yearSelected.emit(j)}_monthSelectedInYearView(j){this.monthSelected.emit(j)}_goToDateInView(j,Ft){this.activeDate=j,this.currentView=Ft}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(De),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar"]],viewQuery:function(j,Ft){if(1&j&&(t.Gf(vn,5),t.Gf(Qe,5),t.Gf(Di,5)),2&j){let J;t.iGM(J=t.CRH())&&(Ft.monthView=J.first),t.iGM(J=t.CRH())&&(Ft.yearView=J.first),t.iGM(J=t.CRH())&&(Ft.multiYearView=J.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([ee]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(j,Ft){1&j&&(t.YNc(0,Vt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,be,1,8,"mat-month-view",2),t.YNc(3,ge,1,6,"mat-year-view",3),t.YNc(4,Fe,1,6,"mat-multi-year-view",4),t.qZA()),2&j&&(t.Q6J("cdkPortalOutlet",Ft._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Ft.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[g.RF,g.n9,u.kH,v.Pl,vn,Qe,Di],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Me})();const tn={transformPanel:(0,Zt.X$)("transformPanel",[(0,Zt.eR)("void => enter-dropdown",(0,Zt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Zt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Zt.eR)("void => enter-dialog",(0,Zt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(0.7)"}),(0,Zt.oB)({transform:"none",opacity:1})]))),(0,Zt.eR)("* => void",(0,Zt.jt)("100ms linear",(0,Zt.oB)({opacity:0})))]),fadeInCalendar:(0,Zt.X$)("fadeInCalendar",[(0,Zt.SB)("void",(0,Zt.oB)({opacity:0})),(0,Zt.SB)("enter",(0,Zt.oB)({opacity:1})),(0,Zt.eR)("void => *",(0,Zt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ce=0;const Be=new t.OlP("mat-datepicker-scroll-strategy"),rn={provide:Be,deps:[d.aV],useFactory:function oe(Me){return()=>Me.scrollStrategies.reposition()}},gn=(0,w.pj)(class{constructor(Me){this._elementRef=Me}});let cn=(()=>{class Me extends gn{constructor(j,Ft,J,Et,ze,Vn){super(j),this._changeDetectorRef=Ft,this._globalModel=J,this._dateAdapter=Et,this._rangeSelectionStrategy=ze,this._subscriptions=new O.w,this._animationDone=new P.xQ,this._actionsPortal=null,this._closeButtonText=Vn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(j){const Ft=this._model.selection,J=j.value,Et=Ft instanceof Pn;if(Et&&this._rangeSelectionStrategy){const ze=this._rangeSelectionStrategy.selectionFinished(J,Ft,j.event);this._model.updateSelection(ze,this)}else J&&(Et||!this._dateAdapter.sameDate(J,Ft))&&this._model.add(J);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(j,Ft){this._model=j?this._globalModel.clone():this._globalModel,this._actionsPortal=j,Ft&&this._changeDetectorRef.detectChanges()}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ii),t.Y36(w._A),t.Y36(At,8),t.Y36(De))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-content"]],viewQuery:function(j,Ft){if(1&j&&t.Gf(Ne,5),2&j){let J;t.iGM(J=t.CRH())&&(Ft._calendar=J.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(j,Ft){1&j&&t.WFA("@transformPanel.done",function(){return Ft._animationDone.next()}),2&j&&(t.d8E("@transformPanel",Ft._animationState),t.ekj("mat-datepicker-content-touch",Ft.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(j,Ft){if(1&j&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Et){return Ft.datepicker._selectYear(Et)})("monthSelected",function(Et){return Ft.datepicker._selectMonth(Et)})("viewChanged",function(Et){return Ft.datepicker._viewChanged(Et)})("_userSelection",function(Et){return Ft._handleUserSelection(Et)}),t.qZA(),t.YNc(2,qe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Ft._closeButtonFocused=!0})("blur",function(){return Ft._closeButtonFocused=!1})("click",function(){return Ft.datepicker.close()}),t._uU(4),t.qZA()()),2&j){let J;t.ekj("mat-datepicker-content-container-with-custom-header",Ft.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ft._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(J=Ft._dialogLabelId)&&void 0!==J?J:void 0),t.xp6(1),t.Q6J("id",Ft.datepicker.id)("ngClass",Ft.datepicker.panelClass)("startAt",Ft.datepicker.startAt)("startView",Ft.datepicker.startView)("minDate",Ft.datepicker._getMinDate())("maxDate",Ft.datepicker._getMaxDate())("dateFilter",Ft.datepicker._getDateFilter())("headerComponent",Ft.datepicker.calendarHeaderComponent)("selected",Ft._getSelected())("dateClass",Ft.datepicker.dateClass)("comparisonStart",Ft.comparisonStart)("comparisonEnd",Ft.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Ft._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Ft._closeButtonFocused),t.Q6J("color",Ft.color||"primary"),t.xp6(1),t.Oqu(Ft._closeButtonText)}},dependencies:[g.mk,T.lW,u.mK,v.Pl,Ne],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[tn.transformPanel,tn.fadeInCalendar]},changeDetection:0}),Me})(),xe=(()=>{class Me{constructor(j,Ft,J,Et,ze,Vn,Xi){this._overlay=j,this._ngZone=Ft,this._viewContainerRef=J,this._dateAdapter=ze,this._dir=Vn,this._model=Xi,this._inputStateChanges=O.w.EMPTY,this._document=(0,t.f3M)(g.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+ce++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new P.xQ,this._scrollStrategy=Et}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(j){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(j){this._color=j}get touchUi(){return this._touchUi}set touchUi(j){this._touchUi=(0,Ct.Ig)(j)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(j){const Ft=(0,Ct.Ig)(j);Ft!==this._disabled&&(this._disabled=Ft,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(j){this._restoreFocus=(0,Ct.Ig)(j)}get panelClass(){return this._panelClass}set panelClass(j){this._panelClass=(0,Ct.du)(j)}get opened(){return this._opened}set opened(j){(0,Ct.Ig)(j)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(j){const Ft=j.xPosition||j.yPosition;if(Ft&&!Ft.firstChange&&this._overlayRef){const J=this._overlayRef.getConfig().positionStrategy;J instanceof d._G&&(this._setConnectedPositions(J),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(j){this._model.add(j)}_selectYear(j){this.yearSelected.emit(j)}_selectMonth(j){this.monthSelected.emit(j)}_viewChanged(j){this.viewChanged.emit(j)}registerInput(j){return this._inputStateChanges.unsubscribe(),this.datepickerInput=j,this._inputStateChanges=j.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(j){this._actionsPortal=j,this._componentRef?.instance._assignActions(j,!0)}removeActions(j){j===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Dt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const j=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Ft=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:J,location:Et}=this._componentRef;J._startExitAnimation(),J._animationDone.pipe((0,et.q)(1)).subscribe(()=>{const ze=this._document.activeElement;j&&(!ze||ze===this._document.activeElement||Et.nativeElement.contains(ze))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}j?setTimeout(Ft):Ft()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(j){j.datepicker=this,j.color=this.color,j._dialogLabelId=this.datepickerInput.getOverlayLabelId(),j._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const j=this.touchUi,Ft=new v.C5(cn,this._viewContainerRef),J=this._overlayRef=this._overlay.create(new d.X_({positionStrategy:j?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[j?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:j?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(j?"dialog":"popup")}));this._getCloseStream(J).subscribe(Et=>{Et&&Et.preventDefault(),this.close()}),J.keydownEvents().subscribe(Et=>{const ze=Et.keyCode;(ze===B.LH||ze===B.JH||ze===B.oh||ze===B.SV||ze===B.Ku||ze===B.VM)&&Et.preventDefault()}),this._componentRef=J.attach(Ft),this._forwardContentValues(this._componentRef.instance),j||this._ngZone.onStable.pipe((0,et.q)(1)).subscribe(()=>J.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const j=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(j)}_setConnectedPositions(j){const Ft="end"===this.xPosition?"end":"start",J="start"===Ft?"end":"start",Et="above"===this.yPosition?"bottom":"top",ze="top"===Et?"bottom":"top";return j.withPositions([{originX:Ft,originY:ze,overlayX:Ft,overlayY:Et},{originX:Ft,originY:Et,overlayX:Ft,overlayY:ze},{originX:J,originY:ze,overlayX:J,overlayY:Et},{originX:J,originY:Et,overlayX:J,overlayY:ze}])}_getCloseStream(j){return(0,L.T)(j.backdropClick(),j.detachments(),j.keydownEvents().pipe((0,lt.h)(Ft=>Ft.keyCode===B.hY&&!(0,B.Vb)(Ft)||this.datepickerInput&&(0,B.Vb)(Ft,"altKey")&&Ft.keyCode===B.LH)))}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(d.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Be),t.Y36(w._A,8),t.Y36(K.Is,8),t.Y36(ii))},Me.\u0275dir=t.lG2({type:Me,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Me})(),It=(()=>{class Me extends xe{}return Me.\u0275fac=function(){let an;return function(Ft){return(an||(an=t.n5z(Me)))(Ft||Me)}}(),Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ee,{provide:xe,useExisting:Me}]),t.qOj],decls:0,vars:0,template:function(j,Ft){},encapsulation:2,changeDetection:0}),Me})();class Le{constructor(an,j){this.target=an,this.targetElement=j,this.value=this.target.value}}let zt=(()=>{class Me{constructor(j,Ft,J){this._elementRef=j,this._dateAdapter=Ft,this._dateFormats=J,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new P.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=O.w.EMPTY,this._localeSubscription=O.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Et=>{const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Et.value));return!ze||this._matchesFilter(ze)?null:{matDatepickerFilter:!0}},this._minValidator=Et=>{const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Et.value)),Vn=this._getMinDate();return!Vn||!ze||this._dateAdapter.compareDate(Vn,ze)<=0?null:{matDatepickerMin:{min:Vn,actual:ze}}},this._maxValidator=Et=>{const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Et.value)),Vn=this._getMaxDate();return!Vn||!ze||this._dateAdapter.compareDate(Vn,ze)>=0?null:{matDatepickerMax:{max:Vn,actual:ze}}},this._lastValueValid=!1,this._localeSubscription=Ft.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(j){this._assignValueProgrammatically(j)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(j){const Ft=(0,Ct.Ig)(j),J=this._elementRef.nativeElement;this._disabled!==Ft&&(this._disabled=Ft,this.stateChanges.next(void 0)),Ft&&this._isInitialized&&J.blur&&J.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(j){this._model=j,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ft=>{if(this._shouldHandleChangeEvent(Ft)){const J=this._getValueFromModel(Ft.selection);this._lastValueValid=this._isValidValue(J),this._cvaOnChange(J),this._onTouched(),this._formatValue(J),this.dateInput.emit(new Le(this,this._elementRef.nativeElement)),this.dateChange.emit(new Le(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(j){(function we(Me,an){const j=Object.keys(Me);for(let Ft of j){const{previousValue:J,currentValue:Et}=Me[Ft];if(!an.isDateInstance(J)||!an.isDateInstance(Et))return!0;if(!an.sameDate(J,Et))return!0}return!1})(j,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(j){this._validatorOnChange=j}validate(j){return this._validator?this._validator(j):null}writeValue(j){this._assignValueProgrammatically(j)}registerOnChange(j){this._cvaOnChange=j}registerOnTouched(j){this._onTouched=j}setDisabledState(j){this.disabled=j}_onKeydown(j){j.altKey&&j.keyCode===B.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),j.preventDefault())}_onInput(j){const Ft=this._lastValueValid;let J=this._dateAdapter.parse(j,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(J),J=this._dateAdapter.getValidDateOrNull(J);const Et=!this._dateAdapter.sameDate(J,this.value);!J||Et?this._cvaOnChange(J):(j&&!this.value&&this._cvaOnChange(J),Ft!==this._lastValueValid&&this._validatorOnChange()),Et&&(this._assignValue(J),this.dateInput.emit(new Le(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Le(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(j){this._elementRef.nativeElement.value=null!=j?this._dateAdapter.format(j,this._dateFormats.display.dateInput):""}_assignValue(j){this._model?(this._assignValueToModel(j),this._pendingValue=null):this._pendingValue=j}_isValidValue(j){return!j||this._dateAdapter.isValid(j)}_parentDisabled(){return!1}_assignValueProgrammatically(j){j=this._dateAdapter.deserialize(j),this._lastValueValid=this._isValidValue(j),j=this._dateAdapter.getValidDateOrNull(j),this._assignValue(j),this._formatValue(j)}_matchesFilter(j){const Ft=this._getDateFilter();return!Ft||Ft(j)}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8))},Me.\u0275dir=t.lG2({type:Me,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Me})();const He={provide:Rt.JU,useExisting:(0,t.Gpc)(()=>Ei),multi:!0},kn={provide:Rt.Cf,useExisting:(0,t.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class Me extends zt{constructor(j,Ft,J,Et){super(j,Ft,J),this._formField=Et,this._closedSubscription=O.w.EMPTY,this._validator=Rt.kI.compose(super._getValidators())}set matDatepicker(j){j&&(this._datepicker=j,this._closedSubscription=j.closedStream.subscribe(()=>this._onTouched()),this._registerModel(j.registerInput(this)))}get min(){return this._min}set min(j){const Ft=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(Ft,this._min)||(this._min=Ft,this._validatorOnChange())}get max(){return this._max}set max(j){const Ft=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(Ft,this._max)||(this._max=Ft,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(j){const Ft=this._matchesFilter(this.value);this._dateFilter=j,this._matchesFilter(this.value)!==Ft&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(j){return j}_assignValueToModel(j){this._model&&this._model.updateSelection(j,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(j){return j.source!==this}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(Gt.G_,8))},Me.\u0275dir=t.lG2({type:Me,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(j,Ft){1&j&&t.NdJ("input",function(Et){return Ft._onInput(Et.target.value)})("change",function(){return Ft._onChange()})("blur",function(){return Ft._onBlur()})("keydown",function(Et){return Ft._onKeydown(Et)}),2&j&&(t.Ikx("disabled",Ft.disabled),t.uIk("aria-haspopup",Ft._datepicker?"dialog":null)("aria-owns",(null==Ft._datepicker?null:Ft._datepicker.opened)&&Ft._datepicker.id||null)("min",Ft.min?Ft._dateAdapter.toIso8601(Ft.min):null)("max",Ft.max?Ft._dateAdapter.toIso8601(Ft.max):null)("data-mat-calendar",Ft._datepicker?Ft._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([He,kn,{provide:Tt.Jk,useExisting:Me}]),t.qOj]}),Me})(),Bi=(()=>{class Me{}return Me.\u0275fac=function(j){return new(j||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["","matDatepickerToggleIcon",""]]}),Me})(),un=(()=>{class Me{constructor(j,Ft,J){this._intl=j,this._changeDetectorRef=Ft,this._stateChanges=O.w.EMPTY;const Et=Number(J);this.tabIndex=Et||0===Et?Et:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(j){this._disabled=(0,Ct.Ig)(j)}ngOnChanges(j){j.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(j){this.datepicker&&!this.disabled&&(this.datepicker.open(),j.stopPropagation())}_watchStateChanges(){const j=this.datepicker?this.datepicker.stateChanges:(0,N.of)(),Ft=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,N.of)(),J=this.datepicker?(0,L.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,N.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,L.T)(this._intl.changes,j,Ft,J).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(De),t.Y36(t.sBO),t.$8M("tabindex"))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-toggle"]],contentQueries:function(j,Ft,J){if(1&j&&t.Suo(J,Bi,5),2&j){let Et;t.iGM(Et=t.CRH())&&(Ft._customIcon=Et.first)}},viewQuery:function(j,Ft){if(1&j&&t.Gf(je,5),2&j){let J;t.iGM(J=t.CRH())&&(Ft._button=J.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(j,Ft){1&j&&t.NdJ("click",function(Et){return Ft._open(Et)}),2&j&&(t.uIk("tabindex",null)("data-mat-calendar",Ft.datepicker?Ft.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Ft.datepicker&&Ft.datepicker.opened)("mat-accent",Ft.datepicker&&"accent"===Ft.datepicker.color)("mat-warn",Ft.datepicker&&"warn"===Ft.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ie,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(j,Ft){1&j&&(t.F$t(Ue),t.TgZ(0,"button",0,1),t.YNc(2,Qt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&j&&(t.Q6J("disabled",Ft.disabled)("disableRipple",Ft.disableRipple),t.uIk("aria-haspopup",Ft.datepicker?"dialog":null)("aria-label",Ft.ariaLabel||Ft._intl.openCalendarLabel)("tabindex",Ft.disabled?-1:Ft.tabIndex),t.xp6(2),t.Q6J("ngIf",!Ft._customIcon))},dependencies:[g.O5,T.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Me})(),Ye=(()=>{class Me{}return Me.\u0275fac=function(j){return new(j||Me)},Me.\u0275mod=t.oAB({type:Me}),Me.\u0275inj=t.cJS({providers:[De,rn],imports:[g.ez,T.ot,d.U8,u.rt,v.eL,w.BQ,U.ZD]}),Me})()},65412:(tt,W,f)=>{"use strict";f.d(W,{WI:()=>Wt,uw:()=>bn,H8:()=>_i,ZT:()=>dn,xY:()=>ii,Is:()=>We,so:()=>Ue,uh:()=>Pn});var u=f(12687),d=f(98184),v=f(83353),g=f(84080),t=f(36895),T=f(94650),U=f(29521),w=f(8929),P=f(88514),O=f(21086),L=f(40445),N=f(1059);function B(ee,ot){}class K{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ct=(()=>{class ee extends g.en{constructor(X,At,Ht,ue,ye,Se,vn,qn){super(),this._elementRef=X,this._focusTrapFactory=At,this._config=ue,this._interactivityChecker=ye,this._ngZone=Se,this._overlayRef=vn,this._focusMonitor=qn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Di=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Di},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ht}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(X){this._portalOutlet.hasAttached();const At=this._portalOutlet.attachComponentPortal(X);return this._contentAttached(),At}attachTemplatePortal(X){this._portalOutlet.hasAttached();const At=this._portalOutlet.attachTemplatePortal(X);return this._contentAttached(),At}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(X,At){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ht=()=>{X.removeEventListener("blur",Ht),X.removeEventListener("mousedown",Ht),X.removeAttribute("tabindex")};X.addEventListener("blur",Ht),X.addEventListener("mousedown",Ht)})),X.focus(At)}_focusByCssSelector(X,At){let Ht=this._elementRef.nativeElement.querySelector(X);Ht&&this._forceFocus(Ht,At)}_trapFocus(){const X=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||X.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(At=>{At||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const X=this._config.restoreFocus;let At=null;if("string"==typeof X?At=this._document.querySelector(X):"boolean"==typeof X?At=X?this._elementFocusedBeforeDialogWasOpened:null:X&&(At=X),this._config.restoreFocus&&At&&"function"==typeof At.focus){const Ht=(0,v.ht)(),ue=this._elementRef.nativeElement;(!Ht||Ht===this._document.body||Ht===ue||ue.contains(Ht))&&(this._focusMonitor?(this._focusMonitor.focusVia(At,this._closeInteractionType),this._closeInteractionType=null):At.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const X=this._elementRef.nativeElement,At=(0,v.ht)();return X===At||X.contains(At)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(K),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(d.Iu),T.Y36(u.tE))},ee.\u0275cmp=T.Xpm({type:ee,selectors:[["cdk-dialog-container"]],viewQuery:function(X,At){if(1&X&&T.Gf(g.Pl,7),2&X){let Ht;T.iGM(Ht=T.CRH())&&(At._portalOutlet=Ht.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(X,At){2&X&&T.uIk("id",At._config.id||null)("role",At._config.role)("aria-modal",At._config.ariaModal)("aria-labelledby",At._config.ariaLabel?null:At._ariaLabelledBy)("aria-label",At._config.ariaLabel)("aria-describedby",At._config.ariaDescribedBy||null)},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,At){1&X&&T.YNc(0,B,0,0,"ng-template",0)},dependencies:[g.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ee})();class lt{constructor(ot,X){this.overlayRef=ot,this.config=X,this.closed=new w.xQ,this.disableClose=X.disableClose,this.backdropClick=ot.backdropClick(),this.keydownEvents=ot.keydownEvents(),this.outsidePointerEvents=ot.outsidePointerEvents(),this.id=X.id,this.keydownEvents.subscribe(At=>{At.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(At)&&(At.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(ot,X){if(this.containerInstance){const At=this.closed;this.containerInstance._closeInteractionType=X?.focusOrigin||"program",this.overlayRef.dispose(),At.next(ot),At.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ot="",X=""){return this.overlayRef.updateSize({width:ot,height:X}),this}addPanelClass(ot){return this.overlayRef.addPanelClass(ot),this}removePanelClass(ot){return this.overlayRef.removePanelClass(ot),this}}const Ct=new T.OlP("DialogScrollStrategy"),Dt=new T.OlP("DialogData"),Zt=new T.OlP("DefaultDialogConfig"),Gt={provide:Ct,deps:[d.aV],useFactory:function Rt(ee){return()=>ee.scrollStrategies.block()}};let Tt=0,Ut=(()=>{class ee{constructor(X,At,Ht,ue,ye,Se){this._overlay=X,this._injector=At,this._defaultOptions=Ht,this._parentDialog=ue,this._overlayContainer=ye,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,P.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,N.O)(void 0))),this._scrollStrategy=Se}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(X,At){(At={...this._defaultOptions||new K,...At}).id=At.id||"cdk-dialog-"+Tt++,At.id&&this.getDialogById(At.id);const ue=this._getOverlayConfig(At),ye=this._overlay.create(ue),Se=new lt(ye,At),vn=this._attachContainer(ye,Se,At);return Se.containerInstance=vn,this._attachDialogContent(X,Se,vn,At),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Se),Se.closed.subscribe(()=>this._removeOpenDialog(Se,!0)),this.afterOpened.next(Se),Se}closeAll(){bt(this.openDialogs,X=>X.close())}getDialogById(X){return this.openDialogs.find(At=>At.id===X)}ngOnDestroy(){bt(this._openDialogsAtThisLevel,X=>{!1===X.config.closeOnDestroy&&this._removeOpenDialog(X,!1)}),bt(this._openDialogsAtThisLevel,X=>X.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(X){const At=new d.X_({positionStrategy:X.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:X.scrollStrategy||this._scrollStrategy(),panelClass:X.panelClass,hasBackdrop:X.hasBackdrop,direction:X.direction,minWidth:X.minWidth,minHeight:X.minHeight,maxWidth:X.maxWidth,maxHeight:X.maxHeight,width:X.width,height:X.height,disposeOnNavigation:X.closeOnNavigation});return X.backdropClass&&(At.backdropClass=X.backdropClass),At}_attachContainer(X,At,Ht){const ue=Ht.injector||Ht.viewContainerRef?.injector,ye=[{provide:K,useValue:Ht},{provide:lt,useValue:At},{provide:d.Iu,useValue:X}];let Se;Ht.container?"function"==typeof Ht.container?Se=Ht.container:(Se=Ht.container.type,ye.push(...Ht.container.providers(Ht))):Se=ct;const vn=new g.C5(Se,Ht.viewContainerRef,T.zs3.create({parent:ue||this._injector,providers:ye}),Ht.componentFactoryResolver);return X.attach(vn).instance}_attachDialogContent(X,At,Ht,ue){if(X instanceof T.Rgc){const ye=this._createInjector(ue,At,Ht,void 0);let Se={$implicit:ue.data,dialogRef:At};ue.templateContext&&(Se={...Se,..."function"==typeof ue.templateContext?ue.templateContext():ue.templateContext}),Ht.attachTemplatePortal(new g.UE(X,null,Se,ye))}else{const ye=this._createInjector(ue,At,Ht,this._injector),Se=Ht.attachComponentPortal(new g.C5(X,ue.viewContainerRef,ye,ue.componentFactoryResolver));At.componentInstance=Se.instance}}_createInjector(X,At,Ht,ue){const ye=X.injector||X.viewContainerRef?.injector,Se=[{provide:Dt,useValue:X.data},{provide:lt,useValue:At}];return X.providers&&("function"==typeof X.providers?Se.push(...X.providers(At,X,Ht)):Se.push(...X.providers)),X.direction&&(!ye||!ye.get(L.Is,null,T.XFs.Optional))&&Se.push({provide:L.Is,useValue:{value:X.direction,change:(0,O.of)()}}),T.zs3.create({parent:ye||ue,providers:Se})}_removeOpenDialog(X,At){const Ht=this.openDialogs.indexOf(X);Ht>-1&&(this.openDialogs.splice(Ht,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ue,ye)=>{ue?ye.setAttribute("aria-hidden",ue):ye.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),At&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const X=this._overlayContainer.getContainerElement();if(X.parentElement){const At=X.parentElement.children;for(let Ht=At.length-1;Ht>-1;Ht--){const ue=At[Ht];ue!==X&&"SCRIPT"!==ue.nodeName&&"STYLE"!==ue.nodeName&&!ue.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ue,ue.getAttribute("aria-hidden")),ue.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ee.\u0275fac=function(X){return new(X||ee)(T.LFG(d.aV),T.LFG(T.zs3),T.LFG(Zt,8),T.LFG(ee,12),T.LFG(d.Xj),T.LFG(Ct))},ee.\u0275prov=T.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function bt(ee,ot){let X=ee.length;for(;X--;)ot(ee[X])}let mt=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=T.oAB({type:ee}),ee.\u0275inj=T.cJS({providers:[Ut,Gt],imports:[d.U8,g.eL,u.rt,g.eL]}),ee})();var Lt=f(3238),Bt=f(36787),kt=f(92198),le=f(72986),Vt=f(37340);function be(ee,ot){}const ge={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Fe={dialogContainer:(0,Vt.X$)("dialogContainer",[(0,Vt.SB)("void, exit",(0,Vt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Vt.SB)("enter",(0,Vt.oB)({transform:"none"})),(0,Vt.eR)("* => enter",(0,Vt.ru)([(0,Vt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Vt.oB)({transform:"none",opacity:1})),(0,Vt.IO)("@*",(0,Vt.pV)(),{optional:!0})]),ge),(0,Vt.eR)("* => void, * => exit",(0,Vt.ru)([(0,Vt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Vt.oB)({opacity:0})),(0,Vt.IO)("@*",(0,Vt.pV)(),{optional:!0})]),ge)])};class qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ge.params.enterAnimationDuration,this.exitAnimationDuration=ge.params.exitAnimationDuration}}let je=(()=>{class ee extends ct{constructor(X,At,Ht,ue,ye,Se,vn,qn){super(X,At,Ht,ue,ye,Se,vn,qn),this._animationStateChanged=new T.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(X){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:X})}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(qe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(d.Iu),T.Y36(u.tE))},ee.\u0275cmp=T.Xpm({type:ee,selectors:[["ng-component"]],features:[T.qOj],decls:0,vars:0,template:function(X,At){},encapsulation:2}),ee})(),Qt=(()=>{class ee extends je{constructor(X,At,Ht,ue,ye,Se,vn,qn,mi){super(X,At,Ht,ue,ye,Se,vn,mi),this._changeDetectorRef=qn,this._state="enter"}_onAnimationDone({toState:X,totalTime:At}){"enter"===X?this._openAnimationDone(At):"exit"===X&&this._animationStateChanged.next({state:"closed",totalTime:At})}_onAnimationStart({toState:X,totalTime:At}){"enter"===X?this._animationStateChanged.next({state:"opening",totalTime:At}):("exit"===X||"void"===X)&&this._animationStateChanged.next({state:"closing",totalTime:At})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ge.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ge.params.exitAnimationDuration}}}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(qe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(d.Iu),T.Y36(T.sBO),T.Y36(u.tE))},ee.\u0275cmp=T.Xpm({type:ee,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(X,At){1&X&&T.WFA("@dialogContainer.start",function(ue){return At._onAnimationStart(ue)})("@dialogContainer.done",function(ue){return At._onAnimationDone(ue)}),2&X&&(T.Ikx("id",At._config.id),T.uIk("aria-modal",At._config.ariaModal)("role",At._config.role)("aria-labelledby",At._config.ariaLabel?null:At._ariaLabelledBy)("aria-label",At._config.ariaLabel)("aria-describedby",At._config.ariaDescribedBy||null),T.d8E("@dialogContainer",At._getAnimationState()))},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,At){1&X&&T.YNc(0,be,0,0,"ng-template",0)},dependencies:[g.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Fe.dialogContainer]}}),ee})();class Ue{constructor(ot,X,At){this._ref=ot,this._containerInstance=At,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=X.disableClose,this.id=ot.id,At._animationStateChanged.pipe((0,kt.h)(Ht=>"opened"===Ht.state),(0,le.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),At._animationStateChanged.pipe((0,kt.h)(Ht=>"closed"===Ht.state),(0,le.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ot.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,kt.h)(Ht=>Ht.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ht)))).subscribe(Ht=>{this.disableClose||(Ht.preventDefault(),ie(this,"keydown"===Ht.type?"keyboard":"mouse"))})}close(ot){this._result=ot,this._containerInstance._animationStateChanged.pipe((0,kt.h)(X=>"closing"===X.state),(0,le.q)(1)).subscribe(X=>{this._beforeClosed.next(ot),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),X.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(ot){let X=this._ref.config.positionStrategy;return ot&&(ot.left||ot.right)?ot.left?X.left(ot.left):X.right(ot.right):X.centerHorizontally(),ot&&(ot.top||ot.bottom)?ot.top?X.top(ot.top):X.bottom(ot.bottom):X.centerVertically(),this._ref.updatePosition(),this}updateSize(ot="",X=""){return this._ref.updateSize(ot,X),this}addPanelClass(ot){return this._ref.addPanelClass(ot),this}removePanelClass(ot){return this._ref.removePanelClass(ot),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ie(ee,ot,X){return ee._closeInteractionType=ot,ee.close(X)}const Wt=new T.OlP("MatDialogData"),se=new T.OlP("mat-dialog-default-options"),Xt=new T.OlP("mat-dialog-scroll-strategy"),nn={provide:Xt,deps:[d.aV],useFactory:function De(ee){return()=>ee.scrollStrategies.block()}};let hn=0,Ce=(()=>{class ee{constructor(X,At,Ht,ue,ye,Se,vn,qn,mi,Di){this._overlay=X,this._defaultOptions=Ht,this._parentDialog=ue,this._dialogRefConstructor=vn,this._dialogContainerType=qn,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,P.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,N.O)(void 0))),this._scrollStrategy=Se,this._dialog=At.get(Ut)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(X,At){let Ht;(At={...this._defaultOptions||new qe,...At}).id=At.id||`${this._idPrefix}${hn++}`,At.scrollStrategy=At.scrollStrategy||this._scrollStrategy();const ue=this._dialog.open(X,{...At,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:qe,useValue:At},{provide:K,useValue:At}]},templateContext:()=>({dialogRef:Ht}),providers:(ye,Se,vn)=>(Ht=new this._dialogRefConstructor(ye,At,vn),Ht.updatePosition(At?.position),[{provide:this._dialogContainerType,useValue:vn},{provide:this._dialogDataToken,useValue:Se.data},{provide:this._dialogRefConstructor,useValue:Ht}])});return Ht.componentInstance=ue.componentInstance,this.openDialogs.push(Ht),this.afterOpened.next(Ht),Ht.afterClosed().subscribe(()=>{const ye=this.openDialogs.indexOf(Ht);ye>-1&&(this.openDialogs.splice(ye,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ht}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(X){return this.openDialogs.find(At=>At.id===X)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(X){let At=X.length;for(;At--;)X[At].close()}}return ee.\u0275fac=function(X){T.$Z()},ee.\u0275prov=T.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),bn=(()=>{class ee extends Ce{constructor(X,At,Ht,ue,ye,Se,vn,qn){super(X,At,ue,Se,vn,ye,Ue,Qt,Wt,qn)}}return ee.\u0275fac=function(X){return new(X||ee)(T.LFG(d.aV),T.LFG(T.zs3),T.LFG(t.Ye,8),T.LFG(se,8),T.LFG(Xt),T.LFG(ee,12),T.LFG(d.Xj),T.LFG(T.QbO,8))},ee.\u0275prov=T.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),Oe=0,dn=(()=>{class ee{constructor(X,At,Ht){this.dialogRef=X,this._elementRef=At,this._dialog=Ht,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=oi(this._elementRef,this._dialog.openDialogs))}ngOnChanges(X){const At=X._matDialogClose||X._matDialogCloseResult;At&&(this.dialogResult=At.currentValue)}_onButtonClick(X){ie(this.dialogRef,0===X.screenX&&0===X.screenY?"keyboard":"mouse",this.dialogResult)}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(Ue,8),T.Y36(T.SBq),T.Y36(bn))},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(X,At){1&X&&T.NdJ("click",function(ue){return At._onButtonClick(ue)}),2&X&&T.uIk("aria-label",At.ariaLabel||null)("type",At.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[T.TTD]}),ee})(),Pn=(()=>{class ee{constructor(X,At,Ht){this._dialogRef=X,this._elementRef=At,this._dialog=Ht,this.id="mat-dialog-title-"+Oe++}ngOnInit(){this._dialogRef||(this._dialogRef=oi(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const X=this._dialogRef._containerInstance;X&&!X._ariaLabelledBy&&(X._ariaLabelledBy=this.id)})}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(Ue,8),T.Y36(T.SBq),T.Y36(bn))},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(X,At){2&X&&T.Ikx("id",At.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ee})(),ii=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ee})(),_i=(()=>{class ee{constructor(){this.align="start"}}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(X,At){2&X&&T.ekj("mat-dialog-actions-align-center","center"===At.align)("mat-dialog-actions-align-end","end"===At.align)},inputs:{align:"align"}}),ee})();function oi(ee,ot){let X=ee.nativeElement.parentElement;for(;X&&!X.classList.contains("mat-dialog-container");)X=X.parentElement;return X?ot.find(At=>At.id===X.id):null}let We=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=T.oAB({type:ee}),ee.\u0275inj=T.cJS({providers:[bn,nn],imports:[mt,d.U8,g.eL,Lt.BQ,Lt.BQ]}),ee})()},44850:(tt,W,f)=>{"use strict";f.d(W,{d:()=>g,t:()=>t});var u=f(94650),d=f(21281),v=f(3238);let g=(()=>{class T{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,d.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,d.Ig)(w)}}return T.\u0275fac=function(w){return new(w||T)},T.\u0275cmp=u.Xpm({type:T,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,P){2&w&&(u.uIk("aria-orientation",P.vertical?"vertical":"horizontal"),u.ekj("mat-divider-vertical",P.vertical)("mat-divider-horizontal",!P.vertical)("mat-divider-inset",P.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,P){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),T})(),t=(()=>{class T{}return T.\u0275fac=function(w){return new(w||T)},T.\u0275mod=u.oAB({type:T}),T.\u0275inj=u.cJS({imports:[v.BQ,v.BQ]}),T})()},37084:(tt,W,f)=>{"use strict";f.d(W,{pp:()=>nn,To:()=>hn,ib:()=>Ue,u4:()=>ae,yz:()=>Xt,yK:()=>De});var u=f(94650),d=f(95017),v=f(21281),g=f(8929),t=f(42654);let T=0;const U=new u.OlP("CdkAccordion");let w=(()=>{class Ce{constructor(){this._stateChanges=new g.xQ,this._openCloseAllActions=new g.xQ,this.id="cdk-accordion-"+T++,this._multi=!1}get multi(){return this._multi}set multi(Oe){this._multi=(0,v.Ig)(Oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Oe){this._stateChanges.next(Oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[u._Bn([{provide:U,useExisting:Ce}]),u.TTD]}),Ce})(),P=0,O=(()=>{class Ce{constructor(Oe,dn,Pn){this.accordion=Oe,this._changeDetectorRef=dn,this._expansionDispatcher=Pn,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new u.vpe,this.opened=new u.vpe,this.destroyed=new u.vpe,this.expandedChange=new u.vpe,this.id="cdk-accordion-child-"+P++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Pn.listen((ii,_i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===_i&&this.id!==ii&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Oe){Oe=(0,v.Ig)(Oe),this._expanded!==Oe&&(this._expanded=Oe,this.expandedChange.emit(Oe),Oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Oe){this._disabled=(0,v.Ig)(Oe)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Oe=>{this.disabled||(this.expanded=Oe)})}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(U,12),u.Y36(u.sBO),u.Y36(d.A8))},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[u._Bn([{provide:U,useValue:void 0}])]}),Ce})(),L=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({}),Ce})();var N=f(84080),B=f(36895),K=f(3238),et=f(12687),ct=f(75778),lt=f(1059),Ct=f(92198),Dt=f(72986),Zt=f(29521),Rt=f(68896),Gt=f(36787),Tt=f(37340);const Ut=["body"];function bt(Ce,bn){}const mt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Lt=["mat-expansion-panel-header","*","mat-action-row"];function Bt(Ce,bn){if(1&Ce&&u._UZ(0,"span",2),2&Ce){const Oe=u.oxw();u.Q6J("@indicatorRotate",Oe._getExpandedState())}}const kt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],le=["mat-panel-title","mat-panel-description","*"],Vt=new u.OlP("MAT_ACCORDION"),be="225ms cubic-bezier(0.4,0.0,0.2,1)",ge={indicatorRotate:(0,Tt.X$)("indicatorRotate",[(0,Tt.SB)("collapsed, void",(0,Tt.oB)({transform:"rotate(0deg)"})),(0,Tt.SB)("expanded",(0,Tt.oB)({transform:"rotate(180deg)"})),(0,Tt.eR)("expanded <=> collapsed, void => collapsed",(0,Tt.jt)(be))]),bodyExpansion:(0,Tt.X$)("bodyExpansion",[(0,Tt.SB)("collapsed, void",(0,Tt.oB)({height:"0px",visibility:"hidden"})),(0,Tt.SB)("expanded",(0,Tt.oB)({height:"*",visibility:"visible"})),(0,Tt.eR)("expanded <=> collapsed, void => collapsed",(0,Tt.jt)(be))])},Fe=new u.OlP("MAT_EXPANSION_PANEL");let qe=(()=>{class Ce{constructor(Oe,dn){this._template=Oe,this._expansionPanel=dn}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(u.Rgc),u.Y36(Fe,8))},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ce})(),je=0;const Qt=new u.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ue=(()=>{class Ce extends O{constructor(Oe,dn,Pn,ii,_i,oi,We){super(Oe,dn,Pn),this._viewContainerRef=ii,this._animationMode=oi,this._hideToggle=!1,this.afterExpand=new u.vpe,this.afterCollapse=new u.vpe,this._inputChanges=new g.xQ,this._headerId="mat-expansion-panel-header-"+je++,this._bodyAnimationDone=new g.xQ,this.accordion=Oe,this._document=_i,this._bodyAnimationDone.pipe((0,ct.x)((ee,ot)=>ee.fromState===ot.fromState&&ee.toState===ot.toState)).subscribe(ee=>{"void"!==ee.fromState&&("expanded"===ee.toState?this.afterExpand.emit():"collapsed"===ee.toState&&this.afterCollapse.emit())}),We&&(this.hideToggle=We.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Oe){this._hideToggle=(0,v.Ig)(Oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Oe){this._togglePosition=Oe}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,lt.O)(null),(0,Ct.h)(()=>this.expanded&&!this._portal),(0,Dt.q)(1)).subscribe(()=>{this._portal=new N.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Oe){this._inputChanges.next(Oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Oe=this._document.activeElement,dn=this._body.nativeElement;return Oe===dn||dn.contains(Oe)}return!1}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(Vt,12),u.Y36(u.sBO),u.Y36(d.A8),u.Y36(u.s_b),u.Y36(B.K0),u.Y36(u.QbO,8),u.Y36(Qt,8))},Ce.\u0275cmp=u.Xpm({type:Ce,selectors:[["mat-expansion-panel"]],contentQueries:function(Oe,dn,Pn){if(1&Oe&&u.Suo(Pn,qe,5),2&Oe){let ii;u.iGM(ii=u.CRH())&&(dn._lazyContent=ii.first)}},viewQuery:function(Oe,dn){if(1&Oe&&u.Gf(Ut,5),2&Oe){let Pn;u.iGM(Pn=u.CRH())&&(dn._body=Pn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Oe,dn){2&Oe&&u.ekj("mat-expanded",dn.expanded)("_mat-animation-noopable","NoopAnimations"===dn._animationMode)("mat-expansion-panel-spacing",dn._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[u._Bn([{provide:Vt,useValue:void 0},{provide:Fe,useExisting:Ce}]),u.qOj,u.TTD],ngContentSelectors:Lt,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Oe,dn){1&Oe&&(u.F$t(mt),u.Hsn(0),u.TgZ(1,"div",0,1),u.NdJ("@bodyExpansion.done",function(ii){return dn._bodyAnimationDone.next(ii)}),u.TgZ(3,"div",2),u.Hsn(4,1),u.YNc(5,bt,0,0,"ng-template",3),u.qZA(),u.Hsn(6,2),u.qZA()),2&Oe&&(u.xp6(1),u.Q6J("@bodyExpansion",dn._getExpandedState())("id",dn.id),u.uIk("aria-labelledby",dn._headerId),u.xp6(4),u.Q6J("cdkPortalOutlet",dn._portal))},dependencies:[N.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ge.bodyExpansion]},changeDetection:0}),Ce})();class Wt{}const se=(0,K.sb)(Wt);let Xt=(()=>{class Ce extends se{constructor(Oe,dn,Pn,ii,_i,oi,We){super(),this.panel=Oe,this._element=dn,this._focusMonitor=Pn,this._changeDetectorRef=ii,this._animationMode=oi,this._parentChangeSubscription=t.w.EMPTY;const ee=Oe.accordion?Oe.accordion._stateChanges.pipe((0,Ct.h)(ot=>!(!ot.hideToggle&&!ot.togglePosition))):Rt.E;this.tabIndex=parseInt(We||"")||0,this._parentChangeSubscription=(0,Gt.T)(Oe.opened,Oe.closed,ee,Oe._inputChanges.pipe((0,Ct.h)(ot=>!!(ot.hideToggle||ot.disabled||ot.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Oe.closed.pipe((0,Ct.h)(()=>Oe._containsFocus())).subscribe(()=>Pn.focusVia(dn,"program")),_i&&(this.expandedHeight=_i.expandedHeight,this.collapsedHeight=_i.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Oe=this._isExpanded();return Oe&&this.expandedHeight?this.expandedHeight:!Oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Oe){switch(Oe.keyCode){case Zt.L_:case Zt.K5:(0,Zt.Vb)(Oe)||(Oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Oe))}}focus(Oe,dn){Oe?this._focusMonitor.focusVia(this._element,Oe,dn):this._element.nativeElement.focus(dn)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Oe=>{Oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(Ue,1),u.Y36(u.SBq),u.Y36(et.tE),u.Y36(u.sBO),u.Y36(Qt,8),u.Y36(u.QbO,8),u.$8M("tabindex"))},Ce.\u0275cmp=u.Xpm({type:Ce,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Oe,dn){1&Oe&&u.NdJ("click",function(){return dn._toggle()})("keydown",function(ii){return dn._keydown(ii)}),2&Oe&&(u.uIk("id",dn.panel._headerId)("tabindex",dn.tabIndex)("aria-controls",dn._getPanelId())("aria-expanded",dn._isExpanded())("aria-disabled",dn.panel.disabled),u.Udp("height",dn._getHeaderHeight()),u.ekj("mat-expanded",dn._isExpanded())("mat-expansion-toggle-indicator-after","after"===dn._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===dn._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===dn._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[u.qOj],ngContentSelectors:le,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Oe,dn){1&Oe&&(u.F$t(kt),u.TgZ(0,"span",0),u.Hsn(1),u.Hsn(2,1),u.Hsn(3,2),u.qZA(),u.YNc(4,Bt,1,1,"span",1)),2&Oe&&(u.ekj("mat-content-hide-toggle",!dn._showToggle()),u.xp6(4),u.Q6J("ngIf",dn._showToggle()))},dependencies:[B.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ge.indicatorRotate]},changeDetection:0}),Ce})(),ae=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ce})(),De=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ce})(),nn=(()=>{class Ce extends w{constructor(){super(...arguments),this._ownHeaders=new u.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Oe){this._hideToggle=(0,v.Ig)(Oe)}ngAfterContentInit(){this._headers.changes.pipe((0,lt.O)(this._headers)).subscribe(Oe=>{this._ownHeaders.reset(Oe.filter(dn=>dn.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new et.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Oe){this._keyManager.onKeydown(Oe)}_handleHeaderFocus(Oe){this._keyManager.updateActiveItem(Oe)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ce.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=u.n5z(Ce)))(dn||Ce)}}(),Ce.\u0275dir=u.lG2({type:Ce,selectors:[["mat-accordion"]],contentQueries:function(Oe,dn,Pn){if(1&Oe&&u.Suo(Pn,Xt,5),2&Oe){let ii;u.iGM(ii=u.CRH())&&(dn._headers=ii)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Oe,dn){2&Oe&&u.ekj("mat-accordion-multi",dn.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[u._Bn([{provide:Vt,useExisting:Ce}]),u.qOj]}),Ce})(),hn=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({imports:[B.ez,K.BQ,L,N.eL]}),Ce})()},59549:(tt,W,f)=>{"use strict";f.d(W,{Eo:()=>qe,G_:()=>_i,KE:()=>oi,R9:()=>Ce,TO:()=>ge,bx:()=>se,hX:()=>Xt,lN:()=>We,o2:()=>ii,qo:()=>nn});var u=f(49643),d=f(36895),v=f(94650),g=f(3238),t=f(40445),T=f(21281),U=f(8929),w=f(36787),P=f(23753),O=f(1059),L=f(7625),N=f(72986),B=f(37340),K=f(83353);const et=["connectionContainer"],ct=["inputContainer"],lt=["label"];function Ct(ee,ot){1&ee&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15)(3,"div",16)(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15)(7,"div",16)(8,"div",17),v.qZA(),v.BQk())}function Dt(ee,ot){if(1&ee){const X=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){v.CHM(X);const Ht=v.oxw();return v.KtG(Ht.updateOutlineGap())}),v.Hsn(1,1),v.qZA()}if(2&ee){const X=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=X.appearance)}}function Zt(ee,ot){if(1&ee&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&ee){const X=v.oxw(2);v.xp6(3),v.Oqu(X._control.placeholder)}}function Rt(ee,ot){1&ee&&v.Hsn(0,3,["*ngSwitchCase","true"])}function Gt(ee,ot){1&ee&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function Tt(ee,ot){if(1&ee){const X=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){v.CHM(X);const Ht=v.oxw();return v.KtG(Ht.updateOutlineGap())}),v.YNc(2,Zt,4,1,"ng-container",12),v.YNc(3,Rt,1,0,"ng-content",12),v.YNc(4,Gt,2,0,"span",22),v.qZA()}if(2&ee){const X=v.oxw();v.ekj("mat-empty",X._control.empty&&!X._shouldAlwaysFloat())("mat-form-field-empty",X._control.empty&&!X._shouldAlwaysFloat())("mat-accent","accent"==X.color)("mat-warn","warn"==X.color),v.Q6J("cdkObserveContentDisabled","outline"!=X.appearance)("id",X._labelId)("ngSwitch",X._hasLabel()),v.uIk("for",X._control.id)("aria-owns",X._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!X.hideRequiredMarker&&X._control.required&&!X._control.disabled)}}function Ut(ee,ot){1&ee&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function bt(ee,ot){if(1&ee&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&ee){const X=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==X.color)("mat-warn","warn"==X.color)}}function mt(ee,ot){if(1&ee&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&ee){const X=v.oxw();v.Q6J("@transitionMessages",X._subscriptAnimationState)}}function Lt(ee,ot){if(1&ee&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&ee){const X=v.oxw(2);v.Q6J("id",X._hintLabelId),v.xp6(1),v.Oqu(X.hintLabel)}}function Bt(ee,ot){if(1&ee&&(v.TgZ(0,"div",27),v.YNc(1,Lt,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&ee){const X=v.oxw();v.Q6J("@transitionMessages",X._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",X.hintLabel)}}const kt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],le=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vt=0;const be=new v.OlP("MatError");let ge=(()=>{class ee{constructor(X,At){this.id="mat-error-"+Vt++,X||At.nativeElement.setAttribute("aria-live","polite")}}return ee.\u0275fac=function(X){return new(X||ee)(v.$8M("aria-live"),v.Y36(v.SBq))},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(X,At){2&X&&v.uIk("id",At.id)},inputs:{id:"id"},features:[v._Bn([{provide:be,useExisting:ee}])]}),ee})();const Fe={transitionMessages:(0,B.X$)("transitionMessages",[(0,B.SB)("enter",(0,B.oB)({opacity:1,transform:"translateY(0%)"})),(0,B.eR)("void => enter",[(0,B.oB)({opacity:0,transform:"translateY(-5px)"}),(0,B.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qe=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee}),ee})(),ie=0;const Wt=new v.OlP("MatHint");let se=(()=>{class ee{constructor(){this.align="start",this.id="mat-hint-"+ie++}}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(X,At){2&X&&(v.uIk("id",At.id)("align",null),v.ekj("mat-form-field-hint-end","end"===At.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:Wt,useExisting:ee}])]}),ee})(),Xt=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-label"]]}),ee})(),ae=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-placeholder"]]}),ee})();const De=new v.OlP("MatPrefix");let nn=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["","matPrefix",""]],features:[v._Bn([{provide:De,useExisting:ee}])]}),ee})();const hn=new v.OlP("MatSuffix");let Ce=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:hn,useExisting:ee}])]}),ee})(),bn=0;const Pn=(0,g.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),ii=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_i=new v.OlP("MatFormField");let oi=(()=>{class ee extends Pn{constructor(X,At,Ht,ue,ye,Se,vn){super(X),this._changeDetectorRef=At,this._dir=Ht,this._defaults=ue,this._platform=ye,this._ngZone=Se,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new U.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==vn,this.appearance=ue?.appearance||"legacy",ue&&(this._hideRequiredMarker=Boolean(ue.hideRequiredMarker),ue.color&&(this.color=this.defaultColor=ue.color))}get appearance(){return this._appearance}set appearance(X){const At=this._appearance;this._appearance=X||this._defaults?.appearance||"legacy","outline"===this._appearance&&At!==X&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(X){this._hideRequiredMarker=(0,T.Ig)(X)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(X){this._hintLabel=X,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(X){X!==this._floatLabel&&(this._floatLabel=X||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(X){this._explicitFormFieldControl=X}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const X=this._control;X.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${X.controlType}`),X.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),X.ngControl&&X.ngControl.valueChanges&&X.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(X){const At=this._control?this._control.ngControl:null;return At&&At[X]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,P.R)(this._label.nativeElement,"transitionend").pipe((0,N.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let X=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&X.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const At=this._hintChildren?this._hintChildren.find(ue=>"start"===ue.align):null,Ht=this._hintChildren?this._hintChildren.find(ue=>"end"===ue.align):null;At?X.push(At.id):this._hintLabel&&X.push(this._hintLabelId),Ht&&X.push(Ht.id)}else this._errorChildren&&X.push(...this._errorChildren.map(At=>At.id));this._control.setDescribedByIds(X)}}_validateControlChild(){}updateOutlineGap(){const X=this._label?this._label.nativeElement:null,At=this._connectionContainerRef.nativeElement,Ht=".mat-form-field-outline-start",ue=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!X||!X.children.length||!X.textContent.trim()){const mi=At.querySelectorAll(`${Ht}, ${ue}`);for(let Di=0;Di0?.75*zn+10:0}for(let mi=0;mi{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=v.oAB({type:ee}),ee.\u0275inj=v.cJS({imports:[d.ez,g.BQ,u.Q8,g.BQ]}),ee})()},90782:(tt,W,f)=>{"use strict";f.d(W,{DX:()=>N,Il:()=>bt,N6:()=>mt});var u=f(94650),d=f(3238),v=f(21281),g=f(40445);const t=["*"];class P{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const kt=Math.max(...this.tracker);return kt>1?this.rowCount+kt-1:this.rowCount}update(kt,le){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(kt),this.tracker.fill(0,0,this.tracker.length),this.positions=le.map(Vt=>this._trackTile(Vt))}_trackTile(kt){const le=this._findMatchingGap(kt.colspan);return this._markTilePosition(le,kt),this.columnIndex=le+kt.colspan,new O(this.rowIndex,le)}_findMatchingGap(kt){let le=-1,Vt=-1;do{this.columnIndex+kt>this.tracker.length?(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(le)):(le=this.tracker.indexOf(0,this.columnIndex),-1!=le?(Vt=this._findGapEndIndex(le),this.columnIndex=le+1):(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(le)))}while(Vt-le{class Bt{constructor(le,Vt){this._element=le,this._gridList=Vt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(le){this._rowspan=Math.round((0,v.su)(le))}get colspan(){return this._colspan}set colspan(le){this._colspan=Math.round((0,v.su)(le))}_setStyle(le,Vt){this._element.nativeElement.style[le]=Vt}}return Bt.\u0275fac=function(le){return new(le||Bt)(u.Y36(u.SBq),u.Y36(L,8))},Bt.\u0275cmp=u.Xpm({type:Bt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(le,Vt){2&le&&u.uIk("rowspan",Vt.rowspan)("colspan",Vt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(le,Vt){1&le&&(u.F$t(),u.TgZ(0,"div",0),u.Hsn(1),u.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})();const lt=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Ct{constructor(){this._rows=0,this._rowspan=0}init(kt,le,Vt,be){this._gutterSize=Tt(kt),this._rows=le.rowCount,this._rowspan=le.rowspan,this._cols=Vt,this._direction=be}getBaseTileSize(kt,le){return`(${kt}% - (${this._gutterSize} * ${le}))`}getTilePosition(kt,le){return 0===le?"0":Gt(`(${kt} + ${this._gutterSize}) * ${le}`)}getTileSize(kt,le){return`(${kt} * ${le}) + (${le-1} * ${this._gutterSize})`}setStyle(kt,le,Vt){let be=100/this._cols,ge=(this._cols-1)/this._cols;this.setColStyles(kt,Vt,be,ge),this.setRowStyles(kt,le,be,ge)}setColStyles(kt,le,Vt,be){let ge=this.getBaseTileSize(Vt,be);kt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(ge,le)),kt._setStyle("width",Gt(this.getTileSize(ge,kt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(kt){return`${this._rowspan} * ${this.getTileSize(kt,1)}`}getComputedHeight(){return null}}class Dt extends Ct{constructor(kt){super(),this.fixedRowHeight=kt}init(kt,le,Vt,be){super.init(kt,le,Vt,be),this.fixedRowHeight=Tt(this.fixedRowHeight),lt.test(this.fixedRowHeight)}setRowStyles(kt,le){kt._setStyle("top",this.getTilePosition(this.fixedRowHeight,le)),kt._setStyle("height",Gt(this.getTileSize(this.fixedRowHeight,kt.rowspan)))}getComputedHeight(){return["height",Gt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(kt){kt._setListStyle(["height",null]),kt._tiles&&kt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}class Zt extends Ct{constructor(kt){super(),this._parseRatio(kt)}setRowStyles(kt,le,Vt,be){this.baseTileHeight=this.getBaseTileSize(Vt/this.rowHeightRatio,be),kt._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,le)),kt._setStyle("paddingTop",Gt(this.getTileSize(this.baseTileHeight,kt.rowspan)))}getComputedHeight(){return["paddingBottom",Gt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(kt){kt._setListStyle(["paddingBottom",null]),kt._tiles.forEach(le=>{le._setStyle("marginTop",null),le._setStyle("paddingTop",null)})}_parseRatio(kt){const le=kt.split(":");this.rowHeightRatio=parseFloat(le[0])/parseFloat(le[1])}}class Rt extends Ct{setRowStyles(kt,le){let ge=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);kt._setStyle("top",this.getTilePosition(ge,le)),kt._setStyle("height",Gt(this.getTileSize(ge,kt.rowspan)))}reset(kt){kt._tiles&&kt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}function Gt(Bt){return`calc(${Bt})`}function Tt(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let bt=(()=>{class Bt{constructor(le,Vt){this._element=le,this._dir=Vt,this._gutter="1px"}get cols(){return this._cols}set cols(le){this._cols=Math.max(1,Math.round((0,v.su)(le)))}get gutterSize(){return this._gutter}set gutterSize(le){this._gutter=`${le??""}`}get rowHeight(){return this._rowHeight}set rowHeight(le){const Vt=`${le??""}`;Vt!==this._rowHeight&&(this._rowHeight=Vt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(le){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===le?new Rt:le&&le.indexOf(":")>-1?new Zt(le):new Dt(le)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new P);const le=this._tileCoordinator,Vt=this._tiles.filter(ge=>!ge._gridList||ge._gridList===this),be=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Vt),this._tileStyler.init(this.gutterSize,le,this.cols,be),Vt.forEach((ge,Fe)=>{const qe=le.positions[Fe];this._tileStyler.setStyle(ge,qe.row,qe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(le){le&&(this._element.nativeElement.style[le[0]]=le[1])}}return Bt.\u0275fac=function(le){return new(le||Bt)(u.Y36(u.SBq),u.Y36(g.Is,8))},Bt.\u0275cmp=u.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(le,Vt,be){if(1&le&&u.Suo(be,N,5),2&le){let ge;u.iGM(ge=u.CRH())&&(Vt._tiles=ge)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(le,Vt){2&le&&u.uIk("cols",Vt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[u._Bn([{provide:L,useExisting:Bt}])],ngContentSelectors:t,decls:2,vars:0,template:function(le,Vt){1&le&&(u.F$t(),u.TgZ(0,"div"),u.Hsn(1),u.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})(),mt=(()=>{class Bt{}return Bt.\u0275fac=function(le){return new(le||Bt)},Bt.\u0275mod=u.oAB({type:Bt}),Bt.\u0275inj=u.cJS({imports:[d.uc,d.BQ,d.uc,d.BQ]}),Bt})()},97392:(tt,W,f)=>{"use strict";f.d(W,{Hw:()=>ie,Ps:()=>Wt});var u=f(94650),d=f(3238),v=f(21281),g=f(36895),t=f(21086),T=f(61737),U=f(30567),w=f(42654),P=f(22868),O=f(24850),L=f(27221),N=f(40537),B=f(12474),K=f(72986),et=f(80529),ct=f(11481);const lt=["*"];let Ct;function Zt(se){return function Dt(){if(void 0===Ct&&(Ct=null,typeof window<"u")){const se=window;void 0!==se.trustedTypes&&(Ct=se.trustedTypes.createPolicy("angular#components",{createHTML:Xt=>Xt}))}return Ct}()?.createHTML(se)||se}function Rt(se){return Error(`Unable to find icon with the name "${se}"`)}function Tt(se){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${se}".`)}function Ut(se){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${se}".`)}class bt{constructor(Xt,ae,De){this.url=Xt,this.svgText=ae,this.options=De}}let mt=(()=>{class se{constructor(ae,De,nn,hn){this._httpClient=ae,this._sanitizer=De,this._errorHandler=hn,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=nn}addSvgIcon(ae,De,nn){return this.addSvgIconInNamespace("",ae,De,nn)}addSvgIconLiteral(ae,De,nn){return this.addSvgIconLiteralInNamespace("",ae,De,nn)}addSvgIconInNamespace(ae,De,nn,hn){return this._addSvgIconConfig(ae,De,new bt(nn,null,hn))}addSvgIconResolver(ae){return this._resolvers.push(ae),this}addSvgIconLiteralInNamespace(ae,De,nn,hn){const Ce=this._sanitizer.sanitize(u.q3G.HTML,nn);if(!Ce)throw Ut(nn);const bn=Zt(Ce);return this._addSvgIconConfig(ae,De,new bt("",bn,hn))}addSvgIconSet(ae,De){return this.addSvgIconSetInNamespace("",ae,De)}addSvgIconSetLiteral(ae,De){return this.addSvgIconSetLiteralInNamespace("",ae,De)}addSvgIconSetInNamespace(ae,De,nn){return this._addSvgIconSetConfig(ae,new bt(De,null,nn))}addSvgIconSetLiteralInNamespace(ae,De,nn){const hn=this._sanitizer.sanitize(u.q3G.HTML,De);if(!hn)throw Ut(De);const Ce=Zt(hn);return this._addSvgIconSetConfig(ae,new bt("",Ce,nn))}registerFontClassAlias(ae,De=ae){return this._fontCssClassesByAlias.set(ae,De),this}classNameForFontAlias(ae){return this._fontCssClassesByAlias.get(ae)||ae}setDefaultFontSetClass(...ae){return this._defaultFontSetClass=ae,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ae){const De=this._sanitizer.sanitize(u.q3G.RESOURCE_URL,ae);if(!De)throw Tt(ae);const nn=this._cachedIconsByUrl.get(De);return nn?(0,t.of)(kt(nn)):this._loadSvgIconFromConfig(new bt(ae,null)).pipe((0,P.b)(hn=>this._cachedIconsByUrl.set(De,hn)),(0,O.U)(hn=>kt(hn)))}getNamedSvgIcon(ae,De=""){const nn=le(De,ae);let hn=this._svgIconConfigs.get(nn);if(hn)return this._getSvgFromConfig(hn);if(hn=this._getIconConfigFromResolvers(De,ae),hn)return this._svgIconConfigs.set(nn,hn),this._getSvgFromConfig(hn);const Ce=this._iconSetConfigs.get(De);return Ce?this._getSvgFromIconSetConfigs(ae,Ce):(0,T._)(Rt(nn))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ae){return ae.svgText?(0,t.of)(kt(this._svgElementFromConfig(ae))):this._loadSvgIconFromConfig(ae).pipe((0,O.U)(De=>kt(De)))}_getSvgFromIconSetConfigs(ae,De){const nn=this._extractIconWithNameFromAnySet(ae,De);if(nn)return(0,t.of)(nn);const hn=De.filter(Ce=>!Ce.svgText).map(Ce=>this._loadSvgIconSetFromConfig(Ce).pipe((0,L.K)(bn=>{const dn=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,Ce.url)} failed: ${bn.message}`;return this._errorHandler.handleError(new Error(dn)),(0,t.of)(null)})));return(0,U.D)(hn).pipe((0,O.U)(()=>{const Ce=this._extractIconWithNameFromAnySet(ae,De);if(!Ce)throw Rt(ae);return Ce}))}_extractIconWithNameFromAnySet(ae,De){for(let nn=De.length-1;nn>=0;nn--){const hn=De[nn];if(hn.svgText&&hn.svgText.toString().indexOf(ae)>-1){const Ce=this._svgElementFromConfig(hn),bn=this._extractSvgIconFromSet(Ce,ae,hn.options);if(bn)return bn}}return null}_loadSvgIconFromConfig(ae){return this._fetchIcon(ae).pipe((0,P.b)(De=>ae.svgText=De),(0,O.U)(()=>this._svgElementFromConfig(ae)))}_loadSvgIconSetFromConfig(ae){return ae.svgText?(0,t.of)(null):this._fetchIcon(ae).pipe((0,P.b)(De=>ae.svgText=De))}_extractSvgIconFromSet(ae,De,nn){const hn=ae.querySelector(`[id="${De}"]`);if(!hn)return null;const Ce=hn.cloneNode(!0);if(Ce.removeAttribute("id"),"svg"===Ce.nodeName.toLowerCase())return this._setSvgAttributes(Ce,nn);if("symbol"===Ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ce),nn);const bn=this._svgElementFromString(Zt(""));return bn.appendChild(Ce),this._setSvgAttributes(bn,nn)}_svgElementFromString(ae){const De=this._document.createElement("DIV");De.innerHTML=ae;const nn=De.querySelector("svg");if(!nn)throw Error(" tag not found");return nn}_toSvgElement(ae){const De=this._svgElementFromString(Zt("")),nn=ae.attributes;for(let hn=0;hnZt(dn)),(0,N.x)(()=>this._inProgressUrlFetches.delete(Ce)),(0,B.B)());return this._inProgressUrlFetches.set(Ce,Oe),Oe}_addSvgIconConfig(ae,De,nn){return this._svgIconConfigs.set(le(ae,De),nn),this}_addSvgIconSetConfig(ae,De){const nn=this._iconSetConfigs.get(ae);return nn?nn.push(De):this._iconSetConfigs.set(ae,[De]),this}_svgElementFromConfig(ae){if(!ae.svgElement){const De=this._svgElementFromString(ae.svgText);this._setSvgAttributes(De,ae.options),ae.svgElement=De}return ae.svgElement}_getIconConfigFromResolvers(ae,De){for(let nn=0;nnXt?Xt.pathname+Xt.search:""}}}),je=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Qt=je.map(se=>`[${se}]`).join(", "),Ue=/^url\(['"]?#(.*?)['"]?\)$/;let ie=(()=>{class se extends be{constructor(ae,De,nn,hn,Ce,bn){super(ae),this._iconRegistry=De,this._location=hn,this._errorHandler=Ce,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,bn&&(bn.color&&(this.color=this.defaultColor=bn.color),bn.fontSet&&(this.fontSet=bn.fontSet)),nn||ae.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ae){this._inline=(0,v.Ig)(ae)}get svgIcon(){return this._svgIcon}set svgIcon(ae){ae!==this._svgIcon&&(ae?this._updateSvgIcon(ae):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ae)}get fontSet(){return this._fontSet}set fontSet(ae){const De=this._cleanupFontValue(ae);De!==this._fontSet&&(this._fontSet=De,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ae){const De=this._cleanupFontValue(ae);De!==this._fontIcon&&(this._fontIcon=De,this._updateFontIconClasses())}_splitIconName(ae){if(!ae)return["",""];const De=ae.split(":");switch(De.length){case 1:return["",De[0]];case 2:return De;default:throw Error(`Invalid icon name: "${ae}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ae=this._elementsWithExternalReferences;if(ae&&ae.size){const De=this._location.getPathname();De!==this._previousPath&&(this._previousPath=De,this._prependPathToReferences(De))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ae){this._clearSvgElement();const De=this._location.getPathname();this._previousPath=De,this._cacheChildrenWithExternalReferences(ae),this._prependPathToReferences(De),this._elementRef.nativeElement.appendChild(ae)}_clearSvgElement(){const ae=this._elementRef.nativeElement;let De=ae.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();De--;){const nn=ae.childNodes[De];(1!==nn.nodeType||"svg"===nn.nodeName.toLowerCase())&&nn.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ae=this._elementRef.nativeElement,De=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(nn=>nn.length>0);this._previousFontSetClass.forEach(nn=>ae.classList.remove(nn)),De.forEach(nn=>ae.classList.add(nn)),this._previousFontSetClass=De,this.fontIcon!==this._previousFontIconClass&&!De.includes("mat-ligature-font")&&(this._previousFontIconClass&&ae.classList.remove(this._previousFontIconClass),this.fontIcon&&ae.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ae){return"string"==typeof ae?ae.trim().split(" ")[0]:ae}_prependPathToReferences(ae){const De=this._elementsWithExternalReferences;De&&De.forEach((nn,hn)=>{nn.forEach(Ce=>{hn.setAttribute(Ce.name,`url('${ae}#${Ce.value}')`)})})}_cacheChildrenWithExternalReferences(ae){const De=ae.querySelectorAll(Qt),nn=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let hn=0;hn{const bn=De[hn],Oe=bn.getAttribute(Ce),dn=Oe?Oe.match(Ue):null;if(dn){let Pn=nn.get(bn);Pn||(Pn=[],nn.set(bn,Pn)),Pn.push({name:Ce,value:dn[1]})}})}_updateSvgIcon(ae){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ae){const[De,nn]=this._splitIconName(ae);De&&(this._svgNamespace=De),nn&&(this._svgName=nn),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(nn,De).pipe((0,K.q)(1)).subscribe(hn=>this._setSvgElement(hn),hn=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${De}:${nn}! ${hn.message}`))})}}}return se.\u0275fac=function(ae){return new(ae||se)(u.Y36(u.SBq),u.Y36(mt),u.$8M("aria-hidden"),u.Y36(Fe),u.Y36(u.qLn),u.Y36(ge,8))},se.\u0275cmp=u.Xpm({type:se,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(ae,De){2&ae&&(u.uIk("data-mat-icon-type",De._usingFontIcon()?"font":"svg")("data-mat-icon-name",De._svgName||De.fontIcon)("data-mat-icon-namespace",De._svgNamespace||De.fontSet)("fontIcon",De._usingFontIcon()?De.fontIcon:null),u.ekj("mat-icon-inline",De.inline)("mat-icon-no-color","primary"!==De.color&&"accent"!==De.color&&"warn"!==De.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[u.qOj],ngContentSelectors:lt,decls:1,vars:0,template:function(ae,De){1&ae&&(u.F$t(),u.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),se})(),Wt=(()=>{class se{}return se.\u0275fac=function(ae){return new(ae||se)},se.\u0275mod=u.oAB({type:se}),se.\u0275inj=u.cJS({imports:[d.BQ,d.BQ]}),se})()},284:(tt,W,f)=>{"use strict";f.d(W,{Jk:()=>O,Nt:()=>K,c:()=>et});var u=f(21281),d=f(83353),v=f(39349),g=f(94650),t=f(24006),T=f(3238),U=f(59549),w=f(8929);const O=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),L=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let N=0;const B=(0,T.FD)(class{constructor(ct,lt,Ct,Dt){this._defaultErrorStateMatcher=ct,this._parentForm=lt,this._parentFormGroup=Ct,this.ngControl=Dt,this.stateChanges=new w.xQ}});let K=(()=>{class ct extends B{constructor(Ct,Dt,Zt,Rt,Gt,Tt,Ut,bt,mt,Lt){super(Tt,Rt,Gt,Zt),this._elementRef=Ct,this._platform=Dt,this._autofillMonitor=bt,this._formField=Lt,this._uid="mat-input-"+N++,this.focused=!1,this.stateChanges=new w.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(le=>(0,d.qK)().has(le)),this._iOSKeyupListener=le=>{const Vt=le.target;!Vt.value&&0===Vt.selectionStart&&0===Vt.selectionEnd&&(Vt.setSelectionRange(1,1),Vt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,kt=Bt.nodeName.toLowerCase();this._inputValueAccessor=Ut||Bt,this._previousNativeValue=this.value,this.id=this.id,Dt.IOS&&mt.runOutsideAngular(()=>{Ct.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===kt,this._isTextarea="textarea"===kt,this._isInFormField=!!Lt,this._isNativeSelect&&(this.controlType=Bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ct){this._disabled=(0,u.Ig)(Ct),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Ct){this._id=Ct||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(Ct){this._required=(0,u.Ig)(Ct)}get type(){return this._type}set type(Ct){this._type=Ct||"text",this._validateType(),!this._isTextarea&&(0,d.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Ct){Ct!==this.value&&(this._inputValueAccessor.value=Ct,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Ct){this._readonly=(0,u.Ig)(Ct)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Ct=>{this.autofilled=Ct.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Ct){this._elementRef.nativeElement.focus(Ct)}_focusChanged(Ct){Ct!==this.focused&&(this.focused=Ct,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const Ct=this._formField,Dt=Ct&&"legacy"===Ct.appearance&&!Ct._hasLabel?.()?null:this.placeholder;if(Dt!==this._previousPlaceholder){const Zt=this._elementRef.nativeElement;this._previousPlaceholder=Dt,Dt?Zt.setAttribute("placeholder",Dt):Zt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Ct=this._elementRef.nativeElement.value;this._previousNativeValue!==Ct&&(this._previousNativeValue=Ct,this.stateChanges.next())}_validateType(){L.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Ct=this._elementRef.nativeElement.validity;return Ct&&Ct.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Ct=this._elementRef.nativeElement,Dt=Ct.options[0];return this.focused||Ct.multiple||!this.empty||!!(Ct.selectedIndex>-1&&Dt&&Dt.label)}return this.focused||!this.empty}setDescribedByIds(Ct){Ct.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ct.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Ct=this._elementRef.nativeElement;return this._isNativeSelect&&(Ct.multiple||Ct.size>1)}}return ct.\u0275fac=function(Ct){return new(Ct||ct)(g.Y36(g.SBq),g.Y36(d.t4),g.Y36(t.a5,10),g.Y36(t.F,8),g.Y36(t.sg,8),g.Y36(T.rD),g.Y36(O,10),g.Y36(v.Lq),g.Y36(g.R0b),g.Y36(U.G_,8))},ct.\u0275dir=g.lG2({type:ct,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Ct,Dt){1&Ct&&g.NdJ("focus",function(){return Dt._focusChanged(!0)})("blur",function(){return Dt._focusChanged(!1)})("input",function(){return Dt._onInput()}),2&Ct&&(g.Ikx("disabled",Dt.disabled)("required",Dt.required),g.uIk("id",Dt.id)("data-placeholder",Dt.placeholder)("name",Dt.name||null)("readonly",Dt.readonly&&!Dt._isNativeSelect||null)("aria-invalid",Dt.empty&&Dt.required?null:Dt.errorState)("aria-required",Dt.required),g.ekj("mat-input-server",Dt._isServer)("mat-native-select-inline",Dt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[g._Bn([{provide:U.Eo,useExisting:ct}]),g.qOj,g.TTD]}),ct})(),et=(()=>{class ct{}return ct.\u0275fac=function(Ct){return new(Ct||ct)},ct.\u0275mod=g.oAB({type:ct}),ct.\u0275inj=g.cJS({providers:[T.rD],imports:[v.Ky,U.lN,T.BQ,v.Ky,U.lN]}),ct})()},96338:(tt,W,f)=>{"use strict";f.d(W,{Hk:()=>bt,Nh:()=>Bt,Tg:()=>le,gs:()=>kt,i$:()=>mt,ie:()=>Qt});var u=f(36895),d=f(94650),v=f(3238),g=f(21281),t=f(8929),T=f(7625),N=(f(1059),f(12687),f(95017),f(29521),f(24006),f(44850));const B=["*"],et=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ct=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Rt=(0,v.Id)((0,v.Kr)(class{})),Gt=(0,v.Kr)(class{}),Tt=new d.OlP("MatList"),Ut=new d.OlP("MatNavList");let bt=(()=>{class Ue extends Rt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(){let ie;return function(se){return(ie||(ie=d.n5z(Ue)))(se||Ue)}}(),Ue.\u0275cmp=d.Xpm({type:Ue,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[d._Bn([{provide:Ut,useExisting:Ue}]),d.qOj,d.TTD],ngContentSelectors:B,decls:1,vars:0,template:function(Wt,se){1&Wt&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ue})(),mt=(()=>{class Ue extends Rt{constructor(Wt){super(),this._elementRef=Wt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(Wt.nativeElement.classList.add("mat-action-list"),Wt.nativeElement.setAttribute("role","group"))}_getListType(){const Wt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Wt?"list":"mat-action-list"===Wt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)(d.Y36(d.SBq))},Ue.\u0275cmp=d.Xpm({type:Ue,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[d._Bn([{provide:Tt,useExisting:Ue}]),d.qOj,d.TTD],ngContentSelectors:B,decls:1,vars:0,template:function(Wt,se){1&Wt&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ue})(),Lt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275dir=d.lG2({type:Ue,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ue})(),Bt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275dir=d.lG2({type:Ue,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Ue})(),kt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275dir=d.lG2({type:Ue,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Ue})(),le=(()=>{class Ue extends Gt{constructor(Wt,se,Xt,ae){super(),this._element=Wt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Xt||ae&&"action-list"===ae._getListType()),this._list=Xt||ae;const De=this._getHostElement();"button"===De.nodeName.toLowerCase()&&!De.hasAttribute("type")&&De.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>{se.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Wt){this._disabled=(0,g.Ig)(Wt)}ngAfterContentInit(){(0,v.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Ut,8),d.Y36(Tt,8))},Ue.\u0275cmp=d.Xpm({type:Ue,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Wt,se,Xt){if(1&Wt&&(d.Suo(Xt,Lt,5),d.Suo(Xt,Bt,5),d.Suo(Xt,v.X2,5)),2&Wt){let ae;d.iGM(ae=d.CRH())&&(se._avatar=ae.first),d.iGM(ae=d.CRH())&&(se._icon=ae.first),d.iGM(ae=d.CRH())&&(se._lines=ae)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Wt,se){2&Wt&&d.ekj("mat-list-item-disabled",se.disabled)("mat-list-item-with-avatar",se._avatar||se._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[d.qOj],ngContentSelectors:ct,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(Wt,se){1&Wt&&(d.F$t(et),d.TgZ(0,"span",0),d._UZ(1,"span",1),d.Hsn(2),d.TgZ(3,"span",2),d.Hsn(4,1),d.qZA(),d.Hsn(5,2),d.qZA()),2&Wt&&(d.xp6(1),d.Q6J("matRippleTrigger",se._getHostElement())("matRippleDisabled",se._isRippleDisabled()))},dependencies:[v.wG],encapsulation:2,changeDetection:0}),Ue})(),Qt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275mod=d.oAB({type:Ue}),Ue.\u0275inj=d.cJS({imports:[v.uc,v.si,v.BQ,v.us,u.ez,v.uc,v.BQ,v.us,N.t]}),Ue})()},28255:(tt,W,f)=>{"use strict";f.d(W,{OP:()=>ie,Tx:()=>ii,VK:()=>De,p6:()=>Pn});var u=f(12687),d=f(21281),v=f(29521),g=f(94650),t=f(8929),T=f(42654),U=f(36787),w=f(21086),P=f(8139),O=f(1059),L=f(87545),N=f(72986),B=f(7625),K=f(92198),et=f(18583),ct=f(37340),lt=f(84080),Ct=f(36895),Dt=f(3238),Zt=f(40445),Rt=f(98184),Gt=f(83353),Tt=f(67376);const Ut=["mat-menu-item",""];function bt(_i,oi){1&_i&&(g.O4$(),g.TgZ(0,"svg",2),g._UZ(1,"polygon",3),g.qZA())}const mt=["*"];function Lt(_i,oi){if(1&_i){const We=g.EpF();g.TgZ(0,"div",0),g.NdJ("keydown",function(ot){g.CHM(We);const X=g.oxw();return g.KtG(X._handleKeydown(ot))})("click",function(){g.CHM(We);const ot=g.oxw();return g.KtG(ot.closed.emit("click"))})("@transformMenu.start",function(ot){g.CHM(We);const X=g.oxw();return g.KtG(X._onAnimationStart(ot))})("@transformMenu.done",function(ot){g.CHM(We);const X=g.oxw();return g.KtG(X._onAnimationDone(ot))}),g.TgZ(1,"div",1),g.Hsn(2),g.qZA()()}if(2&_i){const We=g.oxw();g.Q6J("id",We.panelId)("ngClass",We._classList)("@transformMenu",We._panelAnimationState),g.uIk("aria-label",We.ariaLabel||null)("aria-labelledby",We.ariaLabelledby||null)("aria-describedby",We.ariaDescribedby||null)}}const Bt={transformMenu:(0,ct.X$)("transformMenu",[(0,ct.SB)("void",(0,ct.oB)({opacity:0,transform:"scale(0.8)"})),(0,ct.eR)("void => enter",(0,ct.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ct.oB)({opacity:1,transform:"scale(1)"}))),(0,ct.eR)("* => void",(0,ct.jt)("100ms 25ms linear",(0,ct.oB)({opacity:0})))]),fadeInItems:(0,ct.X$)("fadeInItems",[(0,ct.SB)("showing",(0,ct.oB)({opacity:1})),(0,ct.eR)("void => *",[(0,ct.oB)({opacity:0}),(0,ct.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vt=new g.OlP("MatMenuContent"),Qt=new g.OlP("MAT_MENU_PANEL"),Ue=(0,Dt.Kr)((0,Dt.Id)(class{}));let ie=(()=>{class _i extends Ue{constructor(We,ee,ot,X,At){super(),this._elementRef=We,this._document=ee,this._focusMonitor=ot,this._parentMenu=X,this._changeDetectorRef=At,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,X?.addItem?.(this)}focus(We,ee){this._focusMonitor&&We?this._focusMonitor.focusVia(this._getHostElement(),We,ee):this._getHostElement().focus(ee),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(We){this.disabled&&(We.preventDefault(),We.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const We=this._elementRef.nativeElement.cloneNode(!0),ee=We.querySelectorAll("mat-icon, .material-icons");for(let ot=0;ot{class _i{constructor(We,ee,ot,X){this._elementRef=We,this._ngZone=ee,this._defaultOptions=ot,this._changeDetectorRef=X,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new g.n_E,this._tabSubscription=T.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new g.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Xt++}get xPosition(){return this._xPosition}set xPosition(We){this._xPosition=We,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(We){this._yPosition=We,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(We){this._overlapTrigger=(0,d.Ig)(We)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(We){this._hasBackdrop=(0,d.Ig)(We)}set panelClass(We){const ee=this._previousPanelClass;ee&&ee.length&&ee.split(" ").forEach(ot=>{this._classList[ot]=!1}),this._previousPanelClass=We,We&&We.length&&(We.split(" ").forEach(ot=>{this._classList[ot]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(We){this.panelClass=We}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new u.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,L.w)(We=>(0,U.T)(...We.map(ee=>ee._focused)))).subscribe(We=>this._keyManager.updateActiveItem(We)),this._directDescendantItems.changes.subscribe(We=>{const ee=this._keyManager;if("enter"===this._panelAnimationState&&ee.activeItem?._hasFocus()){const ot=We.toArray(),X=Math.max(0,Math.min(ot.length-1,ee.activeItemIndex||0));ot[X]&&!ot[X].disabled?ee.setActiveItem(X):ee.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,L.w)(ee=>(0,U.T)(...ee.map(ot=>ot._hovered))))}addItem(We){}removeItem(We){}_handleKeydown(We){const ee=We.keyCode,ot=this._keyManager;switch(ee){case v.hY:(0,v.Vb)(We)||(We.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ee===v.LH||ee===v.JH)&&ot.setFocusOrigin("keyboard"),void ot.onKeydown(We)}We.stopPropagation()}focusFirstItem(We="program"){this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{let ee=null;if(this._directDescendantItems.length&&(ee=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ee||!ee.contains(document.activeElement)){const ot=this._keyManager;ot.setFocusOrigin(We).setFirstItemActive(),!ot.activeItem&&ee&&ee.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(We){const ee=Math.min(this._baseElevation+We,24),ot=`${this._elevationPrefix}${ee}`,X=Object.keys(this._classList).find(At=>At.startsWith(this._elevationPrefix));(!X||X===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ot]=!0,this._previousElevation=ot)}setPositionClasses(We=this.xPosition,ee=this.yPosition){const ot=this._classList;ot["mat-menu-before"]="before"===We,ot["mat-menu-after"]="after"===We,ot["mat-menu-above"]="above"===ee,ot["mat-menu-below"]="below"===ee,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(We){this._animationDone.next(We),this._isAnimating=!1}_onAnimationStart(We){this._isAnimating=!0,"enter"===We.toState&&0===this._keyManager.activeItemIndex&&(We.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,O.O)(this._allItems)).subscribe(We=>{this._directDescendantItems.reset(We.filter(ee=>ee._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return _i.\u0275fac=function(We){return new(We||_i)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Wt),g.Y36(g.sBO))},_i.\u0275dir=g.lG2({type:_i,contentQueries:function(We,ee,ot){if(1&We&&(g.Suo(ot,Vt,5),g.Suo(ot,ie,5),g.Suo(ot,ie,4)),2&We){let X;g.iGM(X=g.CRH())&&(ee.lazyContent=X.first),g.iGM(X=g.CRH())&&(ee._allItems=X),g.iGM(X=g.CRH())&&(ee.items=X)}},viewQuery:function(We,ee){if(1&We&&g.Gf(g.Rgc,5),2&We){let ot;g.iGM(ot=g.CRH())&&(ee.templateRef=ot.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),_i})(),De=(()=>{class _i extends ae{constructor(We,ee,ot,X){super(We,ee,ot,X),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return _i.\u0275fac=function(We){return new(We||_i)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Wt),g.Y36(g.sBO))},_i.\u0275cmp=g.Xpm({type:_i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(We,ee){2&We&&g.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[g._Bn([{provide:Qt,useExisting:_i}]),g.qOj],ngContentSelectors:mt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(We,ee){1&We&&(g.F$t(),g.YNc(0,Lt,3,6,"ng-template"))},dependencies:[Ct.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bt.transformMenu,Bt.fadeInItems]},changeDetection:0}),_i})();const nn=new g.OlP("mat-menu-scroll-strategy"),Ce={provide:nn,deps:[Rt.aV],useFactory:function hn(_i){return()=>_i.scrollStrategies.reposition()}},Oe=(0,Gt.i$)({passive:!0});let dn=(()=>{class _i{constructor(We,ee,ot,X,At,Ht,ue,ye,Se){this._overlay=We,this._element=ee,this._viewContainerRef=ot,this._menuItemInstance=Ht,this._dir=ue,this._focusMonitor=ye,this._ngZone=Se,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=T.w.EMPTY,this._hoverSubscription=T.w.EMPTY,this._menuCloseSubscription=T.w.EMPTY,this._handleTouchStart=vn=>{(0,u.yG)(vn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new g.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new g.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=X,this._parentMaterialMenu=At instanceof ae?At:void 0,ee.nativeElement.addEventListener("touchstart",this._handleTouchStart,Oe),Ht&&(Ht._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(We){this.menu=We}get menu(){return this._menu}set menu(We){We!==this._menu&&(this._menu=We,this._menuCloseSubscription.unsubscribe(),We&&(this._menuCloseSubscription=We.close.subscribe(ee=>{this._destroyMenu(ee),("click"===ee||"tab"===ee)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ee)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const We=this.menu;if(this._menuOpen||!We)return;const ee=this._createOverlay(We),ot=ee.getConfig(),X=ot.positionStrategy;this._setPosition(We,X),ot.hasBackdrop=We.hasBackdrop??!this.triggersSubmenu(),ee.attach(this._getPortal(We)),We.lazyContent&&We.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(We),We instanceof ae&&(We._startAnimation(),We._directDescendantItems.changes.pipe((0,B.R)(We.close)).subscribe(()=>{X.withLockedPosition(!1).reapplyLastPosition(),X.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(We,ee){this._focusMonitor&&We?this._focusMonitor.focusVia(this._element,We,ee):this._element.nativeElement.focus(ee)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(We){if(!this._overlayRef||!this.menuOpen)return;const ee=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===We||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ee instanceof ae?(ee._resetAnimation(),ee.lazyContent?ee._animationDone.pipe((0,K.h)(ot=>"void"===ot.toState),(0,N.q)(1),(0,B.R)(ee.lazyContent._attached)).subscribe({next:()=>ee.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ee?.lazyContent?.detach())}_initMenu(We){We.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,We.direction=this.dir,this._setMenuElevation(We),We.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(We){if(We.setElevation){let ee=0,ot=We.parentMenu;for(;ot;)ee++,ot=ot.parentMenu;We.setElevation(ee)}}_setIsMenuOpen(We){this._menuOpen=We,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(We)}_createOverlay(We){if(!this._overlayRef){const ee=this._getOverlayConfig(We);this._subscribeToPositions(We,ee.positionStrategy),this._overlayRef=this._overlay.create(ee),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(We){return new Rt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:We.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:We.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(We,ee){We.setPositionClasses&&ee.positionChanges.subscribe(ot=>{const X="start"===ot.connectionPair.overlayX?"after":"before",At="top"===ot.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>We.setPositionClasses(X,At)):We.setPositionClasses(X,At)})}_setPosition(We,ee){let[ot,X]="before"===We.xPosition?["end","start"]:["start","end"],[At,Ht]="above"===We.yPosition?["bottom","top"]:["top","bottom"],[ue,ye]=[At,Ht],[Se,vn]=[ot,X],qn=0;if(this.triggersSubmenu()){if(vn=ot="before"===We.xPosition?"start":"end",X=Se="end"===ot?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}qn="bottom"===At?this._parentInnerPadding:-this._parentInnerPadding}}else We.overlapTrigger||(ue="top"===At?"bottom":"top",ye="top"===Ht?"bottom":"top");ee.withPositions([{originX:ot,originY:ue,overlayX:Se,overlayY:At,offsetY:qn},{originX:X,originY:ue,overlayX:vn,overlayY:At,offsetY:qn},{originX:ot,originY:ye,overlayX:Se,overlayY:Ht,offsetY:-qn},{originX:X,originY:ye,overlayX:vn,overlayY:Ht,offsetY:-qn}])}_menuClosingActions(){const We=this._overlayRef.backdropClick(),ee=this._overlayRef.detachments(),ot=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),X=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(At=>At!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,w.of)();return(0,U.T)(We,ot,X,ee)}_handleMousedown(We){(0,u.X6)(We)||(this._openedBy=0===We.button?"mouse":void 0,this.triggersSubmenu()&&We.preventDefault())}_handleKeydown(We){const ee=We.keyCode;(ee===v.K5||ee===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ee===v.SV&&"ltr"===this.dir||ee===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(We){this.triggersSubmenu()?(We.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(We=>We===this._menuItemInstance&&!We.disabled),(0,et.g)(0,P.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ae&&this.menu._isAnimating?this.menu._animationDone.pipe((0,N.q)(1),(0,et.g)(0,P.E),(0,B.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(We){return(!this._portal||this._portal.templateRef!==We.templateRef)&&(this._portal=new lt.UE(We.templateRef,this._viewContainerRef)),this._portal}}return _i.\u0275fac=function(We){return new(We||_i)(g.Y36(Rt.aV),g.Y36(g.SBq),g.Y36(g.s_b),g.Y36(nn),g.Y36(Qt,8),g.Y36(ie,10),g.Y36(Zt.Is,8),g.Y36(u.tE),g.Y36(g.R0b))},_i.\u0275dir=g.lG2({type:_i,hostVars:3,hostBindings:function(We,ee){1&We&&g.NdJ("click",function(X){return ee._handleClick(X)})("mousedown",function(X){return ee._handleMousedown(X)})("keydown",function(X){return ee._handleKeydown(X)}),2&We&&g.uIk("aria-haspopup",ee.menu?"menu":null)("aria-expanded",ee.menuOpen||null)("aria-controls",ee.menuOpen?ee.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),_i})(),Pn=(()=>{class _i extends dn{}return _i.\u0275fac=function(){let oi;return function(ee){return(oi||(oi=g.n5z(_i)))(ee||_i)}}(),_i.\u0275dir=g.lG2({type:_i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[g.qOj]}),_i})(),ii=(()=>{class _i{}return _i.\u0275fac=function(We){return new(We||_i)},_i.\u0275mod=g.oAB({type:_i}),_i.\u0275inj=g.cJS({providers:[Ce],imports:[Ct.ez,Dt.BQ,Dt.si,Rt.U8,Tt.ZD,Dt.BQ]}),_i})()},98739:(tt,W,f)=>{"use strict";f.d(W,{NW:()=>Ut,TU:()=>bt});var u=f(36895),d=f(94650),v=f(3238),g=f(4859),t=f(84385),T=f(10266),U=f(21281),w=f(8929),P=f(59549);function O(mt,Lt){if(1&mt&&(d.TgZ(0,"mat-option",19),d._uU(1),d.qZA()),2&mt){const Bt=Lt.$implicit;d.Q6J("value",Bt),d.xp6(1),d.hij(" ",Bt," ")}}function L(mt,Lt){if(1&mt){const Bt=d.EpF();d.TgZ(0,"mat-form-field",16)(1,"mat-select",17),d.NdJ("selectionChange",function(le){d.CHM(Bt);const Vt=d.oxw(2);return d.KtG(Vt._changePageSize(le.value))}),d.YNc(2,O,2,2,"mat-option",18),d.qZA()()}if(2&mt){const Bt=d.oxw(2);d.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),d.xp6(1),d.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),d.xp6(1),d.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function N(mt,Lt){if(1&mt&&(d.TgZ(0,"div",20),d._uU(1),d.qZA()),2&mt){const Bt=d.oxw(2);d.xp6(1),d.Oqu(Bt.pageSize)}}function B(mt,Lt){if(1&mt&&(d.TgZ(0,"div",12)(1,"div",13),d._uU(2),d.qZA(),d.YNc(3,L,3,8,"mat-form-field",14),d.YNc(4,N,2,1,"div",15),d.qZA()),2&mt){const Bt=d.oxw();d.xp6(2),d.hij(" ",Bt._intl.itemsPerPageLabel," "),d.xp6(1),d.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),d.xp6(1),d.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function K(mt,Lt){if(1&mt){const Bt=d.EpF();d.TgZ(0,"button",21),d.NdJ("click",function(){d.CHM(Bt);const le=d.oxw();return d.KtG(le.firstPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",22),d.qZA()()}if(2&mt){const Bt=d.oxw();d.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),d.uIk("aria-label",Bt._intl.firstPageLabel)}}function et(mt,Lt){if(1&mt){const Bt=d.EpF();d.O4$(),d.kcU(),d.TgZ(0,"button",23),d.NdJ("click",function(){d.CHM(Bt);const le=d.oxw();return d.KtG(le.lastPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",24),d.qZA()()}if(2&mt){const Bt=d.oxw();d.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),d.uIk("aria-label",Bt._intl.lastPageLabel)}}let ct=(()=>{class mt{constructor(){this.changes=new w.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Bt,kt,le)=>{if(0==le||0==kt)return`0 of ${le}`;const Vt=Bt*kt;return`${Vt+1} \u2013 ${Vt<(le=Math.max(le,0))?Math.min(Vt+kt,le):Vt+kt} of ${le}`}}}return mt.\u0275fac=function(Bt){return new(Bt||mt)},mt.\u0275prov=d.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const Ct={provide:ct,deps:[[new d.FiY,new d.tp0,ct]],useFactory:function lt(mt){return mt||new ct}},Rt=new d.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Gt=(0,v.Id)((0,v.dB)(class{}));let Tt=(()=>{class mt extends Gt{constructor(Bt,kt,le){if(super(),this._intl=Bt,this._changeDetectorRef=kt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new d.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),le){const{pageSize:Vt,pageSizeOptions:be,hidePageSize:ge,showFirstLastButtons:Fe}=le;null!=Vt&&(this._pageSize=Vt),null!=be&&(this._pageSizeOptions=be),null!=ge&&(this._hidePageSize=ge),null!=Fe&&(this._showFirstLastButtons=Fe)}}get pageIndex(){return this._pageIndex}set pageIndex(Bt){this._pageIndex=Math.max((0,U.su)(Bt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Bt){this._length=(0,U.su)(Bt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Bt){this._pageSize=Math.max((0,U.su)(Bt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Bt){this._pageSizeOptions=(Bt||[]).map(kt=>(0,U.su)(kt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Bt){this._hidePageSize=(0,U.Ig)(Bt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Bt){this._showFirstLastButtons=(0,U.Ig)(Bt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Bt)}previousPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Bt)}firstPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Bt)}lastPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Bt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Bt=this.getNumberOfPages()-1;return this.pageIndexBt-kt),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return mt.\u0275fac=function(Bt){d.$Z()},mt.\u0275dir=d.lG2({type:mt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[d.qOj]}),mt})(),Ut=(()=>{class mt extends Tt{constructor(Bt,kt,le){super(Bt,kt,le),le&&null!=le.formFieldAppearance&&(this._formFieldAppearance=le.formFieldAppearance)}}return mt.\u0275fac=function(Bt){return new(Bt||mt)(d.Y36(ct),d.Y36(d.sBO),d.Y36(Rt,8))},mt.\u0275cmp=d.Xpm({type:mt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[d.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Bt,kt){1&Bt&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,B,5,3,"div",2),d.TgZ(3,"div",3)(4,"div",4),d._uU(5),d.qZA(),d.YNc(6,K,3,5,"button",5),d.TgZ(7,"button",6),d.NdJ("click",function(){return kt.previousPage()}),d.O4$(),d.TgZ(8,"svg",7),d._UZ(9,"path",8),d.qZA()(),d.kcU(),d.TgZ(10,"button",9),d.NdJ("click",function(){return kt.nextPage()}),d.O4$(),d.TgZ(11,"svg",7),d._UZ(12,"path",10),d.qZA()(),d.YNc(13,et,3,5,"button",11),d.qZA()()()),2&Bt&&(d.xp6(2),d.Q6J("ngIf",!kt.hidePageSize),d.xp6(3),d.hij(" ",kt._intl.getRangeLabel(kt.pageIndex,kt.pageSize,kt.length)," "),d.xp6(1),d.Q6J("ngIf",kt.showFirstLastButtons),d.xp6(1),d.Q6J("matTooltip",kt._intl.previousPageLabel)("matTooltipDisabled",kt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",kt._previousButtonsDisabled()),d.uIk("aria-label",kt._intl.previousPageLabel),d.xp6(3),d.Q6J("matTooltip",kt._intl.nextPageLabel)("matTooltipDisabled",kt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",kt._nextButtonsDisabled()),d.uIk("aria-label",kt._intl.nextPageLabel),d.xp6(3),d.Q6J("ngIf",kt.showFirstLastButtons))},dependencies:[u.sg,u.O5,g.lW,P.KE,t.gD,v.ey,T.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),mt})(),bt=(()=>{class mt{}return mt.\u0275fac=function(Bt){return new(Bt||mt)},mt.\u0275mod=d.oAB({type:mt}),mt.\u0275inj=d.cJS({providers:[Ct],imports:[u.ez,g.ot,t.LD,T.AV,v.BQ]}),mt})()},73162:(tt,W,f)=>{"use strict";f.d(W,{Cv:()=>ct,pW:()=>K});var u=f(94650),d=f(36895),v=f(3238),g=f(21281),t=f(42654),T=f(23753),U=f(92198);const w=["primaryValueBar"],P=(0,v.pj)(class{constructor(lt){this._elementRef=lt}},"primary"),O=new u.OlP("mat-progress-bar-location",{providedIn:"root",factory:function L(){const lt=(0,u.f3M)(d.K0),Ct=lt?lt.location:null;return{getPathname:()=>Ct?Ct.pathname+Ct.search:""}}}),N=new u.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let B=0,K=(()=>{class lt extends P{constructor(Dt,Zt,Rt,Gt,Tt,Ut){super(Dt),this._ngZone=Zt,this._animationMode=Rt,this._changeDetectorRef=Ut,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new u.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+B++;const bt=Gt?Gt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${bt}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===Rt,Tt&&(Tt.color&&(this.color=this.defaultColor=Tt.color),this.mode=Tt.mode||this.mode)}get value(){return this._value}set value(Dt){this._value=et((0,g.su)(Dt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Dt){this._bufferValue=et(Dt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Dt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,T.R)(Dt,"transitionend").pipe((0,U.h)(Zt=>Zt.target===Dt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return lt.\u0275fac=function(Dt){return new(Dt||lt)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(u.QbO,8),u.Y36(O,8),u.Y36(N,8),u.Y36(u.sBO))},lt.\u0275cmp=u.Xpm({type:lt,selectors:[["mat-progress-bar"]],viewQuery:function(Dt,Zt){if(1&Dt&&u.Gf(w,5),2&Dt){let Rt;u.iGM(Rt=u.CRH())&&(Zt._primaryValueBar=Rt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Dt,Zt){2&Dt&&(u.uIk("aria-valuenow","indeterminate"===Zt.mode||"query"===Zt.mode?null:Zt.value)("mode",Zt.mode),u.ekj("_mat-animation-noopable",Zt._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[u.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Dt,Zt){1&Dt&&(u.TgZ(0,"div",0),u.O4$(),u.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),u._UZ(4,"circle",3),u.qZA()(),u._UZ(5,"rect",4),u.qZA(),u.kcU(),u._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),u.qZA()),2&Dt&&(u.xp6(3),u.Q6J("id",Zt.progressbarId),u.xp6(2),u.uIk("fill",Zt._rectangleFillValue),u.xp6(1),u.Q6J("ngStyle",Zt._bufferTransform()),u.xp6(1),u.Q6J("ngStyle",Zt._primaryTransform()))},dependencies:[d.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),lt})();function et(lt,Ct=0,Dt=100){return Math.max(Ct,Math.min(Dt,lt))}let ct=(()=>{class lt{}return lt.\u0275fac=function(Dt){return new(Dt||lt)},lt.\u0275mod=u.oAB({type:lt}),lt.\u0275inj=u.cJS({imports:[d.ez,v.BQ,v.BQ]}),lt})()},51572:(tt,W,f)=>{"use strict";f.d(W,{Cq:()=>lt,Ou:()=>ct});var u=f(21281),d=f(83353),v=f(67376),g=f(36895),t=f(94650),T=f(3238),U=f(42654);function w(Dt,Zt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const Rt=t.oxw(),Gt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+Rt._spinnerAnimationLabel)("stroke-dashoffset",Rt._getStrokeDashOffset(),"px")("stroke-dasharray",Rt._getStrokeCircumference(),"px")("stroke-width",Rt._getCircleStrokeWidth(),"%")("transform-origin",Rt._getCircleTransformOrigin(Gt)),t.uIk("r",Rt._getCircleRadius())}}function P(Dt,Zt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const Rt=t.oxw(),Gt=t.MAs(1);t.Udp("stroke-dashoffset",Rt._getStrokeDashOffset(),"px")("stroke-dasharray",Rt._getStrokeCircumference(),"px")("stroke-width",Rt._getCircleStrokeWidth(),"%")("transform-origin",Rt._getCircleTransformOrigin(Gt)),t.uIk("r",Rt._getCircleRadius())}}const N=(0,T.pj)(class{constructor(Dt){this._elementRef=Dt}},"primary"),B=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function K(){return{diameter:100}}});class ct extends N{constructor(Zt,Rt,Gt,Tt,Ut,bt,mt,Lt){super(Zt),this._document=Gt,this._diameter=100,this._value=0,this._resizeSubscription=U.w.EMPTY,this.mode="determinate";const Bt=ct._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Gt.head)||Bt.set(Gt.head,new Set([100])),this._noopAnimations="NoopAnimations"===Tt&&!!Ut&&!Ut._forceAnimations,"mat-spinner"===Zt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Ut&&(Ut.color&&(this.color=this.defaultColor=Ut.color),Ut.diameter&&(this.diameter=Ut.diameter),Ut.strokeWidth&&(this.strokeWidth=Ut.strokeWidth)),Rt.isBrowser&&Rt.SAFARI&&mt&&bt&&Lt&&(this._resizeSubscription=mt.change(150).subscribe(()=>{"indeterminate"===this.mode&&Lt.run(()=>bt.markForCheck())}))}get diameter(){return this._diameter}set diameter(Zt){this._diameter=(0,u.su)(Zt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Zt){this._strokeWidth=(0,u.su)(Zt)}get value(){return"determinate"===this.mode?this._value:0}set value(Zt){this._value=Math.max(0,Math.min(100,(0,u.su)(Zt)))}ngOnInit(){const Zt=this._elementRef.nativeElement;this._styleRoot=(0,d.kV)(Zt)||this._document.head,this._attachStyleNode(),Zt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Zt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Zt} ${Zt}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Zt){const Rt=50*(Zt.currentScale??1);return`${Rt}% ${Rt}%`}_attachStyleNode(){const Zt=this._styleRoot,Rt=this._diameter,Gt=ct._diameters;let Tt=Gt.get(Zt);if(!Tt||!Tt.has(Rt)){const Ut=this._document.createElement("style");Ut.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Ut.textContent=this._getAnimationText(),Zt.appendChild(Ut),Tt||(Tt=new Set,Gt.set(Zt,Tt)),Tt.add(Rt)}}_getAnimationText(){const Zt=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Zt).replace(/END_VALUE/g,""+.2*Zt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ct._diameters=new WeakMap,ct.\u0275fac=function(Zt){return new(Zt||ct)(t.Y36(t.SBq),t.Y36(d.t4),t.Y36(g.K0,8),t.Y36(t.QbO,8),t.Y36(B),t.Y36(t.sBO),t.Y36(v.rL),t.Y36(t.R0b))},ct.\u0275cmp=t.Xpm({type:ct,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Zt,Rt){2&Zt&&(t.uIk("aria-valuemin","determinate"===Rt.mode?0:null)("aria-valuemax","determinate"===Rt.mode?100:null)("aria-valuenow","determinate"===Rt.mode?Rt.value:null)("mode",Rt.mode),t.Udp("width",Rt.diameter,"px")("height",Rt.diameter,"px"),t.ekj("_mat-animation-noopable",Rt._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Zt,Rt){1&Zt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,w,1,11,"circle",2),t.YNc(3,P,1,9,"circle",3),t.qZA()),2&Zt&&(t.Udp("width",Rt.diameter,"px")("height",Rt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===Rt.mode),t.uIk("viewBox",Rt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[g.RF,g.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let lt=(()=>{class Dt{}return Dt.\u0275fac=function(Rt){return new(Rt||Dt)},Dt.\u0275mod=t.oAB({type:Dt}),Dt.\u0275inj=t.cJS({imports:[T.BQ,g.ez,T.BQ]}),Dt})()},71948:(tt,W,f)=>{"use strict";f.d(W,{Fk:()=>Gt,U0:()=>Rt,VQ:()=>lt});var u=f(94650),d=f(3238),v=f(12687),g=f(21281),t=f(95017),T=f(24006);const U=["input"],w=function(Tt){return{enterDuration:Tt}},P=["*"],O=new u.OlP("mat-radio-default-options",{providedIn:"root",factory:function L(){return{color:"accent"}}});let N=0;const B={provide:T.JU,useExisting:(0,u.Gpc)(()=>lt),multi:!0};class K{constructor(Ut,bt){this.source=Ut,this.value=bt}}const et=new u.OlP("MatRadioGroup");let ct=(()=>{class Tt{constructor(bt){this._changeDetector=bt,this._value=null,this._name="mat-radio-group-"+N++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new u.vpe}get name(){return this._name}set name(bt){this._name=bt,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(bt){this._labelPosition="before"===bt?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(bt){this._value!==bt&&(this._value=bt,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(bt){this._selected=bt,this.value=bt?bt.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(bt){this._disabled=(0,g.Ig)(bt),this._markRadiosForCheck()}get required(){return this._required}set required(bt){this._required=(0,g.Ig)(bt),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(bt=>{bt.name=this.name,bt._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(mt=>{mt.checked=this.value===mt.value,mt.checked&&(this._selected=mt)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new K(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(bt=>bt._markForCheck())}writeValue(bt){this.value=bt,this._changeDetector.markForCheck()}registerOnChange(bt){this._controlValueAccessorChangeFn=bt}registerOnTouched(bt){this.onTouched=bt}setDisabledState(bt){this.disabled=bt,this._changeDetector.markForCheck()}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(u.sBO))},Tt.\u0275dir=u.lG2({type:Tt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),Tt})(),lt=(()=>{class Tt extends ct{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=u.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=u.lG2({type:Tt,selectors:[["mat-radio-group"]],contentQueries:function(bt,mt,Lt){if(1&bt&&u.Suo(Lt,Rt,5),2&bt){let Bt;u.iGM(Bt=u.CRH())&&(mt._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[u._Bn([B,{provide:et,useExisting:Tt}]),u.qOj]}),Tt})();class Ct{constructor(Ut){this._elementRef=Ut}}const Dt=(0,d.Kr)((0,d.sb)(Ct));let Zt=(()=>{class Tt extends Dt{constructor(bt,mt,Lt,Bt,kt,le,Vt,be){super(mt),this._changeDetector=Lt,this._focusMonitor=Bt,this._radioDispatcher=kt,this._providerOverride=Vt,this._uniqueId="mat-radio-"+ ++N,this.id=this._uniqueId,this.change=new u.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=bt,this._noopAnimations="NoopAnimations"===le,be&&(this.tabIndex=(0,g.su)(be,0)),this._removeUniqueSelectionListener=kt.listen((ge,Fe)=>{ge!==this.id&&Fe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(bt){const mt=(0,g.Ig)(bt);this._checked!==mt&&(this._checked=mt,mt&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!mt&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),mt&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(bt){this._value!==bt&&(this._value=bt,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===bt),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(bt){this._labelPosition=bt}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(bt){this._setDisabled((0,g.Ig)(bt))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(bt){this._required=(0,g.Ig)(bt)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(bt){this._color=bt}get inputId(){return`${this.id||this._uniqueId}-input`}focus(bt,mt){mt?this._focusMonitor.focusVia(this._inputElement,mt,bt):this._inputElement.nativeElement.focus(bt)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(bt=>{!bt&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new K(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(bt){bt.stopPropagation()}_onInputInteraction(bt){if(bt.stopPropagation(),!this.checked&&!this.disabled){const mt=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),mt&&this.radioGroup._emitChangeEvent())}}_setDisabled(bt){this._disabled!==bt&&(this._disabled=bt,this._changeDetector.markForCheck())}_updateTabIndex(){const bt=this.radioGroup;let mt;if(mt=bt&&bt.selected&&!this.disabled?bt.selected===this?this.tabIndex:-1:this.tabIndex,mt!==this._previousTabIndex){const Lt=this._inputElement?.nativeElement;Lt&&(Lt.setAttribute("tabindex",mt+""),this._previousTabIndex=mt)}}}return Tt.\u0275fac=function(bt){u.$Z()},Tt.\u0275dir=u.lG2({type:Tt,viewQuery:function(bt,mt){if(1&bt&&u.Gf(U,5),2&bt){let Lt;u.iGM(Lt=u.CRH())&&(mt._inputElement=Lt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[u.qOj]}),Tt})(),Rt=(()=>{class Tt extends Zt{constructor(bt,mt,Lt,Bt,kt,le,Vt,be){super(bt,mt,Lt,Bt,kt,le,Vt,be)}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(et,8),u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(v.tE),u.Y36(t.A8),u.Y36(u.QbO,8),u.Y36(O,8),u.$8M("tabindex"))},Tt.\u0275cmp=u.Xpm({type:Tt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(bt,mt){1&bt&&u.NdJ("focus",function(){return mt._inputElement.nativeElement.focus()}),2&bt&&(u.uIk("tabindex",null)("id",mt.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),u.ekj("mat-radio-checked",mt.checked)("mat-radio-disabled",mt.disabled)("_mat-animation-noopable",mt._noopAnimations)("mat-primary","primary"===mt.color)("mat-accent","accent"===mt.color)("mat-warn","warn"===mt.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[u.qOj],ngContentSelectors:P,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(bt,mt){if(1&bt&&(u.F$t(),u.TgZ(0,"label",0,1)(2,"span",2),u._UZ(3,"span",3)(4,"span",4),u.TgZ(5,"input",5,6),u.NdJ("change",function(Bt){return mt._onInputInteraction(Bt)})("click",function(Bt){return mt._onInputClick(Bt)}),u.qZA(),u.TgZ(7,"span",7),u._UZ(8,"span",8),u.qZA()(),u.TgZ(9,"span",9)(10,"span",10),u._uU(11,"\xa0"),u.qZA(),u.Hsn(12),u.qZA()()),2&bt){const Lt=u.MAs(1);u.uIk("for",mt.inputId),u.xp6(5),u.Q6J("id",mt.inputId)("checked",mt.checked)("disabled",mt.disabled)("required",mt.required),u.uIk("name",mt.name)("value",mt.value)("aria-label",mt.ariaLabel)("aria-labelledby",mt.ariaLabelledby)("aria-describedby",mt.ariaDescribedby),u.xp6(2),u.Q6J("matRippleTrigger",Lt)("matRippleDisabled",mt._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",u.VKq(17,w,mt._noopAnimations?0:150)),u.xp6(2),u.ekj("mat-radio-label-before","before"==mt.labelPosition)}},dependencies:[d.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),Tt})(),Gt=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=u.oAB({type:Tt}),Tt.\u0275inj=u.cJS({imports:[d.si,d.BQ,d.BQ]}),Tt})()},84385:(tt,W,f)=>{"use strict";f.d(W,{LD:()=>oi,gD:()=>_i});var u=f(98184),d=f(36895),v=f(94650),g=f(3238),t=f(59549),T=f(67376),U=f(12687),w=f(40445),P=f(21281),O=f(95017),L=f(29521),N=f(24006),B=f(8929),K=f(88514),et=f(36787),ct=f(1059),lt=f(87545),Ct=f(72986),Dt=f(92198),Zt=f(24850),Rt=f(75778),Gt=f(7625),Tt=f(37340);const Ut=["trigger"],bt=["panel"];function mt(We,ee){if(1&We&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&We){const ot=v.oxw();v.xp6(1),v.Oqu(ot.placeholder)}}function Lt(We,ee){if(1&We&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&We){const ot=v.oxw(2);v.xp6(1),v.Oqu(ot.triggerValue)}}function Bt(We,ee){1&We&&v.Hsn(0,0,["*ngSwitchCase","true"])}function kt(We,ee){if(1&We&&(v.TgZ(0,"span",9),v.YNc(1,Lt,2,1,"span",10),v.YNc(2,Bt,1,0,"ng-content",11),v.qZA()),2&We){const ot=v.oxw();v.Q6J("ngSwitch",!!ot.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function le(We,ee){if(1&We){const ot=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(At){v.CHM(ot);const Ht=v.oxw();return v.KtG(Ht._panelDoneAnimatingStream.next(At.toState))})("keydown",function(At){v.CHM(ot);const Ht=v.oxw();return v.KtG(Ht._handleKeydown(At))}),v.Hsn(3,1),v.qZA()()}if(2&We){const ot=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",ot._getPanelTheme(),""),v.Udp("transform-origin",ot._transformOrigin)("font-size",ot._triggerFontSize,"px"),v.Q6J("ngClass",ot.panelClass)("@transformPanel",ot.multiple?"showing-multiple":"showing"),v.uIk("id",ot.id+"-panel")("aria-multiselectable",ot.multiple)("aria-label",ot.ariaLabel||null)("aria-labelledby",ot._getPanelAriaLabelledby())}}const Vt=[[["mat-select-trigger"]],"*"],be=["mat-select-trigger","*"],ge={transformPanelWrap:(0,Tt.X$)("transformPanelWrap",[(0,Tt.eR)("* => void",(0,Tt.IO)("@transformPanel",[(0,Tt.pV)()],{optional:!0}))]),transformPanel:(0,Tt.X$)("transformPanel",[(0,Tt.SB)("void",(0,Tt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,Tt.SB)("showing",(0,Tt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,Tt.SB)("showing-multiple",(0,Tt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,Tt.eR)("void => *",(0,Tt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,Tt.eR)("* => void",(0,Tt.jt)("100ms 25ms linear",(0,Tt.oB)({opacity:0})))])};let Qt=0;const De=new v.OlP("mat-select-scroll-strategy"),hn=new v.OlP("MAT_SELECT_CONFIG"),Ce={provide:De,deps:[u.aV],useFactory:function nn(We){return()=>We.scrollStrategies.reposition()}};class bn{constructor(ee,ot){this.source=ee,this.value=ot}}const Oe=(0,g.Kr)((0,g.sb)((0,g.Id)((0,g.FD)(class{constructor(We,ee,ot,X,At){this._elementRef=We,this._defaultErrorStateMatcher=ee,this._parentForm=ot,this._parentFormGroup=X,this.ngControl=At,this.stateChanges=new B.xQ}})))),dn=new v.OlP("MatSelectTrigger");let ii=(()=>{class We extends Oe{constructor(ot,X,At,Ht,ue,ye,Se,vn,qn,mi,Di,bo,hi,zn){super(ue,Ht,Se,vn,mi),this._viewportRuler=ot,this._changeDetectorRef=X,this._ngZone=At,this._dir=ye,this._parentFormField=qn,this._liveAnnouncer=hi,this._defaultOptions=zn,this._panelOpen=!1,this._compareWith=(Bn,Qe)=>Bn===Qe,this._uid="mat-select-"+Qt++,this._triggerAriaLabelledBy=null,this._destroy=new B.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Qt++,this._panelDoneAnimatingStream=new B.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,K.P)(()=>{const Bn=this.options;return Bn?Bn.changes.pipe((0,ct.O)(Bn),(0,lt.w)(()=>(0,et.T)(...Bn.map(Qe=>Qe.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ct.q)(1),(0,lt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,Dt.h)(Bn=>Bn),(0,Zt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Dt.h)(Bn=>!Bn),(0,Zt.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=zn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=zn.typeaheadDebounceInterval),this._scrollStrategyFactory=bo,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Di)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ot){this._placeholder=ot,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(N.kI.required)??!1}set required(ot){this._required=(0,P.Ig)(ot),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ot){this._multiple=(0,P.Ig)(ot)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ot){this._disableOptionCentering=(0,P.Ig)(ot)}get compareWith(){return this._compareWith}set compareWith(ot){this._compareWith=ot,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ot){this._assignValue(ot)&&this._onChange(ot)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ot){this._typeaheadDebounceInterval=(0,P.su)(ot)}get id(){return this._id}set id(ot){this._id=ot||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Rt.x)(),(0,Gt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Gt.R)(this._destroy)).subscribe(ot=>{ot.added.forEach(X=>X.select()),ot.removed.forEach(X=>X.deselect())}),this.options.changes.pipe((0,ct.O)(null),(0,Gt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ot=this._getTriggerAriaLabelledby(),X=this.ngControl;if(ot!==this._triggerAriaLabelledBy){const At=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ot,ot?At.setAttribute("aria-labelledby",ot):At.removeAttribute("aria-labelledby")}X&&(this._previousControl!==X.control&&(void 0!==this._previousControl&&null!==X.disabled&&X.disabled!==this.disabled&&(this.disabled=X.disabled),this._previousControl=X.control),this.updateErrorState())}ngOnChanges(ot){(ot.disabled||ot.userAriaDescribedBy)&&this.stateChanges.next(),ot.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(ot){this._assignValue(ot)}registerOnChange(ot){this._onChange=ot}registerOnTouched(ot){this._onTouched=ot}setDisabledState(ot){this.disabled=ot,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const ot=this._selectionModel.selected.map(X=>X.viewValue);return this._isRtl()&&ot.reverse(),ot.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ot){this.disabled||(this.panelOpen?this._handleOpenKeydown(ot):this._handleClosedKeydown(ot))}_handleClosedKeydown(ot){const X=ot.keyCode,At=X===L.JH||X===L.LH||X===L.oh||X===L.SV,Ht=X===L.K5||X===L.L_,ue=this._keyManager;if(!ue.isTyping()&&Ht&&!(0,L.Vb)(ot)||(this.multiple||ot.altKey)&&At)ot.preventDefault(),this.open();else if(!this.multiple){const ye=this.selected;ue.onKeydown(ot);const Se=this.selected;Se&&ye!==Se&&this._liveAnnouncer.announce(Se.viewValue,1e4)}}_handleOpenKeydown(ot){const X=this._keyManager,At=ot.keyCode,Ht=At===L.JH||At===L.LH,ue=X.isTyping();if(Ht&&ot.altKey)ot.preventDefault(),this.close();else if(ue||At!==L.K5&&At!==L.L_||!X.activeItem||(0,L.Vb)(ot))if(!ue&&this._multiple&&At===L.A&&ot.ctrlKey){ot.preventDefault();const ye=this.options.some(Se=>!Se.disabled&&!Se.selected);this.options.forEach(Se=>{Se.disabled||(ye?Se.select():Se.deselect())})}else{const ye=X.activeItemIndex;X.onKeydown(ot),this._multiple&&Ht&&ot.shiftKey&&X.activeItem&&X.activeItemIndex!==ye&&X.activeItem._selectViaInteraction()}else ot.preventDefault(),X.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Ct.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(ot){if(this._selectionModel.selected.forEach(X=>X.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ot)Array.isArray(ot),ot.forEach(X=>this._selectOptionByValue(X)),this._sortValues();else{const X=this._selectOptionByValue(ot);X?this._keyManager.updateActiveItem(X):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ot){const X=this.options.find(At=>{if(this._selectionModel.isSelected(At))return!1;try{return null!=At.value&&this._compareWith(At.value,ot)}catch{return!1}});return X&&this._selectionModel.select(X),X}_assignValue(ot){return!!(ot!==this._value||this._multiple&&Array.isArray(ot))&&(this.options&&this._setSelectionByValue(ot),this._value=ot,!0)}_initKeyManager(){this._keyManager=new U.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Gt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Gt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const ot=(0,et.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Gt.R)(ot)).subscribe(X=>{this._onSelect(X.source,X.isUserInput),X.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,et.T)(...this.options.map(X=>X._stateChanges)).pipe((0,Gt.R)(ot)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ot,X){const At=this._selectionModel.isSelected(ot);null!=ot.value||this._multiple?(At!==ot.selected&&(ot.selected?this._selectionModel.select(ot):this._selectionModel.deselect(ot)),X&&this._keyManager.setActiveItem(ot),this.multiple&&(this._sortValues(),X&&this.focus())):(ot.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ot.value)),At!==this._selectionModel.isSelected(ot)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ot=this.options.toArray();this._selectionModel.sort((X,At)=>this.sortComparator?this.sortComparator(X,At,ot):ot.indexOf(X)-ot.indexOf(At)),this.stateChanges.next()}}_propagateChanges(ot){let X=null;X=this.multiple?this.selected.map(At=>At.value):this.selected?this.selected.value:ot,this._value=X,this.valueChange.emit(X),this._onChange(X),this.selectionChange.emit(this._getChangeEvent(X)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(ot){this._elementRef.nativeElement.focus(ot)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ot=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ot?ot+" ":"")+this.ariaLabelledby:ot}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ot=this._parentFormField?.getLabelId();let X=(ot?ot+" ":"")+this._valueId;return this.ariaLabelledby&&(X+=" "+this.ariaLabelledby),X}_panelDoneAnimating(ot){this.openedChange.emit(ot)}setDescribedByIds(ot){ot.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ot.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return We.\u0275fac=function(ot){return new(ot||We)(v.Y36(T.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(g.rD),v.Y36(v.SBq),v.Y36(w.Is,8),v.Y36(N.F,8),v.Y36(N.sg,8),v.Y36(t.G_,8),v.Y36(N.a5,10),v.$8M("tabindex"),v.Y36(De),v.Y36(U.Kd),v.Y36(hn,8))},We.\u0275dir=v.lG2({type:We,viewQuery:function(ot,X){if(1&ot&&(v.Gf(Ut,5),v.Gf(bt,5),v.Gf(u.pI,5)),2&ot){let At;v.iGM(At=v.CRH())&&(X.trigger=At.first),v.iGM(At=v.CRH())&&(X.panel=At.first),v.iGM(At=v.CRH())&&(X._overlayDir=At.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]}),We})(),_i=(()=>{class We extends ii{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(ot,X,At){const Ht=this._getItemHeight();return Math.min(Math.max(0,Ht*ot-X+Ht/2),At)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Gt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Ct.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ot){const X=(0,g.CB)(ot,this.options,this.optionGroups),At=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ot&&1===X?0:(0,g.jH)((ot+X)*At,At,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ot){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ot)}_getChangeEvent(ot){return new bn(this,ot)}_calculateOverlayOffsetX(){const ot=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),X=this._viewportRuler.getViewportSize(),At=this._isRtl(),Ht=this.multiple?56:32;let ue;if(this.multiple)ue=40;else if(this.disableOptionCentering)ue=16;else{let vn=this._selectionModel.selected[0]||this.options.first;ue=vn&&vn.group?32:16}At||(ue*=-1);const ye=0-(ot.left+ue-(At?Ht:0)),Se=ot.right+ue-X.width+(At?0:Ht);ye>0?ue+=ye+8:Se>0&&(ue-=Se+8),this._overlayDir.offsetX=Math.round(ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ot,X,At){const Ht=this._getItemHeight(),ue=(Ht-this._triggerRect.height)/2,ye=Math.floor(256/Ht);let Se;return this.disableOptionCentering?0:(Se=0===this._scrollTop?ot*Ht:this._scrollTop===At?(ot-(this._getItemCount()-ye))*Ht+(Ht-(this._getItemCount()*Ht-256)%Ht):X-Ht/2,Math.round(-1*Se-ue))}_checkOverlayWithinViewport(ot){const X=this._getItemHeight(),At=this._viewportRuler.getViewportSize(),Ht=this._triggerRect.top-8,ue=At.height-this._triggerRect.bottom-8,ye=Math.abs(this._offsetY),vn=Math.min(this._getItemCount()*X,256)-ye-this._triggerRect.height;vn>ue?this._adjustPanelUp(vn,ue):ye>Ht?this._adjustPanelDown(ye,Ht,ot):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ot,X){const At=Math.round(ot-X);this._scrollTop-=At,this._offsetY-=At,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ot,X,At){const Ht=Math.round(ot-X);if(this._scrollTop+=Ht,this._offsetY+=Ht,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=At)return this._scrollTop=At,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ot=this._getItemHeight(),X=this._getItemCount(),At=Math.min(X*ot,256),ue=X*ot-At;let ye;ye=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ye+=(0,g.CB)(ye,this.options,this.optionGroups);const Se=At/2;this._scrollTop=this._calculateOverlayScroll(ye,Se,ue),this._offsetY=this._calculateOverlayOffsetY(ye,Se,ue),this._checkOverlayWithinViewport(ue)}_getOriginBasedOnOption(){const ot=this._getItemHeight(),X=(ot-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-X+ot/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return We.\u0275fac=function(){let ee;return function(X){return(ee||(ee=v.n5z(We)))(X||We)}}(),We.\u0275cmp=v.Xpm({type:We,selectors:[["mat-select"]],contentQueries:function(ot,X,At){if(1&ot&&(v.Suo(At,dn,5),v.Suo(At,g.ey,5),v.Suo(At,g.K7,5)),2&ot){let Ht;v.iGM(Ht=v.CRH())&&(X.customTrigger=Ht.first),v.iGM(Ht=v.CRH())&&(X.options=Ht),v.iGM(Ht=v.CRH())&&(X.optionGroups=Ht)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(ot,X){1&ot&&v.NdJ("keydown",function(Ht){return X._handleKeydown(Ht)})("focus",function(){return X._onFocus()})("blur",function(){return X._onBlur()}),2&ot&&(v.uIk("id",X.id)("tabindex",X.tabIndex)("aria-controls",X.panelOpen?X.id+"-panel":null)("aria-expanded",X.panelOpen)("aria-label",X.ariaLabel||null)("aria-required",X.required.toString())("aria-disabled",X.disabled.toString())("aria-invalid",X.errorState)("aria-activedescendant",X._getAriaActiveDescendant()),v.ekj("mat-select-disabled",X.disabled)("mat-select-invalid",X.errorState)("mat-select-required",X.required)("mat-select-empty",X.empty)("mat-select-multiple",X.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:t.Eo,useExisting:We},{provide:g.HF,useExisting:We}]),v.qOj],ngContentSelectors:be,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ot,X){if(1&ot&&(v.F$t(Vt),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return X.toggle()}),v.TgZ(3,"div",2),v.YNc(4,mt,2,1,"span",3),v.YNc(5,kt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,le,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return X.close()})("attach",function(){return X._onAttached()})("detach",function(){return X.close()})),2&ot){const At=v.MAs(1);v.uIk("aria-owns",X.panelOpen?X.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",X.empty),v.uIk("id",X._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",X._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",X._scrollStrategy)("cdkConnectedOverlayOrigin",At)("cdkConnectedOverlayOpen",X.panelOpen)("cdkConnectedOverlayPositions",X._positions)("cdkConnectedOverlayMinWidth",null==X._triggerRect?null:X._triggerRect.width)("cdkConnectedOverlayOffsetY",X._offsetY)}},dependencies:[d.mk,d.RF,d.n9,d.ED,u.pI,u.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ge.transformPanelWrap,ge.transformPanel]},changeDetection:0}),We})(),oi=(()=>{class We{}return We.\u0275fac=function(ot){return new(ot||We)},We.\u0275mod=v.oAB({type:We}),We.\u0275inj=v.cJS({providers:[Ce],imports:[d.ez,u.U8,g.Ng,g.BQ,T.ZD,t.lN,g.Ng,g.BQ]}),We})()},23267:(tt,W,f)=>{"use strict";f.d(W,{JX:()=>Xt,Rh:()=>se,SJ:()=>De,TM:()=>ae});var u=f(67376),d=f(36895),v=f(94650),g=f(3238),t=f(12687),T=f(40445),U=f(21281),w=f(29521),P=f(83353),O=f(8929),L=f(23753),N=f(36787),B=f(92198),K=f(24850),et=f(77604),ct=f(7625),lt=f(75778),Ct=f(72986),Dt=f(1059),Zt=f(80013),Rt=f(37340);const Gt=["*"],Tt=["content"];function Ut(nn,hn){if(1&nn){const Ce=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(Ce);const Oe=v.oxw();return v.KtG(Oe._onBackdropClicked())}),v.qZA()}if(2&nn){const Ce=v.oxw();v.ekj("mat-drawer-shown",Ce._isShowingBackdrop())}}function bt(nn,hn){1&nn&&(v.TgZ(0,"mat-drawer-content"),v.Hsn(1,2),v.qZA())}const mt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Lt=["mat-drawer","mat-drawer-content","*"];function Bt(nn,hn){if(1&nn){const Ce=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(Ce);const Oe=v.oxw();return v.KtG(Oe._onBackdropClicked())}),v.qZA()}if(2&nn){const Ce=v.oxw();v.ekj("mat-drawer-shown",Ce._isShowingBackdrop())}}function kt(nn,hn){1&nn&&(v.TgZ(0,"mat-sidenav-content"),v.Hsn(1,2),v.qZA())}const le=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vt=["mat-sidenav","mat-sidenav-content","*"],ge={transformDrawer:(0,Rt.X$)("transform",[(0,Rt.SB)("open, open-instant",(0,Rt.oB)({transform:"none",visibility:"visible"})),(0,Rt.SB)("void",(0,Rt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Rt.eR)("void => open-instant",(0,Rt.jt)("0ms")),(0,Rt.eR)("void <=> open, open-instant => void",(0,Rt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qe=new v.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qt(){return!1}}),je=new v.OlP("MAT_DRAWER_CONTAINER");let Ue=(()=>{class nn extends u.PQ{constructor(Ce,bn,Oe,dn,Pn){super(Oe,dn,Pn),this._changeDetectorRef=Ce,this._container=bn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>Wt)),v.Y36(v.SBq),v.Y36(u.mF),v.Y36(v.R0b))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Ce,bn){2&Ce&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:u.PQ,useExisting:nn}]),v.qOj],ngContentSelectors:Gt,decls:1,vars:0,template:function(Ce,bn){1&Ce&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),nn})(),ie=(()=>{class nn{constructor(Ce,bn,Oe,dn,Pn,ii,_i,oi){this._elementRef=Ce,this._focusTrapFactory=bn,this._focusMonitor=Oe,this._platform=dn,this._ngZone=Pn,this._interactivityChecker=ii,this._doc=_i,this._container=oi,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new O.xQ,this._animationEnd=new O.xQ,this._animationState="void",this.openedChange=new v.vpe(!0),this._openedStream=this.openedChange.pipe((0,B.h)(We=>We),(0,K.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,B.h)(We=>We.fromState!==We.toState&&0===We.toState.indexOf("open")),(0,et.h)(void 0)),this._closedStream=this.openedChange.pipe((0,B.h)(We=>!We),(0,K.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,B.h)(We=>We.fromState!==We.toState&&"void"===We.toState),(0,et.h)(void 0)),this._destroyed=new O.xQ,this.onPositionChanged=new v.vpe,this._modeChanged=new O.xQ,this.openedChange.subscribe(We=>{We?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,L.R)(this._elementRef.nativeElement,"keydown").pipe((0,B.h)(We=>We.keyCode===w.hY&&!this.disableClose&&!(0,w.Vb)(We)),(0,ct.R)(this._destroyed)).subscribe(We=>this._ngZone.run(()=>{this.close(),We.stopPropagation(),We.preventDefault()}))}),this._animationEnd.pipe((0,lt.x)((We,ee)=>We.fromState===ee.fromState&&We.toState===ee.toState)).subscribe(We=>{const{fromState:ee,toState:ot}=We;(0===ot.indexOf("open")&&"void"===ee||"void"===ot&&0===ee.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Ce){(Ce="end"===Ce?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Ce),this._position=Ce,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Ce){this._mode=Ce,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Ce){this._disableClose=(0,U.Ig)(Ce)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Ce){("true"===Ce||"false"===Ce||null==Ce)&&(Ce=(0,U.Ig)(Ce)),this._autoFocus=Ce}get opened(){return this._opened}set opened(Ce){this.toggle((0,U.Ig)(Ce))}_forceFocus(Ce,bn){this._interactivityChecker.isFocusable(Ce)||(Ce.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Oe=()=>{Ce.removeEventListener("blur",Oe),Ce.removeEventListener("mousedown",Oe),Ce.removeAttribute("tabindex")};Ce.addEventListener("blur",Oe),Ce.addEventListener("mousedown",Oe)})),Ce.focus(bn)}_focusByCssSelector(Ce,bn){let Oe=this._elementRef.nativeElement.querySelector(Ce);Oe&&this._forceFocus(Oe,bn)}_takeFocus(){if(!this._focusTrap)return;const Ce=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(bn=>{!bn&&"function"==typeof this._elementRef.nativeElement.focus&&Ce.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Ce){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Ce):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Ce=this._doc.activeElement;return!!Ce&&this._elementRef.nativeElement.contains(Ce)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Ce){return this.toggle(!0,Ce)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Ce=!this.opened,bn){Ce&&bn&&(this._openedVia=bn);const Oe=this._setOpen(Ce,!Ce&&this._isFocusWithinDrawer(),this._openedVia||"program");return Ce||(this._openedVia=null),Oe}_setOpen(Ce,bn,Oe){return this._opened=Ce,Ce?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",bn&&this._restoreFocus(Oe)),this._updateFocusTrapState(),new Promise(dn=>{this.openedChange.pipe((0,Ct.q)(1)).subscribe(Pn=>dn(Pn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Ce){const bn=this._elementRef.nativeElement,Oe=bn.parentNode;"end"===Ce?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Oe.insertBefore(this._anchor,bn)),Oe.appendChild(bn)):this._anchor&&this._anchor.parentNode.insertBefore(bn,this._anchor)}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(v.SBq),v.Y36(t.qV),v.Y36(t.tE),v.Y36(P.t4),v.Y36(v.R0b),v.Y36(t.ic),v.Y36(d.K0,8),v.Y36(je,8))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-drawer"]],viewQuery:function(Ce,bn){if(1&Ce&&v.Gf(Tt,5),2&Ce){let Oe;v.iGM(Oe=v.CRH())&&(bn._content=Oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ce,bn){1&Ce&&v.WFA("@transform.start",function(dn){return bn._animationStarted.next(dn)})("@transform.done",function(dn){return bn._animationEnd.next(dn)}),2&Ce&&(v.uIk("align",null),v.d8E("@transform",bn._animationState),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Gt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ce,bn){1&Ce&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[ge.transformDrawer]},changeDetection:0}),nn})(),Wt=(()=>{class nn{constructor(Ce,bn,Oe,dn,Pn,ii=!1,_i){this._dir=Ce,this._element=bn,this._ngZone=Oe,this._changeDetectorRef=dn,this._animationMode=_i,this._drawers=new v.n_E,this.backdropClick=new v.vpe,this._destroyed=new O.xQ,this._doCheckSubject=new O.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new O.xQ,Ce&&Ce.change.pipe((0,ct.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Pn.change().pipe((0,ct.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=ii}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Ce){this._autosize=(0,U.Ig)(Ce)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Ce){this._backdropOverride=null==Ce?null:(0,U.Ig)(Ce)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Dt.O)(this._allDrawers),(0,ct.R)(this._destroyed)).subscribe(Ce=>{this._drawers.reset(Ce.filter(bn=>!bn._container||bn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Dt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Ce=>{this._watchDrawerToggle(Ce),this._watchDrawerPosition(Ce),this._watchDrawerMode(Ce)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Zt.b)(10),(0,ct.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Ce=>Ce.open())}close(){this._drawers.forEach(Ce=>Ce.close())}updateContentMargins(){let Ce=0,bn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Ce+=this._left._getWidth();else if("push"==this._left.mode){const Oe=this._left._getWidth();Ce+=Oe,bn-=Oe}if(this._right&&this._right.opened)if("side"==this._right.mode)bn+=this._right._getWidth();else if("push"==this._right.mode){const Oe=this._right._getWidth();bn+=Oe,Ce-=Oe}Ce=Ce||null,bn=bn||null,(Ce!==this._contentMargins.left||bn!==this._contentMargins.right)&&(this._contentMargins={left:Ce,right:bn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Ce){Ce._animationStarted.pipe((0,B.h)(bn=>bn.fromState!==bn.toState),(0,ct.R)(this._drawers.changes)).subscribe(bn=>{"open-instant"!==bn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Ce.mode&&Ce.openedChange.pipe((0,ct.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Ce.opened))}_watchDrawerPosition(Ce){!Ce||Ce.onPositionChanged.pipe((0,ct.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ct.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Ce){Ce&&Ce._modeChanged.pipe((0,ct.R)((0,N.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Ce){const bn=this._element.nativeElement.classList,Oe="mat-drawer-container-has-open";Ce?bn.add(Oe):bn.remove(Oe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Ce=>{"end"==Ce.position?this._end=Ce:this._start=Ce}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Ce=>Ce&&!Ce.disableClose&&this._canHaveBackdrop(Ce)).forEach(Ce=>Ce._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Ce){return"side"!==Ce.mode||!!this._backdropOverride}_isDrawerOpen(Ce){return null!=Ce&&Ce.opened}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(T.Is,8),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(u.rL),v.Y36(qe),v.Y36(v.QbO,8))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-drawer-container"]],contentQueries:function(Ce,bn,Oe){if(1&Ce&&(v.Suo(Oe,Ue,5),v.Suo(Oe,ie,5)),2&Ce){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},viewQuery:function(Ce,bn){if(1&Ce&&v.Gf(Ue,5),2&Ce){let Oe;v.iGM(Oe=v.CRH())&&(bn._userContent=Oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ce,bn){2&Ce&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v._Bn([{provide:je,useExisting:nn}])],ngContentSelectors:Lt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ce,bn){1&Ce&&(v.F$t(mt),v.YNc(0,Ut,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,bt,2,0,"mat-drawer-content",1)),2&Ce&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[d.O5,Ue],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),nn})(),se=(()=>{class nn extends Ue{constructor(Ce,bn,Oe,dn,Pn){super(Ce,bn,Oe,dn,Pn)}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>ae)),v.Y36(v.SBq),v.Y36(u.mF),v.Y36(v.R0b))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Ce,bn){2&Ce&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:u.PQ,useExisting:nn}]),v.qOj],ngContentSelectors:Gt,decls:1,vars:0,template:function(Ce,bn){1&Ce&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),nn})(),Xt=(()=>{class nn extends ie{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Ce){this._fixedInViewport=(0,U.Ig)(Ce)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Ce){this._fixedTopGap=(0,U.su)(Ce)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Ce){this._fixedBottomGap=(0,U.su)(Ce)}}return nn.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(nn)))(bn||nn)}}(),nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Ce,bn){2&Ce&&(v.uIk("align",null),v.Udp("top",bn.fixedInViewport?bn.fixedTopGap:null,"px")("bottom",bn.fixedInViewport?bn.fixedBottomGap:null,"px"),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened)("mat-sidenav-fixed",bn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v.qOj],ngContentSelectors:Gt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ce,bn){1&Ce&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[ge.transformDrawer]},changeDetection:0}),nn})(),ae=(()=>{class nn extends Wt{}return nn.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(nn)))(bn||nn)}}(),nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-sidenav-container"]],contentQueries:function(Ce,bn,Oe){if(1&Ce&&(v.Suo(Oe,se,5),v.Suo(Oe,Xt,5)),2&Ce){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Ce,bn){2&Ce&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},exportAs:["matSidenavContainer"],features:[v._Bn([{provide:je,useExisting:nn}]),v.qOj],ngContentSelectors:Vt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ce,bn){1&Ce&&(v.F$t(le),v.YNc(0,Bt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,kt,2,0,"mat-sidenav-content",1)),2&Ce&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[d.O5,se],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),nn})(),De=(()=>{class nn{}return nn.\u0275fac=function(Ce){return new(Ce||nn)},nn.\u0275mod=v.oAB({type:nn}),nn.\u0275inj=v.cJS({imports:[d.ez,g.BQ,u.ZD,u.ZD,g.BQ]}),nn})()},90455:(tt,W,f)=>{"use strict";f.d(W,{Rr:()=>ct,rP:()=>Zt});var u=f(49643),d=f(94650),v=f(3238),g=f(12687),t=f(21281),T=f(24006);const U=["input"],w=function(Rt){return{enterDuration:Rt}},P=["*"],O=new d.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let L=0;const N={provide:T.JU,useExisting:(0,d.Gpc)(()=>ct),multi:!0};class B{constructor(Gt,Tt){this.source=Gt,this.checked=Tt}}const K=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(Rt){this._elementRef=Rt}}))));let et=(()=>{class Rt extends K{constructor(Tt,Ut,bt,mt,Lt,Bt,kt){super(Tt),this._focusMonitor=Ut,this._changeDetectorRef=bt,this.defaults=Lt,this._onChange=le=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new d.vpe,this.toggleChange=new d.vpe,this.tabIndex=parseInt(mt)||0,this.color=this.defaultColor=Lt.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${kt}${++L}`}get required(){return this._required}set required(Tt){this._required=(0,t.Ig)(Tt)}get checked(){return this._checked}set checked(Tt){this._checked=(0,t.Ig)(Tt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Tt=>{"keyboard"===Tt||"program"===Tt?this._focused=!0:Tt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(Tt){this.checked=!!Tt}registerOnChange(Tt){this._onChange=Tt}registerOnTouched(Tt){this._onTouched=Tt}setDisabledState(Tt){this.disabled=Tt,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return Rt.\u0275fac=function(Tt){d.$Z()},Rt.\u0275dir=d.lG2({type:Rt,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[d.qOj]}),Rt})(),ct=(()=>{class Rt extends et{constructor(Tt,Ut,bt,mt,Lt,Bt){super(Tt,Ut,bt,mt,Lt,Bt,"mat-slide-toggle-")}_createChangeEvent(Tt){return new B(this,Tt)}_onChangeEvent(Tt){Tt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(Tt){Tt.stopPropagation()}focus(Tt,Ut){Ut?this._focusMonitor.focusVia(this._inputElement,Ut,Tt):this._inputElement.nativeElement.focus(Tt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Rt.\u0275fac=function(Tt){return new(Tt||Rt)(d.Y36(d.SBq),d.Y36(g.tE),d.Y36(d.sBO),d.$8M("tabindex"),d.Y36(O),d.Y36(d.QbO,8))},Rt.\u0275cmp=d.Xpm({type:Rt,selectors:[["mat-slide-toggle"]],viewQuery:function(Tt,Ut){if(1&Tt&&d.Gf(U,5),2&Tt){let bt;d.iGM(bt=d.CRH())&&(Ut._inputElement=bt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(Tt,Ut){2&Tt&&(d.Ikx("id",Ut.id),d.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),d.ekj("mat-checked",Ut.checked)("mat-disabled",Ut.disabled)("mat-slide-toggle-label-before","before"==Ut.labelPosition)("_mat-animation-noopable",Ut._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[d._Bn([N]),d.qOj],ngContentSelectors:P,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(Tt,Ut){if(1&Tt&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),d.NdJ("change",function(mt){return Ut._onChangeEvent(mt)})("click",function(mt){return Ut._onInputClick(mt)}),d.qZA(),d.TgZ(5,"span",5),d._UZ(6,"span",6),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()()(),d.TgZ(9,"span",9,10),d.NdJ("cdkObserveContent",function(){return Ut._onLabelTextChange()}),d.TgZ(11,"span",11),d._uU(12,"\xa0"),d.qZA(),d.Hsn(13),d.qZA()()),2&Tt){const bt=d.MAs(1),mt=d.MAs(10);d.uIk("for",Ut.inputId),d.xp6(2),d.ekj("mat-slide-toggle-bar-no-side-margin",!mt.textContent||!mt.textContent.trim()),d.xp6(1),d.Q6J("id",Ut.inputId)("required",Ut.required)("tabIndex",Ut.tabIndex)("checked",Ut.checked)("disabled",Ut.disabled),d.uIk("name",Ut.name)("aria-checked",Ut.checked)("aria-label",Ut.ariaLabel)("aria-labelledby",Ut.ariaLabelledby)("aria-describedby",Ut.ariaDescribedby),d.xp6(4),d.Q6J("matRippleTrigger",bt)("matRippleDisabled",Ut.disableRipple||Ut.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(18,w,Ut._noopAnimations?0:150))}},dependencies:[v.wG,u.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),Rt})(),Dt=(()=>{class Rt{}return Rt.\u0275fac=function(Tt){return new(Tt||Rt)},Rt.\u0275mod=d.oAB({type:Rt}),Rt.\u0275inj=d.cJS({}),Rt})(),Zt=(()=>{class Rt{}return Rt.\u0275fac=function(Tt){return new(Tt||Rt)},Rt.\u0275mod=d.oAB({type:Rt}),Rt.\u0275inj=d.cJS({imports:[Dt,v.si,v.BQ,u.Q8,Dt,v.BQ]}),Rt})()},17009:(tt,W,f)=>{"use strict";f.d(W,{ZX:()=>Ut,ux:()=>Bt});var u=f(98184),d=f(84080),v=f(36895),g=f(94650),t=f(3238),T=f(4859),U=f(8929),w=f(83353),P=f(72986),O=f(7625),L=f(37340),N=f(12687),B=f(62289);function K(kt,le){if(1&kt){const Vt=g.EpF();g.TgZ(0,"div",2)(1,"button",3),g.NdJ("click",function(){g.CHM(Vt);const ge=g.oxw();return g.KtG(ge.action())}),g._uU(2),g.qZA()()}if(2&kt){const Vt=g.oxw();g.xp6(2),g.Oqu(Vt.data.action)}}function et(kt,le){}const ct=new g.OlP("MatSnackBarData");class lt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Ct=Math.pow(2,31)-1;class Dt{constructor(le,Vt){this._overlayRef=Vt,this._afterDismissed=new U.xQ,this._afterOpened=new U.xQ,this._onAction=new U.xQ,this._dismissedByAction=!1,this.containerInstance=le,le._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(le){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(le,Ct))}_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}}let Zt=(()=>{class kt{constructor(Vt,be){this.snackBarRef=Vt,this.data=be}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.Y36(Dt),g.Y36(ct))},kt.\u0275cmp=g.Xpm({type:kt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Vt,be){1&Vt&&(g.TgZ(0,"span",0),g._uU(1),g.qZA(),g.YNc(2,K,3,1,"div",1)),2&Vt&&(g.xp6(1),g.Oqu(be.data.message),g.xp6(1),g.Q6J("ngIf",be.hasAction))},dependencies:[v.O5,T.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),kt})();const Rt={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let Gt=(()=>{class kt extends d.en{constructor(Vt,be,ge,Fe,qe){super(),this._ngZone=Vt,this._elementRef=be,this._changeDetectorRef=ge,this._platform=Fe,this.snackBarConfig=qe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new U.xQ,this._onExit=new U.xQ,this._onEnter=new U.xQ,this._animationState="void",this.attachDomPortal=je=>{this._assertNotAttached();const Qt=this._portalOutlet.attachDomPortal(je);return this._afterPortalAttached(),Qt},this._live="assertive"!==qe.politeness||qe.announcementMessage?"off"===qe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Vt){this._assertNotAttached();const be=this._portalOutlet.attachComponentPortal(Vt);return this._afterPortalAttached(),be}attachTemplatePortal(Vt){this._assertNotAttached();const be=this._portalOutlet.attachTemplatePortal(Vt);return this._afterPortalAttached(),be}onAnimationEnd(Vt){const{fromState:be,toState:ge}=Vt;if(("void"===ge&&"void"!==be||"hidden"===ge)&&this._completeExit(),"visible"===ge){const Fe=this._onEnter;this._ngZone.run(()=>{Fe.next(),Fe.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Vt=this._elementRef.nativeElement,be=this.snackBarConfig.panelClass;be&&(Array.isArray(be)?be.forEach(ge=>Vt.classList.add(ge)):Vt.classList.add(be))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Vt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),be=this._elementRef.nativeElement.querySelector("[aria-live]");if(Vt&&be){let ge=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Vt.contains(document.activeElement)&&(ge=document.activeElement),Vt.removeAttribute("aria-hidden"),be.appendChild(Vt),ge?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.Y36(g.R0b),g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(w.t4),g.Y36(lt))},kt.\u0275dir=g.lG2({type:kt,viewQuery:function(Vt,be){if(1&Vt&&g.Gf(d.Pl,7),2&Vt){let ge;g.iGM(ge=g.CRH())&&(be._portalOutlet=ge.first)}},features:[g.qOj]}),kt})(),Tt=(()=>{class kt extends Gt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return kt.\u0275fac=function(){let le;return function(be){return(le||(le=g.n5z(kt)))(be||kt)}}(),kt.\u0275cmp=g.Xpm({type:kt,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Vt,be){1&Vt&&g.WFA("@state.done",function(Fe){return be.onAnimationEnd(Fe)}),2&Vt&&g.d8E("@state",be._animationState)},features:[g.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Vt,be){1&Vt&&(g.TgZ(0,"div",0),g.YNc(1,et,0,0,"ng-template",1),g.qZA(),g._UZ(2,"div")),2&Vt&&(g.xp6(2),g.uIk("aria-live",be._live)("role",be._role))},dependencies:[d.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Rt.snackBarState]}}),kt})(),Ut=(()=>{class kt{}return kt.\u0275fac=function(Vt){return new(Vt||kt)},kt.\u0275mod=g.oAB({type:kt}),kt.\u0275inj=g.cJS({imports:[u.U8,d.eL,v.ez,T.ot,t.BQ,t.BQ]}),kt})();const bt=new g.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function mt(){return new lt}});let Lt=(()=>{class kt{constructor(Vt,be,ge,Fe,qe,je){this._overlay=Vt,this._live=be,this._injector=ge,this._breakpointObserver=Fe,this._parentSnackBar=qe,this._defaultConfig=je,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Vt=this._parentSnackBar;return Vt?Vt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Vt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Vt:this._snackBarRefAtThisLevel=Vt}openFromComponent(Vt,be){return this._attach(Vt,be)}openFromTemplate(Vt,be){return this._attach(Vt,be)}open(Vt,be="",ge){const Fe={...this._defaultConfig,...ge};return Fe.data={message:Vt,action:be},Fe.announcementMessage===Vt&&(Fe.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Fe)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Vt,be){const Fe=g.zs3.create({parent:be&&be.viewContainerRef&&be.viewContainerRef.injector||this._injector,providers:[{provide:lt,useValue:be}]}),qe=new d.C5(this.snackBarContainerComponent,be.viewContainerRef,Fe),je=Vt.attach(qe);return je.instance.snackBarConfig=be,je.instance}_attach(Vt,be){const ge={...new lt,...this._defaultConfig,...be},Fe=this._createOverlay(ge),qe=this._attachSnackBarContainer(Fe,ge),je=new Dt(qe,Fe);if(Vt instanceof g.Rgc){const Qt=new d.UE(Vt,null,{$implicit:ge.data,snackBarRef:je});je.instance=qe.attachTemplatePortal(Qt)}else{const Qt=this._createInjector(ge,je),Ue=new d.C5(Vt,void 0,Qt),ie=qe.attachComponentPortal(Ue);je.instance=ie.instance}return this._breakpointObserver.observe(B.u3.HandsetPortrait).pipe((0,O.R)(Fe.detachments())).subscribe(Qt=>{Fe.overlayElement.classList.toggle(this.handsetCssClass,Qt.matches)}),ge.announcementMessage&&qe._onAnnounce.subscribe(()=>{this._live.announce(ge.announcementMessage,ge.politeness)}),this._animateSnackBar(je,ge),this._openedSnackBarRef=je,this._openedSnackBarRef}_animateSnackBar(Vt,be){Vt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Vt&&(this._openedSnackBarRef=null),be.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Vt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Vt.containerInstance.enter(),be.duration&&be.duration>0&&Vt.afterOpened().subscribe(()=>Vt._dismissAfter(be.duration))}_createOverlay(Vt){const be=new u.X_;be.direction=Vt.direction;let ge=this._overlay.position().global();const Fe="rtl"===Vt.direction,qe="left"===Vt.horizontalPosition||"start"===Vt.horizontalPosition&&!Fe||"end"===Vt.horizontalPosition&&Fe,je=!qe&&"center"!==Vt.horizontalPosition;return qe?ge.left("0"):je?ge.right("0"):ge.centerHorizontally(),"top"===Vt.verticalPosition?ge.top("0"):ge.bottom("0"),be.positionStrategy=ge,this._overlay.create(be)}_createInjector(Vt,be){return g.zs3.create({parent:Vt&&Vt.viewContainerRef&&Vt.viewContainerRef.injector||this._injector,providers:[{provide:Dt,useValue:be},{provide:ct,useValue:Vt.data}]})}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.LFG(u.aV),g.LFG(N.Kd),g.LFG(g.zs3),g.LFG(B.Yg),g.LFG(kt,12),g.LFG(bt))},kt.\u0275prov=g.Yz7({token:kt,factory:kt.\u0275fac}),kt})(),Bt=(()=>{class kt extends Lt{constructor(Vt,be,ge,Fe,qe,je){super(Vt,be,ge,Fe,qe,je),this.simpleSnackBarComponent=Zt,this.snackBarContainerComponent=Tt,this.handsetCssClass="mat-snack-bar-handset"}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.LFG(u.aV),g.LFG(N.Kd),g.LFG(g.zs3),g.LFG(B.Yg),g.LFG(kt,12),g.LFG(bt))},kt.\u0275prov=g.Yz7({token:kt,factory:kt.\u0275fac,providedIn:Ut}),kt})()},96308:(tt,W,f)=>{"use strict";f.d(W,{JX:()=>Bt,YE:()=>Dt,nU:()=>Lt});var u=f(94650),d=f(12687),v=f(21281),g=f(29521),t=f(3238),T=f(8929),U=f(36787),w=f(37340),P=f(36895);const O=["mat-sort-header",""];function L(kt,le){if(1&kt){const Vt=u.EpF();u.TgZ(0,"div",3),u.NdJ("@arrowPosition.start",function(){u.CHM(Vt);const ge=u.oxw();return u.KtG(ge._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){u.CHM(Vt);const ge=u.oxw();return u.KtG(ge._disableViewStateAnimation=!1)}),u._UZ(1,"div",4),u.TgZ(2,"div",5),u._UZ(3,"div",6)(4,"div",7)(5,"div",8),u.qZA()()}if(2&kt){const Vt=u.oxw();u.Q6J("@arrowOpacity",Vt._getArrowViewState())("@arrowPosition",Vt._getArrowViewState())("@allowChildren",Vt._getArrowDirectionState()),u.xp6(2),u.Q6J("@indicator",Vt._getArrowDirectionState()),u.xp6(1),u.Q6J("@leftPointer",Vt._getArrowDirectionState()),u.xp6(1),u.Q6J("@rightPointer",Vt._getArrowDirectionState())}}const N=["*"],lt=new u.OlP("MAT_SORT_DEFAULT_OPTIONS"),Ct=(0,t.dB)((0,t.Id)(class{}));let Dt=(()=>{class kt extends Ct{constructor(Vt){super(),this._defaultOptions=Vt,this.sortables=new Map,this._stateChanges=new T.xQ,this.start="asc",this._direction="",this.sortChange=new u.vpe}get direction(){return this._direction}set direction(Vt){this._direction=Vt}get disableClear(){return this._disableClear}set disableClear(Vt){this._disableClear=(0,v.Ig)(Vt)}register(Vt){this.sortables.set(Vt.id,Vt)}deregister(Vt){this.sortables.delete(Vt.id)}sort(Vt){this.active!=Vt.id?(this.active=Vt.id,this.direction=Vt.start?Vt.start:this.start):this.direction=this.getNextSortDirection(Vt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Vt){if(!Vt)return"";let ge=function Zt(kt,le){let Vt=["asc","desc"];return"desc"==kt&&Vt.reverse(),le||Vt.push(""),Vt}(Vt.start||this.start,Vt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Fe=ge.indexOf(this.direction)+1;return Fe>=ge.length&&(Fe=0),ge[Fe]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(u.Y36(lt,8))},kt.\u0275dir=u.lG2({type:kt,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[u.qOj,u.TTD]}),kt})();const Rt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Gt={indicator:(0,w.X$)("indicator",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"translateY(0px)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"translateY(10px)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Rt))]),leftPointer:(0,w.X$)("leftPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Rt))]),rightPointer:(0,w.X$)("rightPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Rt))]),arrowOpacity:(0,w.X$)("arrowOpacity",[(0,w.SB)("desc-to-active, asc-to-active, active",(0,w.oB)({opacity:1})),(0,w.SB)("desc-to-hint, asc-to-hint, hint",(0,w.oB)({opacity:.54})),(0,w.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,w.oB)({opacity:0})),(0,w.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,w.jt)("0ms")),(0,w.eR)("* <=> *",(0,w.jt)(Rt))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(-25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-desc, * => active-to-desc",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(25%)"})]))),(0,w.eR)("* => asc-to-hint, * => asc-to-active",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-asc, * => active-to-asc",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(-25%)"})]))),(0,w.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,w.oB)({transform:"translateY(0)"})),(0,w.SB)("hint-to-desc, active-to-desc, desc",(0,w.oB)({transform:"translateY(-25%)"})),(0,w.SB)("hint-to-asc, active-to-asc, asc",(0,w.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,w.X$)("allowChildren",[(0,w.eR)("* <=> *",[(0,w.IO)("@*",(0,w.pV)(),{optional:!0})])])};let Tt=(()=>{class kt{constructor(){this.changes=new T.xQ}}return kt.\u0275fac=function(Vt){return new(Vt||kt)},kt.\u0275prov=u.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"}),kt})();const bt={provide:Tt,deps:[[new u.FiY,new u.tp0,Tt]],useFactory:function Ut(kt){return kt||new Tt}},mt=(0,t.Id)(class{});let Lt=(()=>{class kt extends mt{constructor(Vt,be,ge,Fe,qe,je,Qt,Ue){super(),this._intl=Vt,this._changeDetectorRef=be,this._sort=ge,this._columnDef=Fe,this._focusMonitor=qe,this._elementRef=je,this._ariaDescriber=Qt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Ue?.arrowPosition&&(this.arrowPosition=Ue?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Vt){this._updateSortActionDescription(Vt)}get disableClear(){return this._disableClear}set disableClear(Vt){this._disableClear=(0,v.Ig)(Vt)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Vt=>{const be=!!Vt;be!==this._showIndicatorHint&&(this._setIndicatorHintVisible(be),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Vt){this._isDisabled()&&Vt||(this._showIndicatorHint=Vt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Vt){this._viewState=Vt||{},this._disableViewStateAnimation&&(this._viewState={toState:Vt.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Vt){!this._isDisabled()&&(Vt.keyCode===g.L_||Vt.keyCode===g.K5)&&(Vt.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Vt=this._viewState.fromState;return(Vt?`${Vt}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Vt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Vt)),this._sortActionDescription=Vt}_handleStateChanges(){this._rerenderSubscription=(0,U.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(u.Y36(Tt),u.Y36(u.sBO),u.Y36(Dt,8),u.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),u.Y36(d.tE),u.Y36(u.SBq),u.Y36(d.$s,8),u.Y36(lt,8))},kt.\u0275cmp=u.Xpm({type:kt,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Vt,be){1&Vt&&u.NdJ("click",function(){return be._handleClick()})("keydown",function(Fe){return be._handleKeydown(Fe)})("mouseenter",function(){return be._setIndicatorHintVisible(!0)})("mouseleave",function(){return be._setIndicatorHintVisible(!1)}),2&Vt&&(u.uIk("aria-sort",be._getAriaSortAttribute()),u.ekj("mat-sort-header-disabled",be._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[u.qOj],attrs:O,ngContentSelectors:N,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Vt,be){1&Vt&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1),u.Hsn(2),u.qZA(),u.YNc(3,L,6,6,"div",2),u.qZA()),2&Vt&&(u.ekj("mat-sort-header-sorted",be._isSorted())("mat-sort-header-position-before","before"===be.arrowPosition),u.uIk("tabindex",be._isDisabled()?null:0)("role",be._isDisabled()?null:"button"),u.xp6(3),u.Q6J("ngIf",be._renderArrow()))},dependencies:[P.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Gt.indicator,Gt.leftPointer,Gt.rightPointer,Gt.arrowOpacity,Gt.arrowPosition,Gt.allowChildren]},changeDetection:0}),kt})(),Bt=(()=>{class kt{}return kt.\u0275fac=function(Vt){return new(Vt||kt)},kt.\u0275mod=u.oAB({type:kt}),kt.\u0275inj=u.cJS({providers:[bt],imports:[P.ez,t.BQ]}),kt})()},58425:(tt,W,f)=>{"use strict";f.d(W,{C0:()=>ii,Ic:()=>oi,T5:()=>ee,VY:()=>se,Vq:()=>_i,fd:()=>We,z9:()=>dn});var u=f(84080),d=f(12138),v=f(36895),g=f(94650),t=f(4859),T=f(3238),U=f(97392),w=f(12687),P=f(8929),O=f(42654),L=f(40445),N=f(87545),B=f(24850),K=f(1059),et=f(7625),ct=f(75778),lt=f(37340);function Ct(ot,X){if(1&ot&&g.GkF(0,8),2&ot){const At=g.oxw();g.Q6J("ngTemplateOutlet",At.iconOverrides[At.state])("ngTemplateOutletContext",At._getIconContext())}}function Dt(ot,X){if(1&ot&&(g.TgZ(0,"span",13),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._getDefaultTextForState(At.state))}}function Zt(ot,X){if(1&ot&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._intl.completedLabel)}}function Rt(ot,X){if(1&ot&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._intl.editableLabel)}}function Gt(ot,X){if(1&ot&&(g.TgZ(0,"mat-icon",13),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._getDefaultTextForState(At.state))}}function Tt(ot,X){if(1&ot&&(g.ynx(0,9),g.YNc(1,Dt,2,1,"span",10),g.YNc(2,Zt,2,1,"span",11),g.YNc(3,Rt,2,1,"span",11),g.YNc(4,Gt,2,1,"mat-icon",12),g.BQk()),2&ot){const At=g.oxw();g.Q6J("ngSwitch",At.state),g.xp6(1),g.Q6J("ngSwitchCase","number"),g.xp6(1),g.Q6J("ngIf","done"===At.state),g.xp6(1),g.Q6J("ngIf","edit"===At.state)}}function Ut(ot,X){if(1&ot&&(g.TgZ(0,"div",15),g.GkF(1,16),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Q6J("ngTemplateOutlet",At._templateLabel().template)}}function bt(ot,X){if(1&ot&&(g.TgZ(0,"div",15),g._uU(1),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Oqu(At.label)}}function mt(ot,X){if(1&ot&&(g.TgZ(0,"div",17),g._uU(1),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Oqu(At._intl.optionalLabel)}}function Lt(ot,X){if(1&ot&&(g.TgZ(0,"div",18),g._uU(1),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Oqu(At.errorMessage)}}function Bt(ot,X){}function kt(ot,X){if(1&ot&&(g.Hsn(0),g.YNc(1,Bt,0,0,"ng-template",0)),2&ot){const At=g.oxw();g.xp6(1),g.Q6J("cdkPortalOutlet",At._portal)}}const le=["*"];function Vt(ot,X){1&ot&&g._UZ(0,"div",11)}const be=function(ot,X){return{step:ot,i:X}};function ge(ot,X){if(1&ot&&(g.ynx(0),g.GkF(1,9),g.YNc(2,Vt,1,0,"div",10),g.BQk()),2&ot){const At=X.$implicit,Ht=X.index,ue=X.last;g.oxw(2);const ye=g.MAs(4);g.xp6(1),g.Q6J("ngTemplateOutlet",ye)("ngTemplateOutletContext",g.WLB(3,be,At,Ht)),g.xp6(1),g.Q6J("ngIf",!ue)}}const Fe=function(ot){return{animationDuration:ot}},qe=function(ot,X){return{value:ot,params:X}};function je(ot,X){if(1&ot){const At=g.EpF();g.TgZ(0,"div",12),g.NdJ("@horizontalStepTransition.done",function(ue){g.CHM(At);const ye=g.oxw(2);return g.KtG(ye._animationDone.next(ue))}),g.GkF(1,13),g.qZA()}if(2&ot){const At=X.$implicit,Ht=X.index,ue=g.oxw(2);g.ekj("mat-horizontal-stepper-content-inactive",ue.selectedIndex!==Ht),g.Q6J("@horizontalStepTransition",g.WLB(8,qe,ue._getAnimationDirection(Ht),g.VKq(6,Fe,ue._getAnimationDuration())))("id",ue._getStepContentId(Ht)),g.uIk("aria-labelledby",ue._getStepLabelId(Ht)),g.xp6(1),g.Q6J("ngTemplateOutlet",At.content)}}function Qt(ot,X){if(1&ot&&(g.TgZ(0,"div",4)(1,"div",5),g.YNc(2,ge,3,6,"ng-container",6),g.qZA(),g.TgZ(3,"div",7),g.YNc(4,je,2,11,"div",8),g.qZA()()),2&ot){const At=g.oxw();g.xp6(2),g.Q6J("ngForOf",At.steps),g.xp6(2),g.Q6J("ngForOf",At.steps)}}function Ue(ot,X){if(1&ot){const At=g.EpF();g.TgZ(0,"div",15),g.GkF(1,9),g.TgZ(2,"div",16)(3,"div",17),g.NdJ("@verticalStepTransition.done",function(ue){g.CHM(At);const ye=g.oxw(2);return g.KtG(ye._animationDone.next(ue))}),g.TgZ(4,"div",18),g.GkF(5,13),g.qZA()()()()}if(2&ot){const At=X.$implicit,Ht=X.index,ue=X.last,ye=g.oxw(2),Se=g.MAs(4);g.xp6(1),g.Q6J("ngTemplateOutlet",Se)("ngTemplateOutletContext",g.WLB(10,be,At,Ht)),g.xp6(1),g.ekj("mat-stepper-vertical-line",!ue),g.xp6(1),g.ekj("mat-vertical-stepper-content-inactive",ye.selectedIndex!==Ht),g.Q6J("@verticalStepTransition",g.WLB(15,qe,ye._getAnimationDirection(Ht),g.VKq(13,Fe,ye._getAnimationDuration())))("id",ye._getStepContentId(Ht)),g.uIk("aria-labelledby",ye._getStepLabelId(Ht)),g.xp6(2),g.Q6J("ngTemplateOutlet",At.content)}}function ie(ot,X){if(1&ot&&(g.ynx(0),g.YNc(1,Ue,6,18,"div",14),g.BQk()),2&ot){const At=g.oxw();g.xp6(1),g.Q6J("ngForOf",At.steps)}}function Wt(ot,X){if(1&ot){const At=g.EpF();g.TgZ(0,"mat-step-header",19),g.NdJ("click",function(){const ye=g.CHM(At).step;return g.KtG(ye.select())})("keydown",function(ue){g.CHM(At);const ye=g.oxw();return g.KtG(ye._onKeydown(ue))}),g.qZA()}if(2&ot){const At=X.step,Ht=X.i,ue=g.oxw();g.ekj("mat-horizontal-stepper-header","horizontal"===ue.orientation)("mat-vertical-stepper-header","vertical"===ue.orientation),g.Q6J("tabIndex",ue._getFocusIndex()===Ht?0:-1)("id",ue._getStepLabelId(Ht))("index",Ht)("state",ue._getIndicatorType(Ht,At.state))("label",At.stepLabel||At.label)("selected",ue.selectedIndex===Ht)("active",ue._stepIsNavigable(Ht,At))("optional",At.optional)("errorMessage",At.errorMessage)("iconOverrides",ue._iconOverrides)("disableRipple",ue.disableRipple||!ue._stepIsNavigable(Ht,At))("color",At.color||ue.color),g.uIk("aria-posinset",Ht+1)("aria-setsize",ue.steps.length)("aria-controls",ue._getStepContentId(Ht))("aria-selected",ue.selectedIndex==Ht)("aria-label",At.ariaLabel||null)("aria-labelledby",!At.ariaLabel&&At.ariaLabelledby?At.ariaLabelledby:null)("aria-disabled",!ue._stepIsNavigable(Ht,At)||null)}}let se=(()=>{class ot extends d.u6{}return ot.\u0275fac=function(){let X;return function(Ht){return(X||(X=g.n5z(ot)))(Ht||ot)}}(),ot.\u0275dir=g.lG2({type:ot,selectors:[["","matStepLabel",""]],features:[g.qOj]}),ot})(),Xt=(()=>{class ot{constructor(){this.changes=new P.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ot.\u0275fac=function(At){return new(At||ot)},ot.\u0275prov=g.Yz7({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const De={provide:Xt,deps:[[new g.FiY,new g.tp0,Xt]],useFactory:function ae(ot){return ot||new Xt}},nn=(0,T.pj)(class extends d.KL{constructor(X){super(X)}},"primary");let hn=(()=>{class ot extends nn{constructor(At,Ht,ue,ye){super(ue),this._intl=At,this._focusMonitor=Ht,this._intlSubscription=At.changes.subscribe(()=>ye.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(At,Ht){At?this._focusMonitor.focusVia(this._elementRef,At,Ht):this._elementRef.nativeElement.focus(Ht)}_stringLabel(){return this.label instanceof se?null:this.label}_templateLabel(){return this.label instanceof se?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(At){return"number"==At?`${this.index+1}`:"edit"==At?"create":"error"==At?"warning":At}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(Xt),g.Y36(w.tE),g.Y36(g.SBq),g.Y36(g.sBO))},ot.\u0275cmp=g.Xpm({type:ot,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[g.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(At,Ht){1&At&&(g._UZ(0,"div",0),g.TgZ(1,"div")(2,"div",1),g.YNc(3,Ct,1,2,"ng-container",2),g.YNc(4,Tt,5,4,"ng-container",3),g.qZA()(),g.TgZ(5,"div",4),g.YNc(6,Ut,2,1,"div",5),g.YNc(7,bt,2,1,"div",5),g.YNc(8,mt,2,1,"div",6),g.YNc(9,Lt,2,1,"div",7),g.qZA()),2&At&&(g.Q6J("matRippleTrigger",Ht._getHostElement())("matRippleDisabled",Ht.disableRipple),g.xp6(1),g.Gre("mat-step-icon-state-",Ht.state," mat-step-icon"),g.ekj("mat-step-icon-selected",Ht.selected),g.xp6(1),g.Q6J("ngSwitch",!(!Ht.iconOverrides||!Ht.iconOverrides[Ht.state])),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(2),g.ekj("mat-step-label-active",Ht.active)("mat-step-label-selected",Ht.selected)("mat-step-label-error","error"==Ht.state),g.xp6(1),g.Q6J("ngIf",Ht._templateLabel()),g.xp6(1),g.Q6J("ngIf",Ht._stringLabel()),g.xp6(1),g.Q6J("ngIf",Ht.optional&&"error"!=Ht.state),g.xp6(1),g.Q6J("ngIf","error"==Ht.state))},dependencies:[v.O5,v.tP,v.RF,v.n9,v.ED,U.Hw,T.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),ot})();const Oe={horizontalStepTransition:(0,lt.X$)("horizontalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({transform:"none",visibility:"inherit"})),(0,lt.SB)("next",(0,lt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,lt.eR)("* => *",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,lt.X$)("verticalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("next",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({height:"*",visibility:"inherit"})),(0,lt.eR)("* <=> current",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let dn=(()=>{class ot{constructor(At){this.templateRef=At}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(g.Rgc))},ot.\u0275dir=g.lG2({type:ot,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ot})(),Pn=(()=>{class ot{constructor(At){this._template=At}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(g.Rgc))},ot.\u0275dir=g.lG2({type:ot,selectors:[["ng-template","matStepContent",""]]}),ot})(),ii=(()=>{class ot extends d.be{constructor(At,Ht,ue,ye){super(At,ye),this._errorStateMatcher=Ht,this._viewContainerRef=ue,this._isSelected=O.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,N.w)(()=>this._stepper.selectionChange.pipe((0,B.U)(At=>At.selectedStep===this),(0,K.O)(this._stepper.selected===this)))).subscribe(At=>{At&&this._lazyContent&&!this._portal&&(this._portal=new u.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(At,Ht){return this._errorStateMatcher.isErrorState(At,Ht)||!!(At&&At.invalid&&this.interacted)}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36((0,g.Gpc)(()=>_i)),g.Y36(T.rD,4),g.Y36(g.s_b),g.Y36(d.gx,8))},ot.\u0275cmp=g.Xpm({type:ot,selectors:[["mat-step"]],contentQueries:function(At,Ht,ue){if(1&At&&(g.Suo(ue,se,5),g.Suo(ue,Pn,5)),2&At){let ye;g.iGM(ye=g.CRH())&&(Ht.stepLabel=ye.first),g.iGM(ye=g.CRH())&&(Ht._lazyContent=ye.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[g._Bn([{provide:T.rD,useExisting:ot},{provide:d.be,useExisting:ot}]),g.qOj],ngContentSelectors:le,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(At,Ht){1&At&&(g.F$t(),g.YNc(0,kt,2,1,"ng-template"))},dependencies:[u.Pl],encapsulation:2,changeDetection:0}),ot})(),_i=(()=>{class ot extends d.B8{constructor(At,Ht,ue){super(At,Ht,ue),this.steps=new g.n_E,this.animationDone=new g.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.xQ,this._animationDuration="";const ye=ue.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ye?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(At){this._animationDuration=/^\d+$/.test(At)?At+"ms":At}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:At,templateRef:Ht})=>this._iconOverrides[At]=Ht),this.steps.changes.pipe((0,et.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ct.x)((At,Ht)=>At.fromState===Ht.fromState&&At.toState===Ht.toState),(0,et.R)(this._destroyed)).subscribe(At=>{"current"===At.toState&&this.animationDone.emit()})}_stepIsNavigable(At,Ht){return Ht.completed||this.selectedIndex===At||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(L.Is,8),g.Y36(g.sBO),g.Y36(g.SBq))},ot.\u0275cmp=g.Xpm({type:ot,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(At,Ht,ue){if(1&At&&(g.Suo(ue,ii,5),g.Suo(ue,dn,5)),2&At){let ye;g.iGM(ye=g.CRH())&&(Ht._steps=ye),g.iGM(ye=g.CRH())&&(Ht._icons=ye)}},viewQuery:function(At,Ht){if(1&At&&g.Gf(hn,5),2&At){let ue;g.iGM(ue=g.CRH())&&(Ht._stepHeader=ue)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(At,Ht){2&At&&(g.uIk("aria-orientation",Ht.orientation),g.ekj("mat-stepper-horizontal","horizontal"===Ht.orientation)("mat-stepper-vertical","vertical"===Ht.orientation)("mat-stepper-label-position-end","horizontal"===Ht.orientation&&"end"==Ht.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ht.orientation&&"bottom"==Ht.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ht.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[g._Bn([{provide:d.B8,useExisting:ot}]),g.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(At,Ht){1&At&&(g.ynx(0,0),g.YNc(1,Qt,5,2,"div",1),g.YNc(2,ie,2,1,"ng-container",2),g.BQk(),g.YNc(3,Wt,1,23,"ng-template",null,3,g.W1O)),2&At&&(g.Q6J("ngSwitch",Ht.orientation),g.xp6(1),g.Q6J("ngSwitchCase","horizontal"),g.xp6(1),g.Q6J("ngSwitchCase","vertical"))},dependencies:[v.sg,v.O5,v.tP,v.RF,v.n9,hn],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),ot})(),oi=(()=>{class ot extends d.st{}return ot.\u0275fac=function(){let X;return function(Ht){return(X||(X=g.n5z(ot)))(Ht||ot)}}(),ot.\u0275dir=g.lG2({type:ot,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(At,Ht){2&At&&g.Ikx("type",Ht.type)},inputs:{type:"type"},features:[g.qOj]}),ot})(),We=(()=>{class ot extends d.po{}return ot.\u0275fac=function(){let X;return function(Ht){return(X||(X=g.n5z(ot)))(Ht||ot)}}(),ot.\u0275dir=g.lG2({type:ot,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(At,Ht){2&At&&g.Ikx("type",Ht.type)},inputs:{type:"type"},features:[g.qOj]}),ot})(),ee=(()=>{class ot{}return ot.\u0275fac=function(At){return new(At||ot)},ot.\u0275mod=g.oAB({type:ot}),ot.\u0275inj=g.cJS({providers:[De,T.rD],imports:[T.BQ,v.ez,u.eL,t.ot,d.U5,U.Ps,T.si,T.BQ]}),ot})()},30671:(tt,W,f)=>{"use strict";f.d(W,{ev:()=>He,Dz:()=>cn,w1:()=>Le,yh:()=>we,mD:()=>It,Q2:()=>_n,Ke:()=>Ei,ge:()=>zt,fO:()=>xe,XQ:()=>un,as:()=>kn,Gk:()=>Ke,nj:()=>Bi,BZ:()=>gn,by:()=>Ta,p0:()=>Co});var u=f(94650),d=f(40445),v=f(21281),g=f(95017),t=f(83353),T=f(67376),U=f(36895),w=f(8929),P=f(5254),O=f(591),L=f(54715),N=f(21086),B=f(7625),K=f(72986);const et=[[["caption"]],[["colgroup"],["col"]]],ct=["caption","colgroup, col"];function Dt(Re){return class extends Re{constructor(...Rn){super(...Rn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Rn){const Ye=this._sticky;this._sticky=(0,v.Ig)(Rn),this._hasStickyChanged=Ye!==this._sticky}hasStickyChanged(){const Rn=this._hasStickyChanged;return this._hasStickyChanged=!1,Rn}resetStickyChanged(){this._hasStickyChanged=!1}}}const Zt=new u.OlP("CDK_TABLE");let Gt=(()=>{class Re{constructor(Ye){this.template=Ye}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkCellDef",""]]}),Re})(),Tt=(()=>{class Re{constructor(Ye){this.template=Ye}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkHeaderCellDef",""]]}),Re})(),Ut=(()=>{class Re{constructor(Ye){this.template=Ye}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkFooterCellDef",""]]}),Re})();class bt{}const mt=Dt(bt);let Lt=(()=>{class Re extends mt{constructor(Ye){super(),this._table=Ye,this._stickyEnd=!1}get name(){return this._name}set name(Ye){this._setNameInput(Ye)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Ye){const Me=this._stickyEnd;this._stickyEnd=(0,v.Ig)(Ye),this._hasStickyChanged=Me!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ye){Ye&&(this._name=Ye,this.cssClassFriendlyName=Ye.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ye,Me,an){if(1&Ye&&(u.Suo(an,Gt,5),u.Suo(an,Tt,5),u.Suo(an,Ut,5)),2&Ye){let j;u.iGM(j=u.CRH())&&(Me.cell=j.first),u.iGM(j=u.CRH())&&(Me.headerCell=j.first),u.iGM(j=u.CRH())&&(Me.footerCell=j.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[u._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),u.qOj]}),Re})();class Bt{constructor(Rn,Ye){Ye.nativeElement.classList.add(...Rn._columnCssClassName)}}let kt=(()=>{class Re extends Bt{constructor(Ye,Me){super(Ye,Me)}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Lt),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u.qOj]}),Re})(),le=(()=>{class Re extends Bt{constructor(Ye,Me){if(super(Ye,Me),1===Ye._table?._elementRef.nativeElement.nodeType){const an=Ye._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===an||"treegrid"===an?"gridcell":"cell")}}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Lt),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[u.qOj]}),Re})(),Vt=(()=>{class Re extends Bt{constructor(Ye,Me){if(super(Ye,Me),1===Ye._table?._elementRef.nativeElement.nodeType){const an=Ye._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===an||"treegrid"===an?"gridcell":"cell")}}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Lt),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u.qOj]}),Re})();class be{constructor(){this.tasks=[],this.endTasks=[]}}const ge=new u.OlP("_COALESCED_STYLE_SCHEDULER");let Fe=(()=>{class Re{constructor(Ye){this._ngZone=Ye,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(Ye){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Ye)}scheduleEnd(Ye){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Ye)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new be,this._getScheduleObservable().pipe((0,B.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Ye=this._currentSchedule;this._currentSchedule=new be;for(const Me of Ye.tasks)Me();for(const Me of Ye.endTasks)Me()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,P.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,K.q)(1))}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.LFG(u.R0b))},Re.\u0275prov=u.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),je=(()=>{class Re{constructor(Ye,Me){this.template=Ye,this._differs=Me}ngOnChanges(Ye){if(!this._columnsDiffer){const Me=Ye.columns&&Ye.columns.currentValue||[];this._columnsDiffer=this._differs.find(Me).create(),this._columnsDiffer.diff(Me)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ye){return this instanceof ie?Ye.headerCell.template:this instanceof Xt?Ye.footerCell.template:Ye.cell.template}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4))},Re.\u0275dir=u.lG2({type:Re,features:[u.TTD]}),Re})();class Qt extends je{}const Ue=Dt(Qt);let ie=(()=>{class Re extends Ue{constructor(Ye,Me,an){super(Ye,Me),this._table=an}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Re})();class Wt extends je{}const se=Dt(Wt);let Xt=(()=>{class Re extends se{constructor(Ye,Me,an){super(Ye,Me),this._table=an}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Re})(),ae=(()=>{class Re extends je{constructor(Ye,Me,an){super(Ye,Me),this._table=an}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[u.qOj]}),Re})(),De=(()=>{class Re{constructor(Ye){this._viewContainer=Ye,Re.mostRecentCellOutlet=this}ngOnDestroy(){Re.mostRecentCellOutlet===this&&(Re.mostRecentCellOutlet=null)}}return Re.mostRecentCellOutlet=null,Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkCellOutlet",""]]}),Re})(),nn=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),hn=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),Ce=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),bn=(()=>{class Re{constructor(Ye){this.templateRef=Ye,this._contentClassName="cdk-no-data-row"}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["ng-template","cdkNoDataRow",""]]}),Re})();const Oe=["top","bottom","left","right"];class dn{constructor(Rn,Ye,Me,an,j=!0,Ft=!0,J){this._isNativeHtmlTable=Rn,this._stickCellCss=Ye,this.direction=Me,this._coalescedStyleScheduler=an,this._isBrowser=j,this._needsPositionStickyOnElement=Ft,this._positionListener=J,this._cachedCellWidths=[],this._borderCellCss={top:`${Ye}-border-elem-top`,bottom:`${Ye}-border-elem-bottom`,left:`${Ye}-border-elem-left`,right:`${Ye}-border-elem-right`}}clearStickyPositioning(Rn,Ye){const Me=[];for(const an of Rn)if(an.nodeType===an.ELEMENT_NODE){Me.push(an);for(let j=0;j{for(const an of Me)this._removeStickyStyle(an,Ye)})}updateStickyColumns(Rn,Ye,Me,an=!0){if(!Rn.length||!this._isBrowser||!Ye.some(To=>To)&&!Me.some(To=>To))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const j=Rn[0],Ft=j.children.length,J=this._getCellWidths(j,an),Et=this._getStickyStartColumnPositions(J,Ye),ze=this._getStickyEndColumnPositions(J,Me),Vn=Ye.lastIndexOf(!0),Xi=Me.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const To="rtl"===this.direction,_r=To?"right":"left",fr=To?"left":"right";for(const jr of Rn)for(let Ja=0;JaYe[Ja]?jr:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Xi?[]:J.slice(Xi).map((jr,Ja)=>Me[Ja+Xi]?jr:null).reverse()}))})}stickRows(Rn,Ye,Me){if(!this._isBrowser)return;const an="bottom"===Me?Rn.slice().reverse():Rn,j="bottom"===Me?Ye.slice().reverse():Ye,Ft=[],J=[],Et=[];for(let Vn=0,Xi=0;Vn{for(let Vn=0;Vn{Ye.some(an=>!an)?this._removeStickyStyle(Me,["bottom"]):this._addStickyStyle(Me,"bottom",0,!1)})}_removeStickyStyle(Rn,Ye){for(const an of Ye)Rn.style[an]="",Rn.classList.remove(this._borderCellCss[an]);Oe.some(an=>-1===Ye.indexOf(an)&&Rn.style[an])?Rn.style.zIndex=this._getCalculatedZIndex(Rn):(Rn.style.zIndex="",this._needsPositionStickyOnElement&&(Rn.style.position=""),Rn.classList.remove(this._stickCellCss))}_addStickyStyle(Rn,Ye,Me,an){Rn.classList.add(this._stickCellCss),an&&Rn.classList.add(this._borderCellCss[Ye]),Rn.style[Ye]=`${Me}px`,Rn.style.zIndex=this._getCalculatedZIndex(Rn),this._needsPositionStickyOnElement&&(Rn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rn){const Ye={top:100,bottom:10,left:1,right:1};let Me=0;for(const an of Oe)Rn.style[an]&&(Me+=Ye[an]);return Me?`${Me}`:""}_getCellWidths(Rn,Ye=!0){if(!Ye&&this._cachedCellWidths.length)return this._cachedCellWidths;const Me=[],an=Rn.children;for(let j=0;j0;j--)Ye[j]&&(Me[j]=an,an+=Rn[j]);return Me}}const At=new u.OlP("CDK_SPL");let ue=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","rowOutlet",""]]}),Re})(),ye=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","headerRowOutlet",""]]}),Re})(),Se=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","footerRowOutlet",""]]}),Re})(),vn=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","noDataRowOutlet",""]]}),Re})(),Di=(()=>{class Re{constructor(Ye,Me,an,j,Ft,J,Et,ze,Vn,Xi,To,_r){this._differs=Ye,this._changeDetectorRef=Me,this._elementRef=an,this._dir=Ft,this._platform=Et,this._viewRepeater=ze,this._coalescedStyleScheduler=Vn,this._viewportRuler=Xi,this._stickyPositioningListener=To,this._ngZone=_r,this._onDestroy=new w.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new u.vpe,this.viewChange=new O.X({start:0,end:Number.MAX_VALUE}),j||this._elementRef.nativeElement.setAttribute("role","table"),this._document=J,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Ye){this._trackByFn=Ye}get dataSource(){return this._dataSource}set dataSource(Ye){this._dataSource!==Ye&&this._switchDataSource(Ye)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ye){this._multiTemplateDataRows=(0,v.Ig)(Ye),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Ye){this._fixedLayout=(0,v.Ig)(Ye),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Ye,Me)=>this.trackBy?this.trackBy(Me.dataIndex,Me.data):Me),this._viewportRuler.change().pipe((0,B.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Me=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Me,this._forceRecalculateCellWidths=Me,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ye=>{Ye.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,g.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ye=this._dataDiffer.diff(this._renderRows);if(!Ye)return this._updateNoDataRow(),void this.contentChanged.next();const Me=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ye,Me,(an,j,Ft)=>this._getEmbeddedViewArgs(an.item,Ft),an=>an.item.data,an=>{1===an.operation&&an.context&&this._renderCellTemplateForItem(an.record.item.rowDef,an.context)}),this._updateRowIndexContext(),Ye.forEachIdentityChange(an=>{Me.get(an.currentIndex).context.$implicit=an.item.data}),this._updateNoDataRow(),this._ngZone&&u.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,K.q)(1),(0,B.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Ye){this._customColumnDefs.add(Ye)}removeColumnDef(Ye){this._customColumnDefs.delete(Ye)}addRowDef(Ye){this._customRowDefs.add(Ye)}removeRowDef(Ye){this._customRowDefs.delete(Ye)}addHeaderRowDef(Ye){this._customHeaderRowDefs.add(Ye),this._headerRowDefChanged=!0}removeHeaderRowDef(Ye){this._customHeaderRowDefs.delete(Ye),this._headerRowDefChanged=!0}addFooterRowDef(Ye){this._customFooterRowDefs.add(Ye),this._footerRowDefChanged=!0}removeFooterRowDef(Ye){this._customFooterRowDefs.delete(Ye),this._footerRowDefChanged=!0}setNoDataRow(Ye){this._customNoDataRow=Ye}updateStickyHeaderRowStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),an=this._elementRef.nativeElement.querySelector("thead");an&&(an.style.display=Ye.length?"":"none");const j=this._headerRowDefs.map(Ft=>Ft.sticky);this._stickyStyler.clearStickyPositioning(Ye,["top"]),this._stickyStyler.stickRows(Ye,j,"top"),this._headerRowDefs.forEach(Ft=>Ft.resetStickyChanged())}updateStickyFooterRowStyles(){const Ye=this._getRenderedRows(this._footerRowOutlet),an=this._elementRef.nativeElement.querySelector("tfoot");an&&(an.style.display=Ye.length?"":"none");const j=this._footerRowDefs.map(Ft=>Ft.sticky);this._stickyStyler.clearStickyPositioning(Ye,["bottom"]),this._stickyStyler.stickRows(Ye,j,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,j),this._footerRowDefs.forEach(Ft=>Ft.resetStickyChanged())}updateStickyColumnStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),Me=this._getRenderedRows(this._rowOutlet),an=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ye,...Me,...an],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ye.forEach((j,Ft)=>{this._addStickyColumnStyles([j],this._headerRowDefs[Ft])}),this._rowDefs.forEach(j=>{const Ft=[];for(let J=0;J{this._addStickyColumnStyles([j],this._footerRowDefs[Ft])}),Array.from(this._columnDefsByName.values()).forEach(j=>j.resetStickyChanged())}_getAllRenderRows(){const Ye=[],Me=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let an=0;an{const J=an&&an.has(Ft)?an.get(Ft):[];if(J.length){const Et=J.shift();return Et.dataIndex=Me,Et}return{data:Ye,rowDef:Ft,dataIndex:Me}})}_cacheColumnDefs(){this._columnDefsByName.clear(),bo(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Me=>{this._columnDefsByName.has(Me.name),this._columnDefsByName.set(Me.name,Me)})}_cacheRowDefs(){this._headerRowDefs=bo(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=bo(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=bo(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ye=this._rowDefs.filter(Me=>!Me.when);this._defaultRowDef=Ye[0]}_renderUpdatedColumns(){const Ye=(Ft,J)=>Ft||!!J.getColumnsDiff(),Me=this._rowDefs.reduce(Ye,!1);Me&&this._forceRenderDataRows();const an=this._headerRowDefs.reduce(Ye,!1);an&&this._forceRenderHeaderRows();const j=this._footerRowDefs.reduce(Ye,!1);return j&&this._forceRenderFooterRows(),Me||an||j}_switchDataSource(Ye){this._data=[],(0,g.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ye||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Ye}_observeRenderChanges(){if(!this.dataSource)return;let Ye;(0,g.Z9)(this.dataSource)?Ye=this.dataSource.connect(this):(0,L.b)(this.dataSource)?Ye=this.dataSource:Array.isArray(this.dataSource)&&(Ye=(0,N.of)(this.dataSource)),this._renderChangeSubscription=Ye.pipe((0,B.R)(this._onDestroy)).subscribe(Me=>{this._data=Me||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ye,Me)=>this._renderRow(this._headerRowOutlet,Ye,Me)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ye,Me)=>this._renderRow(this._footerRowOutlet,Ye,Me)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ye,Me){const an=Array.from(Me.columns||[]).map(J=>this._columnDefsByName.get(J)),j=an.map(J=>J.sticky),Ft=an.map(J=>J.stickyEnd);this._stickyStyler.updateStickyColumns(Ye,j,Ft,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ye){const Me=[];for(let an=0;an!j.when||j.when(Me,Ye));else{let j=this._rowDefs.find(Ft=>Ft.when&&Ft.when(Me,Ye))||this._defaultRowDef;j&&an.push(j)}return an}_getEmbeddedViewArgs(Ye,Me){return{templateRef:Ye.rowDef.template,context:{$implicit:Ye.data},index:Me}}_renderRow(Ye,Me,an,j={}){const Ft=Ye.viewContainer.createEmbeddedView(Me.template,j,an);return this._renderCellTemplateForItem(Me,j),Ft}_renderCellTemplateForItem(Ye,Me){for(let an of this._getCellTemplates(Ye))De.mostRecentCellOutlet&&De.mostRecentCellOutlet._viewContainer.createEmbeddedView(an,Me);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ye=this._rowOutlet.viewContainer;for(let Me=0,an=Ye.length;Me{const an=this._columnDefsByName.get(Me);return Ye.extractCellTemplate(an)}):[]}_applyNativeTableSections(){const Ye=this._document.createDocumentFragment(),Me=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const an of Me){const j=this._document.createElement(an.tag);j.setAttribute("role","rowgroup");for(const Ft of an.outlets)j.appendChild(Ft.elementRef.nativeElement);Ye.appendChild(j)}this._elementRef.nativeElement.appendChild(Ye)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ye=(Me,an)=>Me||an.hasStickyChanged();this._headerRowDefs.reduce(Ye,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ye,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ye,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new dn(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,N.of)()).pipe((0,B.R)(this._onDestroy)).subscribe(Me=>{this._stickyStyler.direction=Me,this.updateStickyColumnStyles()})}_getOwnDefs(Ye){return Ye.filter(Me=>!Me._table||Me._table===this)}_updateNoDataRow(){const Ye=this._customNoDataRow||this._noDataRow;if(!Ye)return;const Me=0===this._rowOutlet.viewContainer.length;if(Me===this._isShowingNoDataRow)return;const an=this._noDataRowOutlet.viewContainer;if(Me){const j=an.createEmbeddedView(Ye.templateRef),Ft=j.rootNodes[0];1===j.rootNodes.length&&Ft?.nodeType===this._document.ELEMENT_NODE&&(Ft.setAttribute("role","row"),Ft.classList.add(Ye._contentClassName))}else an.clear();this._isShowingNoDataRow=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.ZZ4),u.Y36(u.sBO),u.Y36(u.SBq),u.$8M("role"),u.Y36(d.Is,8),u.Y36(U.K0),u.Y36(t.t4),u.Y36(g.k),u.Y36(ge),u.Y36(T.rL),u.Y36(At,12),u.Y36(u.R0b,8))},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ye,Me,an){if(1&Ye&&(u.Suo(an,bn,5),u.Suo(an,Lt,5),u.Suo(an,ae,5),u.Suo(an,ie,5),u.Suo(an,Xt,5)),2&Ye){let j;u.iGM(j=u.CRH())&&(Me._noDataRow=j.first),u.iGM(j=u.CRH())&&(Me._contentColumnDefs=j),u.iGM(j=u.CRH())&&(Me._contentRowDefs=j),u.iGM(j=u.CRH())&&(Me._contentHeaderRowDefs=j),u.iGM(j=u.CRH())&&(Me._contentFooterRowDefs=j)}},viewQuery:function(Ye,Me){if(1&Ye&&(u.Gf(ue,7),u.Gf(ye,7),u.Gf(Se,7),u.Gf(vn,7)),2&Ye){let an;u.iGM(an=u.CRH())&&(Me._rowOutlet=an.first),u.iGM(an=u.CRH())&&(Me._headerRowOutlet=an.first),u.iGM(an=u.CRH())&&(Me._footerRowOutlet=an.first),u.iGM(an=u.CRH())&&(Me._noDataRowOutlet=an.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ye,Me){2&Ye&&u.ekj("cdk-table-fixed-layout",Me.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[u._Bn([{provide:Zt,useExisting:Re},{provide:g.k,useClass:g.yy},{provide:ge,useClass:Fe},{provide:At,useValue:null}])],ngContentSelectors:ct,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Me){1&Ye&&(u.F$t(et),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ue,ye,Se,vn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Re})();function bo(Re,Rn){return Re.concat(Array.from(Rn))}let Bn=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275mod=u.oAB({type:Re}),Re.\u0275inj=u.cJS({imports:[T.Cl]}),Re})();var Qe=f(3238),xn=f(36787),Ve=f(23426),Ne=f(24850);const tn=[[["caption"]],[["colgroup"],["col"]]],ce=["caption","colgroup, col"];let gn=(()=>{class Re extends Di{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Ye,Me){2&Ye&&u.ekj("mat-table-fixed-layout",Me.fixedLayout)},exportAs:["matTable"],features:[u._Bn([{provide:g.k,useClass:g.yy},{provide:Di,useExisting:Re},{provide:Zt,useExisting:Re},{provide:ge,useClass:Fe},{provide:At,useValue:null}]),u.qOj],ngContentSelectors:ce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Me){1&Ye&&(u.F$t(tn),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ue,ye,Se,vn],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Re})(),cn=(()=>{class Re extends Gt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matCellDef",""]],features:[u._Bn([{provide:Gt,useExisting:Re}]),u.qOj]}),Re})(),xe=(()=>{class Re extends Tt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matHeaderCellDef",""]],features:[u._Bn([{provide:Tt,useExisting:Re}]),u.qOj]}),Re})(),It=(()=>{class Re extends Ut{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matFooterCellDef",""]],features:[u._Bn([{provide:Ut,useExisting:Re}]),u.qOj]}),Re})(),Le=(()=>{class Re extends Lt{get name(){return this._name}set name(Ye){this._setNameInput(Ye)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[u._Bn([{provide:Lt,useExisting:Re},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),u.qOj]}),Re})(),zt=(()=>{class Re extends kt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[u.qOj]}),Re})(),we=(()=>{class Re extends le{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[u.qOj]}),Re})(),He=(()=>{class Re extends Vt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[u.qOj]}),Re})(),kn=(()=>{class Re extends ie{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[u._Bn([{provide:ie,useExisting:Re}]),u.qOj]}),Re})(),Ei=(()=>{class Re extends Xt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[u._Bn([{provide:Xt,useExisting:Re}]),u.qOj]}),Re})(),Bi=(()=>{class Re extends ae{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[u._Bn([{provide:ae,useExisting:Re}]),u.qOj]}),Re})(),un=(()=>{class Re extends nn{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[u._Bn([{provide:nn,useExisting:Re}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),_n=(()=>{class Re extends hn{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[u._Bn([{provide:hn,useExisting:Re}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),Ke=(()=>{class Re extends Ce{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[u._Bn([{provide:Ce,useExisting:Re}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),Co=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275mod=u.oAB({type:Re}),Re.\u0275inj=u.cJS({imports:[Bn,Qe.BQ,Qe.BQ]}),Re})();class ma extends g.o2{constructor(Rn=[]){super(),this._renderData=new O.X([]),this._filter=new O.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Ye,Me)=>{const an=Ye[Me];if((0,v.t6)(an)){const j=Number(an);return j<9007199254740991?j:an}return an},this.sortData=(Ye,Me)=>{const an=Me.active,j=Me.direction;return an&&""!=j?Ye.sort((Ft,J)=>{let Et=this.sortingDataAccessor(Ft,an),ze=this.sortingDataAccessor(J,an);const Vn=typeof Et,Xi=typeof ze;Vn!==Xi&&("number"===Vn&&(Et+=""),"number"===Xi&&(ze+=""));let To=0;return null!=Et&&null!=ze?Et>ze?To=1:Et{const an=Object.keys(Ye).reduce((Ft,J)=>Ft+Ye[J]+"\u25ec","").toLowerCase(),j=Me.trim().toLowerCase();return-1!=an.indexOf(j)},this._data=new O.X(Rn),this._updateChangeSubscription()}get data(){return this._data.value}set data(Rn){Rn=Array.isArray(Rn)?Rn:[],this._data.next(Rn),this._renderChangesSubscription||this._filterData(Rn)}get filter(){return this._filter.value}set filter(Rn){this._filter.next(Rn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Rn){this._sort=Rn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Rn){this._paginator=Rn,this._updateChangeSubscription()}_updateChangeSubscription(){const Rn=this._sort?(0,xn.T)(this._sort.sortChange,this._sort.initialized):(0,N.of)(null),Ye=this._paginator?(0,xn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,N.of)(null),an=(0,Ve.aj)([this._data,this._filter]).pipe((0,Ne.U)(([J])=>this._filterData(J))),j=(0,Ve.aj)([an,Rn]).pipe((0,Ne.U)(([J])=>this._orderData(J))),Ft=(0,Ve.aj)([j,Ye]).pipe((0,Ne.U)(([J])=>this._pageData(J)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Ft.subscribe(J=>this._renderData.next(J))}_filterData(Rn){return this.filteredData=null==this.filter||""===this.filter?Rn:Rn.filter(Ye=>this.filterPredicate(Ye,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Rn){return this.sort?this.sortData(Rn.slice(),this.sort):Rn}_pageData(Rn){if(!this.paginator)return Rn;const Ye=this.paginator.pageIndex*this.paginator.pageSize;return Rn.slice(Ye,Ye+this.paginator.pageSize)}_updatePaginator(Rn){Promise.resolve().then(()=>{const Ye=this.paginator;if(Ye&&(Ye.length=Rn,Ye.pageIndex>0)){const Me=Math.ceil(Ye.length/Ye.pageSize)-1||0,an=Math.min(Ye.pageIndex,Me);an!==Ye.pageIndex&&(Ye.pageIndex=an,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Ta extends ma{}},3848:(tt,W,f)=>{"use strict";f.d(W,{BU:()=>Be,Nh:()=>xe,Nj:()=>gn,SP:()=>Ne,uD:()=>_i,uX:()=>ee});var u=f(12687),d=f(49643),v=f(84080),g=f(36895),t=f(94650),T=f(3238),U=f(72986),w=f(1059),P=f(75778),O=f(7625),L=f(87545),N=f(31307),B=f(92198),K=f(8929),et=f(42654),ct=f(23753),lt=f(21086),Ct=f(36787),Dt=f(68896),Zt=f(56498),Rt=f(98723),Gt=f(40445),Tt=f(37340),Ut=f(21281),bt=f(67376),mt=f(83353),Lt=f(29521);function Bt(It,Le){1&It&&t.Hsn(0)}const kt=["*"];function le(It,Le){}const Vt=function(It){return{animationDuration:It}},be=function(It,Le){return{value:It,params:Le}},ge=["tabListContainer"],Fe=["tabList"],qe=["tabListInner"],je=["nextPaginator"],Qt=["previousPaginator"],Ue=["tabBodyWrapper"],ie=["tabHeader"];function Wt(It,Le){}function se(It,Le){if(1&It&&t.YNc(0,Wt,0,0,"ng-template",10),2&It){const zt=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",zt.templateLabel)}}function Xt(It,Le){if(1&It&&t._uU(0),2&It){const zt=t.oxw().$implicit;t.Oqu(zt.textLabel)}}function ae(It,Le){if(1&It){const zt=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const He=t.CHM(zt),kn=He.$implicit,Ei=He.index,Bi=t.oxw(),un=t.MAs(1);return t.KtG(Bi._handleClick(kn,un,Ei))})("cdkFocusChange",function(He){const Ei=t.CHM(zt).index,Bi=t.oxw();return t.KtG(Bi._tabFocusChanged(He,Ei))}),t.TgZ(1,"div",7),t.YNc(2,se,1,1,"ng-template",8),t.YNc(3,Xt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&It){const zt=Le.$implicit,we=Le.index,He=t.MAs(4),kn=t.oxw();t.ekj("mat-tab-label-active",kn.selectedIndex===we),t.Q6J("id",kn._getTabLabelId(we))("ngClass",zt.labelClass)("disabled",zt.disabled)("matRippleDisabled",zt.disabled||kn.disableRipple),t.uIk("tabIndex",kn._getTabIndex(zt,we))("aria-posinset",we+1)("aria-setsize",kn._tabs.length)("aria-controls",kn._getTabContentId(we))("aria-selected",kn.selectedIndex===we)("aria-label",zt.ariaLabel||null)("aria-labelledby",!zt.ariaLabel&&zt.ariaLabelledby?zt.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",zt.templateLabel)("ngIfElse",He)}}function De(It,Le){if(1&It){const zt=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(zt);const He=t.oxw();return t.KtG(He._removeTabBodyWrapperHeight())})("_onCentering",function(He){t.CHM(zt);const kn=t.oxw();return t.KtG(kn._setTabBodyWrapperHeight(He))}),t.qZA()}if(2&It){const zt=Le.$implicit,we=Le.index,He=t.oxw();t.ekj("mat-tab-body-active",He.selectedIndex===we),t.Q6J("id",He._getTabContentId(we))("ngClass",zt.bodyClass)("content",zt.content)("position",zt.position)("origin",zt.origin)("animationDuration",He.animationDuration)("preserveContent",He.preserveContent),t.uIk("tabindex",null!=He.contentTabIndex&&He.selectedIndex===we?He.contentTabIndex:null)("aria-labelledby",He._getTabLabelId(we))}}const nn=["mat-tab-nav-bar",""],hn=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ce(){return Le=>({left:Le?(Le.offsetLeft||0)+"px":"0",width:Le?(Le.offsetWidth||0)+"px":"0"})}});let bn=(()=>{class It{constructor(zt,we,He,kn){this._elementRef=zt,this._ngZone=we,this._inkBarPositioner=He,this._animationMode=kn}alignToElement(zt){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(()=>{const we=this._inkBarPositioner(zt),He=this._elementRef.nativeElement;He.style.left=we.left,He.style.width=we.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(hn),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(zt,we){2&zt&&t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)}}),It})();const Oe=new t.OlP("MatTabContent"),Pn=new t.OlP("MatTabLabel"),ii=new t.OlP("MAT_TAB");let _i=(()=>{class It extends v.ig{constructor(zt,we,He){super(zt,we),this._closestTab=He}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(ii,8))},It.\u0275dir=t.lG2({type:It,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Pn,useExisting:It}]),t.qOj]}),It})();const oi=(0,T.Id)(class{}),We=new t.OlP("MAT_TAB_GROUP");let ee=(()=>{class It extends oi{constructor(zt,we){super(),this._viewContainerRef=zt,this._closestTabGroup=we,this.textLabel="",this._contentPortal=null,this._stateChanges=new K.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(zt){this._setTemplateLabelInput(zt)}get content(){return this._contentPortal}ngOnChanges(zt){(zt.hasOwnProperty("textLabel")||zt.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(zt){zt&&zt._closestTab===this&&(this._templateLabel=zt)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.s_b),t.Y36(We,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab"]],contentQueries:function(zt,we,He){if(1&zt&&(t.Suo(He,Pn,5),t.Suo(He,Oe,7,t.Rgc)),2&zt){let kn;t.iGM(kn=t.CRH())&&(we.templateLabel=kn.first),t.iGM(kn=t.CRH())&&(we._explicitContent=kn.first)}},viewQuery:function(zt,we){if(1&zt&&t.Gf(t.Rgc,7),2&zt){let He;t.iGM(He=t.CRH())&&(we._implicitContent=He.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:ii,useExisting:It}]),t.qOj,t.TTD],ngContentSelectors:kt,decls:1,vars:0,template:function(zt,we){1&zt&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),It})();const ot={translateTab:(0,Tt.X$)("translateTab",[(0,Tt.SB)("center, void, left-origin-center, right-origin-center",(0,Tt.oB)({transform:"none"})),(0,Tt.SB)("left",(0,Tt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Tt.SB)("right",(0,Tt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Tt.eR)("* => left, * => right, left => center, right => center",(0,Tt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Tt.eR)("void => left-origin-center",[(0,Tt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Tt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Tt.eR)("void => right-origin-center",[(0,Tt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Tt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let X=(()=>{class It extends v.Pl{constructor(zt,we,He,kn){super(zt,we,kn),this._host=He,this._centeringSub=et.w.EMPTY,this._leavingSub=et.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(zt=>{zt&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Ht)),t.Y36(g.K0))},It.\u0275dir=t.lG2({type:It,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),It})(),At=(()=>{class It{constructor(zt,we,He){this._elementRef=zt,this._dir=we,this._dirChangeSubscription=et.w.EMPTY,this._translateTabComplete=new K.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,we&&(this._dirChangeSubscription=we.change.subscribe(kn=>{this._computePositionAnimationState(kn),He.markForCheck()})),this._translateTabComplete.pipe((0,P.x)((kn,Ei)=>kn.fromState===Ei.fromState&&kn.toState===Ei.toState)).subscribe(kn=>{this._isCenterPosition(kn.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(kn.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(zt){this._positionIndex=zt,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(zt){const we=this._isCenterPosition(zt.toState);this._beforeCentering.emit(we),we&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(zt){return"center"==zt||"left-origin-center"==zt||"right-origin-center"==zt}_computePositionAnimationState(zt=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==zt?"left":"right":this._positionIndex>0?"ltr"==zt?"right":"left":"center"}_computePositionFromOrigin(zt){const we=this._getLayoutDirection();return"ltr"==we&&zt<=0||"rtl"==we&&zt>0?"left-origin-center":"right-origin-center"}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(Gt.Is,8),t.Y36(t.sBO))},It.\u0275dir=t.lG2({type:It,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),It})(),Ht=(()=>{class It extends At{constructor(zt,we,He){super(zt,we,He)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(Gt.Is,8),t.Y36(t.sBO))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab-body"]],viewQuery:function(zt,we){if(1&zt&&t.Gf(v.Pl,5),2&zt){let He;t.iGM(He=t.CRH())&&(we._portalHost=He.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(zt,we){1&zt&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(kn){return we._onTranslateTabStarted(kn)})("@translateTab.done",function(kn){return we._translateTabComplete.next(kn)}),t.YNc(2,le,0,0,"ng-template",2),t.qZA()),2&zt&&t.Q6J("@translateTab",t.WLB(3,be,we._position,t.VKq(1,Vt,we.animationDuration)))},dependencies:[X],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[ot.translateTab]}}),It})();const ue=new t.OlP("MAT_TABS_CONFIG"),ye=(0,T.Id)(class{});let Se=(()=>{class It extends ye{constructor(zt){super(),this.elementRef=zt}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq))},It.\u0275dir=t.lG2({type:It,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(zt,we){2&zt&&(t.uIk("aria-disabled",!!we.disabled),t.ekj("mat-tab-disabled",we.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),It})();const vn=(0,mt.i$)({passive:!0});let bo=(()=>{class It{constructor(zt,we,He,kn,Ei,Bi,un){this._elementRef=zt,this._changeDetectorRef=we,this._viewportRuler=He,this._dir=kn,this._ngZone=Ei,this._platform=Bi,this._animationMode=un,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new K.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new K.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,Ei.runOutsideAngular(()=>{(0,ct.R)(zt.nativeElement,"mouseleave").pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,Ut.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){zt=(0,Ut.su)(zt),this._selectedIndex!=zt&&(this._selectedIndexChanged=!0,this._selectedIndex=zt,this._keyManager&&this._keyManager.updateActiveItem(zt))}ngAfterViewInit(){(0,ct.R)(this._previousPaginator.nativeElement,"touchstart",vn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ct.R)(this._nextPaginator.nativeElement,"touchstart",vn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const zt=this._dir?this._dir.change:(0,lt.of)("ltr"),we=this._viewportRuler.change(150),He=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new u.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(He),(0,Ct.T)(zt,we,this._items.changes,this._itemsResized()).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),He()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,O.R)(this._destroyed)).subscribe(kn=>{this.indexFocused.emit(kn),this._setTabFocus(kn)})}_itemsResized(){return"function"!=typeof ResizeObserver?Dt.E:this._items.changes.pipe((0,w.O)(this._items),(0,L.w)(zt=>new Zt.y(we=>this._ngZone.runOutsideAngular(()=>{const He=new ResizeObserver(kn=>we.next(kn));return zt.forEach(kn=>He.observe(kn.elementRef.nativeElement)),()=>{He.disconnect()}}))),(0,N.T)(1),(0,B.h)(zt=>zt.some(we=>we.contentRect.width>0&&we.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(zt){if(!(0,Lt.Vb)(zt))switch(zt.keyCode){case Lt.K5:case Lt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(zt));break;default:this._keyManager.onKeydown(zt)}}_onContentChanges(){const zt=this._elementRef.nativeElement.textContent;zt!==this._currentTextContent&&(this._currentTextContent=zt||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(zt){!this._isValidIndex(zt)||this.focusIndex===zt||!this._keyManager||this._keyManager.setActiveItem(zt)}_isValidIndex(zt){if(!this._items)return!0;const we=this._items?this._items.toArray()[zt]:null;return!!we&&!we.disabled}_setTabFocus(zt){if(this._showPaginationControls&&this._scrollToLabel(zt),this._items&&this._items.length){this._items.toArray()[zt].focus();const we=this._tabListContainer.nativeElement;we.scrollLeft="ltr"==this._getLayoutDirection()?0:we.scrollWidth-we.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const zt=this.scrollDistance,we="ltr"===this._getLayoutDirection()?-zt:zt;this._tabList.nativeElement.style.transform=`translateX(${Math.round(we)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(zt){this._scrollTo(zt)}_scrollHeader(zt){return this._scrollTo(this._scrollDistance+("before"==zt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(zt){this._stopInterval(),this._scrollHeader(zt)}_scrollToLabel(zt){if(this.disablePagination)return;const we=this._items?this._items.toArray()[zt]:null;if(!we)return;const He=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:kn,offsetWidth:Ei}=we.elementRef.nativeElement;let Bi,un;"ltr"==this._getLayoutDirection()?(Bi=kn,un=Bi+Ei):(un=this._tabListInner.nativeElement.offsetWidth-kn,Bi=un-Ei);const _n=this.scrollDistance,Ke=this.scrollDistance+He;Bi<_n?this.scrollDistance-=_n-Bi+60:un>Ke&&(this.scrollDistance+=un-Ke+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const zt=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;zt||(this.scrollDistance=0),zt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=zt}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const zt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,we=zt?zt.elementRef.nativeElement:null;we?this._inkBar.alignToElement(we):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(zt,we){we&&null!=we.button&&0!==we.button||(this._stopInterval(),(0,Rt.H)(650,100).pipe((0,O.R)((0,Ct.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:He,distance:kn}=this._scrollHeader(zt);(0===kn||kn>=He)&&this._stopInterval()}))}_scrollTo(zt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const we=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(we,zt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:we,distance:this._scrollDistance}}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{disablePagination:"disablePagination"}}),It})(),hi=(()=>{class It extends bo{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,we,He,kn,Ei,Bi,un),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,Ut.Ig)(zt)}_itemSelected(zt){zt.preventDefault()}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),It})(),zn=(()=>{class It extends hi{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,we,He,kn,Ei,Bi,un)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab-header"]],contentQueries:function(zt,we,He){if(1&zt&&t.Suo(He,Se,4),2&zt){let kn;t.iGM(kn=t.CRH())&&(we._items=kn)}},viewQuery:function(zt,we){if(1&zt&&(t.Gf(bn,7),t.Gf(ge,7),t.Gf(Fe,7),t.Gf(qe,7),t.Gf(je,5),t.Gf(Qt,5)),2&zt){let He;t.iGM(He=t.CRH())&&(we._inkBar=He.first),t.iGM(He=t.CRH())&&(we._tabListContainer=He.first),t.iGM(He=t.CRH())&&(we._tabList=He.first),t.iGM(He=t.CRH())&&(we._tabListInner=He.first),t.iGM(He=t.CRH())&&(we._nextPaginator=He.first),t.iGM(He=t.CRH())&&(we._previousPaginator=He.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(zt,we){2&zt&&t.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:kt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(zt,we){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(kn){return we._handlePaginatorPress("before",kn)})("touchend",function(){return we._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(kn){return we._handleKeydown(kn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(kn){return we._handlePaginatorPress("after",kn)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),t.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),t.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},dependencies:[T.wG,d.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),It})(),Bn=0;class Qe{}const xn=(0,T.pj)((0,T.Kr)(class{constructor(It){this._elementRef=It}}),"primary");let Ve=(()=>{class It extends xn{constructor(zt,we,He,kn){super(zt),this._changeDetectorRef=we,this._animationMode=kn,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=et.w.EMPTY,this._tabLabelSubscription=et.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Bn++,this.animationDuration=He&&He.animationDuration?He.animationDuration:"500ms",this.disablePagination=!(!He||null==He.disablePagination)&&He.disablePagination,this.dynamicHeight=!(!He||null==He.dynamicHeight)&&He.dynamicHeight,this.contentTabIndex=He?.contentTabIndex??null,this.preserveContent=!!He?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(zt){this._dynamicHeight=(0,Ut.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){this._indexToSelect=(0,Ut.su)(zt,null)}get animationDuration(){return this._animationDuration}set animationDuration(zt){this._animationDuration=/^\d+$/.test(zt+"")?zt+"ms":zt}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(zt){this._contentTabIndex=(0,Ut.su)(zt,null)}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,Ut.Ig)(zt)}get preserveContent(){return this._preserveContent}set preserveContent(zt){this._preserveContent=(0,Ut.Ig)(zt)}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const we=this._elementRef.nativeElement;we.classList.remove(`mat-background-${this.backgroundColor}`),zt&&we.classList.add(`mat-background-${zt}`),this._backgroundColor=zt}ngAfterContentChecked(){const zt=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=zt){const we=null==this._selectedIndex;if(!we){this.selectedTabChange.emit(this._createChangeEvent(zt));const He=this._tabBodyWrapper.nativeElement;He.style.minHeight=He.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((He,kn)=>He.isActive=kn===zt),we||(this.selectedIndexChange.emit(zt),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((we,He)=>{we.position=He-zt,null!=this._selectedIndex&&0==we.position&&!we.origin&&(we.origin=zt-this._selectedIndex)}),this._selectedIndex!==zt&&(this._selectedIndex=zt,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const zt=this._clampTabIndex(this._indexToSelect);if(zt===this._selectedIndex){const we=this._tabs.toArray();let He;for(let kn=0;kn{we[zt].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(zt))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(zt=>{this._tabs.reset(zt.filter(we=>we._closestTabGroup===this||!we._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(zt){const we=this._tabHeader;we&&(we.focusIndex=zt)}_focusChanged(zt){this._lastFocusedTabIndex=zt,this.focusChange.emit(this._createChangeEvent(zt))}_createChangeEvent(zt){const we=new Qe;return we.index=zt,this._tabs&&this._tabs.length&&(we.tab=this._tabs.toArray()[zt]),we}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ct.T)(...this._tabs.map(zt=>zt._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(zt){return Math.min(this._tabs.length-1,Math.max(zt||0,0))}_getTabLabelId(zt){return`mat-tab-label-${this._groupId}-${zt}`}_getTabContentId(zt){return`mat-tab-content-${this._groupId}-${zt}`}_setTabBodyWrapperHeight(zt){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const we=this._tabBodyWrapper.nativeElement;we.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(we.style.height=zt+"px")}_removeTabBodyWrapperHeight(){const zt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=zt.clientHeight,zt.style.height="",this.animationDone.emit()}_handleClick(zt,we,He){zt.disabled||(this.selectedIndex=we.focusIndex=He)}_getTabIndex(zt,we){return zt.disabled?null:we===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(zt,we){zt&&"mouse"!==zt&&"touch"!==zt&&(this._tabHeader.focusIndex=we)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ue,8),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),It})(),Ne=(()=>{class It extends Ve{constructor(zt,we,He,kn){super(zt,we,He,kn)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ue,8),t.Y36(t.QbO,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab-group"]],contentQueries:function(zt,we,He){if(1&zt&&t.Suo(He,ee,5),2&zt){let kn;t.iGM(kn=t.CRH())&&(we._allTabs=kn)}},viewQuery:function(zt,we){if(1&zt&&(t.Gf(Ue,5),t.Gf(ie,5)),2&zt){let He;t.iGM(He=t.CRH())&&(we._tabBodyWrapper=He.first),t.iGM(He=t.CRH())&&(we._tabHeader=He.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(zt,we){2&zt&&t.ekj("mat-tab-group-dynamic-height",we.dynamicHeight)("mat-tab-group-inverted-header","below"===we.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:We,useExisting:It}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(zt,we){1&zt&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(kn){return we._focusChanged(kn)})("selectFocusedIndex",function(kn){return we.selectedIndex=kn}),t.YNc(2,ae,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,De,1,11,"mat-tab-body",5),t.qZA()),2&zt&&(t.Q6J("selectedIndex",we.selectedIndex||0)("disableRipple",we.disableRipple)("disablePagination",we.disablePagination),t.xp6(2),t.Q6J("ngForOf",we._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),t.xp6(2),t.Q6J("ngForOf",we._tabs))},dependencies:[g.mk,g.sg,g.O5,v.Pl,T.wG,u.kH,Se,Ht,zn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),It})(),tn=0,ce=(()=>{class It extends bo{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,kn,Ei,we,He,Bi,un),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const we=this._elementRef.nativeElement.classList;we.remove(`mat-background-${this.backgroundColor}`),zt&&we.add(`mat-background-${zt}`),this._backgroundColor=zt}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,Ut.Ig)(zt)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,O.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const zt=this._items.toArray();for(let we=0;we{class It extends ce{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,we,He,kn,Ei,Bi,un)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(zt,we,He){if(1&zt&&t.Suo(He,gn,5),2&zt){let kn;t.iGM(kn=t.CRH())&&(we._items=kn)}},viewQuery:function(zt,we){if(1&zt&&(t.Gf(bn,7),t.Gf(ge,7),t.Gf(Fe,7),t.Gf(qe,7),t.Gf(je,5),t.Gf(Qt,5)),2&zt){let He;t.iGM(He=t.CRH())&&(we._inkBar=He.first),t.iGM(He=t.CRH())&&(we._tabListContainer=He.first),t.iGM(He=t.CRH())&&(we._tabList=He.first),t.iGM(He=t.CRH())&&(we._tabListInner=He.first),t.iGM(He=t.CRH())&&(we._nextPaginator=He.first),t.iGM(He=t.CRH())&&(we._previousPaginator=He.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(zt,we){2&zt&&(t.uIk("role",we._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())("mat-primary","warn"!==we.color&&"accent"!==we.color)("mat-accent","accent"===we.color)("mat-warn","warn"===we.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:nn,ngContentSelectors:kt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(zt,we){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(kn){return we._handlePaginatorPress("before",kn)})("touchend",function(){return we._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(kn){return we._handleKeydown(kn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(kn){return we._handlePaginatorPress("after",kn)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),t.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),t.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},dependencies:[T.wG,d.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),It})();const oe=(0,T.sb)((0,T.Kr)((0,T.Id)(class{})));let rn=(()=>{class It extends oe{constructor(zt,we,He,kn,Ei,Bi){super(),this._tabNavBar=zt,this.elementRef=we,this._focusMonitor=Ei,this._isActive=!1,this.id="mat-tab-link-"+tn++,this.rippleConfig=He||{},this.tabIndex=parseInt(kn)||0,"NoopAnimations"===Bi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(zt){const we=(0,Ut.Ig)(zt);we!==this._isActive&&(this._isActive=we,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(zt){this._tabNavBar.tabPanel&&zt.keyCode===Lt.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(ce),t.Y36(t.SBq),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{active:"active",id:"id"},features:[t.qOj]}),It})(),gn=(()=>{class It extends rn{constructor(zt,we,He,kn,Ei,Bi,un,_n){super(zt,we,Ei,Bi,un,_n),this._tabLinkRipple=new T.IR(this,He,we,kn),this._tabLinkRipple.setupTriggerEvents(we.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(Be),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(zt,we){1&zt&&t.NdJ("focus",function(){return we._handleFocus()})("keydown",function(kn){return we._handleKeydown(kn)}),2&zt&&(t.uIk("aria-controls",we._getAriaControls())("aria-current",we._getAriaCurrent())("aria-disabled",we.disabled)("aria-selected",we._getAriaSelected())("id",we.id)("tabIndex",we._getTabIndex())("role",we._getRole()),t.ekj("mat-tab-disabled",we.disabled)("mat-tab-label-active",we.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),It})(),xe=(()=>{class It{}return It.\u0275fac=function(zt){return new(zt||It)},It.\u0275mod=t.oAB({type:It}),It.\u0275inj=t.cJS({imports:[g.ez,T.BQ,v.eL,T.si,d.Q8,u.rt,T.BQ]}),It})()},83683:(tt,W,f)=>{"use strict";f.d(W,{Ye:()=>P,g0:()=>L});var u=f(94650),d=f(3238),v=f(83353),g=f(36895);const t=["*",[["mat-toolbar-row"]]],T=["*","mat-toolbar-row"],U=(0,d.pj)(class{constructor(N){this._elementRef=N}});let w=(()=>{class N{}return N.\u0275fac=function(K){return new(K||N)},N.\u0275dir=u.lG2({type:N,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),N})(),P=(()=>{class N extends U{constructor(K,et,ct){super(K),this._platform=et,this._document=ct}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return N.\u0275fac=function(K){return new(K||N)(u.Y36(u.SBq),u.Y36(v.t4),u.Y36(g.K0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["mat-toolbar"]],contentQueries:function(K,et,ct){if(1&K&&u.Suo(ct,w,5),2&K){let lt;u.iGM(lt=u.CRH())&&(et._toolbarRows=lt)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(K,et){2&K&&u.ekj("mat-toolbar-multiple-rows",et._toolbarRows.length>0)("mat-toolbar-single-row",0===et._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[u.qOj],ngContentSelectors:T,decls:2,vars:0,template:function(K,et){1&K&&(u.F$t(t),u.Hsn(0),u.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),N})(),L=(()=>{class N{}return N.\u0275fac=function(K){return new(K||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[d.BQ,d.BQ]}),N})()},10266:(tt,W,f)=>{"use strict";f.d(W,{AV:()=>ge,gM:()=>le});var u=f(98184),d=f(12687),v=f(36895),g=f(94650),t=f(3238),T=f(67376),U=f(40445),w=f(21281),P=f(29521),O=f(62289),L=f(83353),N=f(84080),B=f(8929),K=f(7625),et=f(72986);f(37340);const lt=["tooltip"],Zt="tooltip-panel",Rt=(0,L.i$)({passive:!0}),Ut=new g.OlP("mat-tooltip-scroll-strategy"),mt={provide:Ut,deps:[u.aV],useFactory:function bt(qe){return()=>qe.scrollStrategies.reposition({scrollThrottle:20})}},Lt=new g.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let kt=(()=>{class qe{constructor(Qt,Ue,ie,Wt,se,Xt,ae,De,nn,hn,Ce,bn){this._overlay=Qt,this._elementRef=Ue,this._scrollDispatcher=ie,this._viewContainerRef=Wt,this._ngZone=se,this._platform=Xt,this._ariaDescriber=ae,this._focusMonitor=De,this._dir=hn,this._defaultOptions=Ce,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new B.xQ,this._scrollStrategy=nn,this._document=bn,Ce&&(Ce.position&&(this.position=Ce.position),Ce.touchGestures&&(this.touchGestures=Ce.touchGestures)),hn.change.pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Qt){Qt!==this._position&&(this._position=Qt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Qt){this._disabled=(0,w.Ig)(Qt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Qt){this._showDelay=(0,w.su)(Qt)}get hideDelay(){return this._hideDelay}set hideDelay(Qt){this._hideDelay=(0,w.su)(Qt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Qt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Qt?String(Qt).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Qt){this._tooltipClass=Qt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,K.R)(this._destroyed)).subscribe(Qt=>{Qt?"keyboard"===Qt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Qt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ue,ie])=>{Qt.removeEventListener(Ue,ie,Rt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Qt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Qt)}show(Qt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Ue=this._createOverlay();this._detach(),this._portal=this._portal||new N.C5(this._tooltipComponent,this._viewContainerRef);const ie=this._tooltipInstance=Ue.attach(this._portal).instance;ie._triggerElement=this._elementRef.nativeElement,ie._mouseLeaveHideDelay=this._hideDelay,ie.afterHidden().pipe((0,K.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ie.show(Qt)}hide(Qt=this.hideDelay){const Ue=this._tooltipInstance;Ue&&(Ue.isVisible()?Ue.hide(Qt):(Ue._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Qt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ue=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Qt);return Ue.positionChanges.pipe((0,K.R)(this._destroyed)).subscribe(ie=>{this._updateCurrentPositionClass(ie.connectionPair),this._tooltipInstance&&ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ue,panelClass:`${this._cssClassPrefix}-${Zt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,K.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,K.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,K.R)(this._destroyed)).subscribe(ie=>{this._isTooltipVisible()&&ie.keyCode===P.hY&&!(0,P.Vb)(ie)&&(ie.preventDefault(),ie.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Qt){const Ue=Qt.getConfig().positionStrategy,ie=this._getOrigin(),Wt=this._getOverlayPosition();Ue.withPositions([this._addOffset({...ie.main,...Wt.main}),this._addOffset({...ie.fallback,...Wt.fallback})])}_addOffset(Qt){return Qt}_getOrigin(){const Qt=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ie;"above"==Ue||"below"==Ue?ie={originX:"center",originY:"above"==Ue?"top":"bottom"}:"before"==Ue||"left"==Ue&&Qt||"right"==Ue&&!Qt?ie={originX:"start",originY:"center"}:("after"==Ue||"right"==Ue&&Qt||"left"==Ue&&!Qt)&&(ie={originX:"end",originY:"center"});const{x:Wt,y:se}=this._invertPosition(ie.originX,ie.originY);return{main:ie,fallback:{originX:Wt,originY:se}}}_getOverlayPosition(){const Qt=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ie;"above"==Ue?ie={overlayX:"center",overlayY:"bottom"}:"below"==Ue?ie={overlayX:"center",overlayY:"top"}:"before"==Ue||"left"==Ue&&Qt||"right"==Ue&&!Qt?ie={overlayX:"end",overlayY:"center"}:("after"==Ue||"right"==Ue&&Qt||"left"==Ue&&!Qt)&&(ie={overlayX:"start",overlayY:"center"});const{x:Wt,y:se}=this._invertPosition(ie.overlayX,ie.overlayY);return{main:ie,fallback:{overlayX:Wt,overlayY:se}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,et.q)(1),(0,K.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Qt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Qt,this._tooltipInstance._markForCheck())}_invertPosition(Qt,Ue){return"above"===this.position||"below"===this.position?"top"===Ue?Ue="bottom":"bottom"===Ue&&(Ue="top"):"end"===Qt?Qt="start":"start"===Qt&&(Qt="end"),{x:Qt,y:Ue}}_updateCurrentPositionClass(Qt){const{overlayY:Ue,originX:ie,originY:Wt}=Qt;let se;if(se="center"===Ue?this._dir&&"rtl"===this._dir.value?"end"===ie?"left":"right":"start"===ie?"left":"right":"bottom"===Ue&&"top"===Wt?"above":"below",se!==this._currentPosition){const Xt=this._overlayRef;if(Xt){const ae=`${this._cssClassPrefix}-${Zt}-`;Xt.removePanelClass(ae+this._currentPosition),Xt.addPanelClass(ae+se)}this._currentPosition=se}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Qt=[];if(this._platformSupportsMouseEvents())Qt.push(["mouseleave",Ue=>{const ie=Ue.relatedTarget;(!ie||!this._overlayRef?.overlayElement.contains(ie))&&this.hide()}],["wheel",Ue=>this._wheelListener(Ue)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ue=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Qt.push(["touchend",Ue],["touchcancel",Ue])}this._addListeners(Qt),this._passiveListeners.push(...Qt)}_addListeners(Qt){Qt.forEach(([Ue,ie])=>{this._elementRef.nativeElement.addEventListener(Ue,ie,Rt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Qt){if(this._isTooltipVisible()){const Ue=this._document.elementFromPoint(Qt.clientX,Qt.clientY),ie=this._elementRef.nativeElement;Ue!==ie&&!ie.contains(Ue)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Qt=this.touchGestures;if("off"!==Qt){const Ue=this._elementRef.nativeElement,ie=Ue.style;("on"===Qt||"INPUT"!==Ue.nodeName&&"TEXTAREA"!==Ue.nodeName)&&(ie.userSelect=ie.msUserSelect=ie.webkitUserSelect=ie.MozUserSelect="none"),("on"===Qt||!Ue.draggable)&&(ie.webkitUserDrag="none"),ie.touchAction="none",ie.webkitTapHighlightColor="transparent"}}}return qe.\u0275fac=function(Qt){g.$Z()},qe.\u0275dir=g.lG2({type:qe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),qe})(),le=(()=>{class qe extends kt{constructor(Qt,Ue,ie,Wt,se,Xt,ae,De,nn,hn,Ce,bn){super(Qt,Ue,ie,Wt,se,Xt,ae,De,nn,hn,Ce,bn),this._tooltipComponent=be}}return qe.\u0275fac=function(Qt){return new(Qt||qe)(g.Y36(u.aV),g.Y36(g.SBq),g.Y36(T.mF),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(L.t4),g.Y36(d.$s),g.Y36(d.tE),g.Y36(Ut),g.Y36(U.Is,8),g.Y36(Lt,8),g.Y36(v.K0))},qe.\u0275dir=g.lG2({type:qe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[g.qOj]}),qe})(),Vt=(()=>{class qe{constructor(Qt,Ue){this._changeDetectorRef=Qt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new B.xQ,this._animationsDisabled="NoopAnimations"===Ue}show(Qt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Qt)}hide(Qt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Qt)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Qt}){(!Qt||!this._triggerElement.contains(Qt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Qt}){(Qt===this._showAnimation||Qt===this._hideAnimation)&&this._finalizeAnimation(Qt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Qt){Qt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Qt){const Ue=this._tooltip.nativeElement,ie=this._showAnimation,Wt=this._hideAnimation;if(Ue.classList.remove(Qt?Wt:ie),Ue.classList.add(Qt?ie:Wt),this._isVisible=Qt,Qt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const se=getComputedStyle(Ue);("0s"===se.getPropertyValue("animation-duration")||"none"===se.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Qt&&this._onShow(),this._animationsDisabled&&(Ue.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Qt))}}return qe.\u0275fac=function(Qt){return new(Qt||qe)(g.Y36(g.sBO),g.Y36(g.QbO,8))},qe.\u0275dir=g.lG2({type:qe}),qe})(),be=(()=>{class qe extends Vt{constructor(Qt,Ue,ie){super(Qt,ie),this._breakpointObserver=Ue,this._isHandset=this._breakpointObserver.observe(O.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return qe.\u0275fac=function(Qt){return new(Qt||qe)(g.Y36(g.sBO),g.Y36(O.Yg),g.Y36(g.QbO,8))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-tooltip-component"]],viewQuery:function(Qt,Ue){if(1&Qt&&g.Gf(lt,7),2&Qt){let ie;g.iGM(ie=g.CRH())&&(Ue._tooltip=ie.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Qt,Ue){1&Qt&&g.NdJ("mouseleave",function(Wt){return Ue._handleMouseLeave(Wt)}),2&Qt&&g.Udp("zoom",Ue.isVisible()?1:null)},features:[g.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Qt,Ue){if(1&Qt&&(g.TgZ(0,"div",0,1),g.NdJ("animationend",function(Wt){return Ue._handleAnimationEnd(Wt)}),g.ALo(2,"async"),g._uU(3),g.qZA()),2&Qt){let ie;g.ekj("mat-tooltip-handset",null==(ie=g.lcZ(2,4,Ue._isHandset))?null:ie.matches),g.Q6J("ngClass",Ue.tooltipClass),g.xp6(3),g.Oqu(Ue.message)}},dependencies:[v.mk,v.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),qe})(),ge=(()=>{class qe{}return qe.\u0275fac=function(Qt){return new(Qt||qe)},qe.\u0275mod=g.oAB({type:qe}),qe.\u0275inj=g.cJS({providers:[mt],imports:[d.rt,v.ez,u.U8,t.BQ,t.BQ,T.ZD]}),qe})()},35423:(tt,W,f)=>{"use strict";f.d(W,{Ar:()=>et,GZ:()=>B,JZ:()=>Zt,WX:()=>Gt,ah:()=>K,dp:()=>Dt,eu:()=>lt,fQ:()=>N,gi:()=>ct,kc:()=>Rt,uo:()=>L});var u=f(57851),d=f(94650),v=f(3238),g=f(21281),t=f(95017),T=f(591),U=f(36787),w=f(72986),P=f(24850);const O=(0,v.sb)((0,v.Id)(u.Hs));let L=(()=>{class Tt extends O{constructor(bt,mt,Lt){super(bt,mt),this.tabIndex=Number(Lt)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(d.Y36(d.SBq),d.Y36(u._0),d.$8M("tabindex"))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[d._Bn([{provide:u.Hs,useExisting:Tt}]),d.qOj]}),Tt})(),N=(()=>{class Tt extends u.rO{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[d._Bn([{provide:u.rO,useExisting:Tt}]),d.qOj]}),Tt})(),B=(()=>{class Tt extends u.Xx{constructor(bt,mt,Lt,Bt){super(bt,mt,Lt),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(bt){this._disabled=(0,g.Ig)(bt)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(bt){this._tabIndex=bt??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(d.Y36(d.SBq),d.Y36(u._0),d.Y36(d.ZZ4),d.$8M("tabindex"))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[d._Bn([{provide:u.Xx,useExisting:Tt},{provide:u.Hs,useExisting:Tt},{provide:u.HI,useExisting:Tt}]),d.qOj]}),Tt})(),K=(()=>{class Tt extends u.XJ{get level(){return this._level}set level(bt){this._setLevelInput(bt)}get indent(){return this._indent}set indent(bt){this._setIndentInput(bt)}}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[d._Bn([{provide:u.XJ,useExisting:Tt}]),d.qOj]}),Tt})(),et=(()=>{class Tt{constructor(bt,mt){this.viewContainer=bt,this._node=mt}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(d.Y36(d.s_b),d.Y36(u.HI,8))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodeOutlet",""]],features:[d._Bn([{provide:u.cu,useExisting:Tt}])]}),Tt})(),ct=(()=>{class Tt extends u._0{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-tree"]],viewQuery:function(bt,mt){if(1&bt&&d.Gf(et,7),2&bt){let Lt;d.iGM(Lt=d.CRH())&&(mt._nodeOutlet=Lt.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[d._Bn([{provide:u._0,useExisting:Tt}]),d.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(bt,mt){1&bt&&d.GkF(0,0)},dependencies:[et],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),Tt})(),lt=(()=>{class Tt extends u.Ud{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[d._Bn([{provide:u.Ud,useExisting:Tt}]),d.qOj]}),Tt})(),Dt=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[u.nZ,v.BQ,v.BQ]}),Tt})();class Zt{constructor(Ut,bt,mt,Lt){this.transformFunction=Ut,this.getLevel=bt,this.isExpandable=mt,this.getChildren=Lt}_flattenNode(Ut,bt,mt,Lt){const Bt=this.transformFunction(Ut,bt);if(mt.push(Bt),this.isExpandable(Bt)){const kt=this.getChildren(Ut);kt&&(Array.isArray(kt)?this._flattenChildren(kt,bt,mt,Lt):kt.pipe((0,w.q)(1)).subscribe(le=>{this._flattenChildren(le,bt,mt,Lt)}))}return mt}_flattenChildren(Ut,bt,mt,Lt){Ut.forEach((Bt,kt)=>{let le=Lt.slice();le.push(kt!=Ut.length-1),this._flattenNode(Bt,bt+1,mt,le)})}flattenNodes(Ut){let bt=[];return Ut.forEach(mt=>this._flattenNode(mt,0,bt,[])),bt}expandFlattenedNodes(Ut,bt){let mt=[],Lt=[];return Lt[0]=!0,Ut.forEach(Bt=>{let kt=!0;for(let le=0;le<=this.getLevel(Bt);le++)kt=kt&&Lt[le];kt&&mt.push(Bt),this.isExpandable(Bt)&&(Lt[this.getLevel(Bt)+1]=bt.isExpanded(Bt))}),mt}}class Rt extends t.o2{constructor(Ut,bt,mt){super(),this._treeControl=Ut,this._treeFlattener=bt,this._flattenedData=new T.X([]),this._expandedData=new T.X([]),this._data=new T.X([]),mt&&(this.data=mt)}get data(){return this._data.value}set data(Ut){this._data.next(Ut),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Ut){return(0,U.T)(Ut.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,P.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Gt extends t.o2{constructor(){super(...arguments),this._data=new T.X([])}get data(){return this._data.value}set data(Ut){this._data.next(Ut)}connect(Ut){return(0,U.T)(Ut.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},11481:(tt,W,f)=>{"use strict";f.d(W,{Dx:()=>ue,H7:()=>He,b2:()=>ee,q6:()=>ii,se:()=>Vt});var u=f(36895),d=f(94650);class v extends u.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class g extends v{static makeCurrent(){(0,u.HT)(new g)}onAndCancel(_n,Ke,ai){return _n.addEventListener(Ke,ai,!1),()=>{_n.removeEventListener(Ke,ai,!1)}}dispatchEvent(_n,Ke){_n.dispatchEvent(Ke)}remove(_n){_n.parentNode&&_n.parentNode.removeChild(_n)}createElement(_n,Ke){return(Ke=Ke||this.getDefaultDocument()).createElement(_n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_n){return _n.nodeType===Node.ELEMENT_NODE}isShadowRoot(_n){return _n instanceof DocumentFragment}getGlobalEventTarget(_n,Ke){return"window"===Ke?window:"document"===Ke?_n:"body"===Ke?_n.body:null}getBaseHref(_n){const Ke=function T(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==Ke?null:function w(un){U=U||document.createElement("a"),U.setAttribute("href",un);const _n=U.pathname;return"/"===_n.charAt(0)?_n:`/${_n}`}(Ke)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(_n){return(0,u.Mx)(document.cookie,_n)}}let U,t=null;const P=new d.OlP("TRANSITION_ID"),L=[{provide:d.ip1,useFactory:function O(un,_n,Ke){return()=>{Ke.get(d.CZH).donePromise.then(()=>{const ai=(0,u.q)(),xi=_n.querySelectorAll(`style[ng-transition="${un}"]`);for(let co=0;co{class un{build(){return new XMLHttpRequest}}return un.\u0275fac=function(Ke){return new(Ke||un)},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();const K=new d.OlP("EventManagerPlugins");let et=(()=>{class un{constructor(Ke,ai){this._zone=ai,this._eventNameToPlugin=new Map,Ke.forEach(xi=>xi.manager=this),this._plugins=Ke.slice().reverse()}addEventListener(Ke,ai,xi){return this._findPluginFor(ai).addEventListener(Ke,ai,xi)}addGlobalEventListener(Ke,ai,xi){return this._findPluginFor(ai).addGlobalEventListener(Ke,ai,xi)}getZone(){return this._zone}_findPluginFor(Ke){const ai=this._eventNameToPlugin.get(Ke);if(ai)return ai;const xi=this._plugins;for(let co=0;co{class un{constructor(){this._stylesSet=new Set}addStyles(Ke){const ai=new Set;Ke.forEach(xi=>{this._stylesSet.has(xi)||(this._stylesSet.add(xi),ai.add(xi))}),this.onStylesAdded(ai)}onStylesAdded(Ke){}getAllStyles(){return Array.from(this._stylesSet)}}return un.\u0275fac=function(Ke){return new(Ke||un)},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})(),Ct=(()=>{class un extends lt{constructor(Ke){super(),this._doc=Ke,this._hostNodes=new Map,this._hostNodes.set(Ke.head,[])}_addStylesToHost(Ke,ai,xi){Ke.forEach(co=>{const Co=this._doc.createElement("style");Co.textContent=co,xi.push(ai.appendChild(Co))})}addHost(Ke){const ai=[];this._addStylesToHost(this._stylesSet,Ke,ai),this._hostNodes.set(Ke,ai)}removeHost(Ke){const ai=this._hostNodes.get(Ke);ai&&ai.forEach(Dt),this._hostNodes.delete(Ke)}onStylesAdded(Ke){this._hostNodes.forEach((ai,xi)=>{this._addStylesToHost(Ke,xi,ai)})}ngOnDestroy(){this._hostNodes.forEach(Ke=>Ke.forEach(Dt))}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();function Dt(un){(0,u.q)().remove(un)}const Zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Rt=/%COMP%/g;function Bt(un,_n,Ke){for(let ai=0;ai<_n.length;ai++){let xi=_n[ai];Array.isArray(xi)?Bt(un,xi,Ke):(xi=xi.replace(Rt,un),Ke.push(xi))}return Ke}function kt(un){return _n=>{if("__ngUnwrap__"===_n)return un;!1===un(_n)&&(_n.preventDefault(),_n.returnValue=!1)}}let Vt=(()=>{class un{constructor(Ke,ai,xi){this.eventManager=Ke,this.sharedStylesHost=ai,this.appId=xi,this.rendererByCompId=new Map,this.defaultRenderer=new be(Ke)}createRenderer(Ke,ai){if(!Ke||!ai)return this.defaultRenderer;switch(ai.encapsulation){case d.ifc.Emulated:{let xi=this.rendererByCompId.get(ai.id);return xi||(xi=new je(this.eventManager,this.sharedStylesHost,ai,this.appId),this.rendererByCompId.set(ai.id,xi)),xi.applyToHost(Ke),xi}case 1:case d.ifc.ShadowDom:return new Qt(this.eventManager,this.sharedStylesHost,Ke,ai);default:if(!this.rendererByCompId.has(ai.id)){const xi=Bt(ai.id,ai.styles,[]);this.sharedStylesHost.addStyles(xi),this.rendererByCompId.set(ai.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(et),d.LFG(Ct),d.LFG(d.AFp))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();class be{constructor(_n){this.eventManager=_n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(_n,Ke){return Ke?document.createElementNS(Zt[Ke]||Ke,_n):document.createElement(_n)}createComment(_n){return document.createComment(_n)}createText(_n){return document.createTextNode(_n)}appendChild(_n,Ke){(qe(_n)?_n.content:_n).appendChild(Ke)}insertBefore(_n,Ke,ai){_n&&(qe(_n)?_n.content:_n).insertBefore(Ke,ai)}removeChild(_n,Ke){_n&&_n.removeChild(Ke)}selectRootElement(_n,Ke){let ai="string"==typeof _n?document.querySelector(_n):_n;if(!ai)throw new Error(`The selector "${_n}" did not match any elements`);return Ke||(ai.textContent=""),ai}parentNode(_n){return _n.parentNode}nextSibling(_n){return _n.nextSibling}setAttribute(_n,Ke,ai,xi){if(xi){Ke=xi+":"+Ke;const co=Zt[xi];co?_n.setAttributeNS(co,Ke,ai):_n.setAttribute(Ke,ai)}else _n.setAttribute(Ke,ai)}removeAttribute(_n,Ke,ai){if(ai){const xi=Zt[ai];xi?_n.removeAttributeNS(xi,Ke):_n.removeAttribute(`${ai}:${Ke}`)}else _n.removeAttribute(Ke)}addClass(_n,Ke){_n.classList.add(Ke)}removeClass(_n,Ke){_n.classList.remove(Ke)}setStyle(_n,Ke,ai,xi){xi&(d.JOm.DashCase|d.JOm.Important)?_n.style.setProperty(Ke,ai,xi&d.JOm.Important?"important":""):_n.style[Ke]=ai}removeStyle(_n,Ke,ai){ai&d.JOm.DashCase?_n.style.removeProperty(Ke):_n.style[Ke]=""}setProperty(_n,Ke,ai){_n[Ke]=ai}setValue(_n,Ke){_n.nodeValue=Ke}listen(_n,Ke,ai){return"string"==typeof _n?this.eventManager.addGlobalEventListener(_n,Ke,kt(ai)):this.eventManager.addEventListener(_n,Ke,kt(ai))}}function qe(un){return"TEMPLATE"===un.tagName&&void 0!==un.content}class je extends be{constructor(_n,Ke,ai,xi){super(_n),this.component=ai;const co=Bt(xi+"-"+ai.id,ai.styles,[]);Ke.addStyles(co),this.contentAttr=function mt(un){return"_ngcontent-%COMP%".replace(Rt,un)}(xi+"-"+ai.id),this.hostAttr=function Lt(un){return"_nghost-%COMP%".replace(Rt,un)}(xi+"-"+ai.id)}applyToHost(_n){super.setAttribute(_n,this.hostAttr,"")}createElement(_n,Ke){const ai=super.createElement(_n,Ke);return super.setAttribute(ai,this.contentAttr,""),ai}}class Qt extends be{constructor(_n,Ke,ai,xi){super(_n),this.sharedStylesHost=Ke,this.hostEl=ai,this.shadowRoot=ai.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const co=Bt(xi.id,xi.styles,[]);for(let Co=0;Co{class un extends ct{constructor(Ke){super(Ke)}supports(Ke){return!0}addEventListener(Ke,ai,xi){return Ke.addEventListener(ai,xi,!1),()=>this.removeEventListener(Ke,ai,xi)}removeEventListener(Ke,ai,xi){return Ke.removeEventListener(ai,xi)}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();const ie=["alt","control","meta","shift"],Wt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},se={alt:un=>un.altKey,control:un=>un.ctrlKey,meta:un=>un.metaKey,shift:un=>un.shiftKey};let Xt=(()=>{class un extends ct{constructor(Ke){super(Ke)}supports(Ke){return null!=un.parseEventName(Ke)}addEventListener(Ke,ai,xi){const co=un.parseEventName(ai),Co=un.eventCallback(co.fullKey,xi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.q)().onAndCancel(Ke,co.domEventName,Co))}static parseEventName(Ke){const ai=Ke.toLowerCase().split("."),xi=ai.shift();if(0===ai.length||"keydown"!==xi&&"keyup"!==xi)return null;const co=un._normalizeKey(ai.pop());let Co="",So=ai.indexOf("code");if(So>-1&&(ai.splice(So,1),Co="code."),ie.forEach(Ta=>{const Re=ai.indexOf(Ta);Re>-1&&(ai.splice(Re,1),Co+=Ta+".")}),Co+=co,0!=ai.length||0===co.length)return null;const ma={};return ma.domEventName=xi,ma.fullKey=Co,ma}static matchEventFullKeyCode(Ke,ai){let xi=Wt[Ke.key]||Ke.key,co="";return ai.indexOf("code.")>-1&&(xi=Ke.code,co="code."),!(null==xi||!xi)&&(xi=xi.toLowerCase()," "===xi?xi="space":"."===xi&&(xi="dot"),ie.forEach(Co=>{Co!==xi&&(0,se[Co])(Ke)&&(co+=Co+".")}),co+=xi,co===ai)}static eventCallback(Ke,ai,xi){return co=>{un.matchEventFullKeyCode(co,Ke)&&xi.runGuarded(()=>ai(co))}}static _normalizeKey(Ke){return"esc"===Ke?"escape":Ke}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();const ii=(0,d.eFA)(d._c5,"browser",[{provide:d.Lbi,useValue:u.bD},{provide:d.g9A,useValue:function bn(){g.makeCurrent()},multi:!0},{provide:u.K0,useFactory:function dn(){return(0,d.RDi)(document),document},deps:[]}]),_i=new d.OlP(""),oi=[{provide:d.rWj,useClass:class N{addToWindow(_n){d.dqk.getAngularTestability=(ai,xi=!0)=>{const co=_n.findTestabilityInTree(ai,xi);if(null==co)throw new Error("Could not find testability for element.");return co},d.dqk.getAllAngularTestabilities=()=>_n.getAllTestabilities(),d.dqk.getAllAngularRootElements=()=>_n.getAllRootElements(),d.dqk.frameworkStabilizers||(d.dqk.frameworkStabilizers=[]),d.dqk.frameworkStabilizers.push(ai=>{const xi=d.dqk.getAllAngularTestabilities();let co=xi.length,Co=!1;const So=function(ma){Co=Co||ma,co--,0==co&&ai(Co)};xi.forEach(function(ma){ma.whenStable(So)})})}findTestabilityInTree(_n,Ke,ai){return null==Ke?null:_n.getTestability(Ke)??(ai?(0,u.q)().isShadowRoot(Ke)?this.findTestabilityInTree(_n,Ke.host,!0):this.findTestabilityInTree(_n,Ke.parentElement,!0):null)}},deps:[]},{provide:d.lri,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]},{provide:d.dDg,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]}],We=[{provide:d.zSh,useValue:"root"},{provide:d.qLn,useFactory:function Oe(){return new d.qLn},deps:[]},{provide:K,useClass:Ue,multi:!0,deps:[u.K0,d.R0b,d.Lbi]},{provide:K,useClass:Xt,multi:!0,deps:[u.K0]},{provide:Vt,useClass:Vt,deps:[et,Ct,d.AFp]},{provide:d.FYo,useExisting:Vt},{provide:lt,useExisting:Ct},{provide:Ct,useClass:Ct,deps:[u.K0]},{provide:et,useClass:et,deps:[K,d.R0b]},{provide:u.JF,useClass:B,deps:[]},[]];let ee=(()=>{class un{constructor(Ke){}static withServerTransition(Ke){return{ngModule:un,providers:[{provide:d.AFp,useValue:Ke.appId},{provide:P,useExisting:d.AFp},L]}}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(_i,12))},un.\u0275mod=d.oAB({type:un}),un.\u0275inj=d.cJS({providers:[...We,...oi],imports:[u.ez,d.hGG]}),un})(),ue=(()=>{class un{constructor(Ke){this._doc=Ke}getTitle(){return this._doc.title}setTitle(Ke){this._doc.title=Ke||""}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:function(Ke){let ai=null;return ai=Ke?new Ke:function Ht(){return new ue((0,d.LFG)(u.K0))}(),ai},providedIn:"root"}),un})();typeof window<"u"&&window;let He=(()=>{class un{}return un.\u0275fac=function(Ke){return new(Ke||un)},un.\u0275prov=d.Yz7({token:un,factory:function(Ke){let ai=null;return ai=Ke?new(Ke||un):d.LFG(Ei),ai},providedIn:"root"}),un})(),Ei=(()=>{class un extends He{constructor(Ke){super(),this._doc=Ke}sanitize(Ke,ai){if(null==ai)return null;switch(Ke){case d.q3G.NONE:return ai;case d.q3G.HTML:return(0,d.qzn)(ai,"HTML")?(0,d.z3N)(ai):(0,d.EiD)(this._doc,String(ai)).toString();case d.q3G.STYLE:return(0,d.qzn)(ai,"Style")?(0,d.z3N)(ai):ai;case d.q3G.SCRIPT:if((0,d.qzn)(ai,"Script"))return(0,d.z3N)(ai);throw new Error("unsafe value used in a script context");case d.q3G.URL:return(0,d.qzn)(ai,"URL")?(0,d.z3N)(ai):(0,d.mCW)(String(ai));case d.q3G.RESOURCE_URL:if((0,d.qzn)(ai,"ResourceURL"))return(0,d.z3N)(ai);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ke} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ke){return(0,d.JVY)(Ke)}bypassSecurityTrustStyle(Ke){return(0,d.L6k)(Ke)}bypassSecurityTrustScript(Ke){return(0,d.eBb)(Ke)}bypassSecurityTrustUrl(Ke){return(0,d.LAX)(Ke)}bypassSecurityTrustResourceUrl(Ke){return(0,d.pB0)(Ke)}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:function(Ke){let ai=null;return ai=Ke?new Ke:function kn(un){return new Ei(un.get(u.K0))}(d.LFG(d.zs3)),ai},providedIn:"root"}),un})()},83689:(tt,W,f)=>{"use strict";f.d(W,{gz:()=>Ss,m2:()=>Ur,wN:()=>vi,F0:()=>Ba,rH:()=>ed,Od:()=>a1,yS:()=>Wc,Bz:()=>h_,lC:()=>Ya});var u=f(94650),d=f(5254),v=f(21086),g=f(591),t=f(84450),T=f(23426),U=f(61221),w=f(88514),P=f(4843),O=f(61737),L=f(56498),N=f(68896),B=f(71762),K=f(8929),et=f(36895),ct=f(24850),lt=f(87545),Ct=f(72986),Dt=f(1059),Zt=f(92198),Rt=f(61709),Gt=f(87224),Tt=f(21406),Ut=f(22868),bt=f(27221),mt=f(43489);function Lt(ht,vt){let st=!1;return arguments.length>=2&&(st=!0),function(ne){return ne.lift(new Bt(ht,vt,st))}}class Bt{constructor(vt,st,Ot=!1){this.accumulator=vt,this.seed=st,this.hasSeed=Ot}call(vt,st){return st.subscribe(new kt(vt,this.accumulator,this.seed,this.hasSeed))}}class kt extends mt.L{constructor(vt,st,Ot,ne){super(vt),this.accumulator=st,this._seed=Ot,this.hasSeed=ne,this.index=0}get seed(){return this._seed}set seed(vt){this.hasSeed=!0,this._seed=vt}_next(vt){if(this.hasSeed)return this._tryNext(vt);this.seed=vt,this.destination.next(vt)}_tryNext(vt){const st=this.index++;let Ot;try{Ot=this.accumulator(this.seed,vt,st)}catch(ne){this.destination.error(ne)}this.seed=Ot,this.destination.next(Ot)}}var le=f(94231);function Vt(ht){return function(st){return 0===ht?(0,N.c)():st.lift(new be(ht))}}class be{constructor(vt){if(this.total=vt,this.total<0)throw new le.W}call(vt,st){return st.subscribe(new ge(vt,this.total))}}class ge extends mt.L{constructor(vt,st){super(vt),this.total=st,this.ring=new Array,this.count=0}_next(vt){const st=this.ring,Ot=this.total,ne=this.count++;st.length0){const Ot=this.count>=this.total?this.total:this.count,ne=this.ring;for(let fe=0;fe=2;return Ot=>Ot.pipe(ht?(0,Zt.h)((ne,fe)=>ht(ne,fe,Ot)):je.y,Vt(1),st?(0,qe.d)(vt):(0,Fe.T)(()=>new t.K))}var Ue=f(44290),ie=f(77604),Wt=f(40537),se=f(74327),Xt=f(89146),ae=f(11481);const De="primary",nn=Symbol("RouteTitle");class hn{constructor(vt){this.params=vt||{}}has(vt){return Object.prototype.hasOwnProperty.call(this.params,vt)}get(vt){if(this.has(vt)){const st=this.params[vt];return Array.isArray(st)?st[0]:st}return null}getAll(vt){if(this.has(vt)){const st=this.params[vt];return Array.isArray(st)?st:[st]}return[]}get keys(){return Object.keys(this.params)}}function Ce(ht){return new hn(ht)}function bn(ht,vt,st){const Ot=st.path.split("/");if(Ot.length>ht.length||"full"===st.pathMatch&&(vt.hasChildren()||Ot.lengthOt[fe]===ne)}return ht===vt}function ii(ht){return Array.prototype.concat.apply([],ht)}function _i(ht){return ht.length>0?ht[ht.length-1]:null}function We(ht,vt){for(const st in ht)ht.hasOwnProperty(st)&&vt(ht[st],st)}function ee(ht){return(0,u.CqO)(ht)?ht:(0,u.QGY)(ht)?(0,d.D)(Promise.resolve(ht)):(0,v.of)(ht)}const At={exact:function Se(ht,vt,st){if(!Qe(ht.segments,vt.segments)||!Di(ht.segments,vt.segments,st)||ht.numberOfChildren!==vt.numberOfChildren)return!1;for(const Ot in vt.children)if(!ht.children[Ot]||!Se(ht.children[Ot],vt.children[Ot],st))return!1;return!0},subset:qn},Ht={exact:function ye(ht,vt){return dn(ht,vt)},subset:function vn(ht,vt){return Object.keys(vt).length<=Object.keys(ht).length&&Object.keys(vt).every(st=>Pn(ht[st],vt[st]))},ignored:()=>!0};function ue(ht,vt,st){return At[st.paths](ht.root,vt.root,st.matrixParams)&&Ht[st.queryParams](ht.queryParams,vt.queryParams)&&!("exact"===st.fragment&&ht.fragment!==vt.fragment)}function qn(ht,vt,st){return mi(ht,vt,vt.segments,st)}function mi(ht,vt,st,Ot){if(ht.segments.length>st.length){const ne=ht.segments.slice(0,st.length);return!(!Qe(ne,st)||vt.hasChildren()||!Di(ne,st,Ot))}if(ht.segments.length===st.length){if(!Qe(ht.segments,st)||!Di(ht.segments,st,Ot))return!1;for(const ne in vt.children)if(!ht.children[ne]||!qn(ht.children[ne],vt.children[ne],Ot))return!1;return!0}{const ne=st.slice(0,ht.segments.length),fe=st.slice(ht.segments.length);return!!(Qe(ht.segments,ne)&&Di(ht.segments,ne,Ot)&&ht.children[De])&&mi(ht.children[De],vt,fe,Ot)}}function Di(ht,vt,st){return vt.every((Ot,ne)=>Ht[st](ht[ne].parameters,Ot.parameters))}class bo{constructor(vt,st,Ot){this.root=vt,this.queryParams=st,this.fragment=Ot}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ce(this.queryParams)),this._queryParamMap}toString(){return tn.serialize(this)}}class hi{constructor(vt,st){this.segments=vt,this.children=st,this.parent=null,We(st,(Ot,ne)=>Ot.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ce(this)}}class zn{constructor(vt,st){this.path=vt,this.parameters=st}get parameterMap(){return this._parameterMap||(this._parameterMap=Ce(this.parameters)),this._parameterMap}toString(){return Le(this)}}function Qe(ht,vt){return ht.length===vt.length&&ht.every((st,Ot)=>st.path===vt[Ot].path)}let Ve=(()=>{class ht{}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275prov=u.Yz7({token:ht,factory:function(){return new Ne},providedIn:"root"}),ht})();class Ne{parse(vt){const st=new Ke(vt);return new bo(st.parseRootSegment(),st.parseQueryParams(),st.parseFragment())}serialize(vt){const st=`/${Be(vt.root,!0)}`,Ot=function we(ht){const vt=Object.keys(ht).map(st=>{const Ot=ht[st];return Array.isArray(Ot)?Ot.map(ne=>`${rn(st)}=${rn(ne)}`).join("&"):`${rn(st)}=${rn(Ot)}`}).filter(st=>!!st);return vt.length?`?${vt.join("&")}`:""}(vt.queryParams);return`${st}${Ot}${"string"==typeof vt.fragment?`#${function gn(ht){return encodeURI(ht)}(vt.fragment)}`:""}`}}const tn=new Ne;function ce(ht){return ht.segments.map(vt=>Le(vt)).join("/")}function Be(ht,vt){if(!ht.hasChildren())return ce(ht);if(vt){const st=ht.children[De]?Be(ht.children[De],!1):"",Ot=[];return We(ht.children,(ne,fe)=>{fe!==De&&Ot.push(`${fe}:${Be(ne,!1)}`)}),Ot.length>0?`${st}(${Ot.join("//")})`:st}{const st=function xn(ht,vt){let st=[];return We(ht.children,(Ot,ne)=>{ne===De&&(st=st.concat(vt(Ot,ne)))}),We(ht.children,(Ot,ne)=>{ne!==De&&(st=st.concat(vt(Ot,ne)))}),st}(ht,(Ot,ne)=>ne===De?[Be(ht.children[De],!1)]:[`${ne}:${Be(Ot,!1)}`]);return 1===Object.keys(ht.children).length&&null!=ht.children[De]?`${ce(ht)}/${st[0]}`:`${ce(ht)}/(${st.join("//")})`}}function oe(ht){return encodeURIComponent(ht).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rn(ht){return oe(ht).replace(/%3B/gi,";")}function cn(ht){return oe(ht).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xe(ht){return decodeURIComponent(ht)}function It(ht){return xe(ht.replace(/\+/g,"%20"))}function Le(ht){return`${cn(ht.path)}${function zt(ht){return Object.keys(ht).map(vt=>`;${cn(vt)}=${cn(ht[vt])}`).join("")}(ht.parameters)}`}const He=/^[^\/()?;=#]+/;function kn(ht){const vt=ht.match(He);return vt?vt[0]:""}const Ei=/^[^=?&#]+/,un=/^[^&#]+/;class Ke{constructor(vt){this.url=vt,this.remaining=vt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hi([],{}):new hi([],this.parseChildren())}parseQueryParams(){const vt={};if(this.consumeOptional("?"))do{this.parseQueryParam(vt)}while(this.consumeOptional("&"));return vt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const vt=[];for(this.peekStartsWith("(")||vt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),vt.push(this.parseSegment());let st={};this.peekStartsWith("/(")&&(this.capture("/"),st=this.parseParens(!0));let Ot={};return this.peekStartsWith("(")&&(Ot=this.parseParens(!1)),(vt.length>0||Object.keys(st).length>0)&&(Ot[De]=new hi(vt,st)),Ot}parseSegment(){const vt=kn(this.remaining);if(""===vt&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(vt),new zn(xe(vt),this.parseMatrixParams())}parseMatrixParams(){const vt={};for(;this.consumeOptional(";");)this.parseParam(vt);return vt}parseParam(vt){const st=kn(this.remaining);if(!st)return;this.capture(st);let Ot="";if(this.consumeOptional("=")){const ne=kn(this.remaining);ne&&(Ot=ne,this.capture(Ot))}vt[xe(st)]=xe(Ot)}parseQueryParam(vt){const st=function Bi(ht){const vt=ht.match(Ei);return vt?vt[0]:""}(this.remaining);if(!st)return;this.capture(st);let Ot="";if(this.consumeOptional("=")){const de=function _n(ht){const vt=ht.match(un);return vt?vt[0]:""}(this.remaining);de&&(Ot=de,this.capture(Ot))}const ne=It(st),fe=It(Ot);if(vt.hasOwnProperty(ne)){let de=vt[ne];Array.isArray(de)||(de=[de],vt[ne]=de),de.push(fe)}else vt[ne]=fe}parseParens(vt){const st={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ot=kn(this.remaining),ne=this.remaining[Ot.length];if("/"!==ne&&")"!==ne&&";"!==ne)throw new u.vHH(4010,!1);let fe;Ot.indexOf(":")>-1?(fe=Ot.slice(0,Ot.indexOf(":")),this.capture(fe),this.capture(":")):vt&&(fe=De);const de=this.parseChildren();st[fe]=1===Object.keys(de).length?de[De]:new hi([],de),this.consumeOptional("//")}return st}peekStartsWith(vt){return this.remaining.startsWith(vt)}consumeOptional(vt){return!!this.peekStartsWith(vt)&&(this.remaining=this.remaining.substring(vt.length),!0)}capture(vt){if(!this.consumeOptional(vt))throw new u.vHH(4011,!1)}}function ai(ht){return ht.segments.length>0?new hi([],{[De]:ht}):ht}function xi(ht){const vt={};for(const Ot of Object.keys(ht.children)){const fe=xi(ht.children[Ot]);(fe.segments.length>0||fe.hasChildren())&&(vt[Ot]=fe)}return function co(ht){if(1===ht.numberOfChildren&&ht.children[De]){const vt=ht.children[De];return new hi(ht.segments.concat(vt.segments),vt.children)}return ht}(new hi(ht.segments,vt))}function Co(ht){return ht instanceof bo}function Rn(ht,vt,st,Ot,ne){if(0===st.length)return an(vt.root,vt.root,vt.root,Ot,ne);const fe=function J(ht){if("string"==typeof ht[0]&&1===ht.length&&"/"===ht[0])return new Ft(!0,0,ht);let vt=0,st=!1;const Ot=ht.reduce((ne,fe,de)=>{if("object"==typeof fe&&null!=fe){if(fe.outlets){const Jt={};return We(fe.outlets,(Cn,Ri)=>{Jt[Ri]="string"==typeof Cn?Cn.split("/"):Cn}),[...ne,{outlets:Jt}]}if(fe.segmentPath)return[...ne,fe.segmentPath]}return"string"!=typeof fe?[...ne,fe]:0===de?(fe.split("/").forEach((Jt,Cn)=>{0==Cn&&"."===Jt||(0==Cn&&""===Jt?st=!0:".."===Jt?vt++:""!=Jt&&ne.push(Jt))}),ne):[...ne,fe]},[]);return new Ft(st,vt,Ot)}(st);return fe.toRoot()?an(vt.root,vt.root,new hi([],{}),Ot,ne):function de(Cn){const Ri=function Vn(ht,vt,st,Ot){if(ht.isAbsolute)return new Et(vt.root,!0,0);if(-1===Ot)return new Et(st,st===vt.root,0);return function Xi(ht,vt,st){let Ot=ht,ne=vt,fe=st;for(;fe>ne;){if(fe-=ne,Ot=Ot.parent,!Ot)throw new u.vHH(4005,!1);ne=Ot.segments.length}return new Et(Ot,!1,ne-fe)}(st,Ot+(Ye(ht.commands[0])?0:1),ht.numberOfDoubleDots)}(fe,vt,ht.snapshot?._urlSegment,Cn),po=Ri.processChildren?fr(Ri.segmentGroup,Ri.index,fe.commands):_r(Ri.segmentGroup,Ri.index,fe.commands);return an(vt.root,Ri.segmentGroup,po,Ot,ne)}(ht.snapshot?._lastPathIndex)}function Ye(ht){return"object"==typeof ht&&null!=ht&&!ht.outlets&&!ht.segmentPath}function Me(ht){return"object"==typeof ht&&null!=ht&&ht.outlets}function an(ht,vt,st,Ot,ne){let de,fe={};Ot&&We(Ot,(Cn,Ri)=>{fe[Ri]=Array.isArray(Cn)?Cn.map(po=>`${po}`):`${Cn}`}),de=ht===vt?st:j(ht,vt,st);const Jt=ai(xi(de));return new bo(Jt,fe,ne)}function j(ht,vt,st){const Ot={};return We(ht.children,(ne,fe)=>{Ot[fe]=ne===vt?st:j(ne,vt,st)}),new hi(ht.segments,Ot)}class Ft{constructor(vt,st,Ot){if(this.isAbsolute=vt,this.numberOfDoubleDots=st,this.commands=Ot,vt&&Ot.length>0&&Ye(Ot[0]))throw new u.vHH(4003,!1);const ne=Ot.find(Me);if(ne&&ne!==_i(Ot))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Et{constructor(vt,st,Ot){this.segmentGroup=vt,this.processChildren=st,this.index=Ot}}function _r(ht,vt,st){if(ht||(ht=new hi([],{})),0===ht.segments.length&&ht.hasChildren())return fr(ht,vt,st);const Ot=function jr(ht,vt,st){let Ot=0,ne=vt;const fe={match:!1,pathIndex:0,commandIndex:0};for(;ne=st.length)return fe;const de=ht.segments[ne],Jt=st[Ot];if(Me(Jt))break;const Cn=`${Jt}`,Ri=Ot0&&void 0===Cn)break;if(Cn&&Ri&&"object"==typeof Ri&&void 0===Ri.outlets){if(!nr(Cn,Ri,de))return fe;Ot+=2}else{if(!nr(Cn,{},de))return fe;Ot++}ne++}return{match:!0,pathIndex:ne,commandIndex:Ot}}(ht,vt,st),ne=st.slice(Ot.commandIndex);if(Ot.match&&Ot.pathIndex{"string"==typeof fe&&(fe=[fe]),null!==fe&&(ne[de]=_r(ht.children[de],vt,fe))}),We(ht.children,(fe,de)=>{void 0===Ot[de]&&(ne[de]=fe)}),new hi(ht.segments,ne)}}function Ja(ht,vt,st){const Ot=ht.segments.slice(0,vt);let ne=0;for(;ne{"string"==typeof st&&(st=[st]),null!==st&&(vt[Ot]=Ja(new hi([],{}),0,st))}),vt}function cc(ht){const vt={};return We(ht,(st,Ot)=>vt[Ot]=`${st}`),vt}function nr(ht,vt,st){return ht==st.path&&dn(vt,st.parameters)}class ls{constructor(vt,st){this.id=vt,this.url=st}}class Ar extends ls{constructor(vt,st,Ot="imperative",ne=null){super(vt,st),this.type=0,this.navigationTrigger=Ot,this.restoredState=ne}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ur extends ls{constructor(vt,st,Ot){super(vt,st),this.urlAfterRedirects=Ot,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Oc extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.reason=Ot,this.code=ne,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Al extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.error=Ot,this.target=ne,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Js extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ps extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qs extends ls{constructor(vt,st,Ot,ne,fe){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.shouldActivate=fe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lc extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class us extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hs{constructor(vt){this.route=vt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class t1{constructor(vt){this.route=vt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Lr{constructor(vt){this.snapshot=vt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ad{constructor(vt){this.snapshot=vt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class e1{constructor(vt){this.snapshot=vt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vc{constructor(vt){this.snapshot=vt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lc{constructor(vt,st,Ot){this.routerEvent=vt,this.position=st,this.anchor=Ot,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Bc{constructor(vt){this._root=vt}get root(){return this._root.value}parent(vt){const st=this.pathFromRoot(vt);return st.length>1?st[st.length-2]:null}children(vt){const st=Gc(vt,this._root);return st?st.children.map(Ot=>Ot.value):[]}firstChild(vt){const st=Gc(vt,this._root);return st&&st.children.length>0?st.children[0].value:null}siblings(vt){const st=js(vt,this._root);return st.length<2?[]:st[st.length-2].children.map(ne=>ne.value).filter(ne=>ne!==vt)}pathFromRoot(vt){return js(vt,this._root).map(st=>st.value)}}function Gc(ht,vt){if(ht===vt.value)return vt;for(const st of vt.children){const Ot=Gc(ht,st);if(Ot)return Ot}return null}function js(ht,vt){if(ht===vt.value)return[vt];for(const st of vt.children){const Ot=js(ht,st);if(Ot.length)return Ot.unshift(vt),Ot}return[]}class xc{constructor(vt,st){this.value=vt,this.children=st}toString(){return`TreeNode(${this.value})`}}function Ws(ht){const vt={};return ht&&ht.children.forEach(st=>vt[st.value.outlet]=st),vt}class sl extends Bc{constructor(vt,st){super(vt),this.snapshot=st,wl(this,vt)}toString(){return this.snapshot.toString()}}function $u(ht,vt){const st=function Yl(ht,vt){const de=new Jc([],{},{},"",{},De,vt,null,ht.root,-1,{});return new $s("",new xc(de,[]))}(ht,vt),Ot=new g.X([new zn("",{})]),ne=new g.X({}),fe=new g.X({}),de=new g.X({}),Jt=new g.X(""),Cn=new Ss(Ot,ne,de,Jt,fe,De,vt,st.root);return Cn.snapshot=st.root,new sl(new xc(Cn,[]),st)}class Ss{constructor(vt,st,Ot,ne,fe,de,Jt,Cn){this.url=vt,this.params=st,this.queryParams=Ot,this.fragment=ne,this.data=fe,this.outlet=de,this.component=Jt,this.title=this.data?.pipe((0,ct.U)(Ri=>Ri[nn]))??(0,v.of)(void 0),this._futureSnapshot=Cn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ct.U)(vt=>Ce(vt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ct.U)(vt=>Ce(vt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ul(ht,vt="emptyOnly"){const st=ht.pathFromRoot;let Ot=0;if("always"!==vt)for(Ot=st.length-1;Ot>=1;){const ne=st[Ot],fe=st[Ot-1];if(ne.routeConfig&&""===ne.routeConfig.path)Ot--;else{if(fe.component)break;Ot--}}return function Ys(ht){return ht.reduce((vt,st)=>({params:{...vt.params,...st.params},data:{...vt.data,...st.data},resolve:{...st.data,...vt.resolve,...st.routeConfig?.data,...st._resolvedData}}),{params:{},data:{},resolve:{}})}(st.slice(Ot))}class Jc{constructor(vt,st,Ot,ne,fe,de,Jt,Cn,Ri,po,Zi,ja){this.url=vt,this.params=st,this.queryParams=Ot,this.fragment=ne,this.data=fe,this.outlet=de,this.component=Jt,this.title=this.data?.[nn],this.routeConfig=Cn,this._urlSegment=Ri,this._lastPathIndex=po,this._correctedLastPathIndex=ja??po,this._resolve=Zi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ce(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ce(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ot=>Ot.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $s extends Bc{constructor(vt,st){super(st),this.url=vt,wl(this,st)}toString(){return iu(this._root)}}function wl(ht,vt){vt.value._routerState=ht,vt.children.forEach(st=>wl(ht,st))}function iu(ht){const vt=ht.children.length>0?` { ${ht.children.map(iu).join(", ")} } `:"";return`${ht.value}${vt}`}function zl(ht){if(ht.snapshot){const vt=ht.snapshot,st=ht._futureSnapshot;ht.snapshot=st,dn(vt.queryParams,st.queryParams)||ht.queryParams.next(st.queryParams),vt.fragment!==st.fragment&&ht.fragment.next(st.fragment),dn(vt.params,st.params)||ht.params.next(st.params),function Oe(ht,vt){if(ht.length!==vt.length)return!1;for(let st=0;stdn(st.parameters,vt[Ot].parameters))}(ht.url,vt.url);return st&&!(!ht.parent!=!vt.parent)&&(!ht.parent||xa(ht.parent,vt.parent))}function bc(ht,vt,st){if(st&&ht.shouldReuseRoute(vt.value,st.value.snapshot)){const Ot=st.value;Ot._futureSnapshot=vt.value;const ne=function vu(ht,vt,st){return vt.children.map(Ot=>{for(const ne of st.children)if(ht.shouldReuseRoute(Ot.value,ne.value.snapshot))return bc(ht,Ot,ne);return bc(ht,Ot)})}(ht,vt,st);return new xc(Ot,ne)}{if(ht.shouldAttach(vt.value)){const fe=ht.retrieve(vt.value);if(null!==fe){const de=fe.route;return de.value._futureSnapshot=vt.value,de.children=vt.children.map(Jt=>bc(ht,Jt)),de}}const Ot=function Ku(ht){return new Ss(new g.X(ht.url),new g.X(ht.params),new g.X(ht.queryParams),new g.X(ht.fragment),new g.X(ht.data),ht.outlet,ht.component,ht)}(vt.value),ne=vt.children.map(fe=>bc(ht,fe));return new xc(Ot,ne)}}const Ia="ngNavigationCancelingError";function ou(ht,vt){const{redirectTo:st,navigationBehaviorOptions:Ot}=Co(vt)?{redirectTo:vt,navigationBehaviorOptions:void 0}:vt,ne=Cs(!1,0,vt);return ne.url=st,ne.navigationBehaviorOptions=Ot,ne}function Cs(ht,vt,st){const Ot=new Error("NavigationCancelingError: "+(ht||""));return Ot[Ia]=!0,Ot.cancellationCode=vt,st&&(Ot.url=st),Ot}function ys(ht){return Vl(ht)&&Co(ht.url)}function Vl(ht){return ht&&ht[Ia]}class Pr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new dc,this.attachRef=null}}let dc=(()=>{class ht{constructor(){this.contexts=new Map}onChildOutletCreated(st,Ot){const ne=this.getOrCreateContext(st);ne.outlet=Ot,this.contexts.set(st,ne)}onChildOutletDestroyed(st){const Ot=this.getContext(st);Ot&&(Ot.outlet=null,Ot.attachRef=null)}onOutletDeactivated(){const st=this.contexts;return this.contexts=new Map,st}onOutletReAttached(st){this.contexts=st}getOrCreateContext(st){let Ot=this.getContext(st);return Ot||(Ot=new Pr,this.contexts.set(st,Ot)),Ot}getContext(st){return this.contexts.get(st)||null}}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const Ha=!1;let Ya=(()=>{class ht{constructor(st,Ot,ne,fe,de){this.parentContexts=st,this.location=Ot,this.changeDetector=fe,this.environmentInjector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.attachEvents=new u.vpe,this.detachEvents=new u.vpe,this.name=ne||De,st.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const st=this.parentContexts.getContext(this.name);st&&st.route&&(st.attachRef?this.attach(st.attachRef,st.route):this.activateWith(st.route,st.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,Ha);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,Ha);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,Ha);this.location.detach();const st=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(st.instance),st}attach(st,Ot){this.activated=st,this._activatedRoute=Ot,this.location.insert(st.hostView),this.attachEvents.emit(st.instance)}deactivate(){if(this.activated){const st=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(st)}}activateWith(st,Ot){if(this.isActivated)throw new u.vHH(4013,Ha);this._activatedRoute=st;const ne=this.location,de=st._futureSnapshot.component,Jt=this.parentContexts.getOrCreateContext(this.name).children,Cn=new wr(st,Jt,ne.injector);if(Ot&&function xr(ht){return!!ht.resolveComponentFactory}(Ot)){const Ri=Ot.resolveComponentFactory(de);this.activated=ne.createComponent(Ri,ne.length,Cn)}else this.activated=ne.createComponent(de,{index:ne.length,injector:Cn,environmentInjector:Ot??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(dc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},ht.\u0275dir=u.lG2({type:ht,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),ht})();class wr{constructor(vt,st,Ot){this.route=vt,this.childContexts=st,this.parent=Ot}get(vt,st){return vt===Ss?this.route:vt===dc?this.childContexts:this.parent.get(vt,st)}}let ns=(()=>{class ht{}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275cmp=u.Xpm({type:ht,selectors:[["ng-component"]],standalone:!0,features:[u.jDz],decls:1,vars:0,template:function(st,Ot){1&st&&u._UZ(0,"router-outlet")},dependencies:[Ya],encapsulation:2}),ht})();function jn(ht,vt){return ht.providers&&!ht._injector&&(ht._injector=(0,u.MMx)(ht.providers,vt,`Route: ${ht.path}`)),ht._injector??vt}function Os(ht){const vt=ht.children&&ht.children.map(Os),st=vt?{...ht,children:vt}:{...ht};return!st.component&&!st.loadComponent&&(vt||st.loadChildren)&&st.outlet&&st.outlet!==De&&(st.component=ns),st}function za(ht){return ht.outlet||De}function ao(ht,vt){const st=ht.filter(Ot=>za(Ot)===vt);return st.push(...ht.filter(Ot=>za(Ot)!==vt)),st}function Er(ht){if(!ht)return null;if(ht.routeConfig?._injector)return ht.routeConfig._injector;for(let vt=ht.parent;vt;vt=vt.parent){const st=vt.routeConfig;if(st?._loadedInjector)return st._loadedInjector;if(st?._injector)return st._injector}return null}class zr{constructor(vt,st,Ot,ne){this.routeReuseStrategy=vt,this.futureState=st,this.currState=Ot,this.forwardEvent=ne}activate(vt){const st=this.futureState._root,Ot=this.currState?this.currState._root:null;this.deactivateChildRoutes(st,Ot,vt),zl(this.futureState.root),this.activateChildRoutes(st,Ot,vt)}deactivateChildRoutes(vt,st,Ot){const ne=Ws(st);vt.children.forEach(fe=>{const de=fe.value.outlet;this.deactivateRoutes(fe,ne[de],Ot),delete ne[de]}),We(ne,(fe,de)=>{this.deactivateRouteAndItsChildren(fe,Ot)})}deactivateRoutes(vt,st,Ot){const ne=vt.value,fe=st?st.value:null;if(ne===fe)if(ne.component){const de=Ot.getContext(ne.outlet);de&&this.deactivateChildRoutes(vt,st,de.children)}else this.deactivateChildRoutes(vt,st,Ot);else fe&&this.deactivateRouteAndItsChildren(st,Ot)}deactivateRouteAndItsChildren(vt,st){vt.value.component&&this.routeReuseStrategy.shouldDetach(vt.value.snapshot)?this.detachAndStoreRouteSubtree(vt,st):this.deactivateRouteAndOutlet(vt,st)}detachAndStoreRouteSubtree(vt,st){const Ot=st.getContext(vt.value.outlet),ne=Ot&&vt.value.component?Ot.children:st,fe=Ws(vt);for(const de of Object.keys(fe))this.deactivateRouteAndItsChildren(fe[de],ne);if(Ot&&Ot.outlet){const de=Ot.outlet.detach(),Jt=Ot.children.onOutletDeactivated();this.routeReuseStrategy.store(vt.value.snapshot,{componentRef:de,route:vt,contexts:Jt})}}deactivateRouteAndOutlet(vt,st){const Ot=st.getContext(vt.value.outlet),ne=Ot&&vt.value.component?Ot.children:st,fe=Ws(vt);for(const de of Object.keys(fe))this.deactivateRouteAndItsChildren(fe[de],ne);Ot&&Ot.outlet&&(Ot.outlet.deactivate(),Ot.children.onOutletDeactivated(),Ot.attachRef=null,Ot.resolver=null,Ot.route=null)}activateChildRoutes(vt,st,Ot){const ne=Ws(st);vt.children.forEach(fe=>{this.activateRoutes(fe,ne[fe.value.outlet],Ot),this.forwardEvent(new Vc(fe.value.snapshot))}),vt.children.length&&this.forwardEvent(new Ad(vt.value.snapshot))}activateRoutes(vt,st,Ot){const ne=vt.value,fe=st?st.value:null;if(zl(ne),ne===fe)if(ne.component){const de=Ot.getOrCreateContext(ne.outlet);this.activateChildRoutes(vt,st,de.children)}else this.activateChildRoutes(vt,st,Ot);else if(ne.component){const de=Ot.getOrCreateContext(ne.outlet);if(this.routeReuseStrategy.shouldAttach(ne.snapshot)){const Jt=this.routeReuseStrategy.retrieve(ne.snapshot);this.routeReuseStrategy.store(ne.snapshot,null),de.children.onOutletReAttached(Jt.contexts),de.attachRef=Jt.componentRef,de.route=Jt.route.value,de.outlet&&de.outlet.attach(Jt.componentRef,Jt.route.value),zl(Jt.route.value),this.activateChildRoutes(vt,null,de.children)}else{const Jt=Er(ne.snapshot),Cn=Jt?.get(u._Vd)??null;de.attachRef=null,de.route=ne,de.resolver=Cn,de.injector=Jt,de.outlet&&de.outlet.activateWith(ne,de.injector),this.activateChildRoutes(vt,null,de.children)}}else this.activateChildRoutes(vt,null,Ot)}}class Ec{constructor(vt){this.path=vt,this.route=this.path[this.path.length-1]}}class cl{constructor(vt,st){this.component=vt,this.route=st}}function Cc(ht,vt,st){const Ot=ht._root;return Qi(Ot,vt?vt._root:null,st,[Ot.value])}function ps(ht,vt){const st=Symbol(),Ot=vt.get(ht,st);return Ot===st?"function"!=typeof ht||(0,u.Z0I)(ht)?vt.get(ht):ht:Ot}function Qi(ht,vt,st,Ot,ne={canDeactivateChecks:[],canActivateChecks:[]}){const fe=Ws(vt);return ht.children.forEach(de=>{(function la(ht,vt,st,Ot,ne={canDeactivateChecks:[],canActivateChecks:[]}){const fe=ht.value,de=vt?vt.value:null,Jt=st?st.getContext(ht.value.outlet):null;if(de&&fe.routeConfig===de.routeConfig){const Cn=function or(ht,vt,st){if("function"==typeof st)return st(ht,vt);switch(st){case"pathParamsChange":return!Qe(ht.url,vt.url);case"pathParamsOrQueryParamsChange":return!Qe(ht.url,vt.url)||!dn(ht.queryParams,vt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xa(ht,vt)||!dn(ht.queryParams,vt.queryParams);default:return!xa(ht,vt)}}(de,fe,fe.routeConfig.runGuardsAndResolvers);Cn?ne.canActivateChecks.push(new Ec(Ot)):(fe.data=de.data,fe._resolvedData=de._resolvedData),Qi(ht,vt,fe.component?Jt?Jt.children:null:st,Ot,ne),Cn&&Jt&&Jt.outlet&&Jt.outlet.isActivated&&ne.canDeactivateChecks.push(new cl(Jt.outlet.component,de))}else de&&Wr(vt,Jt,ne),ne.canActivateChecks.push(new Ec(Ot)),Qi(ht,null,fe.component?Jt?Jt.children:null:st,Ot,ne)})(de,fe[de.value.outlet],st,Ot.concat([de.value]),ne),delete fe[de.value.outlet]}),We(fe,(de,Jt)=>Wr(de,st.getContext(Jt),ne)),ne}function Wr(ht,vt,st){const Ot=Ws(ht),ne=ht.value;We(Ot,(fe,de)=>{Wr(fe,ne.component?vt?vt.children.getContext(de):null:vt,st)}),st.canDeactivateChecks.push(new cl(ne.component&&vt&&vt.outlet&&vt.outlet.isActivated?vt.outlet.component:null,ne))}function Qa(ht){return"function"==typeof ht}function Fc(ht){return ht instanceof t.K||"EmptyError"===ht?.name}const Fr=Symbol("INITIAL_VALUE");function Nr(){return(0,lt.w)(ht=>(0,T.aj)(ht.map(vt=>vt.pipe((0,Ct.q)(1),(0,Dt.O)(Fr)))).pipe((0,ct.U)(vt=>{for(const st of vt)if(!0!==st){if(st===Fr)return Fr;if(!1===st||st instanceof bo)return st}return!0}),(0,Zt.h)(vt=>vt!==Fr),(0,Ct.q)(1)))}function Ic(ht){return(0,P.z)((0,Ut.b)(vt=>{if(Co(vt))throw ou(0,vt)}),(0,ct.U)(vt=>!0===vt))}const rp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Zl(ht,vt,st,Ot,ne){const fe=yc(ht,vt,st);return fe.matched?function ll(ht,vt,st,Ot){const ne=vt.canMatch;if(!ne||0===ne.length)return(0,v.of)(!0);const fe=ne.map(de=>{const Jt=ps(de,ht);return ee(function zo(ht){return ht&&Qa(ht.canMatch)}(Jt)?Jt.canMatch(vt,st):ht.runInContext(()=>Jt(vt,st)))});return(0,v.of)(fe).pipe(Nr(),Ic())}(Ot=jn(vt,Ot),vt,st).pipe((0,ct.U)(de=>!0===de?fe:{...rp})):(0,v.of)(fe)}function yc(ht,vt,st){if(""===vt.path)return"full"===vt.pathMatch&&(ht.hasChildren()||st.length>0)?{...rp}:{matched:!0,consumedSegments:[],remainingSegments:st,parameters:{},positionalParamSegments:{}};const ne=(vt.matcher||bn)(st,ht,vt);if(!ne)return{...rp};const fe={};We(ne.posParams,(Jt,Cn)=>{fe[Cn]=Jt.path});const de=ne.consumed.length>0?{...fe,...ne.consumed[ne.consumed.length-1].parameters}:fe;return{matched:!0,consumedSegments:ne.consumed,remainingSegments:st.slice(ne.consumed.length),parameters:de,positionalParamSegments:ne.posParams??{}}}function Gi(ht,vt,st,Ot,ne="corrected"){if(st.length>0&&function Bl(ht,vt,st){return st.some(Ot=>ul(ht,vt,Ot)&&za(Ot)!==De)}(ht,st,Ot)){const de=new hi(vt,function ru(ht,vt,st,Ot){const ne={};ne[De]=Ot,Ot._sourceSegment=ht,Ot._segmentIndexShift=vt.length;for(const fe of st)if(""===fe.path&&za(fe)!==De){const de=new hi([],{});de._sourceSegment=ht,de._segmentIndexShift=vt.length,ne[za(fe)]=de}return ne}(ht,vt,Ot,new hi(st,ht.children)));return de._sourceSegment=ht,de._segmentIndexShift=vt.length,{segmentGroup:de,slicedSegments:[]}}if(0===st.length&&function Ua(ht,vt,st){return st.some(Ot=>ul(ht,vt,Ot))}(ht,st,Ot)){const de=new hi(ht.segments,function dt(ht,vt,st,Ot,ne,fe){const de={};for(const Jt of Ot)if(ul(ht,st,Jt)&&!ne[za(Jt)]){const Cn=new hi([],{});Cn._sourceSegment=ht,Cn._segmentIndexShift="legacy"===fe?ht.segments.length:vt.length,de[za(Jt)]=Cn}return{...ne,...de}}(ht,vt,st,Ot,ht.children,ne));return de._sourceSegment=ht,de._segmentIndexShift=vt.length,{segmentGroup:de,slicedSegments:st}}const fe=new hi(ht.segments,ht.children);return fe._sourceSegment=ht,fe._segmentIndexShift=vt.length,{segmentGroup:fe,slicedSegments:st}}function ul(ht,vt,st){return(!(ht.hasChildren()||vt.length>0)||"full"!==st.pathMatch)&&""===st.path}function ar(ht,vt,st,Ot){return!!(za(ht)===Ot||Ot!==De&&ul(vt,st,ht))&&("**"===ht.path||yc(vt,ht,st).matched)}function Ir(ht,vt,st){return 0===vt.length&&!ht.children[st]}const _s=!1;class Da{constructor(vt){this.segmentGroup=vt||null}}class ki{constructor(vt){this.urlTree=vt}}function Xu(ht){return(0,O._)(new Da(ht))}function vo(ht){return(0,O._)(new ki(ht))}class Mi{constructor(vt,st,Ot,ne,fe){this.injector=vt,this.configLoader=st,this.urlSerializer=Ot,this.urlTree=ne,this.config=fe,this.allowRedirects=!0}apply(){const vt=Gi(this.urlTree.root,[],[],this.config).segmentGroup,st=new hi(vt.segments,vt.children);return this.expandSegmentGroup(this.injector,this.config,st,De).pipe((0,ct.U)(fe=>this.createUrlTree(xi(fe),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,bt.K)(fe=>{if(fe instanceof ki)return this.allowRedirects=!1,this.match(fe.urlTree);throw fe instanceof Da?this.noMatchError(fe):fe}))}match(vt){return this.expandSegmentGroup(this.injector,this.config,vt.root,De).pipe((0,ct.U)(ne=>this.createUrlTree(xi(ne),vt.queryParams,vt.fragment))).pipe((0,bt.K)(ne=>{throw ne instanceof Da?this.noMatchError(ne):ne}))}noMatchError(vt){return new u.vHH(4002,_s)}createUrlTree(vt,st,Ot){const ne=ai(vt);return new bo(ne,st,Ot)}expandSegmentGroup(vt,st,Ot,ne){return 0===Ot.segments.length&&Ot.hasChildren()?this.expandChildren(vt,st,Ot).pipe((0,ct.U)(fe=>new hi([],fe))):this.expandSegment(vt,Ot,st,Ot.segments,ne,!0)}expandChildren(vt,st,Ot){const ne=[];for(const fe of Object.keys(Ot.children))"primary"===fe?ne.unshift(fe):ne.push(fe);return(0,d.D)(ne).pipe((0,Tt.b)(fe=>{const de=Ot.children[fe],Jt=ao(st,fe);return this.expandSegmentGroup(vt,Jt,de,fe).pipe((0,ct.U)(Cn=>({segment:Cn,outlet:fe})))}),Lt((fe,de)=>(fe[de.outlet]=de.segment,fe),{}),Qt())}expandSegment(vt,st,Ot,ne,fe,de){return(0,d.D)(Ot).pipe((0,Tt.b)(Jt=>this.expandSegmentAgainstRoute(vt,st,Ot,Jt,ne,fe,de).pipe((0,bt.K)(Ri=>{if(Ri instanceof Da)return(0,v.of)(null);throw Ri}))),(0,Gt.P)(Jt=>!!Jt),(0,bt.K)((Jt,Cn)=>{if(Fc(Jt))return Ir(st,ne,fe)?(0,v.of)(new hi([],{})):Xu(st);throw Jt}))}expandSegmentAgainstRoute(vt,st,Ot,ne,fe,de,Jt){return ar(ne,st,fe,de)?void 0===ne.redirectTo?this.matchSegmentAgainstRoute(vt,st,ne,fe,de):Jt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de):Xu(st):Xu(st)}expandSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de){return"**"===ne.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(vt,Ot,ne,de):this.expandRegularSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(vt,st,Ot,ne){const fe=this.applyRedirectCommands([],Ot.redirectTo,{});return Ot.redirectTo.startsWith("/")?vo(fe):this.lineralizeSegments(Ot,fe).pipe((0,Rt.zg)(de=>{const Jt=new hi(de,{});return this.expandSegment(vt,Jt,st,de,ne,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de){const{matched:Jt,consumedSegments:Cn,remainingSegments:Ri,positionalParamSegments:po}=yc(st,ne,fe);if(!Jt)return Xu(st);const Zi=this.applyRedirectCommands(Cn,ne.redirectTo,po);return ne.redirectTo.startsWith("/")?vo(Zi):this.lineralizeSegments(ne,Zi).pipe((0,Rt.zg)(ja=>this.expandSegment(vt,st,Ot,ja.concat(Ri),de,!1)))}matchSegmentAgainstRoute(vt,st,Ot,ne,fe){return"**"===Ot.path?(vt=jn(Ot,vt),Ot.loadChildren?(Ot._loadedRoutes?(0,v.of)({routes:Ot._loadedRoutes,injector:Ot._loadedInjector}):this.configLoader.loadChildren(vt,Ot)).pipe((0,ct.U)(Jt=>(Ot._loadedRoutes=Jt.routes,Ot._loadedInjector=Jt.injector,new hi(ne,{})))):(0,v.of)(new hi(ne,{}))):Zl(st,Ot,ne,vt).pipe((0,lt.w)(({matched:de,consumedSegments:Jt,remainingSegments:Cn})=>de?this.getChildConfig(vt=Ot._injector??vt,Ot,ne).pipe((0,Rt.zg)(po=>{const Zi=po.injector??vt,ja=po.routes,{segmentGroup:$c,slicedSegments:Uu}=Gi(st,Jt,Cn,ja),Kc=new hi($c.segments,$c.children);if(0===Uu.length&&Kc.hasChildren())return this.expandChildren(Zi,ja,Kc).pipe((0,ct.U)(r1=>new hi(Jt,r1)));if(0===ja.length&&0===Uu.length)return(0,v.of)(new hi(Jt,{}));const pl=za(Ot)===fe;return this.expandSegment(Zi,Kc,ja,Uu,pl?De:fe,!0).pipe((0,ct.U)(Fs=>new hi(Jt.concat(Fs.segments),Fs.children)))})):Xu(st)))}getChildConfig(vt,st,Ot){return st.children?(0,v.of)({routes:st.children,injector:vt}):st.loadChildren?void 0!==st._loadedRoutes?(0,v.of)({routes:st._loadedRoutes,injector:st._loadedInjector}):function Nc(ht,vt,st,Ot){const ne=vt.canLoad;if(void 0===ne||0===ne.length)return(0,v.of)(!0);const fe=ne.map(de=>{const Jt=ps(de,ht);return ee(function $t(ht){return ht&&Qa(ht.canLoad)}(Jt)?Jt.canLoad(vt,st):ht.runInContext(()=>Jt(vt,st)))});return(0,v.of)(fe).pipe(Nr(),Ic())}(vt,st,Ot).pipe((0,Rt.zg)(ne=>ne?this.configLoader.loadChildren(vt,st).pipe((0,Ut.b)(fe=>{st._loadedRoutes=fe.routes,st._loadedInjector=fe.injector})):function pi(ht){return(0,O._)(Cs(_s,3))}())):(0,v.of)({routes:[],injector:vt})}lineralizeSegments(vt,st){let Ot=[],ne=st.root;for(;;){if(Ot=Ot.concat(ne.segments),0===ne.numberOfChildren)return(0,v.of)(Ot);if(ne.numberOfChildren>1||!ne.children[De])return(0,O._)(new u.vHH(4e3,_s));ne=ne.children[De]}}applyRedirectCommands(vt,st,Ot){return this.applyRedirectCreateUrlTree(st,this.urlSerializer.parse(st),vt,Ot)}applyRedirectCreateUrlTree(vt,st,Ot,ne){const fe=this.createSegmentGroup(vt,st.root,Ot,ne);return new bo(fe,this.createQueryParams(st.queryParams,this.urlTree.queryParams),st.fragment)}createQueryParams(vt,st){const Ot={};return We(vt,(ne,fe)=>{if("string"==typeof ne&&ne.startsWith(":")){const Jt=ne.substring(1);Ot[fe]=st[Jt]}else Ot[fe]=ne}),Ot}createSegmentGroup(vt,st,Ot,ne){const fe=this.createSegments(vt,st.segments,Ot,ne);let de={};return We(st.children,(Jt,Cn)=>{de[Cn]=this.createSegmentGroup(vt,Jt,Ot,ne)}),new hi(fe,de)}createSegments(vt,st,Ot,ne){return st.map(fe=>fe.path.startsWith(":")?this.findPosParam(vt,fe,ne):this.findOrReturn(fe,Ot))}findPosParam(vt,st,Ot){const ne=Ot[st.path.substring(1)];if(!ne)throw new u.vHH(4001,_s);return ne}findOrReturn(vt,st){let Ot=0;for(const ne of st){if(ne.path===vt.path)return st.splice(Ot),ne;Ot++}return vt}}class Ka{}class dl{constructor(vt,st,Ot,ne,fe,de,Jt,Cn){this.injector=vt,this.rootComponentType=st,this.config=Ot,this.urlTree=ne,this.url=fe,this.paramsInheritanceStrategy=de,this.relativeLinkResolution=Jt,this.urlSerializer=Cn}recognize(){const vt=Gi(this.urlTree.root,[],[],this.config.filter(st=>void 0===st.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,vt,De).pipe((0,ct.U)(st=>{if(null===st)return null;const Ot=new Jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},De,this.rootComponentType,null,this.urlTree.root,-1,{}),ne=new xc(Ot,st),fe=new $s(this.url,ne);return this.inheritParamsAndData(fe._root),fe}))}inheritParamsAndData(vt){const st=vt.value,Ot=Ul(st,this.paramsInheritanceStrategy);st.params=Object.freeze(Ot.params),st.data=Object.freeze(Ot.data),vt.children.forEach(ne=>this.inheritParamsAndData(ne))}processSegmentGroup(vt,st,Ot,ne){return 0===Ot.segments.length&&Ot.hasChildren()?this.processChildren(vt,st,Ot):this.processSegment(vt,st,Ot,Ot.segments,ne)}processChildren(vt,st,Ot){return(0,d.D)(Object.keys(Ot.children)).pipe((0,Tt.b)(ne=>{const fe=Ot.children[ne],de=ao(st,ne);return this.processSegmentGroup(vt,de,fe,ne)}),Lt((ne,fe)=>ne&&fe?(ne.push(...fe),ne):null),(0,Ue.o)(ne=>null!==ne),(0,qe.d)(null),Qt(),(0,ct.U)(ne=>{if(null===ne)return null;const fe=Cu(ne);return function bu(ht){ht.sort((vt,st)=>vt.value.outlet===De?-1:st.value.outlet===De?1:vt.value.outlet.localeCompare(st.value.outlet))}(fe),fe}))}processSegment(vt,st,Ot,ne,fe){return(0,d.D)(st).pipe((0,Tt.b)(de=>this.processSegmentAgainstRoute(de._injector??vt,de,Ot,ne,fe)),(0,Gt.P)(de=>!!de),(0,bt.K)(de=>{if(Fc(de))return Ir(Ot,ne,fe)?(0,v.of)([]):(0,v.of)(null);throw de}))}processSegmentAgainstRoute(vt,st,Ot,ne,fe){if(st.redirectTo||!ar(st,Ot,ne,fe))return(0,v.of)(null);let de;if("**"===st.path){const Jt=ne.length>0?_i(ne).parameters:{},Cn=Pt(Ot)+ne.length,Ri=new Jc(ne,Jt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(st),za(st),st.component??st._loadedComponent??null,st,td(Ot),Cn,Ge(st),Cn);de=(0,v.of)({snapshot:Ri,consumedSegments:[],remainingSegments:[]})}else de=Zl(Ot,st,ne,vt).pipe((0,ct.U)(({matched:Jt,consumedSegments:Cn,remainingSegments:Ri,parameters:po})=>{if(!Jt)return null;const Zi=Pt(Ot)+Cn.length;return{snapshot:new Jc(Cn,po,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(st),za(st),st.component??st._loadedComponent??null,st,td(Ot),Zi,Ge(st),Zi),consumedSegments:Cn,remainingSegments:Ri}}));return de.pipe((0,lt.w)(Jt=>{if(null===Jt)return(0,v.of)(null);const{snapshot:Cn,consumedSegments:Ri,remainingSegments:po}=Jt;vt=st._injector??vt;const Zi=st._loadedInjector??vt,ja=function Xa(ht){return ht.children?ht.children:ht.loadChildren?ht._loadedRoutes:[]}(st),{segmentGroup:$c,slicedSegments:Uu}=Gi(Ot,Ri,po,ja.filter(pl=>void 0===pl.redirectTo),this.relativeLinkResolution);if(0===Uu.length&&$c.hasChildren())return this.processChildren(Zi,ja,$c).pipe((0,ct.U)(pl=>null===pl?null:[new xc(Cn,pl)]));if(0===ja.length&&0===Uu.length)return(0,v.of)([new xc(Cn,[])]);const Kc=za(st)===fe;return this.processSegment(Zi,ja,$c,Uu,Kc?De:fe).pipe((0,ct.U)(pl=>null===pl?null:[new xc(Cn,pl)]))}))}}function Xs(ht){const vt=ht.value.routeConfig;return vt&&""===vt.path&&void 0===vt.redirectTo}function Cu(ht){const vt=[],st=new Set;for(const Ot of ht){if(!Xs(Ot)){vt.push(Ot);continue}const ne=vt.find(fe=>Ot.value.routeConfig===fe.value.routeConfig);void 0!==ne?(ne.children.push(...Ot.children),st.add(ne)):vt.push(Ot)}for(const Ot of st){const ne=Cu(Ot.children);vt.push(new xc(Ot.value,ne))}return vt.filter(Ot=>!st.has(Ot))}function td(ht){let vt=ht;for(;vt._sourceSegment;)vt=vt._sourceSegment;return vt}function Pt(ht){let vt=ht,st=vt._segmentIndexShift??0;for(;vt._sourceSegment;)vt=vt._sourceSegment,st+=vt._segmentIndexShift??0;return st-1}function Yt(ht){return ht.data||{}}function Ge(ht){return ht.resolve||{}}function Xn(ht){return"string"==typeof ht.title||null===ht.title}function ei(ht){return(0,lt.w)(vt=>{const st=ht(vt);return st?(0,d.D)(st).pipe((0,ct.U)(()=>vt)):(0,v.of)(vt)})}let yi=(()=>{class ht{buildTitle(st){let Ot,ne=st.root;for(;void 0!==ne;)Ot=this.getResolvedTitleForRoute(ne)??Ot,ne=ne.children.find(fe=>fe.outlet===De);return Ot}getResolvedTitleForRoute(st){return st.data[nn]}}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275prov=u.Yz7({token:ht,factory:function(){return(0,u.f3M)(Ui)},providedIn:"root"}),ht})(),Ui=(()=>{class ht extends yi{constructor(st){super(),this.title=st}updateTitle(st){const Ot=this.buildTitle(st);void 0!==Ot&&this.title.setTitle(Ot)}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(ae.Dx))},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();class vi{}class ua extends class zi{shouldDetach(vt){return!1}store(vt,st){}shouldAttach(vt){return!1}retrieve(vt){return null}shouldReuseRoute(vt,st){return vt.routeConfig===st.routeConfig}}{}const ga=new u.OlP("",{providedIn:"root",factory:()=>({})}),fs=new u.OlP("ROUTES");let Us=(()=>{class ht{constructor(st,Ot){this.injector=st,this.compiler=Ot,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(st){if(this.componentLoaders.get(st))return this.componentLoaders.get(st);if(st._loadedComponent)return(0,v.of)(st._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(st);const Ot=ee(st.loadComponent()).pipe((0,Ut.b)(fe=>{this.onLoadEndListener&&this.onLoadEndListener(st),st._loadedComponent=fe}),(0,Wt.x)(()=>{this.componentLoaders.delete(st)})),ne=new B.c(Ot,()=>new K.xQ).pipe((0,se.x)());return this.componentLoaders.set(st,ne),ne}loadChildren(st,Ot){if(this.childrenLoaders.get(Ot))return this.childrenLoaders.get(Ot);if(Ot._loadedRoutes)return(0,v.of)({routes:Ot._loadedRoutes,injector:Ot._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ot);const fe=this.loadModuleFactoryOrRoutes(Ot.loadChildren).pipe((0,ct.U)(Jt=>{this.onLoadEndListener&&this.onLoadEndListener(Ot);let Cn,Ri,po=!1;Array.isArray(Jt)?Ri=Jt:(Cn=Jt.create(st).injector,Ri=ii(Cn.get(fs,[],u.XFs.Self|u.XFs.Optional)));return{routes:Ri.map(Os),injector:Cn}}),(0,Wt.x)(()=>{this.childrenLoaders.delete(Ot)})),de=new B.c(fe,()=>new K.xQ).pipe((0,se.x)());return this.childrenLoaders.set(Ot,de),de}loadModuleFactoryOrRoutes(st){return ee(st()).pipe((0,Rt.zg)(Ot=>Ot instanceof u.YKP||Array.isArray(Ot)?(0,v.of)(Ot):(0,d.D)(this.compiler.compileModuleAsync(Ot))))}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(u.zs3),u.LFG(u.Sil))},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();class Kr{}class Vr{shouldProcessUrl(vt){return!0}extract(vt){return vt}merge(vt,st){return vt}}function tc(ht){throw ht}function ec(ht,vt,st){return vt.parse("/")}const ws={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},o1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function na(){const ht=(0,u.f3M)(Ve),vt=(0,u.f3M)(dc),st=(0,u.f3M)(et.Ye),Ot=(0,u.f3M)(u.zs3),ne=(0,u.f3M)(u.Sil),fe=(0,u.f3M)(fs,{optional:!0})??[],de=(0,u.f3M)(ga,{optional:!0})??{},Jt=(0,u.f3M)(Ui),Cn=(0,u.f3M)(yi,{optional:!0}),Ri=(0,u.f3M)(Kr,{optional:!0}),po=(0,u.f3M)(vi,{optional:!0}),Zi=new Ba(null,ht,vt,st,Ot,ne,ii(fe));return Ri&&(Zi.urlHandlingStrategy=Ri),po&&(Zi.routeReuseStrategy=po),Zi.titleStrategy=Cn??Jt,function rr(ht,vt){ht.errorHandler&&(vt.errorHandler=ht.errorHandler),ht.malformedUriErrorHandler&&(vt.malformedUriErrorHandler=ht.malformedUriErrorHandler),ht.onSameUrlNavigation&&(vt.onSameUrlNavigation=ht.onSameUrlNavigation),ht.paramsInheritanceStrategy&&(vt.paramsInheritanceStrategy=ht.paramsInheritanceStrategy),ht.relativeLinkResolution&&(vt.relativeLinkResolution=ht.relativeLinkResolution),ht.urlUpdateStrategy&&(vt.urlUpdateStrategy=ht.urlUpdateStrategy),ht.canceledNavigationResolution&&(vt.canceledNavigationResolution=ht.canceledNavigationResolution)}(de,Zi),Zi}let Ba=(()=>{class ht{constructor(st,Ot,ne,fe,de,Jt,Cn){this.rootComponentType=st,this.urlSerializer=Ot,this.rootContexts=ne,this.location=fe,this.config=Cn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new K.xQ,this.errorHandler=tc,this.malformedUriErrorHandler=ec,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,v.of)(void 0),this.urlHandlingStrategy=new Vr,this.routeReuseStrategy=new ua,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=de.get(Us),this.configLoader.onLoadEndListener=ja=>this.triggerEvent(new t1(ja)),this.configLoader.onLoadStartListener=ja=>this.triggerEvent(new Hs(ja)),this.ngModule=de.get(u.h0i),this.console=de.get(u.c2e);const Zi=de.get(u.R0b);this.isNgZoneEnabled=Zi instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Cn),this.currentUrlTree=function X(){return new bo(new hi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$u(this.currentUrlTree,this.rootComponentType),this.transitions=new g.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(st){const Ot=this.events;return st.pipe((0,Zt.h)(ne=>0!==ne.id),(0,ct.U)(ne=>({...ne,extractedUrl:this.urlHandlingStrategy.extract(ne.rawUrl)})),(0,lt.w)(ne=>{let fe=!1,de=!1;return(0,v.of)(ne).pipe((0,Ut.b)(Jt=>{this.currentNavigation={id:Jt.id,initialUrl:Jt.rawUrl,extractedUrl:Jt.extractedUrl,trigger:Jt.source,extras:Jt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,lt.w)(Jt=>{const Cn=this.browserUrlTree.toString(),Ri=!this.navigated||Jt.extractedUrl.toString()!==Cn||Cn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ri)&&this.urlHandlingStrategy.shouldProcessUrl(Jt.rawUrl))return L1(Jt.source)&&(this.browserUrlTree=Jt.extractedUrl),(0,v.of)(Jt).pipe((0,lt.w)(Zi=>{const ja=this.transitions.getValue();return Ot.next(new Ar(Zi.id,this.serializeUrl(Zi.extractedUrl),Zi.source,Zi.restoredState)),ja!==this.transitions.getValue()?N.E:Promise.resolve(Zi)}),function Lo(ht,vt,st,Ot){return(0,lt.w)(ne=>function Si(ht,vt,st,Ot,ne){return new Mi(ht,vt,st,Ot,ne).apply()}(ht,vt,st,ne.extractedUrl,Ot).pipe((0,ct.U)(fe=>({...ne,urlAfterRedirects:fe}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ut.b)(Zi=>{this.currentNavigation={...this.currentNavigation,finalUrl:Zi.urlAfterRedirects},ne.urlAfterRedirects=Zi.urlAfterRedirects}),function En(ht,vt,st,Ot,ne,fe){return(0,Rt.zg)(de=>function Ko(ht,vt,st,Ot,ne,fe,de="emptyOnly",Jt="legacy"){return new dl(ht,vt,st,Ot,ne,de,Jt,fe).recognize().pipe((0,lt.w)(Cn=>null===Cn?function gr(ht){return new L.y(vt=>vt.error(ht))}(new Ka):(0,v.of)(Cn)))}(ht,vt,st,de.urlAfterRedirects,Ot.serialize(de.urlAfterRedirects),Ot,ne,fe).pipe((0,ct.U)(Jt=>({...de,targetSnapshot:Jt}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ut.b)(Zi=>{if(ne.targetSnapshot=Zi.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Zi.extras.skipLocationChange){const $c=this.urlHandlingStrategy.merge(Zi.urlAfterRedirects,Zi.rawUrl);this.setBrowserUrl($c,Zi)}this.browserUrlTree=Zi.urlAfterRedirects}const ja=new Js(Zi.id,this.serializeUrl(Zi.extractedUrl),this.serializeUrl(Zi.urlAfterRedirects),Zi.targetSnapshot);Ot.next(ja)}));if(Ri&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ja,extractedUrl:$c,source:Uu,restoredState:Kc,extras:pl}=Jt,Am=new Ar(ja,this.serializeUrl($c),Uu,Kc);Ot.next(Am);const Fs=$u($c,this.rootComponentType).snapshot;return ne={...Jt,targetSnapshot:Fs,urlAfterRedirects:$c,extras:{...pl,skipLocationChange:!1,replaceUrl:!1}},(0,v.of)(ne)}return this.rawUrlTree=Jt.rawUrl,Jt.resolve(null),N.E}),(0,Ut.b)(Jt=>{const Cn=new Ps(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(Cn)}),(0,ct.U)(Jt=>ne={...Jt,guards:Cc(Jt.targetSnapshot,Jt.currentSnapshot,this.rootContexts)}),function xu(ht,vt){return(0,Rt.zg)(st=>{const{targetSnapshot:Ot,currentSnapshot:ne,guards:{canActivateChecks:fe,canDeactivateChecks:de}}=st;return 0===de.length&&0===fe.length?(0,v.of)({...st,guardsResult:!0}):function Va(ht,vt,st,Ot){return(0,d.D)(ht).pipe((0,Rt.zg)(ne=>function au(ht,vt,st,Ot,ne){const fe=vt&&vt.routeConfig?vt.routeConfig.canDeactivate:null;if(!fe||0===fe.length)return(0,v.of)(!0);const de=fe.map(Jt=>{const Cn=Er(vt)??ne,Ri=ps(Jt,Cn);return ee(function wi(ht){return ht&&Qa(ht.canDeactivate)}(Ri)?Ri.canDeactivate(ht,vt,st,Ot):Cn.runInContext(()=>Ri(ht,vt,st,Ot))).pipe((0,Gt.P)())});return(0,v.of)(de).pipe(Nr())}(ne.component,ne.route,st,vt,Ot)),(0,Gt.P)(ne=>!0!==ne,!0))}(de,Ot,ne,ht).pipe((0,Rt.zg)(Jt=>Jt&&function re(ht){return"boolean"==typeof ht}(Jt)?function jc(ht,vt,st,Ot){return(0,d.D)(vt).pipe((0,Tt.b)(ne=>(0,U.z)(function wd(ht,vt){return null!==ht&&vt&&vt(new Lr(ht)),(0,v.of)(!0)}(ne.route.parent,Ot),function k1(ht,vt){return null!==ht&&vt&&vt(new e1(ht)),(0,v.of)(!0)}(ne.route,Ot),function n1(ht,vt,st){const Ot=vt[vt.length-1],fe=vt.slice(0,vt.length-1).reverse().map(de=>function Ud(ht){const vt=ht.routeConfig?ht.routeConfig.canActivateChild:null;return vt&&0!==vt.length?{node:ht,guards:vt}:null}(de)).filter(de=>null!==de).map(de=>(0,w.P)(()=>{const Jt=de.guards.map(Cn=>{const Ri=Er(de.node)??st,po=ps(Cn,Ri);return ee(function nt(ht){return ht&&Qa(ht.canActivateChild)}(po)?po.canActivateChild(Ot,ht):Ri.runInContext(()=>po(Ot,ht))).pipe((0,Gt.P)())});return(0,v.of)(Jt).pipe(Nr())}));return(0,v.of)(fe).pipe(Nr())}(ht,ne.path,st),function O1(ht,vt,st){const Ot=vt.routeConfig?vt.routeConfig.canActivate:null;if(!Ot||0===Ot.length)return(0,v.of)(!0);const ne=Ot.map(fe=>(0,w.P)(()=>{const de=Er(vt)??st,Jt=ps(fe,de);return ee(function Nt(ht){return ht&&Qa(ht.canActivate)}(Jt)?Jt.canActivate(vt,ht):de.runInContext(()=>Jt(vt,ht))).pipe((0,Gt.P)())}));return(0,v.of)(ne).pipe(Nr())}(ht,ne.route,st))),(0,Gt.P)(ne=>!0!==ne,!0))}(Ot,fe,ht,vt):(0,v.of)(Jt)),(0,ct.U)(Jt=>({...st,guardsResult:Jt})))})}(this.ngModule.injector,Jt=>this.triggerEvent(Jt)),(0,Ut.b)(Jt=>{if(ne.guardsResult=Jt.guardsResult,Co(Jt.guardsResult))throw ou(0,Jt.guardsResult);const Cn=new Qs(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot,!!Jt.guardsResult);this.triggerEvent(Cn)}),(0,Zt.h)(Jt=>!!Jt.guardsResult||(this.restoreHistory(Jt),this.cancelNavigationTransition(Jt,"",3),!1)),ei(Jt=>{if(Jt.guards.canActivateChecks.length)return(0,v.of)(Jt).pipe((0,Ut.b)(Cn=>{const Ri=new Lc(Cn.id,this.serializeUrl(Cn.extractedUrl),this.serializeUrl(Cn.urlAfterRedirects),Cn.targetSnapshot);this.triggerEvent(Ri)}),(0,lt.w)(Cn=>{let Ri=!1;return(0,v.of)(Cn).pipe(function St(ht,vt){return(0,Rt.zg)(st=>{const{targetSnapshot:Ot,guards:{canActivateChecks:ne}}=st;if(!ne.length)return(0,v.of)(st);let fe=0;return(0,d.D)(ne).pipe((0,Tt.b)(de=>function pe(ht,vt,st,Ot){const ne=ht.routeConfig,fe=ht._resolve;return void 0!==ne?.title&&!Xn(ne)&&(fe[nn]=ne.title),function Te(ht,vt,st,Ot){const ne=function Xe(ht){return[...Object.keys(ht),...Object.getOwnPropertySymbols(ht)]}(ht);if(0===ne.length)return(0,v.of)({});const fe={};return(0,d.D)(ne).pipe((0,Rt.zg)(de=>function Tn(ht,vt,st,Ot){const ne=Er(vt)??Ot,fe=ps(ht,ne);return ee(fe.resolve?fe.resolve(vt,st):ne.runInContext(()=>fe(vt,st)))}(ht[de],vt,st,Ot).pipe((0,Gt.P)(),(0,Ut.b)(Jt=>{fe[de]=Jt}))),Vt(1),(0,ie.h)(fe),(0,bt.K)(de=>Fc(de)?N.E:(0,O._)(de)))}(fe,ht,vt,Ot).pipe((0,ct.U)(de=>(ht._resolvedData=de,ht.data=Ul(ht,st).resolve,ne&&Xn(ne)&&(ht.data[nn]=ne.title),null)))}(de.route,Ot,ht,vt)),(0,Ut.b)(()=>fe++),Vt(1),(0,Rt.zg)(de=>fe===ne.length?(0,v.of)(st):N.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ut.b)({next:()=>Ri=!0,complete:()=>{Ri||(this.restoreHistory(Cn),this.cancelNavigationTransition(Cn,"",2))}}))}),(0,Ut.b)(Cn=>{const Ri=new us(Cn.id,this.serializeUrl(Cn.extractedUrl),this.serializeUrl(Cn.urlAfterRedirects),Cn.targetSnapshot);this.triggerEvent(Ri)}))}),ei(Jt=>{const Cn=Ri=>{const po=[];Ri.routeConfig?.loadComponent&&!Ri.routeConfig._loadedComponent&&po.push(this.configLoader.loadComponent(Ri.routeConfig).pipe((0,Ut.b)(Zi=>{Ri.component=Zi}),(0,ct.U)(()=>{})));for(const Zi of Ri.children)po.push(...Cn(Zi));return po};return(0,T.aj)(Cn(Jt.targetSnapshot.root)).pipe((0,qe.d)(),(0,Ct.q)(1))}),ei(()=>this.afterPreactivation()),(0,ct.U)(Jt=>{const Cn=function ir(ht,vt,st){const Ot=bc(ht,vt._root,st?st._root:void 0);return new sl(Ot,vt)}(this.routeReuseStrategy,Jt.targetSnapshot,Jt.currentRouterState);return ne={...Jt,targetRouterState:Cn}}),(0,Ut.b)(Jt=>{this.currentUrlTree=Jt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Jt.urlAfterRedirects,Jt.rawUrl),this.routerState=Jt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Jt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Jt),this.browserUrlTree=Jt.urlAfterRedirects)}),((ht,vt,st)=>(0,ct.U)(Ot=>(new zr(vt,Ot.targetRouterState,Ot.currentRouterState,st).activate(ht),Ot)))(this.rootContexts,this.routeReuseStrategy,Jt=>this.triggerEvent(Jt)),(0,Ut.b)({next(){fe=!0},complete(){fe=!0}}),(0,Wt.x)(()=>{fe||de||this.cancelNavigationTransition(ne,"",1),this.currentNavigation?.id===ne.id&&(this.currentNavigation=null)}),(0,bt.K)(Jt=>{if(de=!0,Vl(Jt)){ys(Jt)||(this.navigated=!0,this.restoreHistory(ne,!0));const Cn=new Oc(ne.id,this.serializeUrl(ne.extractedUrl),Jt.message,Jt.cancellationCode);if(Ot.next(Cn),ys(Jt)){const Ri=this.urlHandlingStrategy.merge(Jt.url,this.rawUrlTree),po={skipLocationChange:ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||L1(ne.source)};this.scheduleNavigation(Ri,"imperative",null,po,{resolve:ne.resolve,reject:ne.reject,promise:ne.promise})}else ne.resolve(!1)}else{this.restoreHistory(ne,!0);const Cn=new Al(ne.id,this.serializeUrl(ne.extractedUrl),Jt,ne.targetSnapshot??void 0);Ot.next(Cn);try{ne.resolve(this.errorHandler(Jt))}catch(Ri){ne.reject(Ri)}}return N.E}))}))}resetRootComponentType(st){this.rootComponentType=st,this.routerState.root.component=this.rootComponentType}setTransition(st){this.transitions.next({...this.transitions.value,...st})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(st=>{const Ot="popstate"===st.type?"popstate":"hashchange";"popstate"===Ot&&setTimeout(()=>{const ne={replaceUrl:!0},fe=st.state?.navigationId?st.state:null;if(fe){const Jt={...fe};delete Jt.navigationId,delete Jt.\u0275routerPageId,0!==Object.keys(Jt).length&&(ne.state=Jt)}const de=this.parseUrl(st.url);this.scheduleNavigation(de,Ot,fe,ne)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(st){this.events.next(st)}resetConfig(st){this.config=st.map(Os),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(st,Ot={}){const{relativeTo:ne,queryParams:fe,fragment:de,queryParamsHandling:Jt,preserveFragment:Cn}=Ot,Ri=ne||this.routerState.root,po=Cn?this.currentUrlTree.fragment:de;let Zi=null;switch(Jt){case"merge":Zi={...this.currentUrlTree.queryParams,...fe};break;case"preserve":Zi=this.currentUrlTree.queryParams;break;default:Zi=fe||null}return null!==Zi&&(Zi=this.removeEmptyProps(Zi)),Rn(Ri,this.currentUrlTree,st,Zi,po??null)}navigateByUrl(st,Ot={skipLocationChange:!1}){const ne=Co(st)?st:this.parseUrl(st),fe=this.urlHandlingStrategy.merge(ne,this.rawUrlTree);return this.scheduleNavigation(fe,"imperative",null,Ot)}navigate(st,Ot={skipLocationChange:!1}){return function sp(ht){for(let vt=0;vt{const fe=st[ne];return null!=fe&&(Ot[ne]=fe),Ot},{})}processNavigations(){this.navigations.subscribe(st=>{this.navigated=!0,this.lastSuccessfulId=st.id,this.currentPageId=st.targetPageId,this.events.next(new Ur(st.id,this.serializeUrl(st.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),st.resolve(!0)},st=>{this.console.warn(`Unhandled Navigation Error: ${st}`)})}scheduleNavigation(st,Ot,ne,fe,de){if(this.disposed)return Promise.resolve(!1);let Jt,Cn,Ri;de?(Jt=de.resolve,Cn=de.reject,Ri=de.promise):Ri=new Promise((ja,$c)=>{Jt=ja,Cn=$c});const po=++this.navigationId;let Zi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ne=this.location.getState()),Zi=ne&&ne.\u0275routerPageId?ne.\u0275routerPageId:fe.replaceUrl||fe.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Zi=0,this.setTransition({id:po,targetPageId:Zi,source:Ot,restoredState:ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:st,extras:fe,resolve:Jt,reject:Cn,promise:Ri,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ri.catch(ja=>Promise.reject(ja))}setBrowserUrl(st,Ot){const ne=this.urlSerializer.serialize(st),fe={...Ot.extras.state,...this.generateNgRouterState(Ot.id,Ot.targetPageId)};this.location.isCurrentPathEqualTo(ne)||Ot.extras.replaceUrl?this.location.replaceState(ne,"",fe):this.location.go(ne,"",fe)}restoreHistory(st,Ot=!1){if("computed"===this.canceledNavigationResolution){const ne=this.currentPageId-st.targetPageId;"popstate"!==st.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ne?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ne&&(this.resetState(st),this.browserUrlTree=st.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ne)}else"replace"===this.canceledNavigationResolution&&(Ot&&this.resetState(st),this.resetUrlToCurrentUrlTree())}resetState(st){this.routerState=st.currentRouterState,this.currentUrlTree=st.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,st.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(st,Ot,ne){const fe=new Oc(st.id,this.serializeUrl(st.extractedUrl),Ot,ne);this.triggerEvent(fe),st.resolve(!1)}generateNgRouterState(st,Ot){return"computed"===this.canceledNavigationResolution?{navigationId:st,\u0275routerPageId:Ot}:{navigationId:st}}}return ht.\u0275fac=function(st){u.$Z()},ht.\u0275prov=u.Yz7({token:ht,factory:function(){return na()},providedIn:"root"}),ht})();function L1(ht){return"imperative"!==ht}let ed=(()=>{class ht{constructor(st,Ot,ne,fe,de){this.router=st,this.route=Ot,this.tabIndexAttribute=ne,this.renderer=fe,this.el=de,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new K.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(st){this._preserveFragment=(0,u.D6c)(st)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(st){this._skipLocationChange=(0,u.D6c)(st)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(st){this._replaceUrl=(0,u.D6c)(st)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(st){if(null!=this.tabIndexAttribute)return;const Ot=this.renderer,ne=this.el.nativeElement;null!==st?Ot.setAttribute(ne,"tabindex",st):Ot.removeAttribute(ne,"tabindex")}ngOnChanges(st){this.onChanges.next(this)}set routerLink(st){null!=st?(this.commands=Array.isArray(st)?st:[st],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(Ba),u.Y36(Ss),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},ht.\u0275dir=u.lG2({type:ht,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(st,Ot){1&st&&u.NdJ("click",function(){return Ot.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[u.TTD]}),ht})(),Wc=(()=>{class ht{constructor(st,Ot,ne){this.router=st,this.route=Ot,this.locationStrategy=ne,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new K.xQ,this.subscription=st.events.subscribe(fe=>{fe instanceof Ur&&this.updateTargetUrlAndHref()})}set preserveFragment(st){this._preserveFragment=(0,u.D6c)(st)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(st){this._skipLocationChange=(0,u.D6c)(st)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(st){this._replaceUrl=(0,u.D6c)(st)}get replaceUrl(){return this._replaceUrl}set routerLink(st){this.commands=null!=st?Array.isArray(st)?st:[st]:null}ngOnChanges(st){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(st,Ot,ne,fe,de){return!!(0!==st||Ot||ne||fe||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(Ba),u.Y36(Ss),u.Y36(et.S$))},ht.\u0275dir=u.lG2({type:ht,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(st,Ot){1&st&&u.NdJ("click",function(fe){return Ot.onClick(fe.button,fe.ctrlKey,fe.shiftKey,fe.altKey,fe.metaKey)}),2&st&&u.uIk("target",Ot.target)("href",Ot.href,u.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[u.TTD]}),ht})(),a1=(()=>{class ht{constructor(st,Ot,ne,fe,de,Jt){this.router=st,this.element=Ot,this.renderer=ne,this.cdr=fe,this.link=de,this.linkWithHref=Jt,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.vpe,this.routerEventsSubscription=st.events.subscribe(Cn=>{Cn instanceof Ur&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,this.linksWithHrefs.changes,(0,v.of)(null)).pipe((0,Xt.J)()).subscribe(st=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const st=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Ot=>!!Ot).map(Ot=>Ot.onChanges);this.linkInputChangesSubscription=(0,d.D)(st).pipe((0,Xt.J)()).subscribe(Ot=>{this.isActive!==this.isLinkActive(this.router)(Ot)&&this.update()})}set routerLinkActive(st){const Ot=Array.isArray(st)?st:st.split(" ");this.classes=Ot.filter(ne=>!!ne)}ngOnChanges(st){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const st=this.hasActiveLinks();this.isActive!==st&&(this.isActive=st,this.cdr.markForCheck(),this.classes.forEach(Ot=>{st?this.renderer.addClass(this.element.nativeElement,Ot):this.renderer.removeClass(this.element.nativeElement,Ot)}),st&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(st))})}isLinkActive(st){const Ot=function cp(ht){return!!ht.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ne=>!!ne.urlTree&&st.isActive(ne.urlTree,Ot)}hasActiveLinks(){const st=this.isLinkActive(this.router);return this.link&&st(this.link)||this.linkWithHref&&st(this.linkWithHref)||this.links.some(st)||this.linksWithHrefs.some(st)}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(Ba),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(ed,8),u.Y36(Wc,8))},ht.\u0275dir=u.lG2({type:ht,selectors:[["","routerLinkActive",""]],contentQueries:function(st,Ot,ne){if(1&st&&(u.Suo(ne,ed,5),u.Suo(ne,Wc,5)),2&st){let fe;u.iGM(fe=u.CRH())&&(Ot.links=fe),u.iGM(fe=u.CRH())&&(Ot.linksWithHrefs=fe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.TTD]}),ht})();class yu{}let Au=(()=>{class ht{constructor(st,Ot,ne,fe,de){this.router=st,this.injector=ne,this.preloadingStrategy=fe,this.loader=de}setUpPreloading(){this.subscription=this.router.events.pipe((0,Zt.h)(st=>st instanceof Ur),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(st,Ot){const ne=[];for(const fe of Ot){fe.providers&&!fe._injector&&(fe._injector=(0,u.MMx)(fe.providers,st,`Route: ${fe.path}`));const de=fe._injector??st,Jt=fe._loadedInjector??de;fe.loadChildren&&!fe._loadedRoutes&&void 0===fe.canLoad||fe.loadComponent&&!fe._loadedComponent?ne.push(this.preloadConfig(de,fe)):(fe.children||fe._loadedRoutes)&&ne.push(this.processRoutes(Jt,fe.children??fe._loadedRoutes))}return(0,d.D)(ne).pipe((0,Xt.J)())}preloadConfig(st,Ot){return this.preloadingStrategy.preload(Ot,()=>{let ne;ne=Ot.loadChildren&&void 0===Ot.canLoad?this.loader.loadChildren(st,Ot):(0,v.of)(null);const fe=ne.pipe((0,Rt.zg)(de=>null===de?(0,v.of)(void 0):(Ot._loadedRoutes=de.routes,Ot._loadedInjector=de.injector,this.processRoutes(de.injector??st,de.routes))));if(Ot.loadComponent&&!Ot._loadedComponent){const de=this.loader.loadComponent(Ot);return(0,d.D)([fe,de]).pipe((0,Xt.J)())}return fe})}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(Ba),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(yu),u.LFG(Us))},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const pc=new u.OlP("");let Gl=(()=>{class ht{constructor(st,Ot,ne={}){this.router=st,this.viewportScroller=Ot,this.options=ne,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ne.scrollPositionRestoration=ne.scrollPositionRestoration||"disabled",ne.anchorScrolling=ne.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(st=>{st instanceof Ar?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=st.navigationTrigger,this.restoredId=st.restoredState?st.restoredState.navigationId:0):st instanceof Ur&&(this.lastId=st.id,this.scheduleScrollEvent(st,this.router.parseUrl(st.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(st=>{st instanceof lc&&(st.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(st.position):st.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(st.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(st,Ot){this.router.triggerEvent(new lc(st,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ot))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ht.\u0275fac=function(st){u.$Z()},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac}),ht})();function Ml(ht,vt){return{\u0275kind:ht,\u0275providers:vt}}function On(ht){return[{provide:fs,multi:!0,useValue:ht}]}function io(){const ht=(0,u.f3M)(u.zs3);return vt=>{const st=ht.get(u.z2F);if(vt!==st.components[0])return;const Ot=ht.get(Ba),ne=ht.get(sn);1===ht.get(Y)&&Ot.initialNavigation(),ht.get(f_,null,u.XFs.Optional)?.setUpPreloading(),ht.get(pc,null,u.XFs.Optional)?.init(),Ot.resetRootComponentType(st.componentTypes[0]),ne.closed||(ne.next(),ne.unsubscribe())}}const sn=new u.OlP("",{factory:()=>new K.xQ}),Y=new u.OlP("",{providedIn:"root",factory:()=>1});const f_=new u.OlP("");function Sp(ht){return Ml(0,[{provide:f_,useExisting:Au},{provide:yu,useExisting:ht}])}const Es=new u.OlP("ROUTER_FORROOT_GUARD"),kp=[et.Ye,{provide:Ve,useClass:Ne},{provide:Ba,useFactory:na},dc,{provide:Ss,useFactory:function Br(ht){return ht.routerState.root},deps:[Ba]},Us];function E1(){return new u.PXZ("Router",Ba)}let h_=(()=>{class ht{constructor(st){}static forRoot(st,Ot){return{ngModule:ht,providers:[kp,[],On(st),{provide:Es,useFactory:cu,deps:[[Ba,new u.FiY,new u.tp0]]},{provide:ga,useValue:Ot||{}},Ot?.useHash?{provide:et.S$,useClass:et.Do}:{provide:et.S$,useClass:et.b0},{provide:pc,useFactory:()=>{const ht=(0,u.f3M)(Ba),vt=(0,u.f3M)(et.EM),st=(0,u.f3M)(ga);return st.scrollOffset&&vt.setOffset(st.scrollOffset),new Gl(ht,vt,st)}},Ot?.preloadingStrategy?Sp(Ot.preloadingStrategy).\u0275providers:[],{provide:u.PXZ,multi:!0,useFactory:E1},Ot?.initialNavigation?id(Ot):[],[{provide:od,useFactory:io},{provide:u.tb,multi:!0,useExisting:od}]]}}static forChild(st){return{ngModule:ht,providers:[On(st)]}}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(Es,8))},ht.\u0275mod=u.oAB({type:ht}),ht.\u0275inj=u.cJS({imports:[ns]}),ht})();function cu(ht){return"guarded"}function id(ht){return["disabled"===ht.initialNavigation?Ml(3,[{provide:u.ip1,multi:!0,useFactory:()=>{const vt=(0,u.f3M)(Ba);return()=>{vt.setUpLocationChangeListener()}}},{provide:Y,useValue:2}]).\u0275providers:[],"enabledBlocking"===ht.initialNavigation?Ml(2,[{provide:Y,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:vt=>{const st=vt.get(et.V_,Promise.resolve());let Ot=!1;return()=>st.then(()=>new Promise(fe=>{const de=vt.get(Ba),Jt=vt.get(sn);(function ne(fe){vt.get(Ba).events.pipe((0,Zt.h)(Jt=>Jt instanceof Ur||Jt instanceof Oc||Jt instanceof Al),(0,ct.U)(Jt=>Jt instanceof Ur||Jt instanceof Oc&&(0===Jt.code||1===Jt.code)&&null),(0,Zt.h)(Jt=>null!==Jt),(0,Ct.q)(1)).subscribe(()=>{fe()})})(()=>{fe(!0),Ot=!0}),de.afterPreactivation=()=>(fe(!0),Ot||Jt.closed?(0,v.of)(void 0):Jt),de.initialNavigation()}))}}]).\u0275providers:[]]}const od=new u.OlP("")},92216:(tt,W,f)=>{"use strict";f.d(W,{BN:()=>ur,by:()=>Xa,uH:()=>En});var u=f(94650);function d(St,pe){var Te=Object.keys(St);if(Object.getOwnPropertySymbols){var Xe=Object.getOwnPropertySymbols(St);pe&&(Xe=Xe.filter(function(Tn){return Object.getOwnPropertyDescriptor(St,Tn).enumerable})),Te.push.apply(Te,Xe)}return Te}function v(St){for(var pe=1;peSt.length)&&(pe=St.length);for(var Te=0,Xe=new Array(pe);Te0;)pe+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return pe}function we(St){for(var pe=[],Te=(St||[]).length>>>0;Te--;)pe[Te]=St[Te];return pe}function He(St){return St.classList?we(St.classList):(St.getAttribute("class")||"").split(" ").filter(function(pe){return pe})}function kn(St){return"".concat(St).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Bi(St){return Object.keys(St||{}).reduce(function(pe,Te){return pe+"".concat(Te,": ").concat(St[Te].trim(),";")},"")}function un(St){return St.size!==xe.size||St.x!==xe.x||St.y!==xe.y||St.rotate!==xe.rotate||St.flipX||St.flipY}function xi(){var pe=nn,Te=oe.cssPrefix,Xe=oe.replacementClass,Tn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==Te||Xe!==pe){var Xn=new RegExp("\\.".concat("fa","\\-"),"g"),ei=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(pe),"g");Tn=Tn.replace(Xn,".".concat(Te,"-")).replace(ei,"--".concat(Te,"-")).replace(yi,".".concat(Xe))}return Tn}var co=!1;function Co(){oe.autoAddCss&&!co&&(function It(St){if(St&&qe){var pe=Vt.createElement("style");pe.setAttribute("type","text/css"),pe.innerHTML=St;for(var Te=Vt.head.childNodes,Xe=null,Tn=Te.length-1;Tn>-1;Tn--){var Xn=Te[Tn],ei=(Xn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ei)>-1&&(Xe=Xn)}Vt.head.insertBefore(pe,Xe)}}(xi()),co=!0)}var So={mixout:function(){return{dom:{css:xi,insertCss:Co}}},hooks:function(){return{beforeDOMElementCreation:function(){Co()},beforeI2svg:function(){Co()}}}},ma=le||{};ma[Xt]||(ma[Xt]={}),ma[Xt].styles||(ma[Xt].styles={}),ma[Xt].hooks||(ma[Xt].hooks={}),ma[Xt].shims||(ma[Xt].shims=[]);var Ta=ma[Xt],Re=[],Ye=!1;function Me(St){!qe||(Ye?setTimeout(St,0):Re.push(St))}function an(St){var pe=St.tag,Te=St.attributes,Xe=void 0===Te?{}:Te,Tn=St.children,Xn=void 0===Tn?[]:Tn;return"string"==typeof St?kn(St):"<".concat(pe," ").concat(function Ei(St){return Object.keys(St||{}).reduce(function(pe,Te){return pe+"".concat(Te,'="').concat(kn(St[Te]),'" ')},"").trim()}(Xe),">").concat(Xn.map(an).join(""),"")}function j(St,pe,Te){if(St&&St[pe]&&St[pe][Te])return{prefix:pe,iconName:Te,icon:St[pe][Te]}}qe&&((Ye=(Vt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Vt.readyState))||Vt.addEventListener("DOMContentLoaded",function St(){Vt.removeEventListener("DOMContentLoaded",St),Ye=1,Re.map(function(pe){return pe()})}));var J=function(pe,Te,Xe,Tn){var Ui,xo,vi,Xn=Object.keys(pe),ei=Xn.length,yi=void 0!==Tn?function(pe,Te){return function(Xe,Tn,Xn,ei){return pe.call(Te,Xe,Tn,Xn,ei)}}(Te,Tn):Te;for(void 0===Xe?(Ui=1,vi=pe[Xn[0]]):(Ui=0,vi=Xe);Ui=55296&&Tn<=56319&&Te2&&void 0!==arguments[2]?arguments[2]:{},Xe=Te.skipHooks,Tn=void 0!==Xe&&Xe,Xn=Xi(pe);"function"!=typeof Ta.hooks.addPack||Tn?Ta.styles[St]=v(v({},Ta.styles[St]||{}),Xn):Ta.hooks.addPack(St,Xi(pe)),"fas"===St&&To("fa",pe)}var fr,jr,Ja,Or=Ta.styles,cc=Ta.shims,nr=(P(fr={},We,Object.values(ue[We])),P(fr,ee,Object.values(ue[ee])),fr),ls=null,Ar={},Ur={},Oc={},Al={},Js={},Ps=(P(jr={},We,Object.keys(At[We])),P(jr,ee,Object.keys(At[ee])),jr);function Lc(St,pe){var Te=pe.split("-"),Xe=Te[0],Tn=Te.slice(1).join("-");return Xe!==St||""===Tn||function Qs(St){return~Qe.indexOf(St)}(Tn)?null:Tn}var us=function(){var pe=function(Xn){return J(Or,function(ei,yi,Ui){return ei[Ui]=J(yi,Xn,{}),ei},{})};Ar=pe(function(Tn,Xn,ei){return Xn[3]&&(Tn[Xn[3]]=ei),Xn[2]&&Xn[2].filter(function(Ui){return"number"==typeof Ui}).forEach(function(Ui){Tn[Ui.toString(16)]=ei}),Tn}),Ur=pe(function(Tn,Xn,ei){return Tn[ei]=ei,Xn[2]&&Xn[2].filter(function(Ui){return"string"==typeof Ui}).forEach(function(Ui){Tn[Ui]=ei}),Tn}),Js=pe(function(Tn,Xn,ei){var yi=Xn[2];return Tn[ei]=ei,yi.forEach(function(Ui){Tn[Ui]=ei}),Tn});var Te="far"in Or||oe.autoFetchSvg,Xe=J(cc,function(Tn,Xn){var ei=Xn[0],yi=Xn[1],Ui=Xn[2];return"far"===yi&&!Te&&(yi="fas"),"string"==typeof ei&&(Tn.names[ei]={prefix:yi,iconName:Ui}),"number"==typeof ei&&(Tn.unicodes[ei.toString(16)]={prefix:yi,iconName:Ui}),Tn},{names:{},unicodes:{}});Oc=Xe.names,Al=Xe.unicodes,ls=uc(oe.styleDefault,{family:oe.familyDefault})};function Hs(St,pe){return(Ar[St]||{})[pe]}function Lr(St,pe){return(Js[St]||{})[pe]}function Ad(St){return Oc[St]||{prefix:null,iconName:null}}function Vc(){return ls}function uc(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=pe.family,Xe=void 0===Te?We:Te,Tn=At[Xe][St],Xn=Ht[Xe][St]||Ht[Xe][Tn],ei=St in Ta.styles?St:null;return Xn||ei||null}(function gn(St){rn.push(St)})(function(St){ls=uc(St.styleDefault,{family:oe.familyDefault})}),us();var Bc=(P(Ja={},We,Object.keys(ue[We])),P(Ja,ee,Object.keys(ue[ee])),Ja);function Gc(St){var pe,Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xe=Te.skipLookups,Tn=void 0!==Xe&&Xe,Xn=(P(pe={},We,"".concat(oe.cssPrefix,"-").concat(We)),P(pe,ee,"".concat(oe.cssPrefix,"-").concat(ee)),pe),ei=null,yi=We;(St.includes(Xn[We])||St.some(function(xo){return Bc[We].includes(xo)}))&&(yi=We),(St.includes(Xn[ee])||St.some(function(xo){return Bc[ee].includes(xo)}))&&(yi=ee);var Ui=St.reduce(function(xo,vi){var zi=Lc(oe.cssPrefix,vi);if(Or[vi]?(vi=nr[yi].includes(vi)?ye[yi][vi]:vi,ei=vi,xo.prefix=vi):Ps[yi].indexOf(vi)>-1?(ei=vi,xo.prefix=uc(vi,{family:yi})):zi?xo.iconName=zi:vi!==oe.replacementClass&&vi!==Xn[We]&&vi!==Xn[ee]&&xo.rest.push(vi),!Tn&&xo.prefix&&xo.iconName){var ua="fa"===ei?Ad(xo.iconName):{},ea=Lr(xo.prefix,xo.iconName);ua.prefix&&(ei=null),xo.iconName=ua.iconName||ea||xo.iconName,xo.prefix=ua.prefix||xo.prefix,"far"===xo.prefix&&!Or.far&&Or.fas&&!oe.autoFetchSvg&&(xo.prefix="fas")}return xo},{prefix:null,iconName:null,rest:[]});return(St.includes("fa-brands")||St.includes("fab"))&&(Ui.prefix="fab"),(St.includes("fa-duotone")||St.includes("fad"))&&(Ui.prefix="fad"),!Ui.prefix&&yi===ee&&(Or.fass||oe.autoFetchSvg)&&(Ui.prefix="fass",Ui.iconName=Lr(Ui.prefix,Ui.iconName)||Ui.iconName),("fa"===Ui.prefix||"fa"===ei)&&(Ui.prefix=Vc()||"fas"),Ui}var js=function(){function St(){(function T(St,pe){if(!(St instanceof pe))throw new TypeError("Cannot call a class as a function")})(this,St),this.definitions={}}return function w(St,pe,Te){pe&&U(St.prototype,pe),Te&&U(St,Te),Object.defineProperty(St,"prototype",{writable:!1})}(St,[{key:"add",value:function(){for(var Te=this,Xe=arguments.length,Tn=new Array(Xe),Xn=0;Xn0&&vi.forEach(function(zi){"string"==typeof zi&&(Te[yi][zi]=xo)}),Te[yi][Ui]=xo}),Te}}]),St}(),xc=[],Ws={},sl={},$u=Object.keys(sl);function Ss(St,pe){for(var Te=arguments.length,Xe=new Array(Te>2?Te-2:0),Tn=2;Tn1?pe-1:0),Xe=1;Xe0&&void 0!==arguments[0]?arguments[0]:{};return qe?(Ul("beforeI2svg",pe),Ys("pseudoElements2svg",pe),Ys("i2svg",pe)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Te=pe.autoReplaceSvgRoot;!1===oe.autoReplaceSvg&&(oe.autoReplaceSvg=!0),oe.observeMutations=!0,Me(function(){ir({autoReplaceSvgRoot:Te}),Ul("watch",pe)})}},xa={noAuto:function(){oe.autoReplaceSvg=!1,oe.observeMutations=!1,Ul("noAuto")},config:oe,dom:iu,parse:{icon:function(pe){if(null===pe)return null;if("object"===g(pe)&&pe.prefix&&pe.iconName)return{prefix:pe.prefix,iconName:Lr(pe.prefix,pe.iconName)||pe.iconName};if(Array.isArray(pe)&&2===pe.length){var Te=0===pe[1].indexOf("fa-")?pe[1].slice(3):pe[1],Xe=uc(pe[0]);return{prefix:Xe,iconName:Lr(Xe,Te)||Te}}if("string"==typeof pe&&(pe.indexOf("".concat(oe.cssPrefix,"-"))>-1||pe.match(Se))){var Tn=Gc(pe.split(" "),{skipLookups:!0});return{prefix:Tn.prefix||Vc(),iconName:Lr(Tn.prefix,Tn.iconName)||Tn.iconName}}if("string"==typeof pe){var Xn=Vc();return{prefix:Xn,iconName:Lr(Xn,pe)||pe}}}},library:$s,findIconDefinition:Jc,toHtml:an},ir=function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Te=pe.autoReplaceSvgRoot,Xe=void 0===Te?Vt:Te;(Object.keys(Ta.styles).length>0||oe.autoFetchSvg)&&qe&&oe.autoReplaceSvg&&xa.dom.i2svg({node:Xe})};function bc(St,pe){return Object.defineProperty(St,"abstract",{get:pe}),Object.defineProperty(St,"html",{get:function(){return St.abstract.map(function(Xe){return an(Xe)})}}),Object.defineProperty(St,"node",{get:function(){if(qe){var Xe=Vt.createElement("div");return Xe.innerHTML=St.html,Xe.children}}}),St}function Ia(St){var pe=St.icons,Te=pe.main,Xe=pe.mask,Tn=St.prefix,Xn=St.iconName,ei=St.transform,yi=St.symbol,Ui=St.title,xo=St.maskId,vi=St.titleId,zi=St.extra,ua=St.watchable,ea=void 0!==ua&&ua,ga=Xe.found?Xe:Te,$r=ga.width,fs=ga.height,Us="fak"===Tn,Kr=[oe.replacementClass,Xn?"".concat(oe.cssPrefix,"-").concat(Xn):""].filter(function(rr){return-1===zi.classes.indexOf(rr)}).filter(function(rr){return""!==rr||!!rr}).concat(zi.classes).join(" "),Vr={children:[],attributes:v(v({},zi.attributes),{},{"data-prefix":Tn,"data-icon":Xn,class:Kr,role:zi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat($r," ").concat(fs)})},os=Us&&!~zi.classes.indexOf("fa-fw")?{width:"".concat($r/fs*16*.0625,"em")}:{};ea&&(Vr.attributes[hn]=""),Ui&&(Vr.children.push({tag:"title",attributes:{id:Vr.attributes["aria-labelledby"]||"title-".concat(vi||zt())},children:[Ui]}),delete Vr.attributes.title);var tc=v(v({},Vr),{},{prefix:Tn,iconName:Xn,main:Te,mask:Xe,maskId:xo,transform:ei,symbol:yi,styles:v(v({},os),zi.styles)}),ec=Xe.found&&Te.found?Ys("generateAbstractMask",tc)||{children:[],attributes:{}}:Ys("generateAbstractIcon",tc)||{children:[],attributes:{}},o1=ec.attributes;return tc.children=ec.children,tc.attributes=o1,yi?function Ku(St){var Te=St.iconName,Xe=St.children,Tn=St.attributes,Xn=St.symbol,ei=!0===Xn?"".concat(St.prefix,"-").concat(oe.cssPrefix,"-").concat(Te):Xn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},Tn),{},{id:ei}),children:Xe}]}]}(tc):function vu(St){var pe=St.children,Te=St.main,Xe=St.mask,Tn=St.attributes,Xn=St.styles,ei=St.transform;if(un(ei)&&Te.found&&!Xe.found){var xo={x:Te.width/Te.height/2,y:.5};Tn.style=Bi(v(v({},Xn),{},{"transform-origin":"".concat(xo.x+ei.x/16,"em ").concat(xo.y+ei.y/16,"em")}))}return[{tag:"svg",attributes:Tn,children:pe}]}(tc)}function ou(St){var pe=St.content,Te=St.width,Xe=St.height,Tn=St.transform,Xn=St.title,ei=St.extra,yi=St.watchable,Ui=void 0!==yi&&yi,xo=v(v(v({},ei.attributes),Xn?{title:Xn}:{}),{},{class:ei.classes.join(" ")});Ui&&(xo[hn]="");var vi=v({},ei.styles);un(Tn)&&(vi.transform=function Ke(St){var pe=St.transform,Te=St.width,Tn=St.height,Xn=void 0===Tn?16:Tn,ei=St.startCentered,yi=void 0!==ei&&ei,Ui="";return Ui+=yi&&je?"translate(".concat(pe.x/16-(void 0===Te?16:Te)/2,"em, ").concat(pe.y/16-Xn/2,"em) "):yi?"translate(calc(-50% + ".concat(pe.x/16,"em), calc(-50% + ").concat(pe.y/16,"em)) "):"translate(".concat(pe.x/16,"em, ").concat(pe.y/16,"em) "),(Ui+="scale(".concat(pe.size/16*(pe.flipX?-1:1),", ").concat(pe.size/16*(pe.flipY?-1:1),") "))+"rotate(".concat(pe.rotate,"deg) ")}({transform:Tn,startCentered:!0,width:Te,height:Xe}),vi["-webkit-transform"]=vi.transform);var zi=Bi(vi);zi.length>0&&(xo.style=zi);var ua=[];return ua.push({tag:"span",attributes:xo,children:[pe]}),Xn&&ua.push({tag:"span",attributes:{class:"sr-only"},children:[Xn]}),ua}function Cs(St){var pe=St.content,Te=St.title,Xe=St.extra,Tn=v(v(v({},Xe.attributes),Te?{title:Te}:{}),{},{class:Xe.classes.join(" ")}),Xn=Bi(Xe.styles);Xn.length>0&&(Tn.style=Xn);var ei=[];return ei.push({tag:"span",attributes:Tn,children:[pe]}),Te&&ei.push({tag:"span",attributes:{class:"sr-only"},children:[Te]}),ei}var ys=Ta.styles;function Vl(St){var pe=St[0],Te=St[1],Xn=N(St.slice(4),1)[0];return{found:!0,width:pe,height:Te,icon:Array.isArray(Xn)?{tag:"g",attributes:{class:"".concat(oe.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(oe.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Xn[0]}},{tag:"path",attributes:{class:"".concat(oe.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Xn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Xn}}}}var Pr={found:!1,width:512,height:512};function Ha(St,pe){var Te=pe;return"fa"===pe&&null!==oe.styleDefault&&(pe=Vc()),new Promise(function(Xe,Tn){if(Ys("missingIconAbstract"),"fa"===Te){var ei=Ad(St)||{};St=ei.iconName||St,pe=ei.prefix||pe}if(St&&pe&&ys[pe]&&ys[pe][St])return Xe(Vl(ys[pe][St]));(function dc(St,pe){!oi&&!oe.showMissingIcons&&St&&console.error('Icon with name "'.concat(St,'" and prefix "').concat(pe,'" is missing.'))})(St,pe),Xe(v(v({},Pr),{},{icon:oe.showMissingIcons&&St&&Ys("missingIconAbstract")||{}}))})}var Ya=function(){},wr=oe.measurePerformance&&ge&&ge.mark&&ge.measure?ge:{mark:Ya,measure:Ya},xr='FA "6.2.1"',zs_begin=function(pe){return wr.mark("".concat(xr," ").concat(pe," begins")),function(){return function(pe){wr.mark("".concat(xr," ").concat(pe," ends")),wr.measure("".concat(xr," ").concat(pe),"".concat(xr," ").concat(pe," begins"),"".concat(xr," ").concat(pe," ends"))}(pe)}},ds=function(){};function wa(St){return"string"==typeof(St.getAttribute?St.getAttribute(hn):null)}function ks(St){return Vt.createElementNS("http://www.w3.org/2000/svg",St)}function Ks(St){return Vt.createElement(St)}function Os(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=pe.ceFn,Xe=void 0===Te?"svg"===St.tag?ks:Ks:Te;if("string"==typeof St)return Vt.createTextNode(St);var Tn=Xe(St.tag);Object.keys(St.attributes||[]).forEach(function(ei){Tn.setAttribute(ei,St.attributes[ei])});var Xn=St.children||[];return Xn.forEach(function(ei){Tn.appendChild(Os(ei,{ceFn:Xe}))}),Tn}var ao={replace:function(pe){var Te=pe[0];if(Te.parentNode)if(pe[1].forEach(function(Tn){Te.parentNode.insertBefore(Os(Tn),Te)}),null===Te.getAttribute(hn)&&oe.keepOriginalSource){var Xe=Vt.createComment(function za(St){var pe=" ".concat(St.outerHTML," ");return"".concat(pe,"Font Awesome fontawesome.com ")}(Te));Te.parentNode.replaceChild(Xe,Te)}else Te.remove()},nest:function(pe){var Te=pe[0],Xe=pe[1];if(~He(Te).indexOf(oe.replacementClass))return ao.replace(pe);var Tn=new RegExp("".concat(oe.cssPrefix,"-.*"));if(delete Xe[0].attributes.id,Xe[0].attributes.class){var Xn=Xe[0].attributes.class.split(" ").reduce(function(yi,Ui){return Ui===oe.replacementClass||Ui.match(Tn)?yi.toSvg.push(Ui):yi.toNode.push(Ui),yi},{toNode:[],toSvg:[]});Xe[0].attributes.class=Xn.toSvg.join(" "),0===Xn.toNode.length?Te.removeAttribute("class"):Te.setAttribute("class",Xn.toNode.join(" "))}var ei=Xe.map(function(yi){return an(yi)}).join("\n");Te.setAttribute(hn,""),Te.innerHTML=ei}};function Er(St){St()}function lr(St,pe){var Te="function"==typeof pe?pe:ds;if(0===St.length)Te();else{var Xe=Er;"async"===oe.mutateApproach&&(Xe=le.requestAnimationFrame||Er),Xe(function(){var Tn=function As(){return!0===oe.autoReplaceSvg?ao.replace:ao[oe.autoReplaceSvg]||ao.replace}(),Xn=zs_begin("mutate");St.map(Tn),Xn(),Te()})}}var zr=!1;function Ec(){zr=!0}function cl(){zr=!1}var Cc=null;function Ud(St){if(be&&oe.observeMutations){var pe=St.treeCallback,Te=void 0===pe?ds:pe,Xe=St.nodeCallback,Tn=void 0===Xe?ds:Xe,Xn=St.pseudoElementsCallback,ei=void 0===Xn?ds:Xn,yi=St.observeMutationsRoot,Ui=void 0===yi?Vt:yi;Cc=new be(function(xo){if(!zr){var vi=Vc();we(xo).forEach(function(zi){if("childList"===zi.type&&zi.addedNodes.length>0&&!wa(zi.addedNodes[0])&&(oe.searchPseudoElements&&ei(zi.target),Te(zi.target)),"attributes"===zi.type&&zi.target.parentNode&&oe.searchPseudoElements&&ei(zi.target.parentNode),"attributes"===zi.type&&wa(zi.target)&&~hi.indexOf(zi.attributeName))if("class"===zi.attributeName&&function is(St){var pe=St.getAttribute?St.getAttribute(Oe):null,Te=St.getAttribute?St.getAttribute(dn):null;return pe&&Te}(zi.target)){var ua=Gc(He(zi.target)),ga=ua.iconName;zi.target.setAttribute(Oe,ua.prefix||vi),ga&&zi.target.setAttribute(dn,ga)}else(function Ts(St){return St&&St.classList&&St.classList.contains&&St.classList.contains(oe.replacementClass)})(zi.target)&&Tn(zi.target)})}}),qe&&Cc.observe(Ui,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Qi(St){var pe=St.getAttribute("style"),Te=[];return pe&&(Te=pe.split(";").reduce(function(Xe,Tn){var Xn=Tn.split(":"),ei=Xn[0],yi=Xn.slice(1);return ei&&yi.length>0&&(Xe[ei]=yi.join(":").trim()),Xe},{})),Te}function la(St){var pe=St.getAttribute("data-prefix"),Te=St.getAttribute("data-icon"),Xe=void 0!==St.innerText?St.innerText.trim():"",Tn=Gc(He(St));return Tn.prefix||(Tn.prefix=Vc()),pe&&Te&&(Tn.prefix=pe,Tn.iconName=Te),Tn.iconName&&Tn.prefix||(Tn.prefix&&Xe.length>0&&(Tn.iconName=function t1(St,pe){return(Ur[St]||{})[pe]}(Tn.prefix,St.innerText)||Hs(Tn.prefix,ze(St.innerText))),!Tn.iconName&&oe.autoFetchSvg&&St.firstChild&&St.firstChild.nodeType===Node.TEXT_NODE&&(Tn.iconName=St.firstChild.data)),Tn}function or(St){var pe=we(St.attributes).reduce(function(Tn,Xn){return"class"!==Tn.name&&"style"!==Tn.name&&(Tn[Xn.name]=Xn.value),Tn},{}),Te=St.getAttribute("title"),Xe=St.getAttribute("data-fa-title-id");return oe.autoA11y&&(Te?pe["aria-labelledby"]="".concat(oe.replacementClass,"-title-").concat(Xe||zt()):(pe["aria-hidden"]="true",pe.focusable="false")),pe}function Qa(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Te=la(St),Xe=Te.iconName,Tn=Te.prefix,Xn=Te.rest,ei=or(St),yi=Ss("parseNodeAttributes",{},St),Ui=pe.styleParser?Qi(St):[];return v({iconName:Xe,title:St.getAttribute("title"),titleId:St.getAttribute("data-fa-title-id"),prefix:Tn,transform:xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Xn,styles:Ui,attributes:ei}},yi)}var re=Ta.styles;function $t(St){var pe="nest"===oe.autoReplaceSvg?Qa(St,{styleParser:!1}):Qa(St);return~pe.extra.classes.indexOf(vn)?Ys("generateLayersText",St,pe):Ys("generateSvgReplacementMutation",St,pe)}var Nt=new Set;function nt(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!qe)return Promise.resolve();var Te=Vt.documentElement.classList,Xe=function(zi){return Te.add("".concat(Pn,"-").concat(zi))},Tn=function(zi){return Te.remove("".concat(Pn,"-").concat(zi))},Xn=oe.autoFetchSvg?Nt:ot.map(function(vi){return"fa-".concat(vi)}).concat(Object.keys(re));Xn.includes("fa")||Xn.push("fa");var ei=[".".concat(vn,":not([").concat(hn,"])")].concat(Xn.map(function(vi){return".".concat(vi,":not([").concat(hn,"])")})).join(", ");if(0===ei.length)return Promise.resolve();var yi=[];try{yi=we(St.querySelectorAll(ei))}catch{}if(!(yi.length>0))return Promise.resolve();Xe("pending"),Tn("complete");var Ui=zs_begin("onTree"),xo=yi.reduce(function(vi,zi){try{var ua=$t(zi);ua&&vi.push(ua)}catch(ea){oi||"MissingIcon"===ea.name&&console.error(ea)}return vi},[]);return new Promise(function(vi,zi){Promise.all(xo).then(function(ua){lr(ua,function(){Xe("active"),Xe("complete"),Tn("pending"),"function"==typeof pe&&pe(),Ui(),vi()})}).catch(function(ua){Ui(),zi(ua)})})}function wi(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$t(St).then(function(Te){Te&&lr([Te],pe)})}ot.map(function(St){Nt.add("fa-".concat(St))}),Object.keys(At[We]).map(Nt.add.bind(Nt)),Object.keys(At[ee]).map(Nt.add.bind(Nt)),Nt=B(Nt);var Aa=function(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xe=Te.transform,Tn=void 0===Xe?xe:Xe,Xn=Te.symbol,ei=void 0!==Xn&&Xn,yi=Te.mask,Ui=void 0===yi?null:yi,xo=Te.maskId,vi=void 0===xo?null:xo,zi=Te.title,ua=void 0===zi?null:zi,ea=Te.titleId,ga=void 0===ea?null:ea,$r=Te.classes,fs=void 0===$r?[]:$r,Us=Te.attributes,Kr=void 0===Us?{}:Us,Vr=Te.styles,os=void 0===Vr?{}:Vr;if(pe){var tc=pe.prefix,ec=pe.iconName,ws=pe.icon;return bc(v({type:"icon"},pe),function(){return Ul("beforeDOMElementCreation",{iconDefinition:pe,params:Te}),oe.autoA11y&&(ua?Kr["aria-labelledby"]="".concat(oe.replacementClass,"-title-").concat(ga||zt()):(Kr["aria-hidden"]="true",Kr.focusable="false")),Ia({icons:{main:Vl(ws),mask:Ui?Vl(Ui.icon):{found:!1,width:null,height:null,icon:{}}},prefix:tc,iconName:ec,transform:v(v({},xe),Tn),symbol:ei,title:ua,maskId:vi,titleId:ga,extra:{attributes:Kr,styles:os,classes:fs}})})}},Qc={mixout:function(){return{icon:(St=Aa,function(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xe=(pe||{}).icon?pe:Jc(pe||{}),Tn=Te.mask;return Tn&&(Tn=(Tn||{}).icon?Tn:Jc(Tn||{})),St(Xe,v(v({},Te),{},{mask:Tn}))})};var St},hooks:function(){return{mutationObserverCallbacks:function(Te){return Te.treeCallback=nt,Te.nodeCallback=wi,Te}}},provides:function(pe){pe.i2svg=function(Te){var Xe=Te.node,Xn=Te.callback;return nt(void 0===Xe?Vt:Xe,void 0===Xn?function(){}:Xn)},pe.generateSvgReplacementMutation=function(Te,Xe){var Tn=Xe.iconName,Xn=Xe.title,ei=Xe.titleId,yi=Xe.prefix,Ui=Xe.transform,xo=Xe.symbol,vi=Xe.mask,zi=Xe.maskId,ua=Xe.extra;return new Promise(function(ea,ga){Promise.all([Ha(Tn,yi),vi.iconName?Ha(vi.iconName,vi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function($r){var fs=N($r,2);ea([Te,Ia({icons:{main:fs[0],mask:fs[1]},prefix:yi,iconName:Tn,transform:Ui,symbol:xo,maskId:zi,title:Xn,titleId:ei,extra:ua,watchable:!0})])}).catch(ga)})},pe.generateAbstractIcon=function(Te){var xo,Xe=Te.children,Tn=Te.attributes,Xn=Te.main,ei=Te.transform,Ui=Bi(Te.styles);return Ui.length>0&&(Tn.style=Ui),un(ei)&&(xo=Ys("generateAbstractTransformGrouping",{main:Xn,transform:ei,containerWidth:Xn.width,iconWidth:Xn.width})),Xe.push(xo||Xn.icon),{children:Xe,attributes:Tn}}}},Fc={mixout:function(){return{layer:function(Te){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tn=Xe.classes,Xn=void 0===Tn?[]:Tn;return bc({type:"layer"},function(){Ul("beforeDOMElementCreation",{assembler:Te,params:Xe});var ei=[];return Te(function(yi){Array.isArray(yi)?yi.map(function(Ui){ei=ei.concat(Ui.abstract)}):ei=ei.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(oe.cssPrefix,"-layers")].concat(B(Xn)).join(" ")},children:ei}]})}}}},Fr={mixout:function(){return{counter:function(Te){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tn=Xe.title,Xn=void 0===Tn?null:Tn,ei=Xe.classes,yi=void 0===ei?[]:ei,Ui=Xe.attributes,xo=void 0===Ui?{}:Ui,vi=Xe.styles,zi=void 0===vi?{}:vi;return bc({type:"counter",content:Te},function(){return Ul("beforeDOMElementCreation",{content:Te,params:Xe}),Cs({content:Te.toString(),title:Xn,extra:{attributes:xo,styles:zi,classes:["".concat(oe.cssPrefix,"-layers-counter")].concat(B(yi))}})})}}}},Nr={mixout:function(){return{text:function(Te){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tn=Xe.transform,Xn=void 0===Tn?xe:Tn,ei=Xe.title,yi=void 0===ei?null:ei,Ui=Xe.classes,xo=void 0===Ui?[]:Ui,vi=Xe.attributes,zi=void 0===vi?{}:vi,ua=Xe.styles,ea=void 0===ua?{}:ua;return bc({type:"text",content:Te},function(){return Ul("beforeDOMElementCreation",{content:Te,params:Xe}),ou({content:Te,transform:v(v({},xe),Xn),title:yi,extra:{attributes:zi,styles:ea,classes:["".concat(oe.cssPrefix,"-layers-text")].concat(B(xo))}})})}}},provides:function(pe){pe.generateLayersText=function(Te,Xe){var Tn=Xe.title,Xn=Xe.transform,ei=Xe.extra,yi=null,Ui=null;if(je){var xo=parseInt(getComputedStyle(Te).fontSize,10),vi=Te.getBoundingClientRect();yi=vi.width/xo,Ui=vi.height/xo}return oe.autoA11y&&!Tn&&(ei.attributes["aria-hidden"]="true"),Promise.resolve([Te,ou({content:Te.innerHTML,width:yi,height:Ui,transform:Xn,title:Tn,extra:ei,watchable:!0})])}}},xu=new RegExp('"',"ug"),Va=[1105920,1112319];function k1(St,pe){var Te="".concat("data-fa-pseudo-element-pending").concat(pe.replace(":","-"));return new Promise(function(Xe,Tn){if(null!==St.getAttribute(Te))return Xe();var ei=we(St.children).filter(function(ws){return ws.getAttribute(Ce)===pe})[0],yi=le.getComputedStyle(St,pe),Ui=yi.getPropertyValue("font-family").match(qn),xo=yi.getPropertyValue("font-weight"),vi=yi.getPropertyValue("content");if(ei&&!Ui)return St.removeChild(ei),Xe();if(Ui&&"none"!==vi&&""!==vi){var zi=yi.getPropertyValue("content"),ua=~["Sharp"].indexOf(Ui[2])?ee:We,ea=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ui[2])?Ht[ua][Ui[2].toLowerCase()]:mi[ua][xo],ga=function jc(St){var pe=St.replace(xu,""),Te=function Vn(St,pe){var Tn,Te=St.length,Xe=St.charCodeAt(pe);return Xe>=55296&&Xe<=56319&&Te>pe+1&&(Tn=St.charCodeAt(pe+1))>=56320&&Tn<=57343?1024*(Xe-55296)+Tn-56320+65536:Xe}(pe,0),Xe=Te>=Va[0]&&Te<=Va[1],Tn=2===pe.length&&pe[0]===pe[1];return{value:ze(Tn?pe[0]:pe),isSecondary:Xe||Tn}}(zi),$r=ga.value,fs=ga.isSecondary,Us=Ui[0].startsWith("FontAwesome"),Kr=Hs(ea,$r),Vr=Kr;if(Us){var os=function e1(St){var pe=Al[St],Te=Hs("fas",St);return pe||(Te?{prefix:"fas",iconName:Te}:null)||{prefix:null,iconName:null}}($r);os.iconName&&os.prefix&&(Kr=os.iconName,ea=os.prefix)}if(!Kr||fs||ei&&ei.getAttribute(Oe)===ea&&ei.getAttribute(dn)===Vr)Xe();else{St.setAttribute(Te,Vr),ei&&St.removeChild(ei);var tc=function Wr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ec=tc.extra;ec.attributes[Ce]=pe,Ha(Kr,ea).then(function(ws){var o1=Ia(v(v({},tc),{},{icons:{main:ws,mask:{prefix:null,iconName:null,rest:[]}},prefix:ea,iconName:Vr,extra:ec,watchable:!0})),rr=Vt.createElement("svg");"::before"===pe?St.insertBefore(rr,St.firstChild):St.appendChild(rr),rr.outerHTML=o1.map(function(na){return an(na)}).join("\n"),St.removeAttribute(Te),Xe()}).catch(Tn)}}else Xe()})}function wd(St){return Promise.all([k1(St,"::before"),k1(St,"::after")])}function O1(St){return!(St.parentNode===document.head||~_i.indexOf(St.tagName.toUpperCase())||St.getAttribute(Ce)||St.parentNode&&"svg"===St.parentNode.tagName)}function n1(St){if(qe)return new Promise(function(pe,Te){var Xe=we(St.querySelectorAll("*")).filter(O1).map(wd),Tn=zs_begin("searchPseudoElements");Ec(),Promise.all(Xe).then(function(){Tn(),cl(),pe()}).catch(function(){Tn(),cl(),Te()})})}var Nc=!1,ll=function(pe){return pe.toLowerCase().split(" ").reduce(function(Xe,Tn){var Xn=Tn.toLowerCase().split("-"),ei=Xn[0],yi=Xn.slice(1).join("-");if(ei&&"h"===yi)return Xe.flipX=!0,Xe;if(ei&&"v"===yi)return Xe.flipY=!0,Xe;if(yi=parseFloat(yi),isNaN(yi))return Xe;switch(ei){case"grow":Xe.size=Xe.size+yi;break;case"shrink":Xe.size=Xe.size-yi;break;case"left":Xe.x=Xe.x-yi;break;case"right":Xe.x=Xe.x+yi;break;case"up":Xe.y=Xe.y-yi;break;case"down":Xe.y=Xe.y+yi;break;case"rotate":Xe.rotate=Xe.rotate+yi}return Xe},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Zl={x:0,y:0,width:"100%",height:"100%"};function yc(St){var pe=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return St.attributes&&(St.attributes.fill||pe)&&(St.attributes.fill="black"),St}!function Yl(St,pe){var Te=pe.mixoutsTo;xc=St,Ws={},Object.keys(sl).forEach(function(Xe){-1===$u.indexOf(Xe)&&delete sl[Xe]}),xc.forEach(function(Xe){var Tn=Xe.mixout?Xe.mixout():{};if(Object.keys(Tn).forEach(function(ei){"function"==typeof Tn[ei]&&(Te[ei]=Tn[ei]),"object"===g(Tn[ei])&&Object.keys(Tn[ei]).forEach(function(yi){Te[ei]||(Te[ei]={}),Te[ei][yi]=Tn[ei][yi]})}),Xe.hooks){var Xn=Xe.hooks();Object.keys(Xn).forEach(function(ei){Ws[ei]||(Ws[ei]=[]),Ws[ei].push(Xn[ei])})}Xe.provides&&Xe.provides(sl)})}([So,Qc,Fc,Fr,Nr,{hooks:function(){return{mutationObserverCallbacks:function(Te){return Te.pseudoElementsCallback=n1,Te}}},provides:function(pe){pe.pseudoElements2svg=function(Te){var Xe=Te.node;oe.searchPseudoElements&&n1(void 0===Xe?Vt:Xe)}}},{mixout:function(){return{dom:{unwatch:function(){Ec(),Nc=!0}}}},hooks:function(){return{bootstrap:function(){Ud(Ss("mutationObserverCallbacks",{}))},noAuto:function(){!function ps(){!Cc||Cc.disconnect()}()},watch:function(Te){var Xe=Te.observeMutationsRoot;Nc?cl():Ud(Ss("mutationObserverCallbacks",{observeMutationsRoot:Xe}))}}}},{mixout:function(){return{parse:{transform:function(Te){return ll(Te)}}}},hooks:function(){return{parseNodeAttributes:function(Te,Xe){var Tn=Xe.getAttribute("data-fa-transform");return Tn&&(Te.transform=ll(Tn)),Te}}},provides:function(pe){pe.generateAbstractTransformGrouping=function(Te){var Xe=Te.main,Tn=Te.transform,ei=Te.iconWidth,yi={transform:"translate(".concat(Te.containerWidth/2," 256)")},Ui="translate(".concat(32*Tn.x,", ").concat(32*Tn.y,") "),xo="scale(".concat(Tn.size/16*(Tn.flipX?-1:1),", ").concat(Tn.size/16*(Tn.flipY?-1:1),") "),vi="rotate(".concat(Tn.rotate," 0 0)"),ea={outer:yi,inner:{transform:"".concat(Ui," ").concat(xo," ").concat(vi)},path:{transform:"translate(".concat(ei/2*-1," -256)")}};return{tag:"g",attributes:v({},ea.outer),children:[{tag:"g",attributes:v({},ea.inner),children:[{tag:Xe.icon.tag,children:Xe.icon.children,attributes:v(v({},Xe.icon.attributes),ea.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Te,Xe){var Tn=Xe.getAttribute("data-fa-mask"),Xn=Tn?Gc(Tn.split(" ").map(function(ei){return ei.trim()})):{prefix:null,iconName:null,rest:[]};return Xn.prefix||(Xn.prefix=Vc()),Te.mask=Xn,Te.maskId=Xe.getAttribute("data-fa-mask-id"),Te}}},provides:function(pe){pe.generateAbstractMask=function(Te){var St,Xe=Te.children,Tn=Te.attributes,Xn=Te.main,ei=Te.mask,yi=Te.maskId,vi=Xn.icon,ua=ei.icon,ea=function _n(St){var pe=St.transform,Xe=St.iconWidth,Tn={transform:"translate(".concat(St.containerWidth/2," 256)")},Xn="translate(".concat(32*pe.x,", ").concat(32*pe.y,") "),ei="scale(".concat(pe.size/16*(pe.flipX?-1:1),", ").concat(pe.size/16*(pe.flipY?-1:1),") "),yi="rotate(".concat(pe.rotate," 0 0)");return{outer:Tn,inner:{transform:"".concat(Xn," ").concat(ei," ").concat(yi)},path:{transform:"translate(".concat(Xe/2*-1," -256)")}}}({transform:Te.transform,containerWidth:ei.width,iconWidth:Xn.width}),ga={tag:"rect",attributes:v(v({},Zl),{},{fill:"white"})},$r=vi.children?{children:vi.children.map(yc)}:{},fs={tag:"g",attributes:v({},ea.inner),children:[yc(v({tag:vi.tag,attributes:v(v({},vi.attributes),ea.path)},$r))]},Us={tag:"g",attributes:v({},ea.outer),children:[fs]},Kr="mask-".concat(yi||zt()),Vr="clip-".concat(yi||zt()),os={tag:"mask",attributes:v(v({},Zl),{},{id:Kr,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ga,Us]},tc={tag:"defs",children:[{tag:"clipPath",attributes:{id:Vr},children:(St=ua,"g"===St.tag?St.children:[St])},os]};return Xe.push(tc,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(Vr,")"),mask:"url(#".concat(Kr,")")},Zl)}),{children:Xe,attributes:Tn}}}},{provides:function(pe){var Te=!1;le.matchMedia&&(Te=le.matchMedia("(prefers-reduced-motion: reduce)").matches),pe.missingIconAbstract=function(){var Xe=[],Tn={fill:"currentColor"},Xn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Xe.push({tag:"path",attributes:v(v({},Tn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ei=v(v({},Xn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:v(v({},Tn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Te||yi.children.push({tag:"animate",attributes:v(v({},Xn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},ei),{},{values:"1;0;1;1;0;1;"})}),Xe.push(yi),Xe.push({tag:"path",attributes:v(v({},Tn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Te?[]:[{tag:"animate",attributes:v(v({},ei),{},{values:"1;0;0;0;0;1;"})}]}),Te||Xe.push({tag:"path",attributes:v(v({},Tn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:v(v({},ei),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Xe}}}},{hooks:function(){return{parseNodeAttributes:function(Te,Xe){var Tn=Xe.getAttribute("data-fa-symbol");return Te.symbol=null!==Tn&&(""===Tn||Tn),Te}}}}],{mixoutsTo:xa});var Da=xa.parse,vo=xa.icon,Mi=f(11481);const Lo=["*"],gr=St=>{const pe={"fa-spin":St.spin,"fa-pulse":St.pulse,"fa-fw":St.fixedWidth,"fa-border":St.border,"fa-inverse":St.inverse,"fa-layers-counter":St.counter,"fa-flip-horizontal":"horizontal"===St.flip||"both"===St.flip,"fa-flip-vertical":"vertical"===St.flip||"both"===St.flip,[`fa-${St.size}`]:null!==St.size,[`fa-rotate-${St.rotate}`]:null!==St.rotate,[`fa-pull-${St.pull}`]:null!==St.pull,[`fa-stack-${St.stackItemSize}`]:null!=St.stackItemSize};return Object.keys(pe).map(Te=>pe[Te]?Te:null).filter(Te=>Te)};let bu=(()=>{class St{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275prov=u.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"}),St})(),Xa=(()=>{class St{constructor(){this.definitions={}}addIcons(...Te){for(const Xe of Te){Xe.prefix in this.definitions||(this.definitions[Xe.prefix]={}),this.definitions[Xe.prefix][Xe.iconName]=Xe;for(const Tn of Xe.icon[2])"string"==typeof Tn&&(this.definitions[Xe.prefix][Tn]=Xe)}}addIconPacks(...Te){for(const Xe of Te){const Tn=Object.keys(Xe).map(Xn=>Xe[Xn]);this.addIcons(...Tn)}}getIconDefinition(Te,Xe){return Te in this.definitions&&Xe in this.definitions[Te]?this.definitions[Te][Xe]:null}}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275prov=u.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"}),St})(),Xs=(()=>{class St{constructor(){this.stackItemSize="1x"}ngOnChanges(Te){if("size"in Te)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275dir=u.lG2({type:St,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[u.TTD]}),St})(),Cu=(()=>{class St{constructor(Te,Xe){this.renderer=Te,this.elementRef=Xe}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Te){"size"in Te&&(null!=Te.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Te.size.currentValue}`),null!=Te.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Te.size.previousValue}`))}}return St.\u0275fac=function(Te){return new(Te||St)(u.Y36(u.Qsj),u.Y36(u.SBq))},St.\u0275cmp=u.Xpm({type:St,selectors:[["fa-stack"]],inputs:{size:"size"},features:[u.TTD],ngContentSelectors:Lo,decls:1,vars:0,template:function(Te,Xe){1&Te&&(u.F$t(),u.Hsn(0))},encapsulation:2}),St})(),ur=(()=>{class St{constructor(Te,Xe,Tn,Xn,ei){this.sanitizer=Te,this.config=Xe,this.iconLibrary=Tn,this.stackItem=Xn,this.classes=[],null!=ei&&null==Xn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Te){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Xe=null;if(Xe=this.icon??this.config.fallbackIcon,Te){const Tn=this.findIconDefinition(Xe);if(null!=Tn){const Xn=this.buildParams();this.renderIcon(Tn,Xn)}}}render(){this.ngOnChanges({})}findIconDefinition(Te){const Xe=((St,pe)=>(St=>void 0!==St.prefix&&void 0!==St.iconName)(St)?St:Array.isArray(St)&&2===St.length?{prefix:St[0],iconName:St[1]}:"string"==typeof St?{prefix:pe,iconName:St}:void 0)(Te,this.config.defaultPrefix);return"icon"in Xe?Xe:this.iconLibrary.getIconDefinition(Xe.prefix,Xe.iconName)??((St=>{throw new Error(`Could not find icon with iconName=${St.iconName} and prefix=${St.prefix} in the icon library.`)})(Xe),null)}buildParams(){const Te={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Xe="string"==typeof this.transform?Da.transform(this.transform):this.transform;return{title:this.title,transform:Xe,classes:[...gr(Te),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Te,Xe){const Tn=vo(Te,Xe);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Tn.html.join("\n"))}}return St.\u0275fac=function(Te){return new(Te||St)(u.Y36(Mi.H7),u.Y36(bu),u.Y36(Xa),u.Y36(Xs,8),u.Y36(Cu,8))},St.\u0275cmp=u.Xpm({type:St,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Te,Xe){2&Te&&(u.Ikx("innerHTML",Xe.renderedIconHTML,u.oJD),u.uIk("title",Xe.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[u.TTD],decls:0,vars:0,template:function(Te,Xe){},encapsulation:2}),St})(),En=(()=>{class St{}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275mod=u.oAB({type:St}),St.\u0275inj=u.cJS({}),St})()},33231:(tt,W,f)=>{"use strict";f.d(W,{Co:()=>bn,nu:()=>hn});var u=f(29521),d=f(94650),v=f(24006),g=f(3238),t=f(59549),T=f(84385),U=f(591),w=f(21086),P=f(23426),O=f(8929),L=f(87545),N=f(24850),B=f(1059),K=f(18583),et=f(7625),ct=f(72986),lt=f(92198),Ct=f(22868),Dt=f(67376),Zt=f(56709),Rt=f(51572),Gt=f(4859),Tt=f(97392),Ut=f(36895),bt=f(10266);const mt=["searchSelectInput"],Lt=["innerSelectSearch"];function Bt(Oe,dn){if(1&Oe){const Pn=d.EpF();d.TgZ(0,"mat-checkbox",9),d.NdJ("change",function(_i){d.CHM(Pn);const oi=d.oxw();return d.KtG(oi._emitSelectAllBooleanToParent(_i.checked))}),d.qZA()}if(2&Oe){const Pn=d.oxw();d.Q6J("color",null==Pn.matFormField?null:Pn.matFormField.color)("checked",Pn.toggleAllCheckboxChecked)("indeterminate",Pn.toggleAllCheckboxIndeterminate)("matTooltip",Pn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Pn.toggleAllCheckboxTooltipPosition)}}function kt(Oe,dn){1&Oe&&d._UZ(0,"mat-spinner",10)}function le(Oe,dn){1&Oe&&d.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Vt(Oe,dn){if(1&Oe&&(d.TgZ(0,"mat-icon",14),d._uU(1),d.qZA()),2&Oe){const Pn=d.oxw(2);d.Q6J("svgIcon",Pn.closeSvgIcon),d.xp6(1),d.hij(" ",Pn.closeSvgIcon?null:Pn.closeIcon," ")}}function be(Oe,dn){if(1&Oe){const Pn=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){d.CHM(Pn);const _i=d.oxw();return d.KtG(_i._reset(!0))}),d.YNc(1,le,1,0,"ng-content",12),d.YNc(2,Vt,2,2,"ng-template",null,13,d.W1O),d.qZA()}if(2&Oe){const Pn=d.MAs(3),ii=d.oxw();d.xp6(1),d.Q6J("ngIf",ii.clearIcon)("ngIfElse",Pn)}}function ge(Oe,dn){1&Oe&&d.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Fe(Oe,dn){if(1&Oe&&d._uU(0),2&Oe){const Pn=d.oxw(2);d.Oqu(Pn.noEntriesFoundLabel)}}function qe(Oe,dn){if(1&Oe&&(d.TgZ(0,"div",15),d.YNc(1,ge,1,0,"ng-content",12),d.YNc(2,Fe,1,1,"ng-template",null,16,d.W1O),d.qZA()),2&Oe){const Pn=d.MAs(3),ii=d.oxw();d.xp6(1),d.Q6J("ngIf",ii.noEntriesFound)("ngIfElse",Pn)}}const je=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Qt=function(Oe,dn){return{"mat-select-search-inner-multiple":Oe,"mat-select-search-inner-toggle-all":dn}},Ue=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ie=(()=>{class Oe{}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)},Oe.\u0275dir=d.lG2({type:Oe,selectors:[["","ngxMatSelectSearchClear",""]]}),Oe})();const Wt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],se=new d.OlP("mat-selectsearch-default-options");let De=(()=>{class Oe{}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)},Oe.\u0275dir=d.lG2({type:Oe,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Oe})(),hn=(()=>{class Oe{constructor(Pn,ii,_i,oi=null,We=null,ee){this.matSelect=Pn,this.changeDetectorRef=ii,this._viewportRuler=_i,this.matOption=oi,this.matFormField=We,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new d.vpe,this.onTouched=ot=>{},this._options$=new U.X(null),this.optionsList$=this._options$.pipe((0,L.w)(ot=>ot?ot.changes.pipe((0,N.U)(X=>X.toArray()),(0,B.O)(ot.toArray())):(0,w.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,N.U)(ot=>ot?ot.length:0)),this._formControl=new v.NI(""),this._showNoEntriesFound$=(0,P.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,N.U)(([ot,X])=>this.noEntriesFoundLabel&&ot&&X===this.getOptionsLengthOffset())),this._onDestroy=new O.xQ,this.applyDefaultOptions(ee)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Pn){this._options$.next(Pn)}get _options(){return this._options$.getValue()}applyDefaultOptions(Pn){if(Pn)for(const ii of Wt)Pn.hasOwnProperty(ii)&&(this[ii]=Pn[ii])}ngOnInit(){const Pn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Pn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Pn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Pn]=!0):this.matSelect.panelClass=Pn,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,K.g)(1),(0,et.R)(this._onDestroy)).subscribe(ii=>{ii?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ct.q)(1)).pipe((0,et.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,et.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let ii=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,et.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const _i=this._options.toArray(),oi=_i[this.getOptionsLengthOffset()],We=this.matSelect._keyManager;We&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ii,oi)||!We.activeItem||!_i.find(ot=>this.matSelect.compareWith(ot,We.activeItem)))&&We.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ii=oi})})}),this._showNoEntriesFound$.pipe((0,et.R)(this._onDestroy)).subscribe(ii=>{this.matOption&&(ii?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,et.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,et.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Pn){this.toggleAll.emit(Pn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Pn){(Pn.key&&1===Pn.key.length||Pn.keyCode>=u.A&&Pn.keyCode<=u.Z||Pn.keyCode>=u.xE&&Pn.keyCode<=u.aO||Pn.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(Pn.keyCode===u.Sd||Pn.keyCode===u.uR))&&Pn.stopPropagation(),this.matSelect.multiple&&Pn.key&&Pn.keyCode===u.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Pn.keyCode===u.hY&&this.value&&(this._reset(!0),Pn.stopPropagation())}_handleKeyup(Pn){if(Pn.keyCode===u.LH||Pn.keyCode===u.JH){const ii=this.matSelect._getAriaActiveDescendant(),_i=this._options.toArray().findIndex(oi=>oi.id===ii);-1!==_i&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[_i]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ii))}}writeValue(Pn){this._lastExternalInputValue=Pn,this._formControl.setValue(Pn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Pn){this._formControl.valueChanges.pipe((0,lt.h)(ii=>ii!==this._lastExternalInputValue),(0,Ct.b)(()=>this._lastExternalInputValue=void 0),(0,et.R)(this._onDestroy)).subscribe(Pn)}registerOnTouched(Pn){this.onTouched=Pn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Pn=this.matSelect.panel.nativeElement,ii=Pn.scrollTop;this.searchSelectInput.nativeElement.focus(),Pn.scrollTop=ii}_reset(Pn){this._formControl.setValue(""),Pn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,et.R)(this._onDestroy)).subscribe(Pn=>{let ii=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Pn||!Array.isArray(Pn))&&(Pn=[]);const _i=this.matSelect.options.map(oi=>oi.value);this.previousSelectedValues.forEach(oi=>{!Pn.some(We=>this.matSelect.compareWith(We,oi))&&!_i.some(We=>this.matSelect.compareWith(We,oi))&&(Pn.push(oi),ii=!0)})}this.previousSelectedValues=Pn,ii&&this.matSelect._onChange(Pn)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Pn=this.getMatOptionHeight(),ii=this.matSelect._keyManager.activeItemIndex||0,_i=(0,g.CB)(ii,this.matSelect.options,this.matSelect.optionGroups),oi=(this.matOption?-1:0)+_i+ii,We=this.matSelect.panel.nativeElement.scrollTop,ee=this.innerSelectSearch.nativeElement.offsetHeight,ot=Math.floor((256-ee)/Pn),X=Math.round((We+ee)/Pn)-1;X>=oi?this.matSelect.panel.nativeElement.scrollTop=oi*Pn:X+ot<=oi&&(this.matSelect.panel.nativeElement.scrollTop=(oi+1)*Pn-(256-ee))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ii,Pn=this.innerSelectSearch.nativeElement;for(;Pn=Pn.parentElement;)if(Pn.classList.contains("mat-select-panel")){ii=Pn;break}ii&&(this.innerSelectSearch.nativeElement.style.width=ii.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)(d.Y36(T.gD),d.Y36(d.sBO),d.Y36(Dt.rL),d.Y36(g.ey,8),d.Y36(t.KE,8),d.Y36(se,8))},Oe.\u0275cmp=d.Xpm({type:Oe,selectors:[["ngx-mat-select-search"]],contentQueries:function(Pn,ii,_i){if(1&Pn&&(d.Suo(_i,ie,5),d.Suo(_i,De,5)),2&Pn){let oi;d.iGM(oi=d.CRH())&&(ii.clearIcon=oi.first),d.iGM(oi=d.CRH())&&(ii.noEntriesFound=oi.first)}},viewQuery:function(Pn,ii){if(1&Pn&&(d.Gf(mt,7,d.SBq),d.Gf(Lt,7,d.SBq)),2&Pn){let _i;d.iGM(_i=d.CRH())&&(ii.searchSelectInput=_i.first),d.iGM(_i=d.CRH())&&(ii.innerSelectSearch=_i.first)}},hostVars:2,hostBindings:function(Pn,ii){2&Pn&&d.ekj("mat-select-search-inside-mat-option",ii.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[d._Bn([{provide:v.JU,useExisting:(0,d.Gpc)(()=>Oe),multi:!0}])],ngContentSelectors:Ue,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Pn,ii){1&Pn&&(d.F$t(je),d._UZ(0,"input",0),d.TgZ(1,"div",1,2),d.YNc(3,Bt,1,5,"mat-checkbox",3),d.TgZ(4,"input",4,5),d.NdJ("keydown",function(oi){return ii._handleKeydown(oi)})("keyup",function(oi){return ii._handleKeyup(oi)})("blur",function(){return ii.onBlur()}),d.qZA(),d.YNc(6,kt,1,0,"mat-spinner",6),d.YNc(7,be,4,2,"button",7),d.Hsn(8),d.qZA(),d.YNc(9,qe,4,2,"div",8),d.ALo(10,"async")),2&Pn&&(d.xp6(1),d.Q6J("ngClass",d.WLB(11,Qt,ii.matSelect.multiple,ii._isToggleAllCheckboxVisible())),d.xp6(2),d.Q6J("ngIf",ii._isToggleAllCheckboxVisible()),d.xp6(1),d.Q6J("type",ii.type)("formControl",ii._formControl)("placeholder",ii.placeholderLabel),d.uIk("aria-label",ii.ariaLabel),d.xp6(2),d.Q6J("ngIf",ii.searching),d.xp6(1),d.Q6J("ngIf",!ii.hideClearSearchButton&&ii.value&&!ii.searching),d.xp6(2),d.Q6J("ngIf",d.lcZ(10,9,ii._showNoEntriesFound$)))},dependencies:[Zt.oG,Rt.Ou,Gt.lW,Tt.Hw,Ut.mk,Ut.O5,bt.gM,v.Fj,v.JJ,v.oH,Ut.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Oe})(),bn=(()=>{class Oe{}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)},Oe.\u0275mod=d.oAB({type:Oe}),Oe.\u0275inj=d.cJS({imports:[[Ut.ez,v.UX,Gt.ot,Zt.p9,Tt.Ps,Rt.Cq,bt.AV]]}),Oe})()}},tt=>{tt(tt.s=17751)}]); \ No newline at end of file +(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(tt,W)=>{(function(f){const u=f.en=f.en||{};u.dictionary=Object.assign(u.dictionary||{},{"%0 of %1":"%0 of %1","Block quote":"Block quote",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Widget toolbar":"Widget toolbar"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window,tt.exports=function(f){var u={};function d(v){if(u[v])return u[v].exports;var g=u[v]={i:v,l:!1,exports:{}};return f[v].call(g.exports,g,g.exports,d),g.l=!0,g.exports}return d.m=f,d.c=u,d.d=function(v,g,t){d.o(v,g)||Object.defineProperty(v,g,{enumerable:!0,get:t})},d.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},d.t=function(v,g){if(1&g&&(v=d(v)),8&g||4&g&&"object"==typeof v&&v&&v.__esModule)return v;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:v}),2&g&&"string"!=typeof v)for(var T in v)d.d(t,T,function(U){return v[U]}.bind(null,T));return t},d.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return d.d(g,"a",g),g},d.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)},d.p="",d(d.s=96)}([function(f,u,d){"use strict";d.d(u,"b",function(){return v}),d.d(u,"a",function(){return g});class v extends Error{constructor(T,U,w){T=g(T),w&&(T+=" "+JSON.stringify(w)),super(T),this.name="CKEditorError",this.context=U,this.data=w}is(T){return"CKEditorError"===T}static rethrowUnexpectedError(T,U){if(T.is&&T.is("CKEditorError"))throw T;const w=new v(T.message,U);throw w.stack=T.stack,w}}function g(t){const T=t.match(/^([^:]+):/);return T?t+` Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-${T[1]}\n`:t}},function(f,u,d){"use strict";var v,lt,t=(lt={},function(Ct){if(void 0===lt[Ct]){var Dt=document.querySelector(Ct);if(window.HTMLIFrameElement&&Dt instanceof window.HTMLIFrameElement)try{Dt=Dt.contentDocument.head}catch{Dt=null}lt[Ct]=Dt}return lt[Ct]}),T=[];function U(lt){for(var Ct=-1,Dt=0;Dt:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(f,u,d){var v=d(1),g=d(20);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(f,u,d){var v=d(1),g=d(22);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(f,u,d){var v=d(1),g=d(24);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(f,u,d){var v=d(1),g=d(26);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(f,u,d){var v=d(1),g=d(28);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(f,u,d){var v=d(1),g=d(30);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(f,u,d){var v=d(1),g=d(32);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(f,u,d){var v=d(1),g=d(34);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(f,u,d){var v=d(1),g=d(36);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(f,u,d){var v=d(1),g=d(38);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(f,u,d){var v=d(1),g=d(40);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(f,u,d){var v=d(1),g=d(42);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(f,u,d){var v=d(1),g=d(44);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(f,u,d){var v=d(1),g=d(46);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(f,u,d){var v=d(1),g=d(48);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(f,u,d){var v=d(1),g=d(50);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(f,u,d){var v=d(1),g=d(52);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(f,u,d){var v=d(1),g=d(54);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(f,u,d){var v=d(1),g=d(56);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(f,u,d){var v=d(1),g=d(58);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(f,u,d){var v=d(1),g=d(60);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(f,u,d){var v=d(1),g=d(62);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(f,u,d){var v=d(1),g=d(64);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(f,u,d){var v=d(1),g=d(66);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(f,u,d){var v=d(1),g=d(68);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(f,u,d){var v=d(1),g=d(70);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(f,u){f.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(f,u,d){var v=d(1),g=d(73);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(f,u,d){var v=d(1),g=d(75);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(f,u,d){var v=d(1),g=d(77);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(f,u,d){var v=d(1),g=d(79);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(f,u,d){var v=d(1),g=d(81);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(f,u,d){var v=d(1),g=d(83);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(f,u,d){var v=d(1),g=d(85);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(f,u,d){var v=d(1),g=d(87);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(f,u,d){var v=d(1),g=d(89);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(f,u,d){var v=d(1),g=d(91);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(f,u,d){var v=d(1),g=d(93);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(f,u,d){var v=d(1),g=d(95);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[f.i,g,""]]),v(g,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),f.exports=g.locals||{}},function(f,u){f.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(f,u,d){"use strict";d.r(u),d.d(u,"default",function(){return Kg});var v=d(3),g=v.a.Symbol,t=Object.prototype,T=t.hasOwnProperty,U=t.toString,w=g?g.toStringTag:void 0,O=Object.prototype.toString,N=g?g.toStringTag:void 0,B=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":N&&N in Object(b)?function(b){var r=T.call(b,w),l=b[w];try{b[w]=void 0;var p=!0}catch{}var x=U.call(b);return p&&(r?b[w]=l:delete b[w]),x}(b):function(b){return O.call(b)}(b)},K=function(b,r){return function(l){return b(r(l))}},et=K(Object.getPrototypeOf,Object),ct=function(b){return null!=b&&"object"==typeof b},Dt=Function.prototype.toString,Zt=Object.prototype.hasOwnProperty,Rt=Dt.call(Object),Gt=function(b){if(!ct(b)||"[object Object]"!=B(b))return!1;var r=et(b);if(null===r)return!0;var l=Zt.call(r,"constructor")&&r.constructor;return"function"==typeof l&&l instanceof l&&Dt.call(l)==Rt},Ut=function(b,r){return b===r||b!=b&&r!=r},bt=function(b,r){for(var l=b.length;l--;)if(Ut(b[l][0],r))return l;return-1},mt=Array.prototype.splice;function Vt(b){var r=-1,l=null==b?0:b.length;for(this.clear();++r-1},Vt.prototype.set=function(b,r){var l=this.__data__,p=bt(l,b);return p<0?(++this.size,l.push([b,r])):l[p][1]=r,this};var Ue,be=Vt,Qt=function(b){var r=typeof b;return null!=b&&("object"==r||"function"==r)},ie=function(b){if(!Qt(b))return!1;var r=B(b);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},Wt=v.a["__core-js_shared__"],se=(Ue=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ue:"",ae=Function.prototype.toString,De=function(b){if(null!=b){try{return ae.call(b)}catch{}try{return b+""}catch{}}return""},nn=/^\[object .+?Constructor\]$/,dn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pn=function(b){return!(!Qt(b)||function(b){return!!se&&se in b}(b))&&(ie(b)?dn:nn).test(De(b))},_i=function(b,r){var l=function(b,r){return b?.[r]}(b,r);return Pn(l)?l:void 0},oi=_i(v.a,"Map"),We=_i(Object,"create"),X=Object.prototype.hasOwnProperty,Ht=Object.prototype.hasOwnProperty;function Se(b){var r=-1,l=null==b?0:b.length;for(this.clear();++r-1&&b%1==0&&b-1&&b%1==0&&b<=9007199254740991},Ke={};Ke["[object Float32Array]"]=Ke["[object Float64Array]"]=Ke["[object Int8Array]"]=Ke["[object Int16Array]"]=Ke["[object Int32Array]"]=Ke["[object Uint8Array]"]=Ke["[object Uint8ClampedArray]"]=Ke["[object Uint16Array]"]=Ke["[object Uint32Array]"]=!0,Ke["[object Arguments]"]=Ke["[object Array]"]=Ke["[object ArrayBuffer]"]=Ke["[object Boolean]"]=Ke["[object DataView]"]=Ke["[object Date]"]=Ke["[object Error]"]=Ke["[object Function]"]=Ke["[object Map]"]=Ke["[object Number]"]=Ke["[object Object]"]=Ke["[object RegExp]"]=Ke["[object Set]"]=Ke["[object String]"]=Ke["[object WeakMap]"]=!1;var xi=function(b){return function(r){return b(r)}},co=d(5),Co=co.a&&co.a.isTypedArray,So=Co?xi(Co):function(b){return ct(b)&&_n(b.length)&&!!Ke[B(b)]},ma=Object.prototype.hasOwnProperty,Ta=function(b,r){var l=kn(b),p=!l&&He(b),x=!l&&!p&&Object(Ei.a)(b),Z=!l&&!p&&!x&&So(b),k=l||p||x||Z,H=k?function(b,r){for(var l=-1,p=Array(b);++l{this._setToTarget(r,x,l[x],p)})}}function Pr(b){return Cs(b,dc)}function dc(b){return ys(b)?b:void 0}class Ya{constructor(r,l){this.source=r,this.name=l,this.path=[],this.stop=function b(){b.called=!0},this.off=function b(){b.called=!0}}}const wr=new Array(256).fill().map((b,r)=>("0"+r.toString(16)).slice(-2));function xr(){const b=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,l=4294967296*Math.random()>>>0,p=4294967296*Math.random()>>>0;return"e"+wr[b>>0&255]+wr[b>>8&255]+wr[b>>16&255]+wr[b>>24&255]+wr[r>>0&255]+wr[r>>8&255]+wr[r>>16&255]+wr[r>>24&255]+wr[l>>0&255]+wr[l>>8&255]+wr[l>>16&255]+wr[l>>24&255]+wr[p>>0&255]+wr[p>>8&255]+wr[p>>16&255]+wr[p>>24&255]}var ns={get(b){return"number"!=typeof b?this[b]||this.normal:b},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},jn=(d(6),d(0));const zs=Symbol("listeningTo"),ds=Symbol("emitterId");var wa={on(b,r,l={}){this.listenTo(this,b,r,l)},once(b,r,l){let p=!1;this.listenTo(this,b,function(x,...Z){p||(p=!0,x.off(),r.call(this,x,...Z))},l)},off(b,r){this.stopListening(this,b,r)},listenTo(b,r,l,p={}){let x,Z;this[zs]||(this[zs]={});const k=this[zs];Ts(b)||is(b);const H=Ts(b);(x=k[H])||(x=k[H]={emitter:b,callbacks:{}}),(Z=x.callbacks[r])||(Z=x.callbacks[r]=[]),Z.push(l),function(Mt,he){const Je=As(Mt);if(Je[he])return;let fn=he,Mn=null;const In=[];for(;""!==fn&&!Je[fn];)Je[fn]={callbacks:[],childEvents:[]},In.push(Je[fn]),Mn&&Je[fn].childEvents.push(Mn),Mn=fn,fn=fn.substr(0,fn.lastIndexOf(":"));if(""!==fn){for(const Qn of In)Qn.callbacks=Je[fn].callbacks.slice();Je[fn].childEvents.push(Mn)}}(b,r);const G=ks(b,r),rt=ns.get(p.priority),ft={callback:l,priority:rt};for(const Mt of G){let he=!1;for(let Je=0;Je-1?Z(k,H.substr(0,H.lastIndexOf(":"))):null}(this,p);if(l.path.push(this),x){const Z=[l,...r];x=Array.from(x);for(let k=0;k{this._delegations||(this._delegations=new Map),b.forEach(p=>{const x=this._delegations.get(p);x?x.set(r,l):this._delegations.set(p,new Map([[r,l]]))})}}},stopDelegating(b,r){if(this._delegations)if(b)if(r){const l=this._delegations.get(b);l&&l.delete(r)}else this._delegations.delete(b);else this._delegations.clear()}};function is(b,r){b[ds]||(b[ds]=r||xr())}function Ts(b){return b[ds]}function As(b){return b._events||Object.defineProperty(b,"_events",{value:{}}),b._events}function ks(b,r){const l=As(b)[r];if(!l)return[];let p=[l.callbacks];for(let x=0;x{Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l)).forEach(p=>{if(p in b.prototype)return;const x=Object.getOwnPropertyDescriptor(l,p);x.enumerable=!1,Object.defineProperty(b.prototype,p,x)})})}class Er{constructor(r={},l={}){const p=za(r);if(p||(l=r),this._items=[],this._itemMap=new Map,this._idProperty=l.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],p)for(const x of r)this._items.push(x),this._itemMap.set(this._getItemIdBeforeAdding(x),x)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(r,l){return this.addMany([r],l)}addMany(r,l){if(void 0===l)l=this._items.length;else if(l>this._items.length||l<0)throw new jn.b("collection-add-item-invalid-index",this);for(let p=0;p{this._setUpBindToBinding(p=>new l(p))},using:l=>{this._setUpBindToBinding("function"==typeof l?p=>l(p):p=>p[l])}}}_setUpBindToBinding(r){const l=this._bindToCollection,p=(x,Z,k)=>{const H=l._bindToCollection==this,G=l._bindToInternalToExternalMap.get(Z);if(H&&G)this._bindToExternalToInternalMap.set(Z,G),this._bindToInternalToExternalMap.set(G,Z);else{const rt=r(Z);if(!rt)return void this._skippedIndexesFromExternal.push(k);let ft=k;for(const Mt of this._skippedIndexesFromExternal)k>Mt&&ft--;for(const Mt of l._skippedIndexesFromExternal)ft>=Mt&&ft++;this._bindToExternalToInternalMap.set(Z,rt),this._bindToInternalToExternalMap.set(rt,Z),this.add(rt,ft);for(let Mt=0;Mt{const H=this._bindToExternalToInternalMap.get(Z);H&&this.remove(H),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((G,rt)=>(krt&&G.push(rt),G),[])})}_getItemIdBeforeAdding(r){const l=this._idProperty;let p;if(l in r){if(p=r[l],"string"!=typeof p)throw new jn.b("collection-add-invalid-id",this);if(this.get(p))throw new jn.b("collection-add-item-already-exists",this)}else r[l]=p=xr();return p}_remove(r){let l,p,x,Z=!1;const k=this._idProperty;if("string"==typeof r?(p=r,x=this._itemMap.get(p),Z=!x,x&&(l=this._items.indexOf(x))):"number"==typeof r?(l=r,x=this._items[l],Z=!x,x&&(p=x[k])):(x=r,p=x[k],l=this._items.indexOf(x),Z=-1==l||!this._itemMap.get(p)),Z)throw new jn.b("collection-remove-404: Item not found.",this);this._items.splice(l,1),this._itemMap.delete(p);const H=this._bindToInternalToExternalMap.get(x);return this._bindToInternalToExternalMap.delete(x),this._bindToExternalToInternalMap.delete(H),this.fire("remove",x,l),[x,l]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}ao(Er,wa);class lr{constructor(r,l=[],p=[]){this._context=r,this._plugins=new Map,this._availablePlugins=new Map;for(const x of l)x.pluginName&&this._availablePlugins.set(x.pluginName,x);this._contextPlugins=new Map;for(const[x,Z]of p)this._contextPlugins.set(x,Z),this._contextPlugins.set(Z,x),x.pluginName&&this._availablePlugins.set(x.pluginName,x)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const l=this._plugins.get(r);if(!l){let x=r;throw"function"==typeof r&&(x=r.pluginName||r.name),new jn.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:x})}return l}has(r){return this._plugins.has(r)}init(r,l=[]){const p=this,x=this._context,Z=new Set,k=[],H=Je(r),G=Je(l),rt=function(fn){const Mn=[];for(const In of fn)he(In)||Mn.push(In);return Mn.length?Mn:null}(r);if(rt){const fn="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(jn.a)(fn),{plugins:rt}),Promise.reject(new jn.b(fn,x,{plugins:rt}))}return Promise.all(H.map(function ft(fn){if(!G.includes(fn)&&!p._plugins.has(fn)&&!Z.has(fn))return(Mn=fn,new Promise(In=>{Z.add(Mn),Mn.requires&&Mn.requires.forEach(Fi=>{const Ji=he(Fi);if(Mn.isContextPlugin&&!Ji.isContextPlugin)throw new jn.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:Ji.name,requiredBy:Mn.name});if(l.includes(Ji))throw new jn.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",x,{plugin:Ji.name,requiredBy:Mn.name});ft(Ji)});const Qn=p._contextPlugins.get(Mn)||new Mn(x);p._add(Mn,Qn),k.push(Qn),In()})).catch(Mn=>{throw console.error(Object(jn.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:fn}),Mn});var Mn})).then(()=>Mt(k,"init")).then(()=>Mt(k,"afterInit")).then(()=>k);function Mt(fn,Mn){return fn.reduce((In,Qn)=>Qn[Mn]?p._contextPlugins.has(Qn)?In:In.then(Qn[Mn].bind(Qn)):In,Promise.resolve())}function he(fn){return"function"==typeof fn?fn:p._availablePlugins.get(fn)}function Je(fn){return fn.map(Mn=>he(Mn)).filter(Mn=>!!Mn)}}destroy(){const r=[];for(const[,l]of this)"function"!=typeof l.destroy||this._contextPlugins.has(l)||r.push(l.destroy());return Promise.all(r)}_add(r,l){this._plugins.set(r,l);const p=r.pluginName;if(p){if(this._plugins.has(p))throw new jn.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:p,plugin1:this._plugins.get(p).constructor,plugin2:r});this._plugins.set(p,l)}}}ao(lr,wa),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const Ec=["ar","fa","he","ku","ug"];class cl{constructor(r={}){this.uiLanguage=r.uiLanguage||"en",this.contentLanguage=r.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Cc(this.uiLanguage),this.contentLanguageDirection=Cc(this.contentLanguage),this.t=(l,p)=>this._t(l,p)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,l=[]){return Array.isArray(l)||(l=[l]),"string"==typeof r&&(r={string:r}),x=function zr(b,r,l=1){if("number"!=typeof l)throw new jn.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:l});const p=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===p&&(b=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const x=r.id||r.string;if(0===p||(G=b,!window.CKEDITOR_TRANSLATIONS[G]||!window.CKEDITOR_TRANSLATIONS[G].dictionary[x]))return 1!==l?r.plural:r.string;var G;const Z=window.CKEDITOR_TRANSLATIONS[b].dictionary,k=window.CKEDITOR_TRANSLATIONS[b].getPluralForm||(G=>1===G?0:1);if("string"==typeof Z[x])return Z[x];const H=Number(k(l));return Z[x][H]}(this.uiLanguage,r,r.plural?l[0]:1),Z=l,x.replace(/%(\d+)/g,(k,H)=>Hr.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,l){if(this._contextOwner)throw new jn.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(r),l&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const l of this.config.names())["plugins","removePlugins","extraPlugins"].includes(l)||(r[l]=this.config.get(l));return r}static create(r){return new Promise(l=>{const p=new this(r);l(p.initPlugins().then(()=>p))})}}function ps(b,r){const l=Math.min(b.length,r.length);for(let p=0;pr.data.length)throw new jn.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(p<0||l+p>r.data.length)throw new jn.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+p),this.offsetInText=l}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(r){return"$textProxy"===r||"view:$textProxy"===r||"textProxy"===r||"view:textProxy"===r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const l=[];let p=r.includeSelf?this.textNode:this.parent;for(;null!==p;)l[r.parentFirst?"push":"unshift"](p),p=p.parent;return l}}function Qa(b){return za(b)?new Map(b):function(r){const l=new Map;for(const p in r)l.set(p,r[p]);return l}(b)}class re{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let l of r)("string"==typeof l||l instanceof RegExp)&&(l={name:l}),l.classes&&("string"==typeof l.classes||l.classes instanceof RegExp)&&(l.classes=[l.classes]),this._patterns.push(l)}match(...r){for(const l of r)for(const p of this._patterns){const x=$t(l,p);if(x)return{element:l,pattern:p,match:x}}return null}matchAll(...r){const l=[];for(const p of r)for(const x of this._patterns){const Z=$t(p,x);Z&&l.push({element:p,pattern:x,match:Z})}return l.length>0?l:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],l=r.name;return"function"==typeof r||!l||l instanceof RegExp?null:l}}function $t(b,r){if("function"==typeof r)return r(b);const l={};return r.name&&(l.name=(x=b.name,(p=r.name)instanceof RegExp?p.test(x):p===x),!l.name)||r.attributes&&(l.attributes=function(p,x){const Z=[];for(const k in p){const H=p[k];if(!x.hasAttribute(k))return null;{const G=x.getAttribute(k);if(!0===H)Z.push(k);else if(H instanceof RegExp){if(!H.test(G))return null;Z.push(k)}else{if(G!==H)return null;Z.push(k)}}}return Z}(r.attributes,b),!l.attributes)?null:!(r.classes&&(l.classes=function(p,x){const Z=[];for(const k of p)if(k instanceof RegExp){const H=x.getClassNames();for(const G of H)k.test(G)&&Z.push(G);if(0===Z.length)return null}else{if(!x.hasClass(k))return null;Z.push(k)}return Z}(r.classes,b),!l.classes))&&!(r.styles&&(l.styles=function(p,x){const Z=[];for(const k in p){const H=p[k];if(!x.hasStyle(k))return null;{const G=x.getStyle(k);if(H instanceof RegExp){if(!H.test(G))return null;Z.push(k)}else{if(G!==H)return null;Z.push(k)}}}return Z}(r.styles,b),!l.styles))&&l;var p,x}var Nt=function(b){return"symbol"==typeof b||ct(b)&&"[object Symbol]"==B(b)},nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wi=/^\w*$/;function Aa(b,r){if("function"!=typeof b||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var l=function(){var p=arguments,x=r?r.apply(this,p):p[0],Z=l.cache;if(Z.has(x))return Z.get(x);var k=b.apply(this,p);return l.cache=Z.set(x,k)||Z,k};return l.cache=new(Aa.Cache||xn),l}Aa.Cache=xn;var b,r,l,Fc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Nr=(b=function(b){var r=[];return 46===b.charCodeAt(0)&&r.push(""),b.replace(Fc,function(l,p,x,Z){r.push(x?Z.replace(Fr,"$1"):p||l)}),r},r=Aa(b,function(p){return 500===l.size&&l.clear(),p}),l=r.cache,r),Va=g?g.prototype:void 0,jc=Va?Va.toString:void 0,k1=function b(r){if("string"==typeof r)return r;if(kn(r))return function(b,r){for(var l=-1,p=null==b?0:b.length,x=Array(p);++lx?0:x+r),(l=l>x?x:l)<0&&(l+=x),x=r>l?0:l-r>>>0,r>>>=0;for(var Z=Array(x);++p0){if(++r>=800)return arguments[0]}else r=0;return b.apply(void 0,arguments)}}(vo),Si=function(b,r){return pi(function(b,r,l){return r=Da(void 0===r?b.length-1:r,0),function(){for(var p=arguments,x=-1,Z=Da(p.length-r,0),k=Array(Z);++x1?l[x-1]:void 0,k=x>2?l[2]:void 0;for(Z=b.length>3&&"function"==typeof Z?(x--,Z):void 0,k&&function(b,r,l){if(!Qt(l))return!1;var p=typeof r;return!!("number"==p?j(l)&&un(r,l.length):"string"==p&&r in l)&&Ut(l[r],b)}(l[0],l[1],k)&&(Z=x<3?void 0:Z,x=1),r=Object(r);++pp===r);return Array.isArray(l)}set(r,l){if(Qt(r))for(const[p,x]of Object.entries(r))this._styleProcessor.toNormalizedForm(p,x,this._styles);else this._styleProcessor.toNormalizedForm(r,l,this._styles)}remove(r){const l=bu(r);(function(b,r){null==b||rp(b,r)})(this._styles,l),delete this._styles[r],this._cleanEmptyObjectsOnPath(l)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Qt(this._styles[r]))return this._styles[r];const l=this._styleProcessor.getReducedForm(r,this._styles).find(([p])=>p===r);return Array.isArray(l)?l[1]:void 0}getStyleNames(){return this.isEmpty?[]:this._getStylesEntries().map(([r])=>r)}clear(){this._styles={}}_getStylesEntries(){const r=[],l=Object.keys(this._styles);for(const p of l)r.push(...this._styleProcessor.getReducedForm(p,this._styles));return r}_cleanEmptyObjectsOnPath(r){const l=r.split(".");if(!(l.length>1))return;const p=l.splice(0,l.length-1).join("."),x=yc(this._styles,p);!x||!Array.from(Object.keys(x)).length&&this.remove(p)}}class dl{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,l,p){if(Qt(l))Xa(p,bu(r),l);else if(this._normalizers.has(r)){const x=this._normalizers.get(r),{path:Z,value:k}=x(l);Xa(p,Z,k)}else Xa(p,r,l)}getNormalized(r,l){if(!r)return $o({},l);if(void 0!==l[r])return l[r];if(this._extractors.has(r)){const p=this._extractors.get(r);if("string"==typeof p)return yc(l,p);const x=p(r,l);if(x)return x}return yc(l,bu(r))}getReducedForm(r,l){const p=this.getNormalized(r,l);return void 0===p?[]:this._reducers.has(r)?this._reducers.get(r)(p):[[r,p]]}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,l){this._normalizers.set(r,l)}setExtractor(r,l){this._extractors.set(r,l)}setReducer(r,l){this._reducers.set(r,l)}setStyleRelation(r,l){this._mapStyleNames(r,l);for(const p of l)this._mapStyleNames(p,[r])}_mapStyleNames(r,l){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...l)}}function bu(b){return b.replace("-",".")}function Xa(b,r,l){let p=l;Qt(l)&&(p=$o({},yc(b,r),l)),gr(b,r,p)}class Xs extends la{constructor(r,l,p,x){if(super(r),this.name=l,this._attrs=function(Z){Z=Qa(Z);for(const[k,H]of Z)null===H?Z.delete(k):"string"!=typeof H&&Z.set(k,String(H));return Z}(p),this._children=[],x&&this._insertChild(0,x),this._classes=new Set,this._attrs.has("class")){const Z=this._attrs.get("class");Cu(this._classes,Z),this._attrs.delete("class")}this._styles=new Ko(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(r,l=null){return l?l===this.name&&("element"===r||"view:element"===r):"element"===r||"view:element"===r||"node"===r||"view:node"===r}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const l=this._styles.toString();return""==l?void 0:l}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Xs))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[l,p]of this._attrs)if(!r._attrs.has(l)||r._attrs.get(l)!==p)return!1;for(const l of this._classes)if(!r._classes.has(l))return!1;for(const l of this._styles.getStyleNames())if(!r._styles.has(l)||r._styles.getAsString(l)!==this._styles.getAsString(l))return!1;return!0}hasClass(...r){for(const l of r)if(!this._classes.has(l))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(){return this._styles.getStyleNames()}hasStyle(...r){for(const l of r)if(!this._styles.has(l))return!1;return!0}findAncestor(...r){const l=new re(...r);let p=this.parent;for(;p;){if(l.match(p))return p;p=p.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),l=this._styles.toString(),p=Array.from(this._attrs).map(x=>`${x[0]}="${x[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(l?` style="${l}"`:"")+(""==p?"":" "+p)}_clone(r=!1){const l=[];if(r)for(const x of this.getChildren())l.push(x._clone(r));const p=new this.constructor(this.document,this.name,this._attrs,l);return p._classes=new Set(this._classes),p._styles.set(this._styles.getNormalized()),p._customProperties=new Map(this._customProperties),p.getFillerOffset=this.getFillerOffset,p}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,l){this._fireChange("children",this);let p=0;const x=(Z=this.document,"string"==typeof(k=l)?[new or(Z,k)]:(za(k)||(k=[k]),Array.from(k).map(H=>"string"==typeof H?new or(Z,H):H instanceof Wr?new or(Z,H.data):H)));var Z,k;for(const Z of x)null!==Z.parent&&Z._remove(),Z.parent=this,Z.document=this.document,this._children.splice(r,0,Z),r++,p++;return p}_removeChildren(r,l=1){this._fireChange("children",this);for(let p=r;p0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(l=>this._classes.add(l))}_removeClass(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(l=>this._classes.delete(l))}_setStyle(r,l){this._fireChange("attributes",this),this._styles.set(r,l)}_removeStyle(r){this._fireChange("attributes",this),(r=Array.isArray(r)?r:[r]).forEach(l=>this._styles.remove(l))}_setCustomProperty(r,l){this._customProperties.set(r,l)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function Cu(b,r){const l=r.split(/\s+/);b.clear(),l.forEach(p=>b.add(p))}class ur extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=td}is(r,l=null){return l?l===this.name&&("containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}}function td(){const b=[...this.getChildren()],r=b[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const l of b)if(!l.is("uiElement"))return null;return this.childCount}var Pt=Lo(function(b,r){cn(r,Xi(r),b)});const me=Symbol("observableProperties"),Yt=Symbol("boundObservables"),Ge=Symbol("boundProperties"),En={set(b,r){if(Qt(b))return void Object.keys(b).forEach(p=>{this.set(p,b[p])},this);pe(this);const l=this[me];if(b in this&&!l.has(b))throw new jn.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,b,{enumerable:!0,configurable:!0,get:()=>l.get(b),set(p){const x=l.get(b);let Z=this.fire("set:"+b,b,p,x);void 0===Z&&(Z=p),x===Z&&l.has(b)||(l.set(b,Z),this.fire("change:"+b,b,Z,x))}}),this[b]=r},bind(...b){if(!b.length||!Tn(b))throw new jn.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(b).size!==b.length)throw new jn.b("observable-bind-duplicate-properties: Properties must be unique.",this);pe(this);const r=this[Ge];b.forEach(p=>{if(r.has(p))throw new jn.b("observable-bind-rebind: Cannot bind the same property more than once.",this)});const l=new Map;return b.forEach(p=>{const x={property:p,to:[]};r.set(p,x),l.set(p,x)}),{to:Te,toMany:Xe,_observable:this,_bindProperties:b,_to:[],_bindings:l}},unbind(...b){if(!this[me])return;const r=this[Ge],l=this[Yt];if(b.length){if(!Tn(b))throw new jn.b("observable-unbind-wrong-properties: Properties must be strings.",this);b.forEach(p=>{const x=r.get(p);if(!x)return;let Z,k,H,G;x.to.forEach(rt=>{Z=rt[0],k=rt[1],H=l.get(Z),G=H[k],G.delete(x),G.size||delete H[k],Object.keys(H).length||(l.delete(Z),this.stopListening(Z,"change"))}),r.delete(p)})}else l.forEach((p,x)=>{this.stopListening(x,"change")}),l.clear(),r.clear()},decorate(b){const r=this[b];if(!r)throw new jn.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:b});this.on(b,(l,p)=>{l.return=r.apply(this,p)}),this[b]=function(...l){return this.fire(b,l)}}};Pt(En,wa);var St=En;function pe(b){b[me]||(Object.defineProperty(b,me,{value:new Map}),Object.defineProperty(b,Yt,{value:new Map}),Object.defineProperty(b,Ge,{value:new Map}))}function Te(...b){const r=function(...Z){if(!Z.length)throw new jn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const k={to:[]};let H;return"function"==typeof Z[Z.length-1]&&(k.callback=Z.pop()),Z.forEach(G=>{if("string"==typeof G)H.properties.push(G);else{if("object"!=typeof G)throw new jn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);H={observable:G,properties:[]},k.to.push(H)}}),k}(...b),l=Array.from(this._bindings.keys()),p=l.length;if(!r.callback&&r.to.length>1)throw new jn.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(p>1&&r.callback)throw new jn.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);var x;r.to.forEach(Z=>{if(Z.properties.length&&Z.properties.length!==p)throw new jn.b("observable-bind-to-properties-length: The number of properties must match.",this);Z.properties.length||(Z.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(l[0]).callback=r.callback),x=this._observable,this._to.forEach(Z=>{const k=x[Yt];let H;k.get(Z.observable)||x.listenTo(Z.observable,"change",(G,rt)=>{H=k.get(Z.observable)[rt],H&&H.forEach(ft=>{Xn(x,ft.property)})})}),function(Z){let k;Z._bindings.forEach((H,G)=>{Z._to.forEach(rt=>{k=rt.properties[H.callback?0:Z._bindProperties.indexOf(G)],H.to.push([rt.observable,k]),function(ft,Mt,he,Je){const fn=ft[Yt],Mn=fn.get(he),In=Mn||{};In[Je]||(In[Je]=new Set),In[Je].add(Mt),Mn||fn.set(he,In)}(Z._observable,H,rt.observable,k)})})}(this),this._bindProperties.forEach(Z=>{Xn(this._observable,Z)})}function Xe(b,r,l){if(this._bindings.size>1)throw new jn.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(p,x){const Z=p.map(k=>[k,x]);return Array.prototype.concat.apply([],Z)}(b,r),l)}function Tn(b){return b.every(r=>"string"==typeof r)}function Xn(b,r){const l=b[Ge].get(r);let p;l.callback?p=l.callback.apply(b,l.to.map(x=>x[0][x[1]])):(p=l.to[0],p=p[0][p[1]]),Object.prototype.hasOwnProperty.call(b,r)?b[r]=p:b.set(r,p)}class ei extends ur{constructor(r,l,p,x){super(r,l,p,x),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",Z=>Z&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}is(r,l=null){return l?l===this.name&&("editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}destroy(){this.stopListening()}}ao(ei,St);const yi=Symbol("rootName");class Ui extends ei{constructor(r,l){super(r,l),this.rootName="main"}is(r,l=null){return l?l===this.name&&("rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}get rootName(){return this.getCustomProperty(yi)}set rootName(r){this._setCustomProperty(yi,r)}set _name(r){this.name=r}}class xo{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new jn.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new jn.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this.position=vi._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(r){let l,p,x;do{x=this.position,({done:l,value:p}=this.next())}while(!l&&r(p));l||(this.position=x)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const l=this.position,p=r.parent;if(null===p.parent&&r.offset===p.childCount)return{done:!0};if(p===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0};let x;if(p instanceof or){if(r.isAtEnd)return this.position=vi._createAfter(p),this._next();x=p.data[r.offset]}else x=p.getChild(r.offset);if(x instanceof Xs)return this.shallow?r.offset++:r=new vi(x,0),this.position=r,this._formatReturnValue("elementStart",x,l,r,1);if(x instanceof or){if(this.singleCharacters)return r=new vi(x,0),this.position=r,this._next();{let Z,k=x.data.length;return x==this._boundaryEndParent?(k=this.boundaries.end.offset,Z=new Wr(x,0,k),r=vi._createAfter(Z)):(Z=new Wr(x,0,x.data.length),r.offset++),this.position=r,this._formatReturnValue("text",Z,l,r,k)}}if("string"==typeof x){let Z;Z=this.singleCharacters?1:(p===this._boundaryEndParent?this.boundaries.end.offset:p.data.length)-r.offset;const k=new Wr(p,r.offset,Z);return r.offset+=Z,this.position=r,this._formatReturnValue("text",k,l,r,Z)}return r=vi._createAfter(p),this.position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",p,l,r)}_previous(){let r=this.position.clone();const l=this.position,p=r.parent;if(null===p.parent&&0===r.offset)return{done:!0};if(p==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0};let x;if(p instanceof or){if(r.isAtStart)return this.position=vi._createBefore(p),this._previous();x=p.data[r.offset-1]}else x=p.getChild(r.offset-1);if(x instanceof Xs)return this.shallow?(r.offset--,this.position=r,this._formatReturnValue("elementStart",x,l,r,1)):(r=new vi(x,x.childCount),this.position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",x,l,r));if(x instanceof or){if(this.singleCharacters)return r=new vi(x,x.data.length),this.position=r,this._previous();{let Z,k=x.data.length;if(x==this._boundaryStartParent){const H=this.boundaries.start.offset;Z=new Wr(x,H,x.data.length-H),k=Z.data.length,r=vi._createBefore(Z)}else Z=new Wr(x,0,x.data.length),r.offset--;return this.position=r,this._formatReturnValue("text",Z,l,r,k)}}if("string"==typeof x){let Z;Z=this.singleCharacters?1:r.offset-(p===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=Z;const k=new Wr(p,r.offset,Z);return this.position=r,this._formatReturnValue("text",k,l,r,Z)}return r=vi._createBefore(p),this.position=r,this._formatReturnValue("elementStart",p,l,r,1)}_formatReturnValue(r,l,p,x,Z){return l instanceof Wr&&(l.offsetInText+l.data.length==l.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?p=vi._createAfter(l.textNode):(x=vi._createAfter(l.textNode),this.position=x)),0===l.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?p=vi._createBefore(l.textNode):(x=vi._createBefore(l.textNode),this.position=x))),{done:!1,value:{type:r,item:l,previousPosition:p,nextPosition:x,length:Z}}}}class vi{constructor(r,l){this.parent=r,this.offset=l}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof ei);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const l=vi._createAt(this),p=l.offset+r;return l.offset=p<0?0:p,l}getLastMatchingPosition(r,l={}){l.startPosition=this;const p=new xo(l);return p.skip(r),p.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const l=this.getAncestors(),p=r.getAncestors();let x=0;for(;l[x]==p[x]&&l[x];)x++;return 0===x?null:l[x-1]}is(r){return"position"===r||"view:position"===r}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const l=this.parent.is("node")?this.parent.getPath():[],p=r.parent.is("node")?r.parent.getPath():[];l.push(this.offset),p.push(r.offset);const x=ps(l,p);switch(x){case"prefix":return"before";case"extension":return"after";default:return l[x]0?new this(p,x):new this(x,p)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const l=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(vi._createBefore(r),l)}}function ua(b){return!(!b.item.is("attributeElement")&&!b.item.is("uiElement"))}function ea(b){let r=0;for(const l of b)r++;return r}class ga{constructor(r=null,l,p){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(r,l,p)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const l of this._ranges)r&&!l.start.isBefore(r.start)||(r=l);return r?r.clone():null}getLastRange(){let r=null;for(const l of this._ranges)r&&!l.end.isAfter(r.end)||(r=l);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const l of this._ranges){let p=!1;for(const x of r._ranges)if(l.isEqual(x)){p=!0;break}if(!p)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const l=ea(this.getRanges());if(l!=ea(r.getRanges()))return!1;if(0==l)return!0;for(let p of this.getRanges()){p=p.getTrimmed();let x=!1;for(let Z of r.getRanges())if(Z=Z.getTrimmed(),p.start.isEqual(Z.start)&&p.end.isEqual(Z.end)){x=!0;break}if(!x)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(r,l,p){if(null===r)this._setRanges([]),this._setFakeOptions(l);else if(r instanceof ga||r instanceof $r)this._setRanges(r.getRanges(),r.isBackward),this._setFakeOptions({fake:r.isFake,label:r.fakeSelectionLabel});else if(r instanceof zi)this._setRanges([r],l&&l.backward),this._setFakeOptions(l);else if(r instanceof vi)this._setRanges([new zi(r)]),this._setFakeOptions(l);else if(r instanceof la){const x=!!p&&!!p.backward;let Z;if(void 0===l)throw new jn.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);Z="in"==l?zi._createIn(r):"on"==l?zi._createOn(r):new zi(vi._createAt(r,l)),this._setRanges([Z],x),this._setFakeOptions(p)}else{if(!za(r))throw new jn.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(r,l&&l.backward),this._setFakeOptions(l)}this.fire("change")}setFocus(r,l){if(null===this.anchor)throw new jn.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const p=vi._createAt(r,l);if("same"==p.compareWith(this.focus))return;const x=this.anchor;this._ranges.pop(),"before"==p.compareWith(x)?this._addRange(new zi(p,x),!0):this._addRange(new zi(x,p)),this.fire("change")}is(r){return"selection"===r||"view:selection"===r}_setRanges(r,l=!1){r=Array.from(r),this._ranges=[];for(const p of r)this._addRange(p);this._lastRangeBackward=!!l}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,l=!1){if(!(r instanceof zi))throw new jn.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(r),this._lastRangeBackward=!!l}_pushRange(r){for(const l of this._ranges)if(r.isIntersecting(l))throw new jn.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:r,intersectingRange:l});this._ranges.push(new zi(r.start,r.end))}}ao(ga,wa);class $r{constructor(r=null,l,p){this._selection=new ga,this._selection.delegate("change").to(this),this._selection.setTo(r,l,p)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}is(r){return"selection"===r||"documentSelection"==r||"view:selection"==r||"view:documentSelection"==r}_setTo(r,l,p){this._selection.setTo(r,l,p)}_setFocus(r,l){this._selection.setFocus(r,l)}}ao($r,wa);class fs{constructor(r){this.selection=new $r,this.roots=new Er({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let l=!1;do{for(const p of this._postFixers)if(l=p(r),l)break}while(l)}}ao(fs,St);class Us extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=Kr,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new jn.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}is(r,l=null){return l?l===this.name&&("attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r):"attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r){const l=super._clone(r);return l._priority=this._priority,l._id=this._id,l}}function Kr(){if(Vr(this))return null;let b=this.parent;for(;b&&b.is("attributeElement");){if(Vr(b)>1)return null;b=b.parent}return!b||Vr(b)>1?null:this.childCount}function Vr(b){return Array.from(b.getChildren()).filter(r=>!r.is("uiElement")).length}Us.DEFAULT_PRIORITY=10;class os extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=tc}is(r,l=null){return l?l===this.name&&("emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r):"emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,l){if(l&&(l instanceof la||Array.from(l).length>0))throw new jn.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,l])}}function tc(){return null}const ec=navigator.userAgent.toLowerCase();var ws_isMac=function(b){return b.indexOf("macintosh")>-1}(ec),ws_isGecko=function(b){return!!b.match(/gecko\/\d+/)}(ec),ws_isSafari=function(b){return b.indexOf(" applewebkit/")>-1&&-1===b.indexOf("chrome")}(ec),ws_isAndroid=function(b){return b.indexOf("android")>-1}(ec);!function(){let b=!1;try{b=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}();const o1={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},rr={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},na=function(){const b={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let r=65;r<=90;r++)b[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)b[r-48]=r;for(let r=112;r<=123;r++)b["f"+(r-111)]=r;return b}();function Ba(b){let r;if("string"==typeof b){if(r=na[b.toLowerCase()],!r)throw new jn.b("keyboard-unknown-key: Unknown key name.",null,{key:b})}else r=b.keyCode+(b.altKey?na.alt:0)+(b.ctrlKey?na.ctrl:0)+(b.shiftKey?na.shift:0);return r}function sp(b){return"string"==typeof b&&(b=cp(b)),b.map(r=>"string"==typeof r?Ba(r):r).reduce((r,l)=>l+r,0)}function L1(b){return ws_isMac?cp(b).map(r=>rr[r.toLowerCase()]||r).reduce((r,l)=>r.slice(-1)in o1?r+l:r+"+"+l):b}function ed(b){return b==na.arrowright||b==na.arrowleft||b==na.arrowup||b==na.arrowdown}function Wc(b,r){const l="ltr"===r;switch(b){case na.arrowleft:return l?"left":"right";case na.arrowright:return l?"right":"left";case na.arrowup:return"up";case na.arrowdown:return"down"}}function a1(b,r){const l=Wc(b,r);return"down"===l||"right"===l}function cp(b){return b.split(/\s*\+\s*/)}class yu extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=lp}is(r,l=null){return l?l===this.name&&("uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r):"uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,l){if(l&&(l instanceof la||Array.from(l).length>0))throw new jn.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}render(r){return this.toDomElement(r)}toDomElement(r){const l=r.createElement(this.name);for(const p of this.getAttributeKeys())l.setAttribute(p,this.getAttribute(p));return l}}function lp(){return null}class Au extends Xs{constructor(r,l,p,x){super(r,l,p,x),this.getFillerOffset=pc}is(r,l=null){return l?l===this.name&&("rawElement"===r||"view:rawElement"===r||"element"===r||"view:element"===r):"rawElement"===r||"view:rawElement"===r||r===this.name||r==="view:"+this.name||"element"===r||"view:element"===r||"node"===r||"view:node"===r}_insertChild(r,l){if(l&&(l instanceof la||Array.from(l).length>0))throw new jn.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,l])}}function pc(){return null}class Gl{constructor(r,l){this.document=r,this._children=[],l&&this._insertChild(0,l)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(r){return"documentFragment"===r||"view:documentFragment"===r}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,l){this._fireChange("children",this);let p=0;const x=(Z=this.document,"string"==typeof(k=l)?[new or(Z,k)]:(za(k)||(k=[k]),Array.from(k).map(H=>"string"==typeof H?new or(Z,H):H instanceof Wr?new or(Z,H.data):H)));var Z,k;for(const Z of x)null!==Z.parent&&Z._remove(),Z.parent=this,this._children.splice(r,0,Z),r++,p++;return p}_removeChildren(r,l=1){this._fireChange("children",this);for(let p=r;p{}),x}setAttribute(r,l,p){p._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,p){Gt(r)&&void 0===p&&(p=l),p._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,p){p._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}breakAttributes(r){return r instanceof vi?this._breakAttributes(r):this._breakAttributesRange(r)}breakContainer(r){const l=r.parent;if(!l.is("containerElement"))throw new jn.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!l.parent)throw new jn.b("view-writer-break-root: Trying to break root element.",this.document);if(r.isAtStart)return vi._createBefore(l);if(!r.isAtEnd){const p=l._clone(!1);this.insert(vi._createAfter(l),p);const x=new zi(r,vi._createAt(l,"end")),Z=new vi(p,0);this.move(x,Z)}return vi._createAfter(l)}mergeAttributes(r){const l=r.offset,p=r.parent;if(p.is("$text"))return r;if(p.is("attributeElement")&&0===p.childCount){const k=p.parent,H=p.index;return p._remove(),this._removeFromClonedElementsGroup(p),this.mergeAttributes(new vi(k,H))}const x=p.getChild(l-1),Z=p.getChild(l);if(!x||!Z)return r;if(x.is("$text")&&Z.is("$text"))return nd(x,Z);if(x.is("attributeElement")&&Z.is("attributeElement")&&x.isSimilar(Z)){const k=x.childCount;return x._appendChild(Z.getChildren()),Z._remove(),this._removeFromClonedElementsGroup(Z),this.mergeAttributes(new vi(x,k))}return r}mergeContainers(r){const l=r.nodeBefore,p=r.nodeAfter;if(!(l&&p&&l.is("containerElement")&&p.is("containerElement")))throw new jn.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const x=l.getChild(l.childCount-1),Z=vi._createAt(x instanceof or?x:l,"end");return this.move(zi._createIn(p),vi._createAt(l,"end")),this.remove(zi._createOn(p)),Z}insert(r,l){!function G(rt,ft){for(const Mt of rt){if(!io.some(he=>Mt instanceof he))throw new jn.b("view-writer-insert-invalid-node",ft);Mt.is("$text")||G(Mt.getChildren(),ft)}}(l=za(l)?[...l]:[l],this.document);const p=ym(r);if(!p)throw new jn.b("view-writer-invalid-position-container",this.document);const x=this._breakAttributes(r,!0),Z=p._insertChild(x.offset,l);for(const G of l)this._addToClonedElementsGroup(G);const k=x.getShiftedBy(Z),H=this.mergeAttributes(x);if(0===Z)return new zi(H,H);{H.isEqual(x)||k.offset--;const G=this.mergeAttributes(k);return new zi(H,G)}}remove(r){const l=r instanceof zi?r:zi._createOn(r);if(Y(l,this.document),l.isCollapsed)return new Gl(this.document);const{start:p,end:x}=this._breakAttributesRange(l,!0),H=p.parent._removeChildren(p.offset,x.offset-p.offset);for(const rt of H)this._removeFromClonedElementsGroup(rt);const G=this.mergeAttributes(p);return l.start=G,l.end=G.clone(),new Gl(this.document,H)}clear(r,l){Y(r,this.document);const p=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const x of p){const Z=x.item;let k;if(Z.is("element")&&l.isSimilar(Z))k=zi._createOn(Z);else if(!x.nextPosition.isAfter(r.start)&&Z.is("$textProxy")){const H=Z.getAncestors().find(G=>G.is("element")&&l.isSimilar(G));H&&(k=zi._createIn(H))}k&&(k.end.isAfter(r.end)&&(k.end=r.end),k.start.isBefore(r.start)&&(k.start=r.start),this.remove(k))}}move(r,l){let p;if(l.isAfter(r.end)){const x=(l=this._breakAttributes(l,!0)).parent,Z=x.childCount;r=this._breakAttributesRange(r,!0),p=this.remove(r),l.offset+=x.childCount-Z}else p=this.remove(r);return this.insert(l,p)}wrap(r,l){if(!(l instanceof Us))throw new jn.b("view-writer-wrap-invalid-attribute",this.document);if(Y(r,this.document),r.isCollapsed){let x=r.start;x.parent.is("element")&&!Array.from(x.parent.getChildren()).some(k=>!k.is("uiElement"))&&(x=x.getLastMatchingPosition(k=>k.item.is("uiElement"))),x=this._wrapPosition(x,l);const Z=this.document.selection;return Z.isCollapsed&&Z.getFirstPosition().isEqual(r.start)&&this.setSelection(x),new zi(x)}return this._wrapRange(r,l)}unwrap(r,l){if(!(l instanceof Us))throw new jn.b("view-writer-unwrap-invalid-attribute",this.document);if(Y(r,this.document),r.isCollapsed)return r;const{start:p,end:x}=this._breakAttributesRange(r,!0),k=this._unwrapChildren(p.parent,p.offset,x.offset,l),H=this.mergeAttributes(k.start);H.isEqual(k.start)||k.end.offset--;const G=this.mergeAttributes(k.end);return new zi(H,G)}rename(r,l){const p=new ur(this.document,r,l.getAttributes());return this.insert(vi._createAfter(l),p),this.move(zi._createIn(l),vi._createAt(p,0)),this.remove(zi._createOn(l)),p}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,l){return vi._createAt(r,l)}createPositionAfter(r){return vi._createAfter(r)}createPositionBefore(r){return vi._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeOn(r){return zi._createOn(r)}createRangeIn(r){return zi._createIn(r)}createSelection(r,l,p){return new ga(r,l,p)}_wrapChildren(r,l,p,x){let Z=l;const k=[];for(;Z!1,r.parent._insertChild(r.offset,p);const x=new zi(r,r.getShiftedBy(1));this.wrap(x,l);const Z=new vi(p.parent,p.index);p._remove();const k=Z.nodeBefore,H=Z.nodeAfter;return k instanceof or&&H instanceof or?nd(k,H):Ml(Z)}_wrapAttributeElement(r,l){if(!ra(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const p of r.getAttributeKeys())if("class"!==p&&"style"!==p&&l.hasAttribute(p)&&l.getAttribute(p)!==r.getAttribute(p))return!1;for(const p of r.getStyleNames())if(l.hasStyle(p)&&l.getStyle(p)!==r.getStyle(p))return!1;for(const p of r.getAttributeKeys())"class"!==p&&"style"!==p&&(l.hasAttribute(p)||this.setAttribute(p,r.getAttribute(p),l));for(const p of r.getStyleNames())l.hasStyle(p)||this.setStyle(p,r.getStyle(p),l);for(const p of r.getClassNames())l.hasClass(p)||this.addClass(p,l);return!0}_unwrapAttributeElement(r,l){if(!ra(r,l)||r.name!==l.name||r.priority!==l.priority)return!1;for(const p of r.getAttributeKeys())if("class"!==p&&"style"!==p&&(!l.hasAttribute(p)||l.getAttribute(p)!==r.getAttribute(p)))return!1;if(!l.hasClass(...r.getClassNames()))return!1;for(const p of r.getStyleNames())if(!l.hasStyle(p)||l.getStyle(p)!==r.getStyle(p))return!1;for(const p of r.getAttributeKeys())"class"!==p&&"style"!==p&&this.removeAttribute(p,l);return this.removeClass(Array.from(r.getClassNames()),l),this.removeStyle(Array.from(r.getStyleNames()),l),!0}_breakAttributesRange(r,l=!1){const p=r.start,x=r.end;if(Y(r,this.document),r.isCollapsed){const G=this._breakAttributes(r.start,l);return new zi(G,G)}const Z=this._breakAttributes(x,l),k=Z.parent.childCount,H=this._breakAttributes(p,l);return Z.offset+=Z.parent.childCount-k,new zi(H,Z)}_breakAttributes(r,l=!1){const p=r.offset,x=r.parent;if(r.parent.is("emptyElement"))throw new jn.b("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new jn.b("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new jn.b("view-writer-cannot-break-raw-element: Cannot break inside a RawElement instance.",this.document);if(!l&&x.is("$text")&&sn(x.parent)||sn(x))return r.clone();if(x.is("$text"))return this._breakAttributes(On(r),l);if(p==x.childCount){const Z=new vi(x.parent,x.index+1);return this._breakAttributes(Z,l)}if(0===p){const Z=new vi(x.parent,x.index);return this._breakAttributes(Z,l)}{const Z=x.index+1,k=x._clone();x.parent._insertChild(Z,k),this._addToClonedElementsGroup(k);const G=x._removeChildren(p,x.childCount-p);k._appendChild(G);const rt=new vi(x.parent,Z);return this._breakAttributes(rt,l)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const x of r.getChildren())this._addToClonedElementsGroup(x);const l=r.id;if(!l)return;let p=this._cloneGroups.get(l);p||(p=new Set,this._cloneGroups.set(l,p)),p.add(r),r._clonesGroup=p}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const x of r.getChildren())this._removeFromClonedElementsGroup(x);const l=r.id;if(!l)return;const p=this._cloneGroups.get(l);p&&p.delete(r)}}function ym(b){let r=b.parent;for(;!sn(r);){if(!r)return;r=r.parent}return r}function Br(b,r){return b.priorityr.priority)&&b.getIdentity()b.createTextNode("\xa0"),f_=b=>{const r=b.createElement("br");return r.dataset.ckeFiller=!0,r},Sp=(()=>{let b="";for(let r=0;r<7;r++)b+="\u200b";return b})();function sa(b){return qr(b)&&b.data.substr(0,7)===Sp}function Ls(b){return 7==b.data.length&&sa(b)}function Tm(b){return sa(b)?b.data.slice(7):b.data}function Es(b,r){if(r.keyCode==na.arrowleft){const l=r.domTarget.ownerDocument.defaultView.getSelection();if(1==l.rangeCount&&l.getRangeAt(0).collapsed){const p=l.getRangeAt(0).startContainer,x=l.getRangeAt(0).startOffset;sa(p)&&x<=7&&l.collapse(p,0)}}}function kp(b,r,l,p=!1){l=l||function(Z,k){return Z===k},Array.isArray(b)||(b=Array.prototype.slice.call(b)),Array.isArray(r)||(r=Array.prototype.slice.call(r));const x=function(Z,k,H){const G=E1(Z,k,H);if(-1===G)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Mt=E1(h_(Z,G),h_(k,G),H);return{firstIndex:G,lastIndexOld:Z.length-Mt,lastIndexNew:k.length-Mt}}(b,r,l);return p?function(Z,k){const{firstIndex:H,lastIndexOld:G,lastIndexNew:rt}=Z;if(-1===H)return Array(k).fill("equal");let ft=[];return H>0&&(ft=ft.concat(Array(H).fill("equal"))),rt-H>0&&(ft=ft.concat(Array(rt-H).fill("insert"))),G-H>0&&(ft=ft.concat(Array(G-H).fill("delete"))),rt0&&H.push({index:G,type:"insert",values:Z.slice(G,ft)}),rt-G>0&&H.push({index:G+(ft-G),type:"delete",howMany:rt-G}),H}(r,x)}function E1(b,r,l){for(let p=0;p200||x>200||p+x>300)return qc.fastDiff(b,r,l,!0);let Z,k;if(xQn?-1:1;ft[Mn+Fi]&&(ft[Mn]=ft[Mn+Fi].slice(0)),ft[Mn]||(ft[Mn]=[]),ft[Mn].push(In>Qn?Z:k);let Ji=Math.max(In,Qn),Uo=Ji-Mn;for(;Uort;Je--)Mt[Je]=he(Je);Mt[rt]=he(rt),fn++}while(Mt[rt]!==G);return ft[rt].slice(1)}function mc(b,r,l){b.insertBefore(l,b.childNodes[r]||null)}function Tc(b){const r=b.parentNode;r&&r.removeChild(b)}function cu(b){if(b){if(b.defaultView)return b instanceof b.defaultView.Document;if(b.ownerDocument&&b.ownerDocument.defaultView)return b instanceof b.ownerDocument.defaultView.Node}return!1}qc.fastDiff=kp;class id{constructor(r,l){this.domDocuments=new Set,this.domConverter=r,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=l,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(r,l){if("text"===r)this.domConverter.mapViewToDom(l.parent)&&this.markedTexts.add(l);else{if(!this.domConverter.mapViewToDom(l))return;if("attributes"===r)this.markedAttributes.add(l);else{if("children"!==r)throw new jn.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(l)}}}render(){let r;for(const l of this.markedChildren)this._updateChildrenMappings(l);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent));for(const l of this.markedAttributes)this._updateAttrs(l);for(const l of this.markedChildren)this._updateChildren(l,{inlineFillerPosition:r});for(const l of this.markedTexts)!this.markedChildren.has(l.parent)&&this.domConverter.mapViewToDom(l.parent)&&this._updateText(l,{inlineFillerPosition:r});if(r){const l=this.domConverter.viewPositionToDom(r),p=l.parent.ownerDocument;this._inlineFiller=sa(l.parent)?l.parent:od(p,l.parent,l.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const l=this.domConverter.mapViewToDom(r);if(!l)return;const p=this.domConverter.mapViewToDom(r).childNodes,x=Array.from(this.domConverter.viewChildrenToDom(r,l.ownerDocument,{withChildren:!1})),Z=this._diffNodeLists(p,x),k=this._findReplaceActions(Z,p,x);if(-1!==k.indexOf("replace")){const H={equal:0,insert:0,delete:0};for(const G of k)if("replace"===G){const rt=H.equal+H.insert,ft=H.equal+H.delete,Mt=r.getChild(rt);!Mt||Mt.is("uiElement")||Mt.is("rawElement")||this._updateElementMappings(Mt,p[ft]),Tc(x[rt]),H.equal++}else H[G]++}}_updateElementMappings(r,l){this.domConverter.unbindDomElement(l),this.domConverter.bindElements(l,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?vi._createBefore(this.selection.getFirstPosition().parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),l=this.domConverter.viewPositionToDom(r);return!!(l&&qr(l.parent)&&sa(l.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!sa(r))throw new jn.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);Ls(r)?r.parentNode.removeChild(r):r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),l=r.parent,p=r.offset;return!!(this.domConverter.mapViewToDom(l.root)&&l.is("element")&&function(k){if("false"==k.getAttribute("contenteditable"))return!1;const H=k.findAncestor(G=>G.hasAttribute("contenteditable"));return!H||"true"==H.getAttribute("contenteditable")}(l)&&p!==l.getFillerOffset())&&!(r.nodeBefore instanceof or||r.nodeAfter instanceof or)}_updateText(r,l){const p=this.domConverter.findCorrespondingDomText(r),x=this.domConverter.viewToDom(r,p.ownerDocument),Z=p.data;let k=x.data;const H=l.inlineFillerPosition;if(H&&H.parent==r.parent&&H.offset==r.index&&(k=Sp+k),Z!=k){const G=kp(Z,k);for(const rt of G)"insert"===rt.type?p.insertData(rt.index,rt.values.join("")):p.deleteData(rt.index,rt.howMany)}}_updateAttrs(r){const l=this.domConverter.mapViewToDom(r);if(!l)return;const p=Array.from(l.attributes).map(Z=>Z.name),x=r.getAttributeKeys();for(const Z of x)l.setAttribute(Z,r.getAttribute(Z));for(const Z of p)r.hasAttribute(Z)||l.removeAttribute(Z)}_updateChildren(r,l){const p=this.domConverter.mapViewToDom(r);if(!p)return;const x=l.inlineFillerPosition,Z=this.domConverter.mapViewToDom(r).childNodes,k=Array.from(this.domConverter.viewChildrenToDom(r,p.ownerDocument,{bind:!0,inlineFillerPosition:x}));x&&x.parent===r&&od(p.ownerDocument,k,x.offset);const H=this._diffNodeLists(Z,k);let G=0;const rt=new Set;for(const ft of H)"delete"===ft?(rt.add(Z[G]),Tc(Z[G])):"equal"===ft&&G++;G=0;for(const ft of H)"insert"===ft?(mc(p,G,k[G]),G++):"equal"===ft&&(this._markDescendantTextToSync(this.domConverter.domToView(k[G])),G++);for(const ft of rt)ft.parentNode||this.domConverter.unbindDomElement(ft)}_diffNodeLists(r,l){return qc(r=function(p,x){const Z=Array.from(p);return 0==Z.length||!x||Z[Z.length-1]==x&&Z.pop(),Z}(r,this._fakeSelectionContainer),l,e2.bind(null,this.domConverter))}_findReplaceActions(r,l,p){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let x=[],Z=[],k=[];const H={equal:0,insert:0,delete:0};for(const G of r)"insert"===G?k.push(p[H.equal+H.insert]):"delete"===G?Z.push(l[H.equal+H.delete]):(x=x.concat(qc(Z,k,lu).map(rt=>"equal"===rt?"replace":rt)),x.push("equal"),Z=[],k=[]),H[G]++;return x.concat(qc(Z,k,lu).map(G=>"equal"===G?"replace":G))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const l of r.getChildren())this._markDescendantTextToSync(l)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):(this._removeFakeSelection(),this._updateDomSelection(r)))}_updateFakeSelection(r){const l=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(k){const H=k.createElement("div");return Object.assign(H.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),H.textContent="\xa0",H}(l));const p=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(p,this.selection),!this._fakeSelectionNeedsUpdate(r))return;p.parentElement&&p.parentElement==r||r.appendChild(p),p.textContent=this.selection.fakeSelectionLabel||"\xa0";const x=l.getSelection(),Z=l.createRange();x.removeAllRanges(),Z.selectNodeContents(p),x.addRange(Z)}_updateDomSelection(r){const l=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(l))return;const p=this.domConverter.viewPositionToDom(this.selection.anchor),x=this.domConverter.viewPositionToDom(this.selection.focus);r.focus(),l.collapse(p.parent,p.offset),l.extend(x.parent,x.offset),ws_isGecko&&function(Z,k){const H=Z.parent;if(H.nodeType!=Node.ELEMENT_NODE||Z.offset!=H.childNodes.length-1)return;const G=H.childNodes[Z.offset];G&&"BR"==G.tagName&&k.addRange(k.getRangeAt(0))}(x,l)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const l=r&&this.domConverter.domSelectionToView(r);return!(l&&this.selection.isEqual(l)||!this.selection.isCollapsed&&this.selection.isSimilar(l))}_fakeSelectionNeedsUpdate(r){const l=this._fakeSelectionContainer,p=r.ownerDocument.getSelection();return!l||l.parentElement!==r||p.anchorNode!==l&&!l.contains(p.anchorNode)||l.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments)if(r.getSelection().rangeCount){const l=r.activeElement,p=this.domConverter.mapDomToView(l);l&&p&&r.getSelection().removeAllRanges()}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function od(b,r,l){const p=r instanceof Array?r:r.childNodes,x=p[l];if(qr(x))return x.data=Sp+x.data,x;{const Z=b.createTextNode(Sp);return Array.isArray(r)?p.splice(l,0,Z):mc(r,l,Z),Z}}function lu(b,r){return cu(b)&&cu(r)&&!qr(b)&&!qr(r)&&b.nodeType!==Node.COMMENT_NODE&&r.nodeType!==Node.COMMENT_NODE&&b.tagName.toLowerCase()===r.tagName.toLowerCase()}function e2(b,r,l){return r===l||(qr(r)&&qr(l)?r.data===l.data:!(!b.isBlockFiller(r)||!b.isBlockFiller(l)))}ao(id,St);var ht={window,document};function vt(b){let r=0;for(;b.previousSibling;)b=b.previousSibling,r++;return r}function st(b){const r=[];for(;b&&b.nodeType!=Node.DOCUMENT_NODE;)r.unshift(b),b=b.parentNode;return r}const Ot=f_(document);class ne{constructor(r,l={}){this.document=r,this.blockFillerMode=l.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?f_:dr,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(r,l){this._fakeSelectionMapping.set(r,new ga(l))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,l){this._domToViewMapping.set(r,l),this._viewToDomMapping.set(l,r)}unbindDomElement(r){const l=this._domToViewMapping.get(r);if(l){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(l);for(const p of r.childNodes)this.unbindDomElement(p)}}bindDocumentFragments(r,l){this._domToViewMapping.set(r,l),this._viewToDomMapping.set(l,r)}viewToDom(r,l,p={}){if(r.is("$text")){const x=this._processDataFromViewText(r);return l.createTextNode(x)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let x;if(r.is("documentFragment"))x=l.createDocumentFragment(),p.bind&&this.bindDocumentFragments(x,r);else{if(r.is("uiElement"))return x=r.render(l),p.bind&&this.bindElements(x,r),x;x=r.hasAttribute("xmlns")?l.createElementNS(r.getAttribute("xmlns"),r.name):l.createElement(r.name),r.is("rawElement")&&r.render(x),p.bind&&this.bindElements(x,r);for(const Z of r.getAttributeKeys())x.setAttribute(Z,r.getAttribute(Z))}if(p.withChildren||void 0===p.withChildren)for(const Z of this.viewChildrenToDom(r,l,p))x.appendChild(Z);return x}}*viewChildrenToDom(r,l,p={}){const x=r.getFillerOffset&&r.getFillerOffset();let Z=0;for(const k of r.getChildren())x===Z&&(yield this._blockFiller(l)),yield this.viewToDom(k,l,p),Z++;x===Z&&(yield this._blockFiller(l))}viewRangeToDom(r){const l=this.viewPositionToDom(r.start),p=this.viewPositionToDom(r.end),x=document.createRange();return x.setStart(l.parent,l.offset),x.setEnd(p.parent,p.offset),x}viewPositionToDom(r){const l=r.parent;if(l.is("$text")){const p=this.findCorrespondingDomText(l);if(!p)return null;let x=r.offset;return sa(p)&&(x+=7),{parent:p,offset:x}}{let p,x,Z;if(0===r.offset){if(p=this.mapViewToDom(l),!p)return null;Z=p.childNodes[0]}else{const k=r.nodeBefore;if(x=k.is("$text")?this.findCorrespondingDomText(k):this.mapViewToDom(r.nodeBefore),!x)return null;p=x.parentNode,Z=x.nextSibling}return qr(Z)&&sa(Z)?{parent:Z,offset:7}:{parent:p,offset:x?vt(x)+1:0}}}domToView(r,l={}){if(this.isBlockFiller(r,this.blockFillerMode))return null;const p=this.getHostViewElement(r,this._domToViewMapping);if(p)return p;if(qr(r)){if(Ls(r))return null;{const x=this._processDataFromDomText(r);return""===x?null:new or(this.document,x)}}if(this.isComment(r))return null;{if(this.mapDomToView(r))return this.mapDomToView(r);let x;if(this.isDocumentFragment(r))x=new Gl(this.document),l.bind&&this.bindDocumentFragments(r,x);else{const Z=l.keepOriginalCase?r.tagName:r.tagName.toLowerCase();x=new Xs(this.document,Z),l.bind&&this.bindElements(r,x);const k=r.attributes;for(let H=k.length-1;H>=0;H--)x._setAttribute(k[H].name,k[H].value)}if(l.withChildren||void 0===l.withChildren)for(const Z of this.domChildrenToView(r,l))x._appendChild(Z);return x}}*domChildrenToView(r,l={}){for(let p=0;p{const{scrollLeft:H,scrollTop:G}=k;Z.push([H,G])}),l.focus(),de(l,k=>{const[H,G]=Z.shift();k.scrollLeft=H,k.scrollTop=G}),ht.window.scrollTo(p,x)}}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(r){return r&&r.nodeType==Node.COMMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(Ot):!("BR"!==r.tagName||!Jt(r,this.blockElements)||1!==r.parentNode.childNodes.length)||function(l,p){return qr(l)&&"\xa0"==l.data&&Jt(l,p)&&1===l.parentNode.childNodes.length}(r,this.blockElements)}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const l=document.createRange();l.setStart(r.anchorNode,r.anchorOffset),l.setEnd(r.focusNode,r.focusOffset);const p=l.collapsed;return l.detach(),p}getHostViewElement(r){const l=st(r);for(l.pop();l.length;){const p=l.pop(),x=this._domToViewMapping.get(p);if(x&&(x.is("uiElement")||x.is("rawElement")))return x}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}_isDomSelectionPositionCorrect(r,l){if(qr(r)&&sa(r)&&l<7||this.isElement(r)&&sa(r.childNodes[l]))return!1;const p=this.mapDomToView(r);return!p||!p.is("uiElement")&&!p.is("rawElement")}_processDataFromViewText(r){let l=r.data;if(r.getAncestors().some(p=>this.preElements.includes(p.name)))return l;if(" "==l.charAt(0)){const p=this._getTouchingViewTextNode(r,!1);(!p||!this._nodeEndsWithSpace(p))&&p||(l="\xa0"+l.substr(1))}if(" "==l.charAt(l.length-1)){const p=this._getTouchingViewTextNode(r,!0);" "!=l.charAt(l.length-2)&&p&&" "!=p.data.charAt(0)||(l=l.substr(0,l.length-1)+"\xa0")}return l.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(p=>this.preElements.includes(p.name)))return!1;const l=this._processDataFromViewText(r);return" "==l.charAt(l.length-1)}_processDataFromDomText(r){let l=r.data;if(fe(r,this.preElements))return Tm(r);l=l.replace(/[ \n\t\r]{1,}/g," ");const p=this._getTouchingInlineDomNode(r,!1),x=this._getTouchingInlineDomNode(r,!0),Z=this._checkShouldLeftTrimDomText(p),k=this._checkShouldRightTrimDomText(r,x);return Z&&(l=l.replace(/^ /,"")),k&&(l=l.replace(/ $/,"")),l=Tm(new Text(l)),l=l.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(l)||!x||x.data&&" "==x.data.charAt(0))&&(l=l.replace(/\u00A0$/," ")),Z&&(l=l.replace(/^\u00A0/," ")),l}_checkShouldLeftTrimDomText(r){return!r||!!ys(r)||/[^\S\u00A0]/.test(r.data.charAt(r.data.length-1))}_checkShouldRightTrimDomText(r,l){return!l&&!sa(r)}_getTouchingViewTextNode(r,l){const p=new xo({startPosition:l?vi._createAfter(r):vi._createBefore(r),direction:l?"forward":"backward"});for(const x of p){if(x.item.is("containerElement")||x.item.is("element","br"))return null;if(x.item.is("$textProxy"))return x.item}return null}_getTouchingInlineDomNode(r,l){if(!r.parentNode)return null;const p=l?"nextNode":"previousNode",x=r.ownerDocument,Z=st(r)[0],k=x.createTreeWalker(Z,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:G=>qr(G)||"BR"==G.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});k.currentNode=r;const H=k[p]();if(null!==H){const G=function(rt,ft){const Mt=st(rt),he=st(ft);let Je=0;for(;Mt[Je]==he[Je]&&Mt[Je];)Je++;return 0===Je?null:Mt[Je-1]}(r,H);if(G&&!fe(r,this.blockElements,G)&&!fe(H,this.blockElements,G))return H}return null}}function fe(b,r,l){let p=st(b);return l&&(p=p.slice(p.indexOf(l)+1)),p.some(x=>x.tagName&&r.includes(x.tagName.toLowerCase()))}function de(b,r){for(;b&&b!=ht.document;)r(b),b=b.parentNode}function Jt(b,r){const l=b.parentNode;return l&&l.tagName&&r.includes(l.tagName.toLowerCase())}function Cn(b){const r=Object.prototype.toString.apply(b);return"[object Window]"==r||"[object global]"==r}var Ri=Pt({},wa,{listenTo(b,...r){if(cu(b)||Cn(b)){const l=this._getProxyEmitter(b)||new po(b);l.attach(...r),b=l}wa.listenTo.call(this,b,...r)},stopListening(b,r,l){if(cu(b)||Cn(b)){const p=this._getProxyEmitter(b);if(!p)return;b=p}wa.stopListening.call(this,b,r,l),b instanceof po&&b.detach(r)},_getProxyEmitter(b){return r=this,l=Zi(b),r[zs]&&r[zs][l]?r[zs][l].emitter:null;var r,l}});class po{constructor(r){is(this,Zi(r)),this._domNode=r}}function Zi(b){return b["data-ck-expando"]||(b["data-ck-expando"]=xr())}Pt(po.prototype,wa,{attach(b,r,l={}){if(this._domListeners&&this._domListeners[b])return;const p=this._createDomListener(b,!!l.useCapture);this._domNode.addEventListener(b,p,!!l.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[b]=p},detach(b){let r;!this._domListeners[b]||(r=this._events[b])&&r.callbacks.length||this._domListeners[b].removeListener()},_createDomListener(b,r){const l=p=>{this.fire(b,p)};return l.removeListener=()=>{this._domNode.removeEventListener(b,l,r),delete this._domListeners[b]},l}});class ja{constructor(r){this.view=r,this.document=r.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}}ao(ja,Ri);function Kc(b){var r=-1,l=null==b?0:b.length;for(this.__data__=new xn;++rH))return!1;var rt=Z.get(b);if(rt&&Z.get(r))return rt==r;var ft=-1,Mt=!0,he=2&l?new pl:void 0;for(Z.set(b,r),Z.set(r,b);++ft{this.listenTo(r,l,(p,x)=>{this.isEnabled&&this.onDomEvent(x)},{useCapture:this.useCapture})})}fire(r,l,p){this.isEnabled&&this.document.fire(r,new F1(this.view,l,p))}}class up extends N1{constructor(r){super(r),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey||r.metaKey,shiftKey:r.shiftKey,get keystroke(){return Ba(this)}})}}var n2=function(){return v.a.Date.now()},v_=/^\s+|\s+$/g,ic=/^[-+]0x[0-9a-f]+$/i,s1=/^0b[01]+$/i,Ep=/^0o[0-7]+$/i,rd=parseInt,sd=function(b){if("number"==typeof b)return b;if(Nt(b))return NaN;if(Qt(b)){var r="function"==typeof b.valueOf?b.valueOf():b;b=Qt(r)?r+"":r}if("string"!=typeof b)return 0===b?b:+b;b=b.replace(v_,"");var l=s1.test(b);return l||Ep.test(b)?rd(b.slice(2),l?2:8):ic.test(b)?NaN:+b},c1=Math.max,Zd=Math.min,x_=function(b,r,l){var p,x,Z,k,H,G,rt=0,ft=!1,Mt=!1,he=!0;if("function"!=typeof b)throw new TypeError("Expected a function");function Je(Ji){var Uo=p,va=x;return p=x=void 0,rt=Ji,k=b.apply(va,Uo)}function fn(Ji){return rt=Ji,H=setTimeout(In,r),ft?Je(Ji):k}function Mn(Ji){var Uo=Ji-G;return void 0===G||Uo>=r||Uo<0||Mt&&Ji-rt>=Z}function In(){var Uo,va,Ji=n2();if(Mn(Ji))return Qn(Ji);H=setTimeout(In,(va=r-((Uo=Ji)-G),Mt?Zd(va,Z-(Uo-rt)):va))}function Qn(Ji){return H=void 0,he&&p?Je(Ji):(p=x=void 0,k)}function Fi(){var Ji=n2(),Uo=Mn(Ji);if(p=arguments,x=this,G=Ji,Uo){if(void 0===H)return fn(G);if(Mt)return clearTimeout(H),H=setTimeout(In,r),Je(G)}return void 0===H&&(H=setTimeout(In,r)),k}return r=sd(r)||0,Qt(l)&&(ft=!!l.leading,Z=(Mt="maxWait"in l)?c1(sd(l.maxWait)||0,r):Z,he="trailing"in l?!!l.trailing:he),Fi.cancel=function(){void 0!==H&&clearTimeout(H),rt=0,p=G=x=H=void 0},Fi.flush=function(){return void 0===H?k:Qn(n2())},Fi};class ml extends ja{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=x_(l=>this.document.fire("selectionChangeDone",l),200)}observe(){const r=this.document;r.on("keydown",(l,p)=>{var x;r.selection.isFake&&((x=p.keyCode)==na.arrowright||x==na.arrowleft||x==na.arrowup||x==na.arrowdown)&&this.isEnabled&&(p.preventDefault(),this._handleSelectionMove(p.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const l=this.document.selection,p=new ga(l.getRanges(),{backward:l.isBackward,fake:!1});r!=na.arrowleft&&r!=na.arrowup||p.setTo(p.getFirstPosition()),r!=na.arrowright&&r!=na.arrowdown||p.setTo(p.getLastPosition());const x={oldSelection:l,newSelection:p,domSelection:null};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}class o2 extends ja{constructor(r){super(r),this.mutationObserver=r.getObserver(ad),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=x_(l=>this.document.fire("selectionChangeDone",l),200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._loopbackCounter=0}observe(r){const l=r.ownerDocument;this._documents.has(l)||(this.listenTo(l,"selectionchange",()=>{this._handleSelectionChange(l)}),this._documents.add(l))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(r){if(!this.isEnabled)return;this.mutationObserver.flush();const l=r.defaultView.getSelection(),p=this.domConverter.domSelectionToView(l);if(0!=p.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(p)&&this.domConverter.isDomSelectionCorrect(l)||++this._loopbackCounter>60))if(this.selection.isSimilar(p))this.view.forceRender();else{const x={oldSelection:this.selection,newSelection:p,domSelection:l};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class A extends N1{constructor(r){super(r),this.domEventType=["focus","blur"],this.useCapture=!0;const l=this.document;l.on("focus",()=>{l.isFocused=!0,this._renderTimeoutId=setTimeout(()=>r.forceRender(),50)}),l.on("blur",(p,x)=>{const Z=l.selection.editableElement;null!==Z&&Z!==x.target||(l.isFocused=!1,r.forceRender())})}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class xt extends N1{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const l=this.document;l.on("compositionstart",()=>{l.isComposing=!0}),l.on("compositionend",()=>{l.isComposing=!1})}onDomEvent(r){this.fire(r.type,r)}}class Oi extends N1{constructor(r){super(r),this.domEventType=["beforeinput"]}onDomEvent(r){this.fire(r.type,r)}}function uu(b){return"[object Range]"==Object.prototype.toString.apply(b)}function l1(b){const r=b.ownerDocument.defaultView.getComputedStyle(b);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}const Md=["top","right","bottom","left","width","height"];class as{constructor(r){const l=uu(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),ys(r)||l)Um(this,l?as.getDomRangeRects(r)[0]:r.getBoundingClientRect());else if(Cn(r)){const{innerWidth:p,innerHeight:x}=r;Um(this,{top:0,right:p,bottom:x,left:0,width:p,height:x})}else Um(this,r)}clone(){return new as(this)}moveTo(r,l){return this.top=l,this.right=r+this.width,this.bottom=l+this.height,this.left=r,this}moveBy(r,l){return this.top+=l,this.right+=r,this.left+=r,this.bottom+=l,this}getIntersection(r){const l={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left)};return l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0||l.height<0?null:new as(l)}getIntersectionArea(r){const l=this.getIntersection(r);return l?l.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let l=this.clone();if(!Vs(r)){let p=r.parentNode||r.commonAncestorContainer;for(;p&&!Vs(p);){const x=new as(p),Z=l.getIntersection(x);if(!Z)return null;Z.getArea()Ie(b,p));const k=Ie(b,p);if(pp(p,k,r),p.parent!=p){if(x=p.frameElement,p=p.parent,!x)return}else p=null}}function pp(b,r,l){const p=r.clone().moveBy(0,l),x=r.clone().moveBy(0,-l),Z=new as(b).excludeScrollbarsAndBorders();if(![x,p].every(k=>Z.contains(k))){let{scrollX:k,scrollY:H}=b;pr(x,Z)?H-=Z.top-r.top+l:mp(p,Z)&&(H+=r.bottom-Z.bottom+l),R(r,Z)?k-=Z.left-r.left+l:pt(r,Z)&&(k+=r.right-Z.right+l),b.scrollTo(k,H)}}function I1(b,r){const l=Kt(b);let p,x;for(;b!=l.document.body;)x=r(),p=new as(b).excludeScrollbarsAndBorders(),p.contains(x)||(pr(x,p)?b.scrollTop-=p.top-x.top:mp(x,p)&&(b.scrollTop+=x.bottom-p.bottom),R(x,p)?b.scrollLeft-=p.left-x.left:pt(x,p)&&(b.scrollLeft+=x.right-p.right)),b=b.parentNode}function mp(b,r){return b.bottom>r.bottom}function pr(b,r){return b.topr.right}function Kt(b){return uu(b)?b.startContainer.ownerDocument.defaultView:b.ownerDocument.defaultView}function Ze(b){if(uu(b)){let r=b.commonAncestorContainer;return qr(r)&&(r=r.parentNode),r}return b.parentNode}function Ie(b,r){const l=Kt(b),p=new as(b);if(l===r)return p;{let x=l;for(;x!=r;){const k=new as(x.frameElement).excludeScrollbarsAndBorders();p.moveBy(k.left,k.top),x=x.parent}}return p}Object.assign({},{scrollViewportToShowTarget:dp,scrollAncestorsToShowTarget:function(b){I1(Ze(b),()=>new as(b))}});class ni{constructor(r){this.document=new fs(r),this.domConverter=new ne(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new id(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new su(this.document),this.addObserver(ad),this.addObserver(o2),this.addObserver(A),this.addObserver(up),this.addObserver(ml),this.addObserver(xt),ws_isAndroid&&this.addObserver(Oi),this.document.on("keydown",Es),function Tu(b){b.document.on("keydown",(r,l)=>function(p,x,Z){if(x.keyCode==na.arrowright){const k=x.domTarget.ownerDocument.defaultView.getSelection(),H=1==k.rangeCount&&k.getRangeAt(0).collapsed;if(H||x.shiftKey){const ft=Z.domPositionToView(k.focusNode,k.focusOffset);if(null===ft)return;let Mt=!1;const he=ft.getLastMatchingPosition(Je=>(Je.item.is("uiElement")&&(Mt=!0),!(!Je.item.is("uiElement")&&!Je.item.is("attributeElement"))));if(Mt){const Je=Z.viewPositionToDom(he);H?k.collapse(Je.parent,Je.offset):k.extend(Je.parent,Je.offset)}}}}(0,l,b.domConverter))}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(r,l="main"){const p=this.document.getRoot(l);p._name=r.tagName.toLowerCase();const x={};for(const{name:k,value:H}of Array.from(r.attributes))x[k]=H,"class"===k?this._writer.addClass(H.split(" "),p):this._writer.setAttribute(k,H,p);this._initialDomRootAttributes.set(r,x);const Z=()=>{this._writer.setAttribute("contenteditable",!p.isReadOnly,p),p.isReadOnly?this._writer.addClass("ck-read-only",p):this._writer.removeClass("ck-read-only",p)};Z(),this.domRoots.set(l,r),this.domConverter.bindElements(r,p),this._renderer.markToSync("children",p),this._renderer.markToSync("attributes",p),this._renderer.domDocuments.add(r.ownerDocument),p.on("change:children",(k,H)=>this._renderer.markToSync("children",H)),p.on("change:attributes",(k,H)=>this._renderer.markToSync("attributes",H)),p.on("change:text",(k,H)=>this._renderer.markToSync("text",H)),p.on("change:isReadOnly",()=>this.change(Z)),p.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const k of this._observers.values())k.observe(r,l)}detachDomRoot(r){const l=this.domRoots.get(r);Array.from(l.attributes).forEach(({name:x})=>l.removeAttribute(x));const p=this._initialDomRootAttributes.get(l);for(const x in p)l.setAttribute(x,p[x]);this.domRoots.delete(r),this.domConverter.unbindDomElement(l)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let l=this._observers.get(r);if(l)return l;l=new r(this),this._observers.set(r,l);for(const[p,x]of this.domRoots)l.observe(x,p);return l.enable(),l}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection(){const r=this.document.selection.getFirstRange();r&&dp({target:this.domConverter.viewRangeToDom(r),viewportOffset:20})}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new jn.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const l=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),l}catch(l){jn.b.rethrowUnexpectedError(l,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,l){return vi._createAt(r,l)}createPositionAfter(r){return vi._createAfter(r)}createPositionBefore(r){return vi._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeOn(r){return zi._createOn(r)}createRangeIn(r){return zi._createIn(r)}createSelection(r,l,p){return new ga(r,l,p)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}ao(ni,St);class qi{constructor(r){this.parent=null,this._attrs=Qa(r)}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new jn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new jn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let l=this;for(;l.parent;)r.unshift(l.startOffset),l=l.parent;return r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const l=[];let p=r.includeSelf?this:this.parent;for(;p;)l[r.parentFirst?"push":"unshift"](p),p=p.parent;return l}getCommonAncestor(r,l={}){const p=this.getAncestors(l),x=r.getAncestors(l);let Z=0;for(;p[Z]==x[Z]&&p[Z];)Z++;return 0===Z?null:p[Z-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const l=this.getPath(),p=r.getPath(),x=ps(l,p);switch(x){case"prefix":return!0;case"extension":return!1;default:return l[x](l[p[0]]=p[1],l),{})),r}is(r){return"node"===r||"model:node"===r}_clone(){return new qi(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,l){this._attrs.set(r,l)}_setAttributesTo(r){this._attrs=Qa(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}class Do extends qi{constructor(r,l){super(l),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}is(r){return"$text"===r||"model:$text"===r||"text"===r||"model:text"===r||"node"===r||"model:node"===r}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new Do(this.data,this.getAttributes())}static fromJSON(r){return new Do(r.data,r.attributes)}}class _a{constructor(r,l,p){if(this.textNode=r,l<0||l>r.offsetSize)throw new jn.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(p<0||l+p>r.offsetSize)throw new jn.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=r.data.substring(l,l+p),this.offsetInText=l}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(r){return"$textProxy"===r||"model:$textProxy"===r||"textProxy"===r||"model:textProxy"===r}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={includeSelf:!1,parentFirst:!1}){const l=[];let p=r.includeSelf?this:this.parent;for(;p;)l[r.parentFirst?"push":"unshift"](p),p=p.parent;return l}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Zr{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,l)=>r+l.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const l=this._nodes.indexOf(r);return-1==l?null:l}getNodeStartOffset(r){const l=this.getNodeIndex(r);return null===l?null:this._nodes.slice(0,l).reduce((p,x)=>p+x.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const l=this._nodes[r];if(!l)throw new jn.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(l)}offsetToIndex(r){let l=0;for(const p of this._nodes){if(r>=l&&rr.toJSON())}}class qa extends qi{constructor(r,l,p){super(l),this.name=r,this._children=new Zr,p&&this._insertChild(0,p)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(r,l=null){return l?l===this.name&&("element"===r||"model:element"===r):"element"===r||"model:element"===r||"node"===r||"model:node"===r}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let l=this;for(const p of r)l=l.getChild(l.offsetToIndex(p));return l}findAncestor(r,l={includeSelf:!1}){let p=l.includeSelf?this:this.parent;for(;p;){if(p.name===r)return p;p=p.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const l of this._children)r.children.push(l.toJSON())}return r}_clone(r=!1){const l=r?Array.from(this._children).map(p=>p._clone(!0)):null;return new qa(this.name,this.getAttributes(),l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const p="string"==typeof(x=l)?[new Do(x)]:(za(x)||(x=[x]),Array.from(x).map(Z=>"string"==typeof Z?new Do(Z):Z instanceof _a?new Do(Z.data,Z.getAttributes()):Z));var x;for(const x of p)null!==x.parent&&x._remove(),x.parent=this;this._children._insertNodes(r,p)}_removeChildren(r,l=1){const p=this._children._removeNodes(r,l);for(const x of p)x.parent=null;return p}static fromJSON(r){let l=null;if(r.children){l=[];for(const p of r.children)l.push(p.name?qa.fromJSON(p):Do.fromJSON(p))}return new qa(r.name,r.attributes,l)}}class Xc{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new jn.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);const l=r.direction||"forward";if("forward"!=l&&"backward"!=l)throw new jn.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",r,{direction:l});this.direction=l,this.boundaries=r.boundaries||null,this.position=r.startPosition?r.startPosition.clone():mo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(r){let l,p,x,Z;do{x=this.position,Z=this._visitedParent,({done:l,value:p}=this.next())}while(!l&&r(p));l||(this.position=x,this._visitedParent=Z)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,l=this.position.clone(),p=this._visitedParent;if(null===p.parent&&l.offset===p.maxOffset)return{done:!0};if(p===this._boundaryEndParent&&l.offset==this.boundaries.end.offset)return{done:!0};const x=l.parent,Z=b_(l,x),k=Z||mf(l,x,Z);if(k instanceof qa)return this.shallow?l.offset++:(l.path.push(0),this._visitedParent=k),this.position=l,Jl("elementStart",k,r,l,1);if(k instanceof Do){let H;if(this.singleCharacters)H=1;else{let ft=k.endOffset;this._boundaryEndParent==p&&this.boundaries.end.offsetft&&(ft=this.boundaries.start.offset),H=l.offset-ft}const rt=new _a(k,l.offset-k.startOffset-H,H);return l.offset-=H,this.position=l,Jl("text",rt,r,l,H)}return l.path.pop(),this.position=l,this._visitedParent=p.parent,Jl("elementStart",p,r,l,1)}}function Jl(b,r,l,p,x){return{done:!1,value:{type:b,item:r,previousPosition:l,nextPosition:p,length:x}}}class mo{constructor(r,l,p="toNone"){if(!r.is("element")&&!r.is("documentFragment"))throw new jn.b("model-position-root-invalid: Position root invalid.",r);if(!(l instanceof Array)||0===l.length)throw new jn.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",r,{path:l});r.is("rootElement")?l=l.slice():(l=[...r.getPath(),...l],r=r.root),this.root=r,this.path=l,this.stickiness=p}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let l=0;lp.path.length){if(l.offset!==x.maxOffset)return!1;l.path=l.path.slice(0,-1),x=x.parent,l.offset++}else{if(0!==p.offset)return!1;p.path=p.path.slice(0,-1)}}}is(r){return"position"===r||"model:position"===r}hasSameParentAs(r){return this.root===r.root&&"same"==ps(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let l;switch(r.type){case"insert":l=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":l=this._getTransformedByMoveOperation(r);break;case"split":l=this._getTransformedBySplitOperation(r);break;case"merge":l=this._getTransformedByMergeOperation(r);break;default:l=mo._createAt(this)}return l}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const l=r.movedRange;return l.containsPosition(this)||l.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const l=r.movedRange;let p;return l.containsPosition(this)||l.start.isEqual(this)?(p=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(p=p._getTransformedByDeletion(r.deletionPosition,1))):p=this.isEqual(r.deletionPosition)?mo._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),p}_getTransformedByDeletion(r,l){const p=mo._createAt(this);if(this.root!=r.root)return p;if("same"==ps(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;p.offset-=l}}else if("prefix"==ps(r.getParentPath(),this.getParentPath())){const x=r.path.length-1;if(r.offset<=this.path[x]){if(r.offset+l>this.path[x])return null;p.path[x]-=l}}return p}_getTransformedByInsertion(r,l){const p=mo._createAt(this);if(this.root!=r.root)return p;if("same"==ps(r.getParentPath(),this.getParentPath()))(r.offsetl+1;){const Z=x.maxOffset-p.offset;0!==Z&&r.push(new Vi(p,p.getShiftedBy(Z))),p.path=p.path.slice(0,-1),p.offset++,x=x.parent}for(;p.path.length<=this.end.path.length;){const Z=this.end.path[p.path.length-1],k=Z-p.offset;0!==k&&r.push(new Vi(p,p.getShiftedBy(k))),p.offset=Z,p.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Xc(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const l=new Xc(r);for(const p of l)yield p.item}*getPositions(r={}){r.boundaries=this;const l=new Xc(r);yield l.position;for(const p of l)yield p.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Vi(this.start,this.end)]}getTransformedByOperations(r){const l=[new Vi(this.start,this.end)];for(const p of r)for(let x=0;x0?new this(p,x):new this(x,p)}static _createIn(r){return new this(mo._createAt(r,0),mo._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(mo._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new jn.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==r.length)return r[0].clone();const l=r[0];r.sort((Z,k)=>Z.start.isAfter(k.start)?1:-1);const p=r.indexOf(l),x=new this(l.start,l.end);if(p>0)for(let Z=p-1;r[Z].end.isEqual(x.start);Z++)x.start=mo._createAt(r[Z].start);for(let Z=p+1;Z{if(l.viewPosition)return;const p=this._modelToViewMapping.get(l.modelPosition.parent);l.viewPosition=this.findPositionIn(p,l.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,l)=>{if(l.modelPosition)return;const p=this.findMappedViewAncestor(l.viewPosition),x=this._viewToModelMapping.get(p),Z=this._toModelOffset(l.viewPosition.parent,l.viewPosition.offset,p);l.modelPosition=mo._createAt(x,Z)},{priority:"low"})}bindElements(r,l){this._modelToViewMapping.set(r,l),this._viewToModelMapping.set(l,r)}unbindViewElement(r){const l=this.toModelElement(r);if(this._viewToModelMapping.delete(r),this._elementToMarkerNames.has(r))for(const p of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(p);this._modelToViewMapping.get(l)==r&&this._modelToViewMapping.delete(l)}unbindModelElement(r){const l=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(l)==r&&this._viewToModelMapping.delete(l)}bindElementToMarker(r,l){const p=this._markerNameToElements.get(l)||new Set;p.add(r);const x=this._elementToMarkerNames.get(r)||new Set;x.add(l),this._markerNameToElements.set(l,p),this._elementToMarkerNames.set(r,x)}unbindElementFromMarkerName(r,l){const p=this._markerNameToElements.get(l);p&&(p.delete(r),0==p.size&&this._markerNameToElements.delete(l));const x=this._elementToMarkerNames.get(r);x&&(x.delete(l),0==x.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Vi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new zi(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const l={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",l),l.modelPosition}toViewPosition(r,l={isPhantom:!1}){const p={modelPosition:r,mapper:this,isPhantom:l.isPhantom};return this.fire("modelToViewPosition",p),p.viewPosition}markerNameToElements(r){const l=this._markerNameToElements.get(r);if(!l)return null;const p=new Set;for(const x of l)if(x.is("attributeElement"))for(const Z of x.getElementsWithSameId())p.add(Z);else p.add(x);return p}registerViewToModelLength(r,l){this._viewToModelLengthCallbacks.set(r,l)}findMappedViewAncestor(r){let l=r.parent;for(;!this._viewToModelMapping.has(l);)l=l.parent;return l}_toModelOffset(r,l,p){if(p!=r)return this._toModelOffset(r.parent,r.index,p)+this._toModelOffset(r,l,r);if(r.is("$text"))return l;let x=0;for(let Z=0;Z1?r[0]+":"+r[1]:r[0]}class r2{constructor(r){this.conversionApi=Pt({dispatcher:this},r)}convertChanges(r,l,p){for(const x of r.getMarkersToRemove())this.convertMarkerRemove(x.name,x.range,p);for(const x of r.getChanges())"insert"==x.type?this.convertInsert(Vi._createFromPositionAndShift(x.position,x.length),p):"remove"==x.type?this.convertRemove(x.position,x.length,x.name,p):this.convertAttribute(x.range,x.attributeKey,x.attributeOldValue,x.attributeNewValue,p);for(const x of this.conversionApi.mapper.flushUnboundMarkerNames()){const Z=l.get(x).getRange();this.convertMarkerRemove(x,Z,p),this.convertMarkerAdd(x,Z,p)}for(const x of r.getMarkersToAdd())this.convertMarkerAdd(x.name,x.range,p)}convertInsert(r,l){this.conversionApi.writer=l,this.conversionApi.consumable=this._createInsertConsumable(r);for(const p of r){const x=p.item,Z={item:x,range:Vi._createFromPositionAndShift(p.previousPosition,p.length)};this._testAndFire("insert",Z);for(const k of x.getAttributeKeys())Z.attributeKey=k,Z.attributeOldValue=null,Z.attributeNewValue=x.getAttribute(k),this._testAndFire("attribute:"+k,Z)}this._clearConversionApi()}convertRemove(r,l,p,x){this.conversionApi.writer=x,this.fire("remove:"+p,{position:r,length:l},this.conversionApi),this._clearConversionApi()}convertAttribute(r,l,p,x,Z){this.conversionApi.writer=Z,this.conversionApi.consumable=this._createConsumableForRange(r,"attribute:"+l);for(const k of r){const H={item:k.item,range:Vi._createFromPositionAndShift(k.previousPosition,k.length),attributeKey:l,attributeOldValue:p,attributeNewValue:x};this._testAndFire("attribute:"+l,H)}this._clearConversionApi()}convertSelection(r,l,p){const x=Array.from(l.getMarkersAtPosition(r.getFirstPosition()));if(this.conversionApi.writer=p,this.conversionApi.consumable=this._createSelectionConsumable(r,x),this.fire("selection",{selection:r},this.conversionApi),r.isCollapsed){for(const Z of x){const k=Z.getRange();if(!mr(r.getFirstPosition(),Z,this.conversionApi.mapper))continue;const H={item:r,markerName:Z.name,markerRange:k};this.conversionApi.consumable.test(r,"addMarker:"+Z.name)&&this.fire("addMarker:"+Z.name,H,this.conversionApi)}for(const Z of r.getAttributeKeys()){const k={item:r,range:r.getFirstRange(),attributeKey:Z,attributeOldValue:null,attributeNewValue:r.getAttribute(Z)};this.conversionApi.consumable.test(r,"attribute:"+k.attributeKey)&&this.fire("attribute:"+k.attributeKey+":$text",k,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(r,l,p){if(!l.root.document||"$graveyard"==l.root.rootName)return;this.conversionApi.writer=p;const x="addMarker:"+r,Z=new wm;if(Z.add(l,x),this.conversionApi.consumable=Z,this.fire(x,{markerName:r,markerRange:l},this.conversionApi),Z.test(l,x)){this.conversionApi.consumable=this._createConsumableForRange(l,x);for(const k of l.getItems()){if(!this.conversionApi.consumable.test(k,x))continue;const H={item:k,range:Vi._createOn(k),markerName:r,markerRange:l};this.fire(x,H,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(r,l,p){l.root.document&&"$graveyard"!=l.root.rootName&&(this.conversionApi.writer=p,this.fire("removeMarker:"+r,{markerName:r,markerRange:l},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(r){const l=new wm;for(const p of r){const x=p.item;l.add(x,"insert");for(const Z of x.getAttributeKeys())l.add(x,"attribute:"+Z)}return l}_createConsumableForRange(r,l){const p=new wm;for(const x of r.getItems())p.add(x,l);return p}_createSelectionConsumable(r,l){const p=new wm;p.add(r,"selection");for(const x of l)p.add(r,"addMarker:"+x.name);for(const x of r.getAttributeKeys())p.add(r,"attribute:"+x);return p}_testAndFire(r,l){this.conversionApi.consumable.test(l.item,r)&&this.fire(r+":"+(l.item.name||"$text"),l,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}function mr(b,r,l){const p=r.getRange(),x=Array.from(b.getAncestors());return x.shift(),x.reverse(),!x.some(Z=>{if(p.containsItem(Z))return!!l.toViewElement(Z).getCustomProperty("addHighlight")})}ao(r2,wa);class q1{constructor(r,l,p){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,r&&this.setTo(r,l,p)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const l of this._ranges){let p=!1;for(const x of r._ranges)if(l.isEqual(x)){p=!0;break}if(!p)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Vi(r.start,r.end)}getFirstRange(){let r=null;for(const l of this._ranges)r&&!l.start.isBefore(r.start)||(r=l);return r?new Vi(r.start,r.end):null}getLastRange(){let r=null;for(const l of this._ranges)r&&!l.end.isAfter(r.end)||(r=l);return r?new Vi(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(r,l,p){if(null===r)this._setRanges([]);else if(r instanceof q1)this._setRanges(r.getRanges(),r.isBackward);else if(r&&"function"==typeof r.getRanges)this._setRanges(r.getRanges(),r.isBackward);else if(r instanceof Vi)this._setRanges([r],!!l&&!!l.backward);else if(r instanceof mo)this._setRanges([new Vi(r)]);else if(r instanceof qi){const x=!!p&&!!p.backward;let Z;if("in"==l)Z=Vi._createIn(r);else if("on"==l)Z=Vi._createOn(r);else{if(void 0===l)throw new jn.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,r]);Z=new Vi(mo._createAt(r,l))}this._setRanges([Z],x)}else{if(!za(r))throw new jn.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,r]);this._setRanges(r,l&&!!l.backward)}}_setRanges(r,l=!1){const p=(r=Array.from(r)).some(x=>{if(!(x instanceof Vi))throw new jn.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[this,r]);return this._ranges.every(Z=>!Z.isEqual(x))});if(r.length!==this._ranges.length||p){this._removeAllRanges();for(const x of r)this._pushRange(x);this._lastRangeBackward=!!l,this.fire("change:range",{directChange:!0})}}setFocus(r,l){if(null===this.anchor)throw new jn.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,r]);const p=mo._createAt(r,l);if("same"==p.compareWith(this.focus))return;const x=this.anchor;this._ranges.length&&this._popRange(),"before"==p.compareWith(x)?(this._pushRange(new Vi(p,x)),this._lastRangeBackward=!0):(this._pushRange(new Vi(x,p)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,l){this.getAttribute(r)!==l&&(this._attrs.set(r,l),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(r){return"selection"===r||"model:selection"===r}*getSelectedBlocks(){const r=new WeakSet;for(const l of this.getRanges()){const p=ff(l.start,r);p&&Jh(p,l)&&(yield p);for(const Z of l.getWalker()){const k=Z.item;"elementEnd"==Z.type&&Fp(k,r,l)&&(yield k)}const x=ff(l.end,r);x&&!l.end.isTouching(mo._createAt(x,0))&&Jh(x,l)&&(yield x)}}containsEntireContent(r=this.anchor.root){const l=mo._createAt(r,0),p=mo._createAt(r,"end");return l.isTouching(this.getFirstPosition())&&p.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Vi(r.start,r.end))}_checkRange(r){for(let l=0;l0;)this._popRange()}_popRange(){this._ranges.pop()}}function Gh(b,r){return!r.has(b)&&(r.add(b),b.root.document.model.schema.isBlock(b)&&b.parent)}function Fp(b,r,l){return Gh(b,r)&&Jh(b,l)}function ff(b,r){const l=b.parent.root.document.model.schema,p=b.parent.getAncestors({parentFirst:!0,includeSelf:!0});let x=!1;const Z=p.find(k=>!x&&(x=l.isLimit(k),!x&&Gh(k,r)));return p.forEach(k=>r.add(k)),Z}function Jh(b,r){const l=function(p){const x=p.root.document.model.schema;let Z=p.parent;for(;Z;){if(x.isBlock(Z))return Z;Z=Z.parent}}(b);return!l||!r.containsRange(Vi._createOn(l),!0)}ao(q1,wa);class Np extends Vi{constructor(r,l){super(r,l),cd.call(this)}detach(){this.stopListening()}is(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r}toRange(){return new Vi(this.start,this.end)}static fromRange(r){return new Np(r.start,r.end)}}function cd(){this.listenTo(this.root.document.model,"applyOperation",(b,r)=>{const l=r[0];l.isDocumentOperation&&E0.call(this,l)},{priority:"low"})}function E0(b){const r=this.getTransformedByOperation(b),l=Vi._createFromRanges(r),p=!l.isEqual(this),x=function(k,H){switch(H.type){case"insert":return k.containsPosition(H.position);case"move":case"remove":case"reinsert":case"merge":return k.containsPosition(H.sourcePosition)||k.start.isEqual(H.sourcePosition)||k.containsPosition(H.targetPosition);case"split":return k.containsPosition(H.splitPosition)||k.containsPosition(H.insertionPosition)}return!1}(this,b);let Z=null;if(p){"$graveyard"==l.root.rootName&&(Z="remove"==b.type?b.sourcePosition:b.deletionPosition);const k=this.toRange();this.start=l.start,this.end=l.end,this.fire("change:range",k,{deletionPosition:Z})}else x&&this.fire("change:content",this.toRange(),{deletionPosition:Z})}ao(Np,wa);class Pu{constructor(r){this._selection=new _l(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}is(r){return"selection"===r||"model:selection"==r||"documentSelection"==r||"model:documentSelection"==r}_setFocus(r,l){this._selection.setFocus(r,l)}_setTo(r,l,p){this._selection.setTo(r,l,p)}_setAttribute(r,l){this._selection.setAttribute(r,l)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return"selection:"+r}static _isStoreAttributeKey(r){return r.startsWith("selection:")}}ao(Pu,wa);class _l extends q1{constructor(r){super(),this.markers=new Er({idProperty:"name"}),this._model=r.model,this._document=r,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this.listenTo(this._model,"applyOperation",(l,p)=>{const x=p[0];x.isDocumentOperation&&"marker"!=x.type&&"rename"!=x.type&&"noop"!=x.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{for(const l of this.getRanges())if(!this._document._validateSelectionRange(l))throw new jn.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",this,{range:l})}),this.listenTo(this._model.markers,"update",()=>this._updateMarkers()),this.listenTo(this._document,"change",(l,p)=>{!function(x,Z){const k=x.document.differ;for(const H of k.getChanges()){if("insert"!=H.type)continue;const G=H.position.parent;H.length===G.maxOffset&&x.enqueueChange(Z,rt=>{const ft=Array.from(G.getAttributeKeys()).filter(Mt=>Mt.startsWith("selection:"));for(const Mt of ft)rt.removeAttribute(Mt,G)})}}(this._model,p)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,l.root==this._document.graveyard){this._selectionRestorePosition=Z.deletionPosition;const k=this._ranges.indexOf(l);this._ranges.splice(k,1),l.detach()}}),l}_updateMarkers(){const r=[];let l=!1;for(const x of this._model.markers){const Z=x.getRange();for(const k of this.getRanges())Z.containsRange(k,!k.isCollapsed)&&r.push(x)}const p=Array.from(this.markers);for(const x of r)this.markers.has(x)||(this.markers.add(x),l=!0);for(const x of Array.from(this.markers))r.includes(x)||(this.markers.remove(x),l=!0);l&&this.fire("change:marker",{oldMarkers:p,directChange:!1})}_updateAttributes(r){const l=Qa(this._getSurroundingAttributes()),p=Qa(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[Z,k]of this._attributePriority)"low"==k&&(this._attrs.delete(Z),this._attributePriority.delete(Z));this._setAttributesTo(l);const x=[];for(const[Z,k]of this.getAttributes())p.has(Z)&&p.get(Z)===k||x.push(Z);for(const[Z]of p)this.hasAttribute(Z)||x.push(Z);x.length>0&&this.fire("change:attribute",{attributeKeys:x,directChange:!1})}_setAttribute(r,l,p=!0){const x=p?"normal":"low";return("low"!=x||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==l&&(this._attrs.set(r,l),this._attributePriority.set(r,x),!0)}_removeAttribute(r,l=!0){const p=l?"normal":"low";return!("low"==p&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,p),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const l=new Set;for(const[p,x]of this.getAttributes())r.get(p)!==x&&this._removeAttribute(p,!1);for(const[p,x]of r)this._setAttribute(p,x,!1)&&l.add(p);return l}*_getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const l of r.getAttributeKeys())l.startsWith("selection:")&&(yield[l.substr(10),r.getAttribute(l)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),l=this._model.schema;let p=null;if(this.isCollapsed){const x=r.textNode?r.textNode:r.nodeBefore,Z=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(p=Zm(x)),p||(p=Zm(Z)),!this.isGravityOverridden&&!p){let k=x;for(;k&&!p;)k=k.previousSibling,p=Zm(k)}if(!p){let k=Z;for(;k&&!p;)k=k.nextSibling,p=Zm(k)}p||(p=this._getStoredAttributes())}else{const x=this.getFirstRange();for(const Z of x){if(Z.item.is("element")&&l.isObject(Z.item))break;if("text"==Z.type){p=Z.item.getAttributes();break}}}return p}_fixGraveyardSelection(r){const l=this._model.schema.getNearestSelectionRange(r);l&&this._pushRange(l)}}function Zm(b){return b instanceof _a||b instanceof Do?b.getAttributes():null}class hf{constructor(r){this._dispatchers=r}add(r){for(const l of this._dispatchers)r(l);return this}}var Bs=function(b){return ou(b,5)};class Zs extends hf{elementToElement(r){return this.add(function(l){return(l=Bs(l)).view=qp(l.view,"container"),p=>{var x;p.on("insert:"+l.model,(x=l.view,(Z,k,H)=>{const G=x(k.item,H.writer);if(!G||!H.consumable.consume(k.item,"insert"))return;const rt=H.mapper.toViewPosition(k.range.start);H.mapper.bindElements(k.item,G),H.writer.insert(rt,G)}),{priority:l.converterPriority||"normal"})}}(r))}attributeToElement(r){return this.add(function(l){let p="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(p+=":"+l.model.name),l.model.values)for(const Z of l.model.values)l.view[Z]=qp(l.view[Z],"attribute");else l.view=qp(l.view,"attribute");const x=Qh(l);return Z=>{var k;Z.on(p,(k=x,(H,G,rt)=>{const ft=k(G.attributeOldValue,rt.writer),Mt=k(G.attributeNewValue,rt.writer);if(!ft&&!Mt||!rt.consumable.consume(G.item,H.name))return;const he=rt.writer;if(G.item instanceof q1||G.item instanceof Pu)he.wrap(he.document.selection.getFirstRange(),Mt);else{let fn=rt.mapper.toViewRange(G.range);null!==G.attributeOldValue&&ft&&(fn=he.unwrap(fn,ft)),null!==G.attributeNewValue&&Mt&&he.wrap(fn,Mt)}}),{priority:l.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(l){let p="attribute:"+((l=Bs(l)).model.key?l.model.key:l.model);if(l.model.name&&(p+=":"+l.model.name),l.model.values)for(const Z of l.model.values)l.view[Z]=s2(l.view[Z]);else l.view=s2(l.view);const x=Qh(l);return Z=>{var k;Z.on(p,(k=x,(H,G,rt)=>{const ft=k(G.attributeOldValue,G),Mt=k(G.attributeNewValue,G);if(!ft&&!Mt||!rt.consumable.consume(G.item,H.name))return;const he=rt.mapper.toViewElement(G.item),Je=rt.writer;if(!he)throw new jn.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[G,rt]);if(null!==G.attributeOldValue&&ft)if("class"==ft.key){const fn=Array.isArray(ft.value)?ft.value:[ft.value];for(const Mn of fn)Je.removeClass(Mn,he)}else if("style"==ft.key){const fn=Object.keys(ft.value);for(const Mn of fn)Je.removeStyle(Mn,he)}else Je.removeAttribute(ft.key,he);if(null!==G.attributeNewValue&&Mt)if("class"==Mt.key){const fn=Array.isArray(Mt.value)?Mt.value:[Mt.value];for(const Mn of fn)Je.addClass(Mn,he)}else if("style"==Mt.key){const fn=Object.keys(Mt.value);for(const Mn of fn)Je.setStyle(Mn,Mt.value[Mn],he)}else Je.setAttribute(Mt.key,Mt.value,he)}),{priority:l.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(l){return(l=Bs(l)).view=qp(l.view,"ui"),p=>{var x;p.on("addMarker:"+l.model,(x=l.view,(Z,k,H)=>{k.isOpening=!0;const G=x(k,H.writer);k.isOpening=!1;const rt=x(k,H.writer);if(!G||!rt)return;const ft=k.markerRange;if(ft.isCollapsed&&!H.consumable.consume(ft,Z.name))return;for(const Je of ft)if(!H.consumable.consume(Je.item,Z.name))return;const Mt=H.mapper,he=H.writer;he.insert(Mt.toViewPosition(ft.start),G),H.mapper.bindElementToMarker(G,k.markerName),ft.isCollapsed||(he.insert(Mt.toViewPosition(ft.end),rt),H.mapper.bindElementToMarker(rt,k.markerName)),Z.stop()}),{priority:l.converterPriority||"normal"}),p.on("removeMarker:"+l.model,(Z,k,H)=>{const G=H.mapper.markerNameToElements(k.markerName);if(G){for(const rt of G)H.mapper.unbindElementFromMarkerName(rt,k.markerName),H.writer.clear(H.writer.createRangeOn(rt),rt);H.writer.clearClonedElementsGroup(k.markerName),Z.stop()}},{priority:l.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add(function(l){return p=>{var x,Z;p.on("addMarker:"+l.model,(x=l.view,(Z,k,H)=>{if(!k.item||!(k.item instanceof q1||k.item instanceof Pu||k.item.is("$textProxy")))return;const G=vf(x,k,H);if(!G||!H.consumable.consume(k.item,Z.name))return;const rt=H.writer,ft=Ip(rt,G),Mt=rt.document.selection;if(k.item instanceof q1||k.item instanceof Pu)rt.wrap(Mt.getFirstRange(),ft,Mt);else{const he=H.mapper.toViewRange(k.range),Je=rt.wrap(he,ft);for(const fn of Je.getItems())if(fn.is("attributeElement")&&fn.isSimilar(ft)){H.mapper.bindElementToMarker(fn,k.markerName);break}}}),{priority:l.converterPriority||"normal"}),p.on("addMarker:"+l.model,(Z=l.view,(k,H,G)=>{if(!(H.item&&H.item instanceof qa))return;const rt=vf(Z,H,G);if(!rt||!G.consumable.test(H.item,k.name))return;const ft=G.mapper.toViewElement(H.item);if(ft&&ft.getCustomProperty("addHighlight")){G.consumable.consume(H.item,k.name);for(const Mt of Vi._createIn(H.item))G.consumable.consume(Mt.item,k.name);ft.getCustomProperty("addHighlight")(ft,rt,G.writer),G.mapper.bindElementToMarker(ft,H.markerName)}}),{priority:l.converterPriority||"normal"}),p.on("removeMarker:"+l.model,function(Z){return(k,H,G)=>{if(H.markerRange.isCollapsed)return;const rt=vf(Z,H,G);if(!rt)return;const ft=Ip(G.writer,rt),Mt=G.mapper.markerNameToElements(H.markerName);if(Mt){for(const he of Mt)G.mapper.unbindElementFromMarkerName(he,H.markerName),he.is("attributeElement")?G.writer.unwrap(G.writer.createRangeOn(he),ft):he.getCustomProperty("removeHighlight")(he,rt.id,G.writer);G.writer.clearClonedElementsGroup(H.markerName),k.stop()}}}(l.view),{priority:l.converterPriority||"normal"})}}(r))}markerToData(r){return this.add(function(l){const p=(l=Bs(l)).model;return l.view||(l.view=x=>({group:p,name:x.substr(l.model.length+1)})),x=>{var Z,k;x.on("addMarker:"+p,(Z=l.view,(k,H,G)=>{const rt=Z(H.markerName);if(!rt)return;const ft=H.markerRange;G.consumable.consume(ft,k.name)&&(gf(ft,!1,G,H,rt),gf(ft,!0,G,H,rt),k.stop())}),{priority:l.converterPriority||"normal"}),x.on("removeMarker:"+p,(k=l.view,(H,G,rt)=>{const ft=k(G.markerName);if(!ft)return;const Mt=rt.mapper.markerNameToElements(G.markerName);if(Mt){for(const Je of Mt)rt.mapper.unbindElementFromMarkerName(Je,G.markerName),Je.is("containerElement")?(he(`data-${ft.group}-start-before`,Je),he(`data-${ft.group}-start-after`,Je),he(`data-${ft.group}-end-before`,Je),he(`data-${ft.group}-end-after`,Je)):rt.writer.clear(rt.writer.createRangeOn(Je),Je);rt.writer.clearClonedElementsGroup(G.markerName),H.stop()}function he(Je,fn){if(fn.hasAttribute(Je)){const Mn=new Set(fn.getAttribute(Je).split(","));Mn.delete(ft.name),0==Mn.size?rt.writer.removeAttribute(Je,fn):rt.writer.setAttribute(Je,Array.from(Mn).join(","),fn)}}}),{priority:l.converterPriority||"normal"})}}(r))}}function Ip(b,r){const l=b.createAttributeElement("span",r.attributes);return r.classes&&l._addClass(r.classes),r.priority&&(l._priority=r.priority),l._id=r.id,l}function gf(b,r,l,p,x){const Z=r?b.start:b.end;if(l.schema.checkChild(Z,"$text"))!function(k,H,G,rt,ft){const Je=G.writer.createUIElement(`${ft.group}-${H?"start":"end"}`,ft.name?{name:ft.name}:null);G.writer.insert(k,Je),G.mapper.bindElementToMarker(Je,rt.markerName)}(l.mapper.toViewPosition(Z),r,l,p,x);else{let k,H;r&&Z.nodeAfter||!r&&!Z.nodeBefore?(k=Z.nodeAfter,H=!0):(k=Z.nodeBefore,H=!1),function(G,rt,ft,Mt,he,Je){const fn=`data-${Je.group}-${rt?"start":"end"}-${ft?"before":"after"}`,Mn=G.hasAttribute(fn)?G.getAttribute(fn).split(","):[];Mn.unshift(Je.name),Mt.writer.setAttribute(fn,Mn.join(","),G),Mt.mapper.bindElementToMarker(G,he.markerName)}(l.mapper.toViewElement(k),r,H,l,p,x)}}function qp(b,r){return"function"==typeof b?b:(l,p)=>function(x,Z,k){let H;"string"==typeof x&&(x={name:x});const G=Object.assign({},x.attributes);if(H="container"==k?Z.createContainerElement(x.name,G):"attribute"==k?Z.createAttributeElement(x.name,G,{priority:x.priority||Us.DEFAULT_PRIORITY}):Z.createUIElement(x.name,G),x.styles){const rt=Object.keys(x.styles);for(const ft of rt)Z.setStyle(ft,x.styles[ft],H)}if(x.classes){const rt=x.classes;if("string"==typeof rt)Z.addClass(rt,H);else for(const ft of rt)Z.addClass(ft,H)}return H}(b,p,r)}function Qh(b){return b.model.values?(r,l)=>{const p=b.view[r];return p?p(r,l):null}:b.view}function s2(b){return"string"==typeof b?r=>({key:b,value:r}):"object"==typeof b?b.value?()=>b:r=>({key:b.key,value:r}):b}function vf(b,r,l){const p="function"==typeof b?b(r,l):b;return p?(p.priority||(p.priority=10),p.id||(p.id=r.markerName),p):null}class xf extends hf{elementToElement(r){return this.add(bf(r))}elementToAttribute(r){return this.add(function(l){_p(l=Bs(l));const p=C_(l,!1),x=u1(l.view),Z=x?"element:"+x:"element";return k=>{k.on(Z,p,{priority:l.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(l){let p=null;("string"==typeof(l=Bs(l)).view||l.view.key)&&(p=function(Z){"string"==typeof Z.view&&(Z.view={key:Z.view});const k=Z.view.key;let H;return H="class"==k||"style"==k?{["class"==k?"classes":"styles"]:Z.view.value}:{attributes:{[k]:void 0===Z.view.value?/[\s\S]*/:Z.view.value}},Z.view.name&&(H.name=Z.view.name),Z.view=H,k}(l)),_p(l,p);const x=C_(l,!0);return Z=>{Z.on("element",x,{priority:l.converterPriority||"low"})}}(r))}elementToMarker(r){return console.warn(Object(jn.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method has been deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(l){return function(p){const x=p.model;p.model=(Z,k)=>{const H="string"==typeof x?x:x(Z);return k.createElement("$marker",{"data-name":H})}}(l=Bs(l)),bf(l)}(r))}dataToMarker(r){return this.add(function(l){(l=Bs(l)).model||(l.model=Z=>Z?l.view+":"+Z:l.view);const p=Cf(c2(l,"start")),x=Cf(c2(l,"end"));return Z=>{Z.on("element:"+l.view+"-start",p,{priority:l.converterPriority||"normal"}),Z.on("element:"+l.view+"-end",x,{priority:l.converterPriority||"normal"});const k=ns.get("low"),H=ns.get("highest"),G=ns.get(l.converterPriority)/H;var rt;Z.on("element",(rt=l,(ft,Mt,he)=>{const Je="data-"+rt.view;function fn(Mn,In){for(const Qn of In){const Fi=rt.model(Qn),Ji=he.writer.createElement("$marker",{"data-name":Fi});he.writer.insert(Ji,Mn),Mt.modelCursor=Mt.modelCursor.isEqual(Mn)?Mt.modelCursor.getShiftedBy(1):Mt.modelCursor._getTransformedByInsertion(Mn,1),Mt.modelRange=Mt.modelRange._getTransformedByInsertion(Mn,1)[0]}}Mt.modelRange||(Mt=Object.assign(Mt,he.convertChildren(Mt.viewItem,Mt.modelCursor))),he.consumable.consume(Mt.viewItem,{attributes:Je+"-end-after"})&&fn(Mt.modelRange.end,Mt.viewItem.getAttribute(Je+"-end-after").split(",")),he.consumable.consume(Mt.viewItem,{attributes:Je+"-start-after"})&&fn(Mt.modelRange.end,Mt.viewItem.getAttribute(Je+"-start-after").split(",")),he.consumable.consume(Mt.viewItem,{attributes:Je+"-end-before"})&&fn(Mt.modelRange.start,Mt.viewItem.getAttribute(Je+"-end-before").split(",")),he.consumable.consume(Mt.viewItem,{attributes:Je+"-start-before"})&&fn(Mt.modelRange.start,Mt.viewItem.getAttribute(Je+"-start-before").split(","))}),{priority:k+G})}}(r))}}function bf(b){const r=Cf(b=Bs(b)),l=u1(b.view),p=l?"element:"+l:"element";return x=>{x.on(p,r,{priority:b.converterPriority||"normal"})}}function u1(b){return"string"==typeof b?b:"object"==typeof b&&"string"==typeof b.name?b.name:null}function Cf(b){const r=b.view?new re(b.view):null;return(l,p,x)=>{let Z={};if(r){const he=r.match(p.viewItem);if(!he)return;Z=he.match}Z.name=!0;const k=(rt=x.writer,(H=b.model)instanceof Function?H(p.viewItem,rt):rt.createElement(H));var H,rt;if(!k||!x.consumable.test(p.viewItem,Z))return;const ft=x.splitToAllowedParent(k,p.modelCursor);if(!ft)return;x.writer.insert(k,ft.position),x.convertChildren(p.viewItem,x.writer.createPositionAt(k,0)),x.consumable.consume(p.viewItem,Z);const Mt=x.getSplitParts(k);p.modelRange=new Vi(x.writer.createPositionBefore(k),x.writer.createPositionAfter(Mt[Mt.length-1])),p.modelCursor=ft.cursorParent?x.writer.createPositionAt(ft.cursorParent,0):p.modelRange.end}}function _p(b,r=null){b.model={key:"object"!=typeof b.model?b.model:b.model.key,value:"object"!=typeof b.model||void 0===b.model.value?null===r||(Z=>Z.getAttribute(r)):b.model.value}}function C_(b,r){const l=new re(b.view);return(p,x,Z)=>{const k=l.match(x.viewItem);if(!k)return;const H=b.model.key,G="function"==typeof b.model.value?b.model.value(x.viewItem):b.model.value;null!==G&&(function(rt,ft){const Mt="function"==typeof rt?rt(ft):rt;return!("object"==typeof Mt&&!u1(Mt)||Mt.classes||Mt.attributes||Mt.styles)}(b.view,x.viewItem)?k.match.name=!0:delete k.match.name,Z.consumable.test(x.viewItem,k.match)&&(x.modelRange||(x=Object.assign(x,Z.convertChildren(x.viewItem,x.modelCursor))),function(rt,ft,Mt,he){let Je=!1;for(const fn of Array.from(rt.getItems({shallow:Mt})))he.schema.checkAttribute(fn,ft.key)&&(he.writer.setAttribute(ft.key,ft.value,fn),Je=!0);return Je}(x.modelRange,{key:H,value:G},r,Z)&&Z.consumable.consume(x.viewItem,k.match)))}}function c2(b,r){const l={};return l.view=b.view+"-"+r,l.model=(p,x)=>{const Z=p.getAttribute("name"),k=b.model(Z);return x.createElement("$marker",{"data-name":k})},l}class yf{constructor(r,l){this.model=r,this.view=new ni(l),this.mapper=new a2,this.downcastDispatcher=new r2({mapper:this.mapper,schema:r.schema});const p=this.model.document,x=p.selection,Z=this.model.markers;var k,H;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(p,"change",()=>{this.view.change(k=>{this.downcastDispatcher.convertChanges(p.differ,Z,k),this.downcastDispatcher.convertSelection(x,Z,k)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(k=this.model,H=this.mapper,(G,rt)=>{const ft=rt.newSelection,Mt=new q1,he=[];for(const Je of ft.getRanges())he.push(H.toModelRange(Je));Mt.setTo(he,{backward:ft.isBackward}),Mt.isEqual(k.document.selection)||k.change(Je=>{Je.setSelection(Mt)})})),this.downcastDispatcher.on("insert:$text",(k,H,G)=>{if(!G.consumable.consume(H.item,"insert"))return;const rt=G.writer,ft=G.mapper.toViewPosition(H.range.start),Mt=rt.createText(H.item.data);rt.insert(ft,Mt)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(k,H,G)=>{const rt=G.mapper.toViewPosition(H.position),ft=H.position.getShiftedBy(H.length),Mt=G.mapper.toViewPosition(ft,{isPhantom:!0}),he=G.writer.createRange(rt,Mt),Je=G.writer.remove(he.getTrimmed());for(const fn of G.writer.createRangeIn(Je).getItems())G.mapper.unbindViewElement(fn)},{priority:"low"}),this.downcastDispatcher.on("selection",(k,H,G)=>{const rt=G.writer,ft=rt.document.selection;for(const Mt of ft.getRanges())Mt.isCollapsed&&Mt.end.parent.isAttached()&&G.writer.mergeAttributes(Mt.start);rt.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(k,H,G)=>{const rt=H.selection;if(rt.isCollapsed||!G.consumable.consume(rt,"selection"))return;const ft=[];for(const Mt of rt.getRanges()){const he=G.mapper.toViewRange(Mt);ft.push(he)}G.writer.setSelection(ft,{backward:rt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(k,H,G)=>{const rt=H.selection;if(!rt.isCollapsed||!G.consumable.consume(rt,"selection"))return;const ft=G.writer,Mt=rt.getFirstPosition(),he=G.mapper.toViewPosition(Mt),Je=ft.breakAttributes(he);ft.setSelection(Je)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(k=>{if("$graveyard"==k.rootName)return null;const H=new Ui(this.view.document,k.name);return H.rootName=k.rootName,this.mapper.bindElements(k,H),H})}destroy(){this.view.destroy(),this.stopListening()}}ao(yf,St);class Tf{constructor(){this._commands=new Map}add(r,l){this._commands.set(r,l)}get(r){return this._commands.get(r)}execute(r,...l){const p=this.get(r);if(!p)throw new jn.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:r});return p.execute(...l)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class Mm{constructor(){this._consumables=new Map}add(r,l){let p;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?p=this._consumables.get(r):(p=new Rp(r),this._consumables.set(r,p)),p.add(l))}test(r,l){const p=this._consumables.get(r);return void 0===p?null:r.is("$text")||r.is("documentFragment")?p:p.test(l)}consume(r,l){return!!this.test(r,l)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(l),!0)}revert(r,l){const p=this._consumables.get(r);void 0!==p&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):p.revert(l))}static consumablesFromElement(r){const l={element:r,name:!0,attributes:[],classes:[],styles:[]},p=r.getAttributeKeys();for(const k of p)"style"!=k&&"class"!=k&&l.attributes.push(k);const x=r.getClassNames();for(const k of x)l.classes.push(k);const Z=r.getStyleNames();for(const k of Z)l.styles.push(k);return l}static createFrom(r,l){if(l||(l=new Mm(r)),r.is("$text"))return l.add(r),l;r.is("element")&&l.add(r,Mm.consumablesFromElement(r)),r.is("documentFragment")&&l.add(r);for(const p of r.getChildren())l=Mm.createFrom(p,l);return l}}class Rp{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const l in this._consumables)l in r&&this._add(l,r[l])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const l in this._consumables)if(l in r){const p=this._test(l,r[l]);if(!0!==p)return p}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const l in this._consumables)l in r&&this._consume(l,r[l])}revert(r){r.name&&(this._canConsumeName=!0);for(const l in this._consumables)l in r&&this._revert(l,r[l])}_add(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p){if("attributes"===r&&("class"===Z||"style"===Z))throw new jn.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(x.set(Z,!0),"styles"===r)for(const k of this.element.document.stylesProcessor.getRelatedStyles(Z))x.set(k,!0)}}_test(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z){const k=x.get(Z);if(void 0===k)return null;if(!k)return!1}else{const k="class"==Z?"classes":"styles",H=this._test(k,[...this._consumables[k].keys()]);if(!0!==H)return H}return!0}_consume(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z){if(x.set(Z,!1),"styles"==r)for(const k of this.element.document.stylesProcessor.getRelatedStyles(Z))x.set(k,!1)}else{const k="class"==Z?"classes":"styles";this._consume(k,[...this._consumables[k].keys()])}}_revert(r,l){const p=kn(l)?l:[l],x=this._consumables[r];for(const Z of p)if("attributes"!==r||"class"!==Z&&"style"!==Z)!1===x.get(Z)&&x.set(Z,!0);else{const k="class"==Z?"classes":"styles";this._revert(k,[...this._consumables[k].keys()])}}}class l2{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,l)=>{l[0]=new fp(l[0])},{priority:"highest"}),this.on("checkChild",(r,l)=>{l[0]=new fp(l[0]),l[1]=this.getDefinition(l[1])},{priority:"highest"})}register(r,l){if(this._sourceDefinitions[r])throw new jn.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},l)],this._clearCache()}extend(r,l){if(!this._sourceDefinitions[r])throw new jn.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},l)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let l;return l="string"==typeof r?r:r.is&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[l]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const l=this.getDefinition(r);return!(!l||!l.isBlock)}isLimit(r){const l=this.getDefinition(r);return!(!l||!l.isLimit&&!l.isObject)}isObject(r){const l=this.getDefinition(r);return!(!l||!l.isObject)}isInline(r){const l=this.getDefinition(r);return!(!l||!l.isInline)}checkChild(r,l){return!!l&&this._checkContextMatch(l,r)}checkAttribute(r,l){const p=this.getDefinition(r.last);return!!p&&p.allowAttributes.includes(l)}checkMerge(r,l=null){if(r instanceof mo){const p=r.nodeBefore,x=r.nodeAfter;if(!(p instanceof qa))throw new jn.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(x instanceof qa))throw new jn.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(p,x)}for(const p of l.getChildren())if(!this.checkChild(r,p))return!1;return!0}addChildCheck(r){this.on("checkChild",(l,[p,x])=>{if(!x)return;const Z=r(p,x);"boolean"==typeof Z&&(l.stop(),l.return=Z)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(l,[p,x])=>{const Z=r(p,x);"boolean"==typeof Z&&(l.stop(),l.return=Z)},{priority:"high"})}setAttributeProperties(r,l){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),l)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let l;for(l=r instanceof mo?r.parent:(r instanceof Vi?[r]:Array.from(r.getRanges())).reduce((p,x)=>{const Z=x.getCommonAncestor();return p?p.getCommonAncestor(Z,{includeSelf:!0}):Z},null);!this.isLimit(l)&&l.parent;)l=l.parent;return l}checkAttributeInSelection(r,l){if(r.isCollapsed){const p=[...r.getFirstPosition().getAncestors(),new Do("",r.getAttributes())];return this.checkAttribute(p,l)}{const p=r.getRanges();for(const x of p)for(const Z of x)if(this.checkAttribute(Z.item,l))return!0}return!1}*getValidRanges(r,l){r=function*(p){for(const x of p)yield*x.getMinimalFlatRanges()}(r);for(const p of r)yield*this._getValidRangesForRange(p,l)}getNearestSelectionRange(r,l="both"){if(this.checkChild(r,"$text"))return new Vi(r);let p,x;const Z=r.getAncestors().reverse().find(k=>this.isLimit(k))||r.root;"both"!=l&&"backward"!=l||(p=new Xc({boundaries:Vi._createIn(Z),startPosition:r,direction:"backward"})),"both"!=l&&"forward"!=l||(x=new Xc({boundaries:Vi._createIn(Z),startPosition:r}));for(const k of function*(H,G){let rt=!1;for(;!rt;){if(rt=!0,H){const ft=H.next();ft.done||(rt=!1,yield{walker:H,value:ft.value})}if(G){const ft=G.next();ft.done||(rt=!1,yield{walker:G,value:ft.value})}}}(p,x)){const G=k.value;if(G.type==(k.walker==p?"elementEnd":"elementStart")&&this.isObject(G.item))return Vi._createOn(G.item);if(this.checkChild(G.nextPosition,"$text"))return new Vi(G.nextPosition)}return null}findAllowedParent(r,l){let p=r.parent;for(;p;){if(this.checkChild(p,l))return p;if(this.isLimit(p))return null;p=p.parent}return null}removeDisallowedAttributes(r,l){for(const p of r)if(p.is("$text"))te(this,p,l);else{const x=Vi._createIn(p).getPositions();for(const Z of x)te(this,Z.nodeBefore||Z.parent,l)}}createContext(r){return new fp(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},l=this._sourceDefinitions,p=Object.keys(l);for(const x of p)r[x]=jh(l[x],x);for(const x of p)Af(r,x);for(const x of p)Wh(r,x);for(const x of p)Gr(r,x),du(r,x);for(const x of p)$h(r,x),f3(r,x);this._compiledDefinitions=r}_checkContextMatch(r,l,p=l.length-1){const x=l.getItem(p);if(r.allowIn.includes(x.name)){if(0==p)return!0;{const Z=this.getDefinition(x);return this._checkContextMatch(Z,l,p-1)}}return!1}*_getValidRangesForRange(r,l){let p=r.start,x=r.start;for(const Z of r.getItems({shallow:!0}))Z.is("element")&&(yield*this._getValidRangesForRange(Vi._createIn(Z),l)),this.checkAttribute(Z,l)||(p.isEqual(x)||(yield new Vi(p,x)),p=mo._createAfter(Z)),x=mo._createAfter(Z);p.isEqual(x)||(yield new Vi(p,x))}}ao(l2,St);class fp{constructor(r){if(r instanceof fp)return r;"string"==typeof r?r=[r]:Array.isArray(r)||(r=r.getAncestors({includeSelf:!0})),r[0]&&"string"!=typeof r[0]&&r[0].is("documentFragment")&&r.shift(),this._items=r.map(Uc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const l=new fp([r]);return l._items=[...this._items,...l._items],l}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function jh(b,r){const l={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(p,x){for(const Z of p){const k=Object.keys(Z).filter(H=>H.startsWith("is"));for(const H of k)x[H]=Z[H]}}(b,l),hp(b,l,"allowIn"),hp(b,l,"allowContentOf"),hp(b,l,"allowWhere"),hp(b,l,"allowAttributes"),hp(b,l,"allowAttributesOf"),hp(b,l,"inheritTypesFrom"),function(p,x){for(const Z of p){const k=Z.inheritAllFrom;k&&(x.allowContentOf.push(k),x.allowWhere.push(k),x.allowAttributesOf.push(k),x.inheritTypesFrom.push(k))}}(b,l),l}function Af(b,r){for(const l of b[r].allowContentOf)b[l]&&Dd(b,l).forEach(p=>{p.allowIn.push(r)});delete b[r].allowContentOf}function Wh(b,r){for(const l of b[r].allowWhere){const p=b[l];p&&b[r].allowIn.push(...p.allowIn)}delete b[r].allowWhere}function Gr(b,r){for(const l of b[r].allowAttributesOf){const p=b[l];p&&b[r].allowAttributes.push(...p.allowAttributes)}delete b[r].allowAttributesOf}function du(b,r){const l=b[r];for(const p of l.inheritTypesFrom){const x=b[p];if(x){const Z=Object.keys(x).filter(k=>k.startsWith("is"));for(const k of Z)k in l||(l[k]=x[k])}}delete l.inheritTypesFrom}function $h(b,r){const l=b[r],p=l.allowIn.filter(x=>b[x]);l.allowIn=Array.from(new Set(p))}function f3(b,r){const l=b[r];l.allowAttributes=Array.from(new Set(l.allowAttributes))}function hp(b,r,l){for(const p of b)"string"==typeof p[l]?r[l].push(p[l]):Array.isArray(p[l])&&r[l].push(...p[l])}function Dd(b,r){const l=b[r];return(p=b,Object.keys(p).map(x=>p[x])).filter(x=>x.allowIn.includes(l.name));var p}function Uc(b){return"string"==typeof b?{name:b,*getAttributeKeys(){},getAttribute(){}}:{name:b.is("element")?b.name:"$text",*getAttributeKeys(){yield*b.getAttributeKeys()},getAttribute:r=>b.getAttribute(r)}}function te(b,r,l){for(const p of r.getAttributeKeys())b.checkAttribute(r,p)||l.removeAttribute(p,r)}class h3{constructor(r={}){this._splitParts=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},r),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(r,l,p=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(k,H){let G;for(const rt of new fp(k)){const ft={};for(const he of rt.getAttributeKeys())ft[he]=rt.getAttribute(he);const Mt=H.createElement(rt.name,ft);G&&H.append(Mt,G),G=mo._createAt(Mt,0)}return G}(p,l),this.conversionApi.writer=l,this.conversionApi.consumable=Mm.createFrom(r),this.conversionApi.store={};const{modelRange:x}=this._convertItem(r,this._modelCursor),Z=l.createDocumentFragment();if(x){this._removeEmptyElements();for(const k of Array.from(this._modelCursor.parent.getChildren()))l.append(k,Z);Z.markers=function(k,H){const G=new Set,rt=new Map,ft=Vi._createIn(k).getItems();for(const Mt of ft)"$marker"==Mt.name&&G.add(Mt);for(const Mt of G){const he=Mt.getAttribute("data-name"),Je=H.createPositionBefore(Mt);rt.has(he)?rt.get(he).end=Je.clone():rt.set(he,new Vi(Je.clone())),H.remove(Mt)}return rt}(Z,l)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,Z}_convertItem(r,l){const p=Object.assign({viewItem:r,modelCursor:l,modelRange:null});if(r.is("element")?this.fire("element:"+r.name,p,this.conversionApi):r.is("$text")?this.fire("text",p,this.conversionApi):this.fire("documentFragment",p,this.conversionApi),p.modelRange&&!(p.modelRange instanceof Vi))throw new jn.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:p.modelRange,modelCursor:p.modelCursor}}_convertChildren(r,l){const p=new Vi(l);let x=l;for(const Z of Array.from(r.getChildren())){const k=this._convertItem(Z,x);k.modelRange instanceof Vi&&(p.end=k.modelRange.end,x=k.modelCursor)}return{modelRange:p,modelCursor:x}}_splitToAllowedParent(r,l){const p=this.conversionApi.schema.findAllowedParent(l,r);if(!p)return null;if(p===l.parent)return{position:l};if(this._modelCursor.parent.getAncestors().includes(p))return null;const x=this.conversionApi.writer.split(l,p),Z=[];for(const k of x.range.getWalker())if("elementEnd"==k.type)Z.push(k.item);else{const H=Z.pop();this._registerSplitPair(H,k.item)}return{position:x.position,cursorParent:x.range.end.parent}}_registerSplitPair(r,l){this._splitParts.has(r)||this._splitParts.set(r,[r]);const p=this._splitParts.get(r);this._splitParts.set(l,p),p.push(l)}_getSplitParts(r){let l;return l=this._splitParts.has(r)?this._splitParts.get(r):[r],l}_removeEmptyElements(){let r=!1;for(const l of this._splitParts.keys())l.isEmpty&&(this.conversionApi.writer.remove(l),this._splitParts.delete(l),r=!0);r&&this._removeEmptyElements()}}ao(h3,wa);class Uf{constructor(r,l){this.model=r,this.stylesProcessor=l,this.mapper=new a2,this.downcastDispatcher=new r2({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(p,x,Z)=>{if(!Z.consumable.consume(x.item,"insert"))return;const k=Z.writer,H=Z.mapper.toViewPosition(x.range.start),G=k.createText(x.item.data);k.insert(H,G)},{priority:"lowest"}),this.upcastDispatcher=new h3({schema:r.schema}),this.viewDocument=new fs(l),this._viewWriter=new su(this.viewDocument),this.upcastDispatcher.on("text",(p,x,Z)=>{if(Z.schema.checkChild(x.modelCursor,"$text")&&Z.consumable.consume(x.viewItem)){const k=Z.writer.createText(x.viewItem.data);Z.writer.insert(k,x.modelCursor),x.modelRange=Vi._createFromPositionAndShift(x.modelCursor,k.offsetSize),x.modelCursor=x.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(p,x,Z)=>{if(!x.modelRange&&Z.consumable.consume(x.viewItem,{name:!0})){const{modelRange:k,modelCursor:H}=Z.convertChildren(x.viewItem,x.modelCursor);x.modelRange=k,x.modelCursor=H}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(p,x,Z)=>{if(!x.modelRange&&Z.consumable.consume(x.viewItem,{name:!0})){const{modelRange:k,modelCursor:H}=Z.convertChildren(x.viewItem,x.modelCursor);x.modelRange=k,x.modelCursor=H}},{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(r){const{rootName:l="main",trim:p="empty"}=r||{};if(!this._checkIfRootsExists([l]))throw new jn.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const x=this.model.document.getRoot(l);return"empty"!==p||this.model.hasContent(x,{ignoreWhitespaces:!0})?this.stringify(x):""}stringify(r){const l=this.toView(r);return this.processor.toData(l)}toView(r){const l=this.viewDocument,p=this._viewWriter;this.mapper.clearBindings();const x=Vi._createIn(r),Z=new Gl(l);if(this.mapper.bindElements(r,Z),this.downcastDispatcher.convertInsert(x,p),!r.is("documentFragment")){const k=function(H){const G=[],rt=H.root.document;if(!rt)return[];const ft=Vi._createIn(H);for(const Mt of rt.model.markers){const he=ft.getIntersection(Mt.getRange());he&&G.push([Mt.name,he])}return G}(r);for(const[H,G]of k)this.downcastDispatcher.convertMarkerAdd(H,G,p)}return Z}init(r){if(this.model.document.version)throw new jn.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);let l={};if("string"==typeof r?l.main=r:l=r,!this._checkIfRootsExists(Object.keys(l)))throw new jn.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",p=>{for(const x of Object.keys(l)){const Z=this.model.document.getRoot(x);p.insert(this.parse(l[x],Z),Z,0)}}),Promise.resolve()}set(r){let l={};if("string"==typeof r?l.main=r:l=r,!this._checkIfRootsExists(Object.keys(l)))throw new jn.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",p=>{p.setSelection(null),p.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const x of Object.keys(l)){const Z=this.model.document.getRoot(x);p.remove(p.createRangeIn(Z)),p.insert(this.parse(l[x],Z),Z,0)}})}parse(r,l="$root"){const p=this.processor.toView(r);return this.toModel(p,l)}toModel(r,l="$root"){return this.model.change(p=>this.upcastDispatcher.convert(r,p,l))}addStyleProcessorRules(r){r(this.stylesProcessor)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const l of r)if(!this.model.document.getRootNames().includes(l))return!1;return!0}}ao(Uf,St);class y_{constructor(r,l){this._helpers=new Map,this._downcast=Array.isArray(r)?r:[r],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(l)?l:[l],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,l){const p=this._downcast.includes(l);if(!this._upcast.includes(l)&&!p)throw new jn.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:r,dispatchers:[l],isDowncast:p})}for(r){if(!this._helpers.has(r))throw new jn.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:l,view:p}of Hp(r))this.for("upcast").elementToElement({model:l,view:p,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:l,view:p}of Hp(r))this.for("upcast").elementToAttribute({view:p,model:l,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:l,view:p}of Hp(r))this.for("upcast").attributeToAttribute({view:p,model:l})}_createConversionHelpers({name:r,dispatchers:l,isDowncast:p}){if(this._helpers.has(r))throw new jn.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const x=p?new Zs(l):new xf(l);this._helpers.set(r,x)}}function*Hp(b){if(b.model.values)for(const r of b.model.values){const l={key:b.model.key,value:r},p=b.view[r],x=b.upcastAlso?b.upcastAlso[r]:void 0;yield*Kh(l,p,x)}else yield*Kh(b.model,b.view,b.upcastAlso)}function*Kh(b,r,l){if(yield{model:b,view:r},l){l=Array.isArray(l)?l:[l];for(const p of l)yield{model:b,view:p}}}class Dm{constructor(r="default"){this.operations=[],this.type=r}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}class Su{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r){return new this(r.baseVersion)}}class ku{constructor(r){this.markers=new Map,this._children=new Zr,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(r){return"documentFragment"===r||"model:documentFragment"===r}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let l=this;for(const p of r)l=l.getChild(l.offsetToIndex(p));return l}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const l of this._children)r.push(l.toJSON());return r}static fromJSON(r){const l=[];for(const p of r)l.push(p.name?qa.fromJSON(p):Do.fromJSON(p));return new ku(l)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,l){const p="string"==typeof(x=l)?[new Do(x)]:(za(x)||(x=[x]),Array.from(x).map(Z=>"string"==typeof Z?new Do(Z):Z instanceof _a?new Do(Z.data,Z.getAttributes()):Z));var x;for(const x of p)null!==x.parent&&x._remove(),x.parent=this;this._children._insertNodes(r,p)}_removeChildren(r,l=1){const p=this._children._removeNodes(r,l);for(const x of p)x.parent=null;return p}}function u2(b,r){const l=(r=Pm(r)).reduce((Z,k)=>Z+k.offsetSize,0),p=b.parent;R1(b);const x=b.index;return p._insertChild(x,r),d1(p,x+r.length),d1(p,x),new Vi(b,b.getShiftedBy(l))}function oc(b){if(!b.isFlat)throw new jn.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const r=b.start.parent;R1(b.start),R1(b.end);const l=r._removeChildren(b.start.index,b.end.index-b.start.index);return d1(r,b.start.index),l}function br(b,r){if(!b.isFlat)throw new jn.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const l=oc(b);return u2(r=r._getTransformedByDeletion(b.start,b.end.offset-b.start.offset),l)}function Pm(b){const r=[];b instanceof Array||(b=[b]);for(let l=0;lr.maxOffset)throw new jn.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(r===l&&p=p&&this.targetPosition.path[Z]p._clone(!0))),l=new aa(this.position,r,this.baseVersion);return l.shouldReceiveAttributes=this.shouldReceiveAttributes,l}getReversed(){const l=new mo(this.position.root.document.graveyard,[0]);return new La(this.position,this.nodes.maxOffset,l,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetl._clone(!0))),u2(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,l){const p=[];for(const Z of r.nodes)p.push(Z.name?qa.fromJSON(Z):Do.fromJSON(Z));const x=new aa(mo.fromJSON(r.position,l),p,r.baseVersion);return x.shouldReceiveAttributes=r.shouldReceiveAttributes,x}}class Ql extends Su{constructor(r,l,p,x,Z,k){super(k),this.name=r,this.oldRange=l?l.clone():null,this.newRange=p?p.clone():null,this.affectsData=Z,this._markers=x}get type(){return"marker"}clone(){return new Ql(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Ql(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this._markers[this.newRange?"_set":"_remove"](this.name,this.newRange,!0,this.affectsData)}toJSON(){const r=super.toJSON();return this.oldRange&&(r.oldRange=this.oldRange.toJSON()),this.newRange&&(r.newRange=this.newRange.toJSON()),delete r._markers,r}static get className(){return"MarkerOperation"}static fromJSON(r,l){return new Ql(r.name,r.oldRange?Vi.fromJSON(r.oldRange,l):null,r.newRange?Vi.fromJSON(r.newRange,l):null,l.model.markers,r.affectsData,r.baseVersion)}}class Yr extends Su{constructor(r,l,p,x){super(x),this.position=r,this.position.stickiness="toNext",this.oldName=l,this.newName=p}get type(){return"rename"}clone(){return new Yr(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Yr(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const r=this.position.nodeAfter;if(!(r instanceof qa))throw new jn.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(r.name!==this.oldName)throw new jn.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r}static get className(){return"RenameOperation"}static fromJSON(r,l){return new Yr(mo.fromJSON(r.position,l),r.oldName,r.newName,r.baseVersion)}}class Ou extends Su{constructor(r,l,p,x,Z){super(Z),this.root=r,this.key=l,this.oldValue=p,this.newValue=x}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Ou(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Ou(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new jn.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new jn.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new jn.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const r=super.toJSON();return r.root=this.root.toJSON(),r}static get className(){return"RootAttributeOperation"}static fromJSON(r,l){if(!l.getRoot(r.root))throw new jn.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:r.root});return new Ou(l.getRoot(r.root),r.key,r.oldValue,r.newValue,r.baseVersion)}}class ac extends Su{constructor(r,l,p,x,Z){super(Z),this.sourcePosition=r.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=l,this.targetPosition=p.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=x.clone()}get type(){return"merge"}get deletionPosition(){return new mo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const r=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Vi(this.sourcePosition,r)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const r=this.targetPosition._getTransformedByMergeOperation(this),l=this.sourcePosition.path.slice(0,-1),p=new mo(this.sourcePosition.root,l)._getTransformedByMergeOperation(this),x=new Jr(r,this.howMany,this.graveyardPosition,this.baseVersion+1);return x.insertionPosition=p,x}_validate(){const r=this.sourcePosition.parent,l=this.targetPosition.parent;if(!r.parent)throw new jn.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!l.parent)throw new jn.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=r.maxOffset)throw new jn.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const r=this.sourcePosition.parent;br(Vi._createIn(r),this.targetPosition),br(Vi._createOn(r),this.graveyardPosition)}toJSON(){const r=super.toJSON();return r.sourcePosition=r.sourcePosition.toJSON(),r.targetPosition=r.targetPosition.toJSON(),r.graveyardPosition=r.graveyardPosition.toJSON(),r}static get className(){return"MergeOperation"}static fromJSON(r,l){const p=mo.fromJSON(r.sourcePosition,l),x=mo.fromJSON(r.targetPosition,l),Z=mo.fromJSON(r.graveyardPosition,l);return new this(p,r.howMany,x,Z,r.baseVersion)}}class Jr extends Su{constructor(r,l,p,x){super(x),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=l,this.insertionPosition=Jr.getInsertionPosition(r),this.insertionPosition.stickiness="toNone",this.graveyardPosition=p?p.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new mo(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Vi(this.splitPosition,r)}clone(){const r=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return r.insertionPosition=this.insertionPosition,r}getReversed(){const l=new mo(this.splitPosition.root.document.graveyard,[0]);return new ac(this.moveTargetPosition,this.howMany,this.splitPosition,l,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{for(const x of p.getAttributeKeys())this.removeAttribute(x,p)};if(r instanceof Vi)for(const p of r.getItems())l(p);else l(r)}move(r,l,p){if(this._assertWriterUsedCorrectly(),!(r instanceof Vi))throw new jn.b("writer-move-invalid-range: Invalid range to move.",this);if(!r.isFlat)throw new jn.b("writer-move-range-not-flat: Range to move is not flat.",this);const x=mo._createAt(l,p);if(x.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!Yp(r.root,x.root))throw new jn.b("writer-move-different-document: Range is going to be moved between different documents.",this);const k=new La(r.start,r.end.offset-r.start.offset,x,r.root.document?r.root.document.version:null);this.batch.addOperation(k),this.model.applyOperation(k)}remove(r){this._assertWriterUsedCorrectly();const l=(r instanceof Vi?r:Vi._createOn(r)).getMinimalFlatRanges().reverse();for(const p of l)this._addOperationForAffectedMarkers("move",p),H1(p.start,p.end.offset-p.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const l=r.nodeBefore,p=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(l instanceof qa))throw new jn.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(p instanceof qa))throw new jn.b("writer-merge-no-element-after: Node after merge position must be an element.",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,l,p){return this.model.createPositionFromPath(r,l,p)}createPositionAt(r,l){return this.model.createPositionAt(r,l)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,l){return this.model.createRange(r,l)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(r,l,p){return this.model.createSelection(r,l,p)}_mergeDetached(r){const l=r.nodeBefore,p=r.nodeAfter;this.move(Vi._createIn(p),mo._createAt(l,"end")),this.remove(p)}_merge(r){const l=mo._createAt(r.nodeBefore,"end"),p=mo._createAt(r.nodeAfter,0),Z=new mo(r.root.document.graveyard,[0]),H=new ac(p,r.nodeAfter.maxOffset,l,Z,r.root.document.version);this.batch.addOperation(H),this.model.applyOperation(H)}rename(r,l){if(this._assertWriterUsedCorrectly(),!(r instanceof qa))throw new jn.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const p=r.root.document?r.root.document.version:null,x=new Yr(mo._createBefore(r),r.name,l,p);this.batch.addOperation(x),this.model.applyOperation(x)}split(r,l){this._assertWriterUsedCorrectly();let p,x,Z=r.parent;if(!Z.parent)throw new jn.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(l||(l=Z.parent),!r.parent.getAncestors({includeSelf:!0}).includes(l))throw new jn.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const G=new Jr(r,Z.maxOffset-r.offset,null,Z.root.document?Z.root.document.version:null);this.batch.addOperation(G),this.model.applyOperation(G),p||x||(p=Z,x=r.parent.nextSibling),Z=(r=this.createPositionAfter(r.parent)).parent}while(Z!==l);return{position:r,range:new Vi(mo._createAt(p,"end"),mo._createAt(x,0))}}wrap(r,l){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new jn.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const p=l instanceof qa?l:new qa(l);if(p.childCount>0)throw new jn.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==p.parent)throw new jn.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(p,r.start);const x=new Vi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(x,mo._createAt(p,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new jn.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(Vi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,l){if(this._assertWriterUsedCorrectly(),!l||"boolean"!=typeof l.usingOperation)throw new jn.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const p=l.usingOperation,x=l.range,Z=void 0!==l.affectsData&&l.affectsData;if(this.model.markers.has(r))throw new jn.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!x)throw new jn.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return p?(_1(this,r,null,x,Z),this.model.markers.get(r)):this.model.markers._set(r,x,p,Z)}updateMarker(r,l){this._assertWriterUsedCorrectly();const p="string"==typeof r?r:r.name,x=this.model.markers.get(p);if(!x)throw new jn.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!l)return void this.model.markers._refresh(x);const Z="boolean"==typeof l.usingOperation,k="boolean"==typeof l.affectsData,H=k?l.affectsData:x.affectsData;if(!Z&&!l.range&&!k)throw new jn.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const G=x.getRange(),rt=l.range?l.range:G;Z&&l.usingOperation!==x.managedUsingOperations?l.usingOperation?_1(this,p,null,rt,H):(_1(this,p,G,null,H),this.model.markers._set(p,rt,void 0,H)):x.managedUsingOperations?_1(this,p,G,rt,H):this.model.markers._set(p,rt,void 0,H)}removeMarker(r){this._assertWriterUsedCorrectly();const l="string"==typeof r?r:r.name;if(!this.model.markers.has(l))throw new jn.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const p=this.model.markers.get(l);p.managedUsingOperations?_1(this,l,p.getRange(),null,p.affectsData):this.model.markers._remove(l)}setSelection(r,l,p){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(r,l,p)}setSelectionFocus(r,l){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,l)}setSelectionAttribute(r,l){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,l);else for(const[p,x]of Qa(r))this._setSelectionAttribute(p,x)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const l of r)this._removeSelectionAttribute(l)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,l){const p=this.model.document.selection;if(p.isCollapsed&&p.anchor.parent.isEmpty){const x=Pu._getStoreAttributeKey(r);this.setAttribute(x,l,p.anchor.parent)}p._setAttribute(r,l)}_removeSelectionAttribute(r){const l=this.model.document.selection;if(l.isCollapsed&&l.anchor.parent.isEmpty){const p=Pu._getStoreAttributeKey(r);this.removeAttribute(p,l.anchor.parent)}l._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new jn.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(r,l){for(const p of this.model.markers){if(!p.managedUsingOperations)continue;const x=p.getRange();let Z=!1;if("move"===r)Z=l.containsPosition(x.start)||l.start.isEqual(x.start)||l.containsPosition(x.end)||l.end.isEqual(x.end);else{const H=l.nodeAfter,rt=x.end.parent==H&&0==x.end.offset,ft=x.end.nodeAfter==H,Mt=x.start.nodeAfter==H;Z=x.start.parent==l.nodeBefore&&x.start.isAtEnd||rt||ft||Mt}Z&&this.updateMarker(p.name,{range:x})}}}function m1(b,r,l,p){const x=b.model,Z=x.document;let k,H,G,rt=p.start;for(const Mt of p.getWalker({shallow:!0}))G=Mt.item.getAttribute(r),k&&H!=G&&(H!=l&&ft(),rt=k),k=Mt.nextPosition,H=G;function ft(){const Mt=new Vi(rt,k),Je=new sr(Mt,r,H,l,Mt.root.document?Z.version:null);b.batch.addOperation(Je),x.applyOperation(Je)}k instanceof mo&&k!=rt&&H!=l&&ft()}function gp(b,r,l,p){const x=b.model,Z=x.document,k=p.getAttribute(r);let H,G;k!=l&&(p.root===p?G=new Ou(p,r,k,l,p.document?Z.version:null):(H=new Vi(mo._createBefore(p),b.createPositionAfter(p)),G=new sr(H,r,k,l,H.root.document?Z.version:null)),b.batch.addOperation(G),x.applyOperation(G))}function _1(b,r,l,p,x){const Z=b.model,H=new Ql(r,l,p,Z.markers,x,Z.document.version);b.batch.addOperation(H),Z.applyOperation(H)}function H1(b,r,l,p){let x;if(b.root.document){const Z=p.document,k=new mo(Z.graveyard,[0]);x=new La(b,r,k,Z.version)}else x=new fc(b,r);l.addOperation(x),p.applyOperation(x)}function Yp(b,r){return b===r||b instanceof ld&&r instanceof ld}class ba{constructor(r){this._markerCollection=r,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize);const l=Vi._createOn(r);for(const p of this._markerCollection.getMarkersIntersectingRange(l)){const x=p.getRange();this.bufferMarkerChange(p.name,x,x,p.affectsData)}this._cachedChanges=null}bufferOperation(r){switch(r.type){case"insert":if(this._isInInsertedElement(r.position.parent))return;this._markInsert(r.position.parent,r.position.offset,r.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const l of r.range.getItems({shallow:!0}))this._isInInsertedElement(l.parent)||this._markAttribute(l);break;case"remove":case"move":case"reinsert":{if(r.sourcePosition.isEqual(r.targetPosition)||r.sourcePosition.getShiftedBy(r.howMany).isEqual(r.targetPosition))return;const l=this._isInInsertedElement(r.sourcePosition.parent),p=this._isInInsertedElement(r.targetPosition.parent);l||this._markRemove(r.sourcePosition.parent,r.sourcePosition.offset,r.howMany),p||this._markInsert(r.targetPosition.parent,r.getMovedRangeStart().offset,r.howMany);break}case"rename":{if(this._isInInsertedElement(r.position.parent))return;this._markRemove(r.position.parent,r.position.offset,1),this._markInsert(r.position.parent,r.position.offset,1);const l=Vi._createFromPositionAndShift(r.position,1);for(const p of this._markerCollection.getMarkersIntersectingRange(l)){const x=p.getRange();this.bufferMarkerChange(p.name,x,x,p.affectsData)}break}case"split":{const l=r.splitPosition.parent;this._isInInsertedElement(l)||this._markRemove(l,r.splitPosition.offset,r.howMany),this._isInInsertedElement(r.insertionPosition.parent)||this._markInsert(r.insertionPosition.parent,r.insertionPosition.offset,1),r.graveyardPosition&&this._markRemove(r.graveyardPosition.parent,r.graveyardPosition.offset,1);break}case"merge":{const l=r.sourcePosition.parent;this._isInInsertedElement(l.parent)||this._markRemove(l.parent,l.startOffset,1),this._markInsert(r.graveyardPosition.parent,r.graveyardPosition.offset,1);const x=r.targetPosition.parent;this._isInInsertedElement(x)||this._markInsert(x,r.targetPosition.offset,l.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(r,l,p,x){const Z=this._changedMarkers.get(r);Z?(Z.newRange=p,Z.affectsData=x,null==Z.oldRange&&null==Z.newRange&&this._changedMarkers.delete(r)):this._changedMarkers.set(r,{oldRange:l,newRange:p,affectsData:x})}getMarkersToRemove(){const r=[];for(const[l,p]of this._changedMarkers)null!=p.oldRange&&r.push({name:l,range:p.oldRange});return r}getMarkersToAdd(){const r=[];for(const[l,p]of this._changedMarkers)null!=p.newRange&&r.push({name:l,range:p.newRange});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(r=>({name:r[0],data:{oldRange:r[1].oldRange,newRange:r[1].newRange}}))}hasDataChanges(){for(const[,r]of this._changedMarkers)if(r.affectsData)return!0;return this._changesInElement.size>0}getChanges(r={includeChangesInGraveyard:!1}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();const l=[];for(const p of this._changesInElement.keys()){const x=this._changesInElement.get(p).sort((ft,Mt)=>ft.offset===Mt.offset?ft.type!=Mt.type?"remove"==ft.type?-1:1:0:ft.offsetp.position.root!=x.position.root?p.position.root.rootNamep.offset){if(x>Z){const k={type:"attribute",offset:Z,howMany:x-Z,count:this._changeCount++};this._handleChange(k,l),l.push(k)}r.nodesToHandle=p.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=p.offset&&r.offsetZ?(r.nodesToHandle=x-Z,r.offset=Z):r.nodesToHandle=0);if("remove"==p.type&&r.offsetp.offset){const k={type:"attribute",offset:p.offset,howMany:x-p.offset,count:this._changeCount++};this._handleChange(k,l),l.push(k),r.nodesToHandle=p.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==p.type&&(r.offset>=p.offset&&x<=Z?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=p.offset&&x>=Z&&(p.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,l,p){return{type:"insert",position:mo._createAt(r,l),name:p,length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,l,p){return{type:"remove",position:mo._createAt(r,l),name:p,length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,l,p){const x=[];p=new Map(p);for(const[Z,k]of l){const H=p.has(Z)?p.get(Z):null;H!==k&&x.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:Z,attributeOldValue:k,attributeNewValue:H,changeCount:this._changeCount++}),p.delete(Z)}for(const[Z,k]of p)x.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:Z,attributeOldValue:null,attributeNewValue:k,changeCount:this._changeCount++});return x}_isInInsertedElement(r){const l=r.parent;if(!l)return!1;const p=this._changesInElement.get(l),x=r.startOffset;if(p)for(const Z of p)if("insert"==Z.type&&x>=Z.offset&&xp){for(let k=0;k{const x=p[0];if(x.isDocumentOperation&&x.baseVersion!==this.version)throw new jn.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:x})},{priority:"highest"}),this.listenTo(r,"applyOperation",(l,p)=>{const x=p[0];x.isDocumentOperation&&this.differ.bufferOperation(x)},{priority:"high"}),this.listenTo(r,"applyOperation",(l,p)=>{const x=p[0];x.isDocumentOperation&&(this.version++,this.history.addOperation(x))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(l,p,x,Z)=>{this.differ.bufferMarkerChange(p.name,x,Z,p.affectsData),null===x&&p.on("change",(k,H)=>{this.differ.bufferMarkerChange(p.name,H,p.getRange(),p.affectsData)})})}get graveyard(){return this.getRoot("$graveyard")}createRoot(r="$root",l="main"){if(this.roots.get(l))throw new jn.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:l});const p=new ld(this,r,l);return this.roots.add(p),p}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(){return Array.from(this.roots,r=>r.rootName).filter(r=>"$graveyard"!=r)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Qi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const r of this.roots)if(r!==this.graveyard)return r;return this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),l=this.model,p=l.schema,x=l.createPositionFromPath(r,[0]);return p.getNearestSelectionRange(x)||l.createRange(x)}_validateSelectionRange(r){return Zf(r.start)&&Zf(r.end)}_callPostFixers(r){let l=!1;do{for(const p of this._postFixers)if(this.selection.refresh(),l=p(r),l)break}while(l)}}function Zf(b){const r=b.textNode;if(r){const l=r.data,p=b.offset-r.startOffset;return!Pd(l,p)&&!U_(l,p)}return!0}ao(hs,wa);class Vp{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r)}get(r){return this._markers.get(r)||null}_set(r,l,p=!1,x=!1){const Z=r instanceof d2?r.name:r;if(Z.includes(","))throw new jn.b('markercollection-incorrect-marker-name: Marker name cannot contain "," character.',this);const k=this._markers.get(Z);if(k){const rt=k.getRange();let ft=!1;return rt.isEqual(l)||(k._attachLiveRange(Np.fromRange(l)),ft=!0),p!=k.managedUsingOperations&&(k._managedUsingOperations=p,ft=!0),"boolean"==typeof x&&x!=k.affectsData&&(k._affectsData=x,ft=!0),ft&&this.fire("update:"+Z,k,rt,l),k}const H=Np.fromRange(l),G=new d2(Z,H,p,x);return this._markers.set(Z,G),this.fire("update:"+Z,G,null,l),G}_remove(r){const l=r instanceof d2?r.name:r,p=this._markers.get(l);return!!p&&(this._markers.delete(l),this.fire("update:"+l,p,p.getRange(),null),this._destroyMarker(p),!0)}_refresh(r){const l=r instanceof d2?r.name:r,p=this._markers.get(l);if(!p)throw new jn.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const x=p.getRange();this.fire("update:"+l,p,x,x,p.managedUsingOperations,p.affectsData)}*getMarkersAtPosition(r){for(const l of this)l.getRange().containsPosition(r)&&(yield l)}*getMarkersIntersectingRange(r){for(const l of this)null!==l.getRange().getIntersection(r)&&(yield l)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const l of this._markers.values())l.name.startsWith(r+":")&&(yield l)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}ao(Vp,wa);class d2{constructor(r,l,p,x){this.name=r,this._liveRange=this._attachLiveRange(l),this._managedUsingOperations=p,this._affectsData=x}get managedUsingOperations(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}getStart(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}is(r){return"marker"===r||"model:marker"===r}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}ao(d2,wa);class Rc extends Su{get type(){return"noop"}clone(){return new Rc(this.baseVersion)}getReversed(){return new Rc(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const wc={};wc[sr.className]=sr,wc[aa.className]=aa,wc[Ql.className]=Ql,wc[La.className]=La,wc[Rc.className]=Rc,wc[Su.className]=Su,wc[Yr.className]=Yr,wc[Ou.className]=Ou,wc[Jr.className]=Jr,wc[ac.className]=ac;class tl extends mo{constructor(r,l,p="toNone"){if(super(r,l,p),!this.root.is("rootElement"))throw new jn.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",r);p2.call(this)}detach(){this.stopListening()}is(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r}toPosition(){return new mo(this.root,this.path.slice(),this.stickiness)}static fromPosition(r,l){return new this(r.root,r.path.slice(),l||r.stickiness)}}function p2(){this.listenTo(this.root.document.model,"applyOperation",(b,r)=>{const l=r[0];l.isDocumentOperation&&m2.call(this,l)},{priority:"low"})}function m2(b){const r=this.getTransformedByOperation(b);if(!this.isEqual(r)){const l=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",l)}}ao(tl,wa);class ud{constructor(r,l,p){this.model=r,this.writer=l,this.position=p,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(r,l){r=Array.from(r);for(let p=0;p!0);if(b.schema.checkChild(r.nextPosition,"$text"))return r.nextPosition}}function Dl(b,r){const p=mo._createAt(b.root,r?"end":0);return r?new Vi(b,p):new Vi(p,b)}function vp(b,r,l){return' ,.?!:;"-()'.includes(b.charAt(r+(l?0:-1)))}function Mf(b,r,l){return r===(l?b.endOffset:0)}function Df(b,r){const l=[];Array.from(b.getItems({direction:"backward"})).map(p=>r.createRangeOn(p)).filter(p=>(p.start.isAfter(b.start)||p.start.isEqual(b.start))&&(p.end.isBefore(b.end)||p.end.isEqual(b.end))).forEach(p=>{l.push(p.start.parent),r.remove(p)}),l.forEach(p=>{let x=p;for(;x.parent&&x.isEmpty;){const Z=r.createRangeOn(x);x=x.parent,r.remove(Z)}})}function kd(b,r){return b.isCollapsed?function(l,p){const x=l.start,Z=p.getNearestSelectionRange(x);if(!Z)return null;if(!Z.isCollapsed)return Z;const k=Z.start;return x.isEqual(k)?null:new Vi(k)}(b,r):function(l,p){const x=l.start,Z=l.end,k=p.checkChild(x,"$text"),H=p.checkChild(Z,"$text"),G=p.getLimitElement(x),rt=p.getLimitElement(Z);if(G===rt){if(k&&H)return null;if(function(he,Je,fn){const Mn=he.nodeAfter&&!fn.isLimit(he.nodeAfter)||fn.checkChild(he,"$text"),In=Je.nodeBefore&&!fn.isLimit(Je.nodeBefore)||fn.checkChild(Je,"$text");return Mn||In}(x,Z,p)){const he=x.nodeAfter&&p.isObject(x.nodeAfter)?null:p.getNearestSelectionRange(x,"forward"),Je=Z.nodeBefore&&p.isObject(Z.nodeBefore)?null:p.getNearestSelectionRange(Z,"backward");return new Vi(he?he.start:x,Je?Je.start:Z)}}const ft=G&&!G.is("rootElement"),Mt=rt&&!rt.is("rootElement");if(ft||Mt){const he=x.nodeAfter&&Z.nodeBefore&&x.nodeAfter.parent===Z.nodeBefore.parent,Je=ft&&(!he||!_2(x.nodeAfter,p)),fn=Mt&&(!he||!_2(Z.nodeBefore,p));let Mn=x,In=Z;return Je&&(Mn=mo._createBefore(Gp(G,p))),fn&&(In=mo._createAfter(Gp(rt,p))),new Vi(Mn,In)}return null}(b,r)}function Gp(b,r){let l=b,p=l;for(;r.isLimit(p)&&p.parent;)l=p,p=p.parent;return l}function _2(b,r){return b&&r.isObject(b)}class Pf{constructor(){this.markers=new Vp,this.document=new hs(this),this.schema=new l2,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,l)=>{l[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((r,l)=>{if("$marker"===l.name)return!0}),function h1(b){b.document.registerPostFixer(r=>function(l,p){const x=p.document.selection,Z=p.schema,k=[];let H=!1;for(const G of x.getRanges()){const rt=kd(G,Z);rt&&!rt.isEqual(G)?(k.push(rt),H=!0):k.push(G)}H&&l.setSelection(function(G){const rt=[];rt.push(G.shift());for(const ft of G){const Mt=rt.pop();if(ft.isIntersecting(Mt)){const he=Mt.start.isAfter(ft.start)?ft.start:Mt.start,Je=Mt.end.isAfter(ft.end)?Mt.end:ft.end,fn=new Vi(he,Je);rt.push(fn)}else rt.push(Mt),rt.push(ft)}return rt}(k),{backward:x.isBackward})}(r,b))}(this)}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Dm,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(l){jn.b.rethrowUnexpectedError(l,this)}}enqueueChange(r,l){try{"string"==typeof r?r=new Dm(r):"function"==typeof r&&(l=r,r=new Dm),this._pendingChanges.push({batch:r,callback:l}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(p){jn.b.rethrowUnexpectedError(p,this)}}applyOperation(r){r._execute()}insertContent(r,l,p){return Z=r,k=l,H=p,(x=this).change(G=>{let rt;rt=k?k instanceof q1||k instanceof Pu?k:G.createSelection(k,H):x.document.selection,rt.isCollapsed||x.deleteContent(rt,{doNotAutoparagraph:!0});const ft=new ud(x,G,rt.anchor);let Mt;Mt=Z.is("documentFragment")?Z.getChildren():[Z],ft.handleNodes(Mt,{isFirst:!0,isLast:!0});const he=ft.getSelectionRange();he&&(rt instanceof Pu?G.setSelection(he):rt.setTo(he));const Je=ft.getAffectedRange()||x.createRange(rt.anchor);return ft.destroy(),Je});var x,Z,k,H}deleteContent(r,l){!function jl(b,r,l={}){if(r.isCollapsed)return;const p=r.getFirstRange();if("$graveyard"==p.root.rootName)return;const x=b.schema;b.change(Z=>{if(!l.doNotResetEntireContent&&function(G,rt){const ft=G.getLimitElement(rt);if(!rt.containsEntireContent(ft))return!1;const Mt=rt.getFirstRange();return Mt.start.parent!=Mt.end.parent&&G.checkChild(ft,"paragraph")}(x,r))return void function(G,rt){const ft=G.model.schema.getLimitElement(rt);G.remove(G.createRangeIn(ft)),Bp(G,G.createPositionAt(ft,0),rt)}(Z,r);const[k,H]=function(G){const rt=G.root.document.model,ft=G.start;let Mt=G.end;if(rt.hasContent(G,{ignoreMarkers:!0})){const he=function(Je){const fn=Je.parent,Mn=fn.root.document.model.schema,In=fn.getAncestors({parentFirst:!0,includeSelf:!0});for(const Qn of In){if(Mn.isLimit(Qn))return null;if(Mn.isBlock(Qn))return Qn}}(Mt);if(he&&Mt.isTouching(rt.createPositionAt(he,0))){const Je=rt.createSelection(G);rt.modifySelection(Je,{direction:"backward"}),Mt=Je.getLastPosition()}}return[tl.fromPosition(ft,"toPrevious"),tl.fromPosition(Mt,"toNext")]}(p);p.start.isTouching(p.end)||Z.remove(p),l.leaveUnmerged||(function(G,rt,ft){const Mt=G.model;if(!Sd(G.model.schema,rt,ft))return;const[he,Je]=function(fn,Mn){const In=fn.getAncestors(),Qn=Mn.getAncestors();let Fi=0;for(;In[Fi]&&In[Fi]==Qn[Fi];)Fi++;return[In[Fi],Qn[Fi]]}(rt,ft);!Mt.hasContent(he,{ignoreMarkers:!0})&&Mt.hasContent(Je,{ignoreMarkers:!0})?function fn(Mn,In,Qn,Fi){const Ji=In.parent,Uo=Qn.parent;if(Ji!=Fi&&Uo!=Fi){for(In=Mn.createPositionAfter(Ji),(Qn=Mn.createPositionBefore(Uo)).isEqual(In)||Mn.insert(Ji,Qn);In.parent.isEmpty;){const va=In.parent;In=Mn.createPositionBefore(va),Mn.remove(va)}Qn=Mn.createPositionBefore(Uo),function(va,Rs){const Rr=Rs.nodeBefore,el=Rs.nodeAfter;Rr.name!=el.name&&va.rename(Rr,el.name),va.clearAttributes(Rr),va.setAttributes(Object.fromEntries(el.getAttributes()),Rr),va.merge(Rs)}(Mn,Qn),Sd(Mn.model.schema,In,Qn)&&fn(Mn,In,Qn,Fi)}}(G,rt,ft,he.parent):function fn(Mn,In,Qn,Fi){const Ji=In.parent,Uo=Qn.parent;if(Ji!=Fi&&Uo!=Fi){for(In=Mn.createPositionAfter(Ji),(Qn=Mn.createPositionBefore(Uo)).isEqual(In)||Mn.insert(Uo,In),Mn.merge(In);Qn.parent.isEmpty;){const va=Qn.parent;Qn=Mn.createPositionBefore(va),Mn.remove(va)}!Sd(Mn.model.schema,In,Qn)||fn(Mn,In,Qn,Fi)}}(G,rt,ft,he.parent)}(Z,k,H),x.removeDisallowedAttributes(k.parent.getChildren(),Z)),Y1(Z,r,k),!l.doNotAutoparagraph&&function(G,rt){const ft=G.checkChild(rt,"$text"),Mt=G.checkChild(rt,"paragraph");return!ft&&Mt}(x,k)&&Bp(Z,k,r),k.detach(),H.detach()})}(this,r,l)}modifySelection(r,l){!function(p,x,Z={}){const k=p.schema,H="backward"!=Z.direction,G=Z.unit?Z.unit:"character",ft=new Xc({boundaries:Dl(x.focus,H),singleCharacters:!0,direction:H?"forward":"backward"}),Mt={walker:ft,schema:k,isForward:H,unit:G};let he;for(;he=ft.next();){if(he.done)return;const Je=g3(Mt,he.value);if(Je)return void(x instanceof Pu?p.change(fn=>{fn.setSelectionFocus(Je)}):x.setFocus(Je))}}(this,r,l)}getSelectedContent(r){return function(l,p){return l.change(x=>{const Z=x.createDocumentFragment(),k=p.getFirstRange();if(!k||k.isCollapsed)return Z;const H=k.start.root,G=k.start.getCommonPath(k.end),rt=H.getNodeByPath(G);let ft;ft=k.start.parent==k.end.parent?k:x.createRange(x.createPositionAt(rt,k.start.path[G.length]),x.createPositionAt(rt,k.end.path[G.length]+1));const Mt=ft.end.offset-ft.start.offset;for(const he of ft.getItems({shallow:!0}))he.is("$textProxy")?x.appendText(he.data,he.getAttributes(),Z):x.append(x.cloneElement(he,!0),Z);if(ft!=k){const he=k._getTransformedByMove(ft.start,x.createPositionAt(Z,0),Mt)[0],Je=x.createRange(x.createPositionAt(Z,0),he.start);Df(x.createRange(he.end,x.createPositionAt(Z,"end")),x),Df(Je,x)}return Z})}(this,r)}hasContent(r,l={}){const p=r instanceof qa?Vi._createIn(r):r;if(p.isCollapsed)return!1;const{ignoreWhitespaces:x=!1,ignoreMarkers:Z=!1}=l;if(!Z)for(const k of this.markers.getMarkersIntersectingRange(p))if(k.affectsData)return!0;for(const k of p.getItems())if(k.is("$textProxy")){if(!x||-1!==k.data.search(/\S/))return!0}else if(this.schema.isObject(k))return!0;return!1}createPositionFromPath(r,l,p){return new mo(r,l,p)}createPositionAt(r,l){return mo._createAt(r,l)}createPositionAfter(r){return mo._createAfter(r)}createPositionBefore(r){return mo._createBefore(r)}createRange(r,l){return new Vi(r,l)}createRangeIn(r){return Vi._createIn(r)}createRangeOn(r){return Vi._createOn(r)}createSelection(r,l,p){return new q1(r,l,p)}createBatch(r){return new Dm(r)}createOperationFromJSON(r){return class{static fromJSON(l,p){return wc[l.__className].fromJSON(l,p)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new p1(this,this._pendingChanges[0].batch);const p=this._pendingChanges[0].callback(this._currentWriter);r.push(p),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),r}}ao(Pf,St);class Od{constructor(){this._listener=Object.create(Ri)}listenTo(r){this._listener.listenTo(r,"keydown",(l,p)=>{this._listener.fire("_keydown:"+Ba(p),p)})}set(r,l,p={}){const x=sp(r);this._listener.listenTo(this._listener,"_keydown:"+x,(k,H)=>{l(H,()=>{H.preventDefault(),H.stopPropagation(),k.stop()}),k.return=!0},{priority:p.priority})}press(r){return!!this._listener.fire("_keydown:"+Ba(r),r)}destroy(){this._listener.stopListening()}}class F0 extends Od{constructor(r){super(),this.editor=r}set(r,l,p={}){if("string"==typeof l){const x=l;l=(Z,k)=>{this.editor.execute(x),k()}}super.set(r,l,p)}}class w_{constructor(r={}){this._context=r.context||new Ud({language:r.language}),this._context._addEditor(this,!r.context);const l=Array.from(this.constructor.builtinPlugins||[]);this.config=new Vl(r,this.constructor.defaultConfig),this.config.define("plugins",l),this.config.define(this._context._getEditorConfig()),this.plugins=new lr(this,l,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Tf,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.set("isReadOnly",!1),this.model=new Pf;const p=new dl;this.data=new Uf(this.model,p),this.editing=new yf(this.model,p),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new y_([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new F0(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const r=this.config,l=r.get("plugins"),p=r.get("removePlugins")||[],x=r.get("extraPlugins")||[];return this.plugins.init(l.concat(x),p)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(l=>this.once("ready",l))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(...r){try{return this.commands.execute(...r)}catch(l){jn.b.rethrowUnexpectedError(l,this)}}}ao(w_,St);var Lu={setData(b){this.data.set(b)},getData(b){return this.data.get(b)}},Sm={updateSourceElement(){if(!this.sourceElement)throw new jn.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var b,r;b=this.sourceElement,r=this.data.get(),b instanceof HTMLTextAreaElement&&(b.value=r),b.innerHTML=r}};class Sf{getHtml(r){const l=document.implementation.createHTMLDocument("").createElement("div");return l.appendChild(r),l.innerHTML}}class kf{constructor(r){this._domParser=new DOMParser,this._domConverter=new ne(r,{blockFillerMode:"nbsp"}),this._htmlWriter=new Sf}toData(r){const l=this._domConverter.viewToDom(r,document);return this._htmlWriter.getHtml(l)}toView(r){const l=this._toDom(r);return this._domConverter.domToView(l)}_toDom(r){const l=this._domParser.parseFromString(r,"text/html"),p=l.createDocumentFragment(),x=l.body.childNodes;for(;x.length>0;)p.appendChild(x[0]);return p}}class Xh{constructor(r){this.editor=r,this._components=new Map}*names(){for(const r of this._components.values())yield r.originalName}add(r,l){if(this.has(r))throw new jn.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:r});this._components.set(Ld(r),{callback:l,originalName:r})}create(r){if(!this.has(r))throw new jn.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:r});return this._components.get(Ld(r)).callback(this.editor.locale)}has(r){return this._components.has(Ld(r))}}function Ld(b){return String(b).toLowerCase()}class Zc{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(r){if(this._elements.has(r))throw new jn.b("focusTracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(r),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}ao(Zc,Ri),ao(Zc,St);class fl{constructor(r){this.editor=r,this.componentFactory=new Xh(r),this.focusTracker=new Zc,this._editableElementsMap=new Map,this.listenTo(r.editing.view.document,"layoutChanged",()=>this.update())}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(r,l){this._editableElementsMap.set(r,l),l.ckeditorInstance||(l.ckeditorInstance=this.editor)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}ao(fl,wa),d(13);const Ed=new WeakMap;function Of(b){const{view:r,element:l,text:p,isDirectHost:x=!0}=b,Z=r.document;Ed.has(Z)||(Ed.set(Z,new Map),Z.registerPostFixer(k=>eg(Z,k))),Ed.get(Z).set(l,{text:p,isDirectHost:x}),r.change(k=>eg(Z,k))}function eg(b,r){const l=Ed.get(b);let p=!1;for(const[x,Z]of l)km(r,x,Z)&&(p=!0);return p}function km(b,r,l){const{text:p,isDirectHost:x}=l,Z=x?r:function(H){if(1===H.childCount){const G=H.getChild(0);if(G.is("element")&&!G.is("uiElement"))return G}return null}(r);let k=!1;return!!Z&&(l.hostElement=Z,Z.getAttribute("data-placeholder")!==p&&(b.setAttribute("data-placeholder",p,Z),k=!0),function(H){if(!H.isAttached())return!1;const G=!Array.from(H.getChildren()).some(Mt=>!Mt.is("uiElement")),rt=H.document;if(!rt.isFocused&&G)return!0;const ft=rt.selection.anchor;return!(!G||!ft||ft.parent===H)}(Z)?(H=b,!(G=Z).hasClass("ck-placeholder")&&(H.addClass("ck-placeholder",G),!0)&&(k=!0)):function tg(b,r){return!!r.hasClass("ck-placeholder")&&(b.removeClass("ck-placeholder",r),!0)}(b,Z)&&(k=!0),k);var H,G}class N0{constructor(){this._replacedElements=[]}replace(r,l){this._replacedElements.push({element:r,newElement:l}),r.style.display="none",l&&r.parentNode.insertBefore(l,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:l})=>{r.style.display="",l&&l.remove()}),this._replacedElements=[]}}class Lf extends fl{constructor(r,l){var p;super(r),this.view=l,this._toolbarConfig=(p=r.config.get("toolbar"),Array.isArray(p)?{items:p}:p?Object.assign({items:[]},p):{items:[]}),this._elementReplacer=new N0}get element(){return this.view.element}init(r){const p=this.view,x=this.editor.editing.view,Z=p.editable,k=x.document.getRoot();Z.name=k.rootName,p.render();const H=Z.element;this.setEditableElement(Z.name,H),this.focusTracker.add(H),p.editable.bind("isFocused").to(this.focusTracker),x.attachDomRoot(H),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const r=this.view,l=this.editor.editing.view;this._elementReplacer.restore(),l.detachDomRoot(r.editable.name),r.destroy(),super.destroy()}_initToolbar(){const r=this.editor,l=this.view,p=r.editing.view;l.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),l.stickyPanel.limiterElement=l.element,this._toolbarConfig.viewportTopOffset&&(l.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),l.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function({origin:x,originKeystrokeHandler:Z,originFocusTracker:k,toolbar:H,beforeFocus:G,afterBlur:rt}){k.add(H.element),Z.set("Alt+F10",(ft,Mt)=>{k.isFocused&&!H.focusTracker.isFocused&&(G&&G(),H.focus(),Mt())}),H.keystrokes.set("Esc",(ft,Mt)=>{H.focusTracker.isFocused&&(x.focus(),rt&&rt(),Mt())})}({origin:p,originFocusTracker:this.focusTracker,originKeystrokeHandler:r.keystrokes,toolbar:l.toolbar})}_initPlaceholder(){const r=this.editor,l=r.editing.view,p=l.document.getRoot(),x=r.sourceElement,Z=r.config.get("placeholder")||x&&"textarea"===x.tagName.toLowerCase()&&x.getAttribute("placeholder");Z&&Of({view:l,element:p,text:Z,isDirectHost:!1})}}class Eu extends Er{constructor(r=[]){super(r,{idProperty:"viewUid"}),this.on("add",(l,p,x)=>{this._renderViewIntoCollectionParent(p,x)}),this.on("remove",(l,p)=>{p.element&&this._parentElement&&p.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const l of this)this._renderViewIntoCollectionParent(l)}delegate(...r){if(!r.length||!r.every(l=>"string"==typeof l))throw new jn.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:l=>{for(const p of this)for(const x of r)p.delegate(x).to(l);this.on("add",(p,x)=>{for(const Z of r)x.delegate(Z).to(l)}),this.on("remove",(p,x)=>{for(const Z of r)x.stopDelegating(Z,l)})}}}_renderViewIntoCollectionParent(r,l){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[l])}}class g1{constructor(r){Object.assign(this,jo(Ff(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new jn.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(l){if(l.children)for(const p of l.children)Is(p)?yield p:h2(p)&&(yield*r(p))}(this)}static bind(r,l){return{to:(p,x)=>new f2({eventNameOrFunction:p,attribute:p,observable:r,emitter:l,callback:x}),if:(p,x,Z)=>new v3({observable:r,emitter:l,attribute:p,valueIfTrue:x,callback:Z})}}static extend(r,l){if(r._isRendered)throw new jn.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,r]);!function p(x,Z){if(Z.attributes&&(x.attributes||(x.attributes={}),Jp(x.attributes,Z.attributes)),Z.eventListeners&&(x.eventListeners||(x.eventListeners={}),Jp(x.eventListeners,Z.eventListeners)),Z.text&&x.text.push(...Z.text),Z.children&&Z.children.length){if(x.children.length!=Z.children.length)throw new jn.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",x);let k=0;for(const H of Z.children)p(x.children[k++],H)}}(r,jo(Ff(l)))}_renderNode(r){let l;if(l=r.node?this.tag&&this.text:this.tag?this.text:!this.text,l)throw new jn.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let l=r.node;return l||(l=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),l}_renderText(r){let l=r.node;return l?r.revertData.text=l.textContent:l=r.node=document.createTextNode(""),Z_(this.text)?this._bindToObservable({schema:this.text,updater:ig(l),data:r}):l.textContent=this.text.join(""),l}_renderAttributes(r){let l,p,x,Z;if(!this.attributes)return;const k=r.node,H=r.revertData;for(l in this.attributes)if(x=k.getAttribute(l),p=this.attributes[l],H&&(H.attributes[l]=x),Z=Qt(p[0])&&p[0].ns?p[0].ns:null,Z_(p)){const G=Z?p[0].value:p;H&&b3(l)&&G.unshift(x),this._bindToObservable({schema:G,updater:og(k,l,Z),data:r})}else"style"==l&&"string"!=typeof p[0]?this._renderStyleAttribute(p[0],r):(H&&x&&b3(l)&&p.unshift(x),p=p.map(G=>G&&G.value||G).reduce((G,rt)=>G.concat(rt),[]).reduce(Ns,""),Fu(p)||k.setAttributeNS(Z,l,p))}_renderStyleAttribute(r,l){const p=l.node;for(const x in r){const Z=r[x];Z_(Z)?this._bindToObservable({schema:[Z],updater:xp(p,x),data:l}):p.style[x]=Z}}_renderElementChildren(r){const l=r.node,p=r.intoFragment?document.createDocumentFragment():l,x=r.isApplying;let Z=0;for(const k of this.children)if(ag(k)){if(!x){k.setParent(l);for(const H of k)p.appendChild(H.element)}}else if(Is(k))x||(k.isRendered||k.render(),p.appendChild(k.element));else if(cu(k))p.appendChild(k);else if(x){const H={children:[],bindings:[],attributes:{}};r.revertData.children.push(H),k._renderNode({node:p.childNodes[Z++],isApplying:!0,revertData:H})}else p.appendChild(k.render());r.intoFragment&&l.appendChild(p)}_setUpListeners(r){if(this.eventListeners)for(const l in this.eventListeners){const p=this.eventListeners[l].map(x=>{const[Z,k]=l.split("@");return x.activateDomEventListener(Z,k,r)});r.revertData&&r.revertData.bindings.push(p)}}_bindToObservable({schema:r,updater:l,data:p}){const x=p.revertData;ng(r,l,p);const Z=r.filter(k=>!Fu(k)).filter(k=>k.observable).map(k=>k.activateAttributeListener(r,l,p));x&&x.bindings.push(Z)}_revertTemplateFromNode(r,l){for(const p of l.bindings)for(const x of p)x();if(l.text)r.textContent=l.text;else{for(const p in l.attributes){const x=l.attributes[p];null===x?r.removeAttribute(p):r.setAttribute(p,x)}for(let p=0;png(r,l,p);return this.emitter.listenTo(this.observable,"change:"+this.attribute,x),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,x)}}}class f2 extends Ef{activateDomEventListener(r,l,p){const x=(Z,k)=>{l&&!k.target.matches(l)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(k):this.observable.fire(this.eventNameOrFunction,k))};return this.emitter.listenTo(p.node,r,x),()=>{this.emitter.stopListening(p.node,r,x)}}}class v3 extends Ef{getValue(r){return!Fu(super.getValue(r))&&(this.valueIfTrue||!0)}}function Z_(b){return!!b&&(b.value&&(b=b.value),Array.isArray(b)?b.some(Z_):b instanceof Ef)}function ng(b,r,{node:l}){let p=(Z=l,b.map(k=>k instanceof Ef?k.getValue(Z):k));var Z;p=1==b.length&&b[0]instanceof v3?p[0]:p.reduce(Ns,""),Fu(p)?r.remove():r.set(p)}function ig(b){return{set(r){b.textContent=r},remove(){b.textContent=""}}}function og(b,r,l){return{set(p){b.setAttributeNS(l,r,p)},remove(){b.removeAttributeNS(l,r)}}}function xp(b,r){return{set(l){b.style[r]=l},remove(){b.style[r]=null}}}function Ff(b){return Cs(b,r=>{if(r&&(r instanceof Ef||h2(r)||Is(r)||ag(r)))return r})}function jo(b){if("string"==typeof b?b=function(r){return{text:[r]}}(b):b.text&&function(r){Array.isArray(r.text)||(r.text=[r.text])}(b),b.on&&(b.eventListeners=function(r){for(const l in r)x3(r,l);return r}(b.on),delete b.on),!b.text){b.attributes&&function(l){for(const p in l)l[p].value&&(l[p].value=[].concat(l[p].value)),x3(l,p)}(b.attributes);const r=[];if(b.children)if(ag(b.children))r.push(b.children);else for(const l of b.children)h2(l)||Is(l)||cu(l)?r.push(l):r.push(new g1(l));b.children=r}return b}function x3(b,r){Array.isArray(b[r])||(b[r]=[b[r]])}function Ns(b,r){return Fu(r)?b:Fu(b)?r:`${b} ${r}`}function Jp(b,r){for(const l in r)b[l]?b[l].push(...r[l]):b[l]=r[l]}function Fu(b){return!b&&0!==b}function Is(b){return b instanceof Ca}function h2(b){return b instanceof g1}function ag(b){return b instanceof Eu}function b3(b){return"class"==b||"style"==b}d(15);class Ca{constructor(r){this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new Er,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(l,p)=>{p.locale=r}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=g1.bind(this,this)}createCollection(r){const l=new Eu(r);return this._viewCollections.add(l),l}registerChild(r){za(r)||(r=[r]);for(const l of r)this._unboundChildren.add(l)}deregisterChild(r){za(r)||(r=[r]);for(const l of r)this._unboundChildren.remove(l)}setTemplate(r){this.template=new g1(r)}extendTemplate(r){g1.extend(this.template,r)}render(){if(this.isRendered)throw new jn.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}ao(Ca,Ri),ao(Ca,St);var rg=function(b){return"string"==typeof b||!kn(b)&&ct(b)&&"[object String]"==B(b)};class sg extends Eu{constructor(r,l=[]){super(l),this.locale=r}attachToDom(){this._bodyCollectionContainer=new g1({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=function(l,p,x={},Z=[]){const k=x&&x.xmlns,H=k?l.createElementNS(k,p):l.createElement(p);for(const G in x)H.setAttribute(G,x[G]);!rg(Z)&&za(Z)||(Z=[Z]);for(let G of Z)rg(G)&&(G=l.createTextNode(G)),H.appendChild(G);return H}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}d(17);class n6 extends Ca{constructor(r){super(r),this.body=new sg(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}d(19);class Nu extends Ca{constructor(r){super(r),this.set("text"),this.set("for"),this.id="ck-editor__label_"+xr();const l=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:l.to("for")},children:[{text:l.to("text")}]})}}class Om extends n6{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,l=new Nu;return l.text=r("Rich Text Editor"),l.extendTemplate({attributes:{class:"ck-voice-label"}}),l}}class Nf extends Ca{constructor(r,l,p){super(r),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=p,this._hasExternalElement=!!this._editableElement,this._editingView=l}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const r=this._editingView;function l(p){r.change(x=>{const Z=r.document.getRoot(p.name);x.addClass(p.isFocused?"ck-focused":"ck-blurred",Z),x.removeClass(p.isFocused?"ck-blurred":"ck-focused",Z)})}r.isRenderingInProgress?function p(x){r.once("change:isRenderingInProgress",(Z,k,H)=>{H?p(x):l(x)})}(this):l(this)}}class C3 extends Nf{constructor(r,l,p){super(r,l,p),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const r=this._editingView,l=this.t;r.change(p=>{const x=r.document.getRoot(this.name);p.setAttribute("aria-label",l("Rich Text Editor, %0",[this.name]),x)})}}function Lm(b){return r=>r+b}d(21);const z1=Lm("px");class I0 extends Ca{constructor(r){super(r);const l=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new g1({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:l.to("isSticky",p=>p?"block":"none"),height:l.to("isSticky",p=>p?z1(this._panelRect.height):null)}}}).render(),this._contentPanel=new g1({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",l.if("isSticky","ck-sticky-panel__content_sticky"),l.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:l.to("isSticky",p=>p?z1(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:l.to("_hasViewportTopOffset",p=>p?z1(this.viewportTopOffset):null),bottom:l.to("_isStickyToTheLimiter",p=>p?z1(this.limiterBottomOffset):null),marginLeft:l.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(ht.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const r=this._panelRect=this._contentPanel.getBoundingClientRect();let l;this.limiterElement?(l=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&l.top{this[l](),k()})}}get first(){return this.focusables.find(jp)||null}get last(){return this.focusables.filter(jp).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((l,p)=>{const x=l.element===this.focusTracker.focusedElement;return x&&(r=p),x}),r)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(r){r&&r.focus()}_getFocusableItem(r){const l=this.current,p=this.focusables.length;if(!p)return null;if(null===l)return this[1===r?"first":"last"];let x=(l+p+r)%p;do{const Z=this.focusables.get(x);if(jp(Z))return Z;x=(x+p+r)%p}while(x!==l);return null}}function jp(b){return!(!b.focus||"none"==ht.window.getComputedStyle(b.element).display)}class Em extends Ca{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class gs{constructor(r,l){gs._observerInstance||gs._createObserver(),this._element=r,this._callback=l,gs._addElementCallback(r,l),gs._observerInstance.observe(r)}destroy(){gs._deleteElementCallback(this._element,this._callback)}static _addElementCallback(r,l){gs._elementCallbacks||(gs._elementCallbacks=new Map);let p=gs._elementCallbacks.get(r);p||(p=new Set,gs._elementCallbacks.set(r,p)),p.add(l)}static _deleteElementCallback(r,l){const p=gs._getElementCallbacks(r);p&&(p.delete(l),p.size||(gs._elementCallbacks.delete(r),gs._observerInstance.unobserve(r))),gs._elementCallbacks&&!gs._elementCallbacks.size&&(gs._observerInstance=null,gs._elementCallbacks=null)}static _getElementCallbacks(r){return gs._elementCallbacks?gs._elementCallbacks.get(r):null}static _createObserver(){let r;r="function"==typeof ht.window.ResizeObserver?ht.window.ResizeObserver:Fm,gs._observerInstance=new r(l=>{for(const p of l){if(!p.target.offsetParent)continue;const x=gs._getElementCallbacks(p.target);if(x)for(const Z of x)Z(p)}})}}gs._observerInstance=null,gs._elementCallbacks=null;class Fm{constructor(r){this._callback=r,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(r){this._elements.add(r),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(r){this._elements.delete(r),this._previousRects.delete(r),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const r=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(r,100)};this.listenTo(ht.window,"resize",()=>{this._checkElementRectsAndExecuteCallback()}),this._periodicCheckTimeout=setTimeout(r,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const r=[];for(const l of this._elements)this._hasRectChanged(l)&&r.push({target:l,contentRect:this._previousRects.get(l)});r.length&&this._callback(r)}_hasRectChanged(r){if(!r.ownerDocument.body.contains(r))return!1;const l=new as(r),p=this._previousRects.get(r),x=!p||!p.isEqual(l);return this._previousRects.set(r,l),x}}ao(Fm,Ri);class g2 extends Ca{constructor(r){super(r);const l=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",l.to("position",p=>"ck-dropdown__panel_"+p),l.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:l.to(p=>p.preventDefault())}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}function If({element:b,target:r,positions:l,limiter:p,fitInViewport:x}){ie(r)&&(r=r()),ie(p)&&(p=p());const Z=(Mt=b)&&Mt.parentNode?Mt.offsetParent===ht.document.body?null:Mt.offsetParent:null,k=new as(b),H=new as(r);var Mt;let G,rt;[rt,G]=(p||x)&&function(he,Je){const{elementRect:fn,viewportRect:Mn}=Je,In=fn.getArea(),Qn=function(Fi,{targetRect:Ji,elementRect:Uo,limiterRect:va,viewportRect:Rs}){const Rr=[],el=Uo.getArea();for(const hr of Fi){const eu=qf(hr,Ji,Uo);if(!eu)continue;const[Yu,nl]=eu;let Z1=0,K1=0;if(va)if(Rs){const vd=va.getIntersection(Rs);vd&&(Z1=vd.getIntersectionArea(nl))}else Z1=va.getIntersectionArea(nl);Rs&&(K1=Rs.getIntersectionArea(nl));const gd={positionName:Yu,positionRect:nl,limiterIntersectArea:Z1,viewportIntersectArea:K1};if(Z1===el)return[gd];Rr.push(gd)}return Rr}(he,Je);if(Mn){const Fi=Wp(Qn.filter(({viewportIntersectArea:Ji})=>Ji===In),In);if(Fi)return Fi}return Wp(Qn,In)}(l,{targetRect:H,elementRect:k,limiterRect:p&&new as(p).getVisible(),viewportRect:x&&new as(ht.window)})||qf(l[0],H,k);let ft=cg(G);return Z&&(ft=function({left:Mt,top:he},Je){const fn=cg(new as(Je)),Mn=l1(Je);return Mt-=fn.left,he-=fn.top,Mt+=Je.scrollLeft,he+=Je.scrollTop,{left:Mt-=Mn.left,top:he-=Mn.top}}(ft,Z)),{left:ft.left,top:ft.top,name:rt}}function qf(b,r,l){const p=b(r,l);if(!p)return null;const{left:x,top:Z,name:k}=p;return[k,l.clone().moveTo(x,Z)]}function Wp(b,r){let l,p,x=0;for(const{positionName:Z,positionRect:k,limiterIntersectArea:H,viewportIntersectArea:G}of b){if(H===r)return[Z,k];const rt=G**2+H**2;rt>x&&(x=rt,l=k,p=Z)}return l?[p,l]:null}function cg({left:b,top:r}){const{scrollX:l,scrollY:p}=ht.window;return{left:b+l,top:r+p}}d(23);class $p extends Ca{constructor(r,l,p){super(r);const x=this.bindTemplate;this.buttonView=l,this.panelView=p,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Od,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",x.to("class"),x.if("isEnabled","ck-disabled",Z=>!Z)],id:x.to("id"),"aria-describedby":x.to("ariaDescribedById")},children:[l,p]}),l.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",()=>{this.isOpen&&(this.panelView.position="auto"===this.panelPosition?$p._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelPosition)}),this.keystrokes.listenTo(this.element);const r=(l,p)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,p())};this.keystrokes.set("arrowdown",(l,p)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,p())}),this.keystrokes.set("arrowright",(l,p)=>{this.isOpen&&p()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:r,southWest:l,northEast:p,northWest:x}=$p.defaultPanelPositions;return"ltr"===this.locale.uiLanguageDirection?[r,l,p,x]:[l,r,x,p]}}$p.defaultPanelPositions={southEast:b=>({top:b.bottom,left:b.left,name:"se"}),southWest:(b,r)=>({top:b.bottom,left:b.left-r.width+b.width,name:"sw"}),northEast:(b,r)=>({top:b.top-r.height,left:b.left,name:"ne"}),northWest:(b,r)=>({top:b.bottom-r.height,left:b.left-r.width+b.width,name:"nw"})},$p._getOptimalPosition=If,d(25);class Kp extends Ca{constructor(){super();const r=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const r=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),l=r.getAttribute("viewBox");for(l&&(this.viewBox=l),this.element.innerHTML="";r.childNodes.length>0;)this.element.appendChild(r.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(r=>{r.style.fill=this.fillColor})}}d(27);class y3 extends Ca{constructor(r){super(r),this.set("text",""),this.set("position","s");const l=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",l.to("position",p=>"ck-tooltip_"+p),l.if("text","ck-hidden",p=>!p.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:l.to("text")}]}]})}}d(29);class qs extends Ca{constructor(r){super(r);const l=this.bindTemplate,p=xr();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(p),this.iconView=new Kp,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",l.to("class"),l.if("isEnabled","ck-disabled",x=>!x),l.if("isVisible","ck-hidden",x=>!x),l.to("isOn",x=>x?"ck-on":"ck-off"),l.if("withText","ck-button_with-text"),l.if("withKeystroke","ck-button_with-keystroke")],type:l.to("type",x=>x||"button"),tabindex:l.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+p,"aria-disabled":l.if("isEnabled",!0,x=>!x),"aria-pressed":l.to("isOn",x=>!!this.isToggleable&&String(x))},children:this.children,on:{mousedown:l.to(x=>{x.preventDefault()}),click:l.to(x=>{this.isEnabled?this.fire("execute"):x.preventDefault()})}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const r=new y3;return r.bind("text").to(this,"_tooltipString"),r.bind("position").to(this,"tooltipPosition"),r}_createLabelView(r){const l=new Ca;return l.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:this.bindTemplate.to("labelStyle"),id:"ck-editor__aria-label_"+r},children:[{text:this.bindTemplate.to("label")}]}),l}_createKeystrokeView(){const r=new Ca;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",l=>L1(l))}]}),r}_getTooltipString(r,l,p){return r?"string"==typeof r?r:(p&&(p=L1(p)),r instanceof Function?r(l,p):`${l}${p?` (${p})`:""}`):""}}var Nm='';class V1 extends qs{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new Kp;return r.content=Nm,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}d(31);class Rf extends Ca{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Zc,this.keystrokes=new Od,this._focusCycler=new Qp({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,l)=>{this.focusTracker.add(l.element)}),this.items.on("remove",(r,l)=>{this.focusTracker.remove(l.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class lg extends Ca{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class q0 extends Ca{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}d(33);class M_ extends qs{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new Ca;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}function v2({emitter:b,activator:r,callback:l,contextElements:p}){b.listenTo(document,"mousedown",(x,{target:Z})=>{if(r()){for(const k of p)if(k.contains(Z))return;l()}})}function v1(b,r=V1){const l=new r(b),p=new g2(b),x=new $p(b,l,p);return l.bind("isEnabled").to(x),l instanceof V1?l.bind("isOn").to(x,"isOpen"):l.arrowView.bind("isOn").to(x,"isOpen"),(k=Z=x).on("render",()=>{v2({emitter:k,activator:()=>k.isOpen,callback:()=>{k.isOpen=!1},contextElements:[k.element]})}),function(k){k.on("execute",H=>{H.source instanceof M_||(k.isOpen=!1)})}(Z),function(k){k.keystrokes.set("arrowdown",(H,G)=>{k.isOpen&&(k.panelView.focus(),G())}),k.keystrokes.set("arrowup",(H,G)=>{k.isOpen&&(k.panelView.focusLast(),G())})}(Z),x;var Z,k}function T3(b,r){const l=b.locale,p=b.listView=new Rf(l);p.items.bindTo(r).using(({type:x,model:Z})=>{if("separator"===x)return new q0(l);if("button"===x||"switchbutton"===x){const k=new lg(l);let H;return H="button"===x?new qs(l):new M_(l),H.bind(...Object.keys(Z)).to(Z),H.delegate("execute").to(k),k.children.add(H),k}}),b.panelView.children.add(p),p.items.delegate("execute").to(b)}d(35),d(37),d(39);class x2 extends Ca{constructor(r,l){super(r);const p=this.bindTemplate,x=this.t;var Z;this.options=l||{},this.set("ariaLabel",x("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Zc,this.keystrokes=new Od,this.set("class"),this.set("isCompact",!1),this.itemsView=new R0(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new Qp({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",p.to("class"),p.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":p.to("ariaLabel"),style:{maxWidth:p.to("maxWidth")}},children:this.children,on:{mousedown:(Z=this,Z.bindTemplate.to(k=>{k.target===Z.element&&k.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new ug(this):new b2(this)}render(){super.render();for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,l)=>{this.focusTracker.add(l.element)}),this.items.on("remove",(r,l)=>{this.focusTracker.remove(l.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,l){this.items.addMany(r.map(p=>"|"==p?new Em:l.has(p)?l.create(p):void console.warn(Object(jn.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:p})).filter(p=>void 0!==p))}}class R0 extends Ca{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class b2{constructor(r){const l=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(p=>p),r.focusables.bindTo(r.items).using(p=>p),r.extendTemplate({attributes:{class:[l.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class ug{constructor(r){this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,r.itemsView.children.bindTo(this.ungroupedItems).using(l=>l),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),r.children.on("add",this._updateFocusCycleableItems.bind(this)),r.children.on("remove",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(l,p)=>{const x=p.index;for(const Z of p.removed)x>=this.ungroupedItems.length?this.groupedItems.remove(Z):this.ungroupedItems.remove(Z);for(let Z=x;Zthis.ungroupedItems.length?this.groupedItems.add(k,Z-this.ungroupedItems.length):this.ungroupedItems.add(k,Z)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);let r;for(;this._areItemsOverflowing;)this._groupLastItem(),r=!0;if(!r&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,l=this.viewLocale.uiLanguageDirection,p=new as(r.lastChild),x=new as(r);if(!this.cachedPadding){const Z=ht.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(Z["ltr"===l?"paddingRight":"paddingLeft"])}return"ltr"===l?p.right>x.right-this.cachedPadding:p.left{r&&r===l.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=l.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Em),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,l=r.t,p=v1(r);return p.class="ck-toolbar__grouped-dropdown",p.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",function(x,Z){const k=x.locale,H=k.t,G=x.toolbarView=new x2(k);G.set("ariaLabel",H("Dropdown toolbar")),x.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map(rt=>G.items.add(rt)),x.panelView.children.add(G),G.items.delegate("execute").to(x)}(p),p.buttonView.set({label:l("Show more items"),tooltip:!0,icon:''}),p.toolbarView.items.bindTo(this.groupedItems).using(x=>x),p}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}d(41);class Hf extends Om{constructor(r,l,p={}){super(r),this.stickyPanel=new I0(r),this.toolbar=new x2(r,{shouldGroupWhenFull:p.shouldToolbarGroupWhenFull}),this.editable=new C3(r,l)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class C2 extends w_{constructor(r,l){super(l),ys(r)&&(this.sourceElement=r),this.data.processor=new kf(this.data.viewDocument),this.model.document.createRoot();const p=!this.config.get("toolbar.shouldNotGroupWhenFull"),x=new Hf(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:p});this.ui=new Lf(this,x),function(Z){if(!ie(Z.updateSourceElement))throw new jn.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",Z);const k=Z.sourceElement;if(k&&"textarea"===k.tagName.toLowerCase()&&k.form){let H;const G=k.form,rt=()=>Z.updateSourceElement();ie(G.submit)&&(H=G.submit,G.submit=()=>{rt(),H.apply(G)}),G.addEventListener("submit",rt),Z.on("destroy",()=>{G.removeEventListener("submit",rt),H&&(G.submit=H)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,l={}){return new Promise(p=>{const x=new this(r,l);p(x.initPlugins().then(()=>x.ui.init(ys(r)?r:null)).then(()=>{if(!ys(r)&&l.initialData)throw new jn.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const Z=l.initialData||(ys(k=r)?(H=k)instanceof HTMLTextAreaElement?H.value:H.innerHTML:k);var k,H;return x.data.init(Z)}).then(()=>x.fire("ready")).then(()=>x))})}}ao(C2,Lu),ao(C2,Sm);class ko{constructor(r){this.editor=r,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",dg,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",dg),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function dg(b){b.return=!1,b.stop()}ao(ko,St);class D_{constructor(r){this.files=function(l){const p=l.files?Array.from(l.files):[],x=l.items?Array.from(l.items):[];return p.length?p:x.filter(Z=>"file"===Z.kind).map(Z=>Z.getAsFile())}(r),this._native=r}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,l){this._native.setData(r,l)}}class A3 extends N1{constructor(r){super(r);const l=this.document;function p(x,Z){Z.preventDefault();const k=Z.dropRange?[Z.dropRange]:Array.from(l.selection.getRanges()),H=new Ya(l,"clipboardInput");l.fire(H,{dataTransfer:Z.dataTransfer,targetRanges:k}),H.stop.called&&Z.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(l,"paste",p,{priority:"low"}),this.listenTo(l,"drop",p,{priority:"low"})}onDomEvent(r){const l={dataTransfer:new D_(r.clipboardData?r.clipboardData:r.dataTransfer)};"drop"==r.type&&(l.dropRange=function(p,x){const Z=x.target.ownerDocument,k=x.clientX,H=x.clientY;let G;return Z.caretRangeFromPoint&&Z.caretRangeFromPoint(k,H)?G=Z.caretRangeFromPoint(k,H):x.rangeParent&&(G=Z.createRange(),G.setStart(x.rangeParent,x.rangeOffset),G.collapse(!0)),G?p.domConverter.domRangeToView(G):p.document.selection.getFirstRange()}(this.view,r)),this.fire(r.type,r,l)}}const Im=["figcaption","li"];class qm extends ko{static get pluginName(){return"Clipboard"}init(){const r=this.editor,l=r.model.document,p=r.editing.view,x=p.document;function Z(k,H){const G=H.dataTransfer;H.preventDefault();const rt=r.data.toView(r.model.getSelectedContent(l.selection));x.fire("clipboardOutput",{dataTransfer:G,content:rt,method:k.name})}this._htmlDataProcessor=new kf(x),p.addObserver(A3),this.listenTo(x,"clipboardInput",k=>{r.isReadOnly&&k.stop()},{priority:"highest"}),this.listenTo(x,"clipboardInput",(k,H)=>{const G=H.dataTransfer;let rt="";var ft;G.getData("text/html")?rt=G.getData("text/html").replace(/(\s+)<\/span>/g,(Je,fn)=>1==fn.length?" ":fn):G.getData("text/plain")&&((ft=(ft=G.getData("text/plain")).replace(//g,">").replace(/\n/g,"

").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).indexOf("

")>-1&&(ft=`

${ft}

`),rt=ft),rt=this._htmlDataProcessor.toView(rt);const Mt=new Ya(this,"inputTransformation");this.fire(Mt,{content:rt,dataTransfer:G}),Mt.stop.called&&k.stop(),p.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(k,H)=>{if(!H.content.isEmpty){const rt=this.editor.model,ft=this.editor.data.toModel(H.content,"$clipboardHolder");if(0==ft.childCount)return;rt.insertContent(ft),k.stop()}},{priority:"low"}),this.listenTo(x,"copy",Z,{priority:"low"}),this.listenTo(x,"cut",(k,H)=>{r.isReadOnly?H.preventDefault():Z(k,H)},{priority:"low"}),this.listenTo(x,"clipboardOutput",(k,H)=>{H.content.isEmpty||(H.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(H.content)),H.dataTransfer.setData("text/plain",function G(rt){let ft="";if(rt.is("$text")||rt.is("$textProxy"))ft=rt.data;else if(rt.is("element","img")&&rt.hasAttribute("alt"))ft=rt.getAttribute("alt");else{let Mt=null;for(const he of rt.getChildren()){const Je=G(he);Mt&&(Mt.is("containerElement")||he.is("containerElement"))&&(Im.includes(Mt.name)||Im.includes(he.name)?ft+="\n":ft+="\n\n"),ft+=Je,Mt=he}}return ft}(H.content))),"cut"==H.method&&r.model.deleteContent(l.selection)},{priority:"low"})}}class tr{constructor(r){this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",l=>{this.isEnabled||l.stop()},{priority:"high"}),this.listenTo(r,"change:isReadOnly",(l,p,x)=>{x?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",oo,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",oo),this.refresh())}execute(){}destroy(){this.stopListening()}}function oo(b){b.return=!1,b.stop()}function*U3(b,r){for(const l of r)l&&b.getAttributeProperties(l[0]).copyOnEnter&&(yield l)}ao(tr,St);class H0 extends tr{execute(){const r=this.editor.model,l=r.document;r.change(p=>{(function(x,Z,k,H){const G=k.isCollapsed,rt=k.getFirstRange(),ft=rt.start.parent,Mt=rt.end.parent;if(H.isLimit(ft)||H.isLimit(Mt))G||ft!=Mt||x.deleteContent(k);else if(G){const he=U3(Z.model.schema,k.getAttributes());x1(Z,rt.start),Z.setSelectionAttribute(he)}else{const he=!(rt.start.isAtStart&&rt.end.isAtEnd),Je=ft==Mt;x.deleteContent(k,{leaveUnmerged:he}),he&&(Je?x1(Z,k.focus):Z.setSelection(Mt,0))}})(this.editor.model,p,l.selection,r.schema),this.fire("afterExecute",{writer:p})})}}function x1(b,r){b.split(r),b.setSelection(r.parent.nextSibling,0)}class pg extends ja{constructor(r){super(r);const l=this.document;l.on("keydown",(p,x)=>{if(this.isEnabled&&x.keyCode==na.enter){let Z;l.once("enter",k=>Z=k,{priority:"highest"}),l.fire("enter",new F1(l,x.domEvent,{isSoft:x.shiftKey})),Z&&Z.stop.called&&p.stop()}})}observe(){}}class Y0 extends ko{static get pluginName(){return"Enter"}init(){const r=this.editor,l=r.editing.view,p=l.document;l.addObserver(pg),r.commands.add("enter",new H0(r)),this.listenTo(p,"enter",(x,Z)=>{Z.preventDefault(),Z.isSoft||(r.execute("enter"),l.scrollToTheSelection())},{priority:"low"})}}class mg extends tr{execute(){const r=this.editor.model,l=r.document;r.change(p=>{(function(x,Z,k){const H=k.isCollapsed,G=k.getFirstRange(),ft=G.end.parent,Mt=G.start.parent==ft;if(H){const he=U3(x.schema,k.getAttributes());_g(x,Z,G.end),Z.removeSelectionAttribute(k.getAttributeKeys()),Z.setSelectionAttribute(he)}else{const he=!(G.start.isAtStart&&G.end.isAtEnd);x.deleteContent(k,{leaveUnmerged:he}),Mt?_g(x,Z,k.focus):he&&Z.setSelection(ft,0)}})(r,p,l.selection),this.fire("afterExecute",{writer:p})})}refresh(){const r=this.editor.model;this.isEnabled=function(p,x){if(x.rangeCount>1)return!1;const Z=x.anchor;if(!Z||!p.checkChild(Z,"softBreak"))return!1;const k=x.getFirstRange(),H=k.start.parent,G=k.end.parent;return!((y2(H,p)||y2(G,p))&&H!==G)}(r.schema,r.document.selection)}}function _g(b,r,l){const p=r.createElement("softBreak");b.insertContent(p,l),r.setSelection(p,"after")}function y2(b,r){return!b.is("rootElement")&&(r.isLimit(b)||y2(b.parent,r))}class Yf extends ko{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,p=r.conversion,x=r.editing.view,Z=x.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),p.for("upcast").elementToElement({model:"softBreak",view:"br"}),p.for("downcast").elementToElement({model:"softBreak",view:(k,H)=>H.createEmptyElement("br")}),x.addObserver(pg),r.commands.add("shiftEnter",new mg(r)),this.listenTo(Z,"enter",(k,H)=>{H.preventDefault(),H.isSoft&&(r.execute("shiftEnter"),x.scrollToTheSelection())},{priority:"low"})}}class fg extends tr{execute(){const r=this.editor.model,l=r.document.selection;let p=r.schema.getLimitElement(l);if(l.containsEntireContent(p)||!zf(r.schema,p))do{if(p=p.parent,!p)return}while(!zf(r.schema,p));r.change(x=>{x.setSelection(p,"in")})}}function zf(b,r){return b.isLimit(r)&&(b.checkChild(r,"$text")||b.checkChild(r,"paragraph"))}const bp=sp("Ctrl+A");class Cp extends ko{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,l=r.editing.view.document;r.commands.add("selectAll",new fg(r)),this.listenTo(l,"keydown",(p,x)=>{Ba(x)===bp&&(r.execute("selectAll"),x.preventDefault())})}}class z0 extends ko{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",l=>{const p=r.commands.get("selectAll"),x=new qs(l);return x.set({label:(0,l.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),x.bind("isOn","isEnabled").to(p,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),x})}}class w3 extends ko{static get requires(){return[Cp,z0]}static get pluginName(){return"SelectAll"}}class Z3{constructor(r,l=20){this.model=r,this.size=0,this.limit=l,this.isLocked=!1,this._changeCallback=(p,x)=>{"transparent"!=x.type&&x!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(r){this.size+=r,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r){this.isLocked&&!r||(this._batch=null,this.size=0)}}class M3 extends tr{constructor(r,l){super(r),this._buffer=new Z3(r.model,l),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const l=this.editor.model,p=l.document,x=r.text||"",Z=x.length,k=r.range?l.createSelection(r.range):p.selection,H=r.resultRange;l.enqueueChange(this._buffer.batch,G=>{this._buffer.lock(),this._batches.add(this._buffer.batch),l.deleteContent(k),x&&l.insertContent(G.createText(x,p.selection.getAttributes()),k),H?G.setSelection(H):k.is("documentSelection")||G.setSelection(k),this._buffer.unlock(),this._buffer.input(Z)})}}const Xp=[Ba("arrowUp"),Ba("arrowRight"),Ba("arrowDown"),Ba("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let b=112;b<=135;b++)Xp.push(b);function T2(b){return!!b.ctrlKey||Xp.includes(b.keyCode)}function hg(b){if(b.newChildren.length-b.oldChildren.length!=1)return;const r=function(p,x){const Z=[];let k,H=0;return p.forEach(ft=>{"equal"==ft?(G(),H++):"insert"==ft?(rt("insert")?k.values.push(x[H]):(G(),k={type:"insert",index:H,values:[x[H]]}),H++):rt("delete")?k.howMany++:(G(),k={type:"delete",index:H,howMany:1})}),G(),Z;function G(){k&&(Z.push(k),k=null)}function rt(ft){return k&&k.type==ft}}(qc(b.oldChildren,b.newChildren,Rm),b.newChildren);if(r.length>1)return;const l=r[0];return l.values[0]&&l.values[0].is("$text")?l:void 0}function Rm(b,r){return b&&b.is("$text")&&r&&r.is("$text")?b.data===r.data:b===r}class B1{constructor(r){this.editor=r,this.editing=this.editor.editing}handle(r,l){if(function(p){if(0==p.length)return!1;for(const x of p)if("children"===x.type&&!hg(x))return!0;return!1}(r))this._handleContainerChildrenMutations(r,l);else for(const p of r)this._handleTextMutation(p,l),this._handleTextNodeInsertion(p)}_handleContainerChildrenMutations(r,l){const p=function(el){const hr=el.map(eu=>eu.node).reduce((eu,Yu)=>eu.getCommonAncestor(Yu,{includeSelf:!0}));if(hr)return hr.getAncestors({includeSelf:!0,parentFirst:!0}).find(eu=>eu.is("containerElement")||eu.is("rootElement"))}(r);if(!p)return;const x=this.editor.editing.view.domConverter.mapViewToDom(p),Z=new ne(this.editor.editing.view.document),k=this.editor.data.toModel(Z.domToView(x)).getChild(0),H=this.editor.editing.mapper.toModelElement(p);if(!H)return;const G=Array.from(k.getChildren()),rt=Array.from(H.getChildren()),ft=G[G.length-1],Mt=rt[rt.length-1],he=ft&&ft.is("element","softBreak"),Je=Mt&&!Mt.is("element","softBreak");he&&Je&&G.pop();const fn=this.editor.model.schema;if(!D3(G,fn)||!D3(rt,fn))return;const Mn=G.map(el=>el.is("$text")?el.data:"@").join("").replace(/\u00A0/g," "),In=rt.map(el=>el.is("$text")?el.data:"@").join("").replace(/\u00A0/g," ");if(In===Mn)return;const Qn=qc(In,Mn),{firstChangeAt:Fi,insertions:Ji,deletions:Uo}=P3(Qn);let va=null;l&&(va=this.editing.mapper.toModelRange(l.getFirstRange()));const Rs=Mn.substr(Fi,Ji),Rr=this.editor.model.createRange(this.editor.model.createPositionAt(H,Fi),this.editor.model.createPositionAt(H,Fi+Uo));this.editor.execute("input",{text:Rs,range:Rr,resultRange:va})}_handleTextMutation(r,l){if("text"!=r.type)return;const p=r.newText.replace(/\u00A0/g," "),x=r.oldText.replace(/\u00A0/g," ");if(x===p)return;const Z=qc(x,p),{firstChangeAt:k,insertions:H,deletions:G}=P3(Z);let rt=null;l&&(rt=this.editing.mapper.toModelRange(l.getFirstRange()));const ft=this.editing.view.createPositionAt(r.node,k),Mt=this.editing.mapper.toModelPosition(ft),he=this.editor.model.createRange(Mt,Mt.getShiftedBy(G)),Je=p.substr(k,H);this.editor.execute("input",{text:Je,range:he,resultRange:rt})}_handleTextNodeInsertion(r){if("children"!=r.type)return;const l=hg(r),p=this.editing.view.createPositionAt(r.node,l.index),x=this.editing.mapper.toModelPosition(p);this.editor.execute("input",{text:l.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(x)})}}function D3(b,r){return b.every(l=>r.isInline(l))}function P3(b){let r=null,l=null;for(let Z=0;Z{Z.deleteContent(Z.document.selection)}),ft.unlock()}k.document.on(ws_isAndroid?"beforeinput":"keydown",(ft,Mt)=>function G(ft){const Mt=Z.document,he=k.document.isComposing,Je=x&&x.isEqual(Mt.selection);x=null,H.isEnabled&&(T2(ft)||Mt.selection.isCollapsed||he&&229===ft.keyCode||!he&&229===ft.keyCode&&Je||rt())}(Mt),{priority:"lowest"}),k.document.on("compositionstart",function(){const ft=Z.document,Mt=1!==ft.selection.rangeCount||ft.selection.getFirstRange().isFlat;ft.selection.isCollapsed||Mt||rt()},{priority:"lowest"}),k.document.on("compositionend",()=>{x=Z.createSelection(Z.document.selection)},{priority:"lowest"})}(r),(p=r).editing.view.document.on("mutations",(x,Z,k)=>{new B1(p).handle(Z,k)})}isInput(r){return this.editor.commands.get("input")._batches.has(r)}}class S3 extends tr{constructor(r,l){super(r),this.direction=l,this._buffer=new Z3(r.model,r.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(r={}){const l=this.editor.model,p=l.document;l.enqueueChange(this._buffer.batch,x=>{this._buffer.lock();const Z=x.createSelection(r.selection||p.selection),k=Z.isCollapsed;if(Z.isCollapsed&&l.modifySelection(Z,{direction:this.direction,unit:r.unit}),this._shouldEntireContentBeReplacedWithParagraph(r.sequence||1))return void this._replaceEntireContentWithParagraph(x);if(Z.isCollapsed)return;let H=0;Z.getFirstRange().getMinimalFlatRanges().forEach(G=>{H+=ea(G.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),l.deleteContent(Z,{doNotResetEntireContent:k,direction:this.direction}),this._buffer.input(H),x.setSelection(Z),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const l=this.editor.model,p=l.document.selection,x=l.schema.getLimitElement(p);if(!p.isCollapsed||!p.containsEntireContent(x)||!l.schema.checkChild(x,"paragraph"))return!1;const Z=x.getChild(0);return!Z||"paragraph"!==Z.name}_replaceEntireContentWithParagraph(r){const l=this.editor.model,x=l.schema.getLimitElement(l.document.selection),Z=r.createElement("paragraph");r.remove(r.createRangeIn(x)),r.insert(Z,x),r.setSelection(Z,0)}}class A2 extends ja{constructor(r){super(r);const l=r.document;let p=0;function x(Z,k,H){let G;l.once("delete",rt=>G=rt,{priority:Number.POSITIVE_INFINITY}),l.fire("delete",new F1(l,k,H)),G&&G.stop.called&&Z.stop()}l.on("keyup",(Z,k)=>{k.keyCode!=na.delete&&k.keyCode!=na.backspace||(p=0)}),l.on("keydown",(Z,k)=>{const H={};if(k.keyCode==na.delete)H.direction="forward",H.unit="character";else{if(k.keyCode!=na.backspace)return;H.direction="backward",H.unit="codePoint"}H.unit=(ws_isMac?k.altKey:k.ctrlKey)?"word":H.unit,H.sequence=++p,x(Z,k.domEvent,H)}),ws_isAndroid&&l.on("beforeinput",(Z,k)=>{if("deleteContentBackward"!=k.domEvent.inputType)return;const H={unit:"codepoint",direction:"backward",sequence:1},G=k.domTarget.ownerDocument.defaultView.getSelection();G.anchorNode==G.focusNode&&G.anchorOffset+1!=G.focusOffset&&(H.selectionToRemove=r.domConverter.domSelectionToView(G)),x(Z,k.domEvent,H)})}observe(){}}class b1 extends ko{static get pluginName(){return"Delete"}init(){const r=this.editor,l=r.editing.view,p=l.document;if(l.addObserver(A2),r.commands.add("forwardDelete",new S3(r,"forward")),r.commands.add("delete",new S3(r,"backward")),this.listenTo(p,"delete",(x,Z)=>{const k={unit:Z.unit,sequence:Z.sequence};if(Z.selectionToRemove){const H=r.model.createSelection(),G=[];for(const rt of Z.selectionToRemove.getRanges())G.push(r.editing.mapper.toModelRange(rt));H.setTo(G),k.selection=H}r.execute("forward"==Z.direction?"forwardDelete":"delete",k),Z.preventDefault(),l.scrollToTheSelection()}),ws_isAndroid){let x=null;this.listenTo(p,"delete",(Z,k)=>{const H=k.domTarget.ownerDocument.defaultView.getSelection();x={anchorNode:H.anchorNode,anchorOffset:H.anchorOffset,focusNode:H.focusNode,focusOffset:H.focusOffset}},{priority:"lowest"}),this.listenTo(p,"keyup",(Z,k)=>{if(x){const H=k.domTarget.ownerDocument.defaultView.getSelection();H.collapse(x.anchorNode,x.anchorOffset),H.extend(x.focusNode,x.focusOffset),x=null}})}}}class Fd extends ko{static get requires(){return[V0,b1]}static get pluginName(){return"Typing"}}const Nd=new Map;function Mr(b,r,l){let p=Nd.get(b);p||(p=new Map,Nd.set(b,p)),p.set(r,l)}function k3(b){return[b]}function U2(b,r,l={}){const p=function(x,Z){const k=Nd.get(x);return k&&k.has(Z)?k.get(Z):k3}(b.constructor,r.constructor);try{return p(b=b.clone(),r,l)}catch(x){throw x}}function P_(b,r,l){b=b.slice(),r=r.slice();const p=new tm(l.document,l.useRelations,l.forceWeakRemove);p.setOriginalOperations(b),p.setOriginalOperations(r);const x=p.originalOperations;if(0==b.length||0==r.length)return{operationsA:b,operationsB:r,originalOperations:x};const Z=new WeakMap;for(const G of b)Z.set(G,0);const k={nextBaseVersionA:b[b.length-1].baseVersion+1,nextBaseVersionB:r[r.length-1].baseVersion+1,originalOperationsACount:b.length,originalOperationsBCount:r.length};let H=0;for(;H{if(b.key===r.key&&b.range.start.hasSameParentAs(r.range.start)){const p=b.range.getDifference(r.range).map(Z=>new sr(Z,b.key,b.oldValue,b.newValue,0)),x=b.range.getIntersection(r.range);return x&&l.aIsStrong&&p.push(new sr(x,r.key,r.newValue,b.newValue,0)),0==p.length?[new Rc(0)]:p}return[b]}),Mr(sr,aa,(b,r)=>{if(b.range.start.hasSameParentAs(r.position)&&b.range.containsPosition(r.position)){const l=b.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(p=>new sr(p,b.key,b.oldValue,b.newValue,b.baseVersion));if(r.shouldReceiveAttributes){const p=Hm(r,b.key,b.oldValue);p&&l.unshift(p)}return l}return b.range=b.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[b]}),Mr(sr,ac,(b,r)=>{const l=[];b.range.start.hasSameParentAs(r.deletionPosition)&&(b.range.containsPosition(r.deletionPosition)||b.range.start.isEqual(r.deletionPosition))&&l.push(Vi._createFromPositionAndShift(r.graveyardPosition,1));const p=b.range._getTransformedByMergeOperation(r);return p.isCollapsed||l.push(p),l.map(x=>new sr(x,b.key,b.oldValue,b.newValue,b.baseVersion))}),Mr(sr,La,(b,r)=>function(l,p){const x=Vi._createFromPositionAndShift(p.sourcePosition,p.howMany);let Z=null,k=[];x.containsRange(l,!0)?Z=l:l.start.hasSameParentAs(x.start)?(k=l.getDifference(x),Z=l.getIntersection(x)):k=[l];const H=[];for(let G of k){G=G._getTransformedByDeletion(p.sourcePosition,p.howMany);const rt=p.getMovedRangeStart(),ft=G.start.hasSameParentAs(rt);G=G._getTransformedByInsertion(rt,p.howMany,ft),H.push(...G)}return Z&&H.push(Z._getTransformedByMove(p.sourcePosition,p.targetPosition,p.howMany,!1)[0]),H}(b.range,r).map(l=>new sr(l,b.key,b.oldValue,b.newValue,b.baseVersion))),Mr(sr,Jr,(b,r)=>{if(b.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||b.range.end.offset++,[b];if(b.range.start.hasSameParentAs(r.splitPosition)&&b.range.containsPosition(r.splitPosition)){const l=b.clone();return l.range=new Vi(r.moveTargetPosition.clone(),b.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),b.range.end=r.splitPosition.clone(),b.range.end.stickiness="toPrevious",[b,l]}return b.range=b.range._getTransformedBySplitOperation(r),[b]}),Mr(aa,sr,(b,r)=>{const l=[b];if(b.shouldReceiveAttributes&&b.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(b.position)){const p=Hm(b,r.key,r.newValue);p&&l.push(p)}return l}),Mr(aa,aa,(b,r,l)=>(b.position.isEqual(r.position)&&l.aIsStrong||(b.position=b.position._getTransformedByInsertOperation(r)),[b])),Mr(aa,La,(b,r)=>(b.position=b.position._getTransformedByMoveOperation(r),[b])),Mr(aa,Jr,(b,r)=>(b.position=b.position._getTransformedBySplitOperation(r),[b])),Mr(aa,ac,(b,r)=>(b.position=b.position._getTransformedByMergeOperation(r),[b])),Mr(Ql,aa,(b,r)=>(b.oldRange&&(b.oldRange=b.oldRange._getTransformedByInsertOperation(r)[0]),b.newRange&&(b.newRange=b.newRange._getTransformedByInsertOperation(r)[0]),[b])),Mr(Ql,Ql,(b,r,l)=>{if(b.name==r.name){if(!l.aIsStrong)return[new Rc(0)];b.oldRange=r.newRange?r.newRange.clone():null}return[b]}),Mr(Ql,ac,(b,r)=>(b.oldRange&&(b.oldRange=b.oldRange._getTransformedByMergeOperation(r)),b.newRange&&(b.newRange=b.newRange._getTransformedByMergeOperation(r)),[b])),Mr(Ql,La,(b,r,l)=>{if(b.oldRange&&(b.oldRange=Vi._createFromRanges(b.oldRange._getTransformedByMoveOperation(r))),b.newRange){if(l.abRelation){const p=Vi._createFromRanges(b.newRange._getTransformedByMoveOperation(r));if("left"==l.abRelation.side&&r.targetPosition.isEqual(b.newRange.start))return b.newRange.start.path=l.abRelation.path,b.newRange.end=p.end,[b];if("right"==l.abRelation.side&&r.targetPosition.isEqual(b.newRange.end))return b.newRange.start=p.start,b.newRange.end.path=l.abRelation.path,[b]}b.newRange=Vi._createFromRanges(b.newRange._getTransformedByMoveOperation(r))}return[b]}),Mr(Ql,Jr,(b,r,l)=>{if(b.oldRange&&(b.oldRange=b.oldRange._getTransformedBySplitOperation(r)),b.newRange){if(l.abRelation){const p=b.newRange._getTransformedBySplitOperation(r);return b.newRange.start.isEqual(r.splitPosition)&&l.abRelation.wasStartBeforeMergedElement?b.newRange.start=mo._createAt(r.insertionPosition):b.newRange.start.isEqual(r.splitPosition)&&!l.abRelation.wasInLeftElement&&(b.newRange.start=mo._createAt(r.moveTargetPosition)),b.newRange.end=b.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasInRightElement?mo._createAt(r.moveTargetPosition):b.newRange.end.isEqual(r.splitPosition)&&l.abRelation.wasEndBeforeMergedElement?mo._createAt(r.insertionPosition):p.end,[b]}b.newRange=b.newRange._getTransformedBySplitOperation(r)}return[b]}),Mr(ac,aa,(b,r)=>(b.sourcePosition.hasSameParentAs(r.position)&&(b.howMany+=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByInsertOperation(r),b.targetPosition=b.targetPosition._getTransformedByInsertOperation(r),[b])),Mr(ac,ac,(b,r,l)=>{if(b.sourcePosition.isEqual(r.sourcePosition)&&b.targetPosition.isEqual(r.targetPosition)){if(l.bWasUndone){const p=r.graveyardPosition.path.slice();return p.push(0),b.sourcePosition=new mo(r.graveyardPosition.root,p),b.howMany=0,[b]}return[new Rc(0)]}if(b.sourcePosition.isEqual(r.sourcePosition)&&!b.targetPosition.isEqual(r.targetPosition)&&!l.bWasUndone&&"splitAtSource"!=l.abRelation){const p="$graveyard"==b.targetPosition.root.rootName,x="$graveyard"==r.targetPosition.root.rootName;if(x&&!p||(!p||x)&&l.aIsStrong){const k=r.targetPosition._getTransformedByMergeOperation(r),H=b.targetPosition._getTransformedByMergeOperation(r);return[new La(k,b.howMany,H,0)]}return[new Rc(0)]}return b.sourcePosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByMergeOperation(r),b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),b.graveyardPosition.isEqual(r.graveyardPosition)&&l.aIsStrong||(b.graveyardPosition=b.graveyardPosition._getTransformedByMergeOperation(r)),[b]}),Mr(ac,La,(b,r,l)=>{const p=Vi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!l.bWasUndone&&!l.forceWeakRemove&&b.deletionPosition.hasSameParentAs(r.sourcePosition)&&p.containsPosition(b.sourcePosition)?[new Rc(0)]:(b.sourcePosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.sourcePosition.hasSameParentAs(r.sourcePosition)&&(b.howMany-=r.howMany),b.sourcePosition=b.sourcePosition._getTransformedByMoveOperation(r),b.targetPosition=b.targetPosition._getTransformedByMoveOperation(r),b.graveyardPosition.isEqual(r.targetPosition)||(b.graveyardPosition=b.graveyardPosition._getTransformedByMoveOperation(r)),[b])}),Mr(ac,Jr,(b,r,l)=>{if(r.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),b.deletionPosition.isEqual(r.graveyardPosition)&&(b.howMany=r.howMany)),b.targetPosition.isEqual(r.splitPosition)){const p=0!=r.howMany,x=r.graveyardPosition&&b.deletionPosition.isEqual(r.graveyardPosition);if(p||x||"mergeTargetNotMoved"==l.abRelation)return b.sourcePosition=b.sourcePosition._getTransformedBySplitOperation(r),[b]}if(b.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==l.abRelation)return b.howMany=0,b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b];if("mergeSameElement"==l.abRelation||b.sourcePosition.offset>0)return b.sourcePosition=r.moveTargetPosition.clone(),b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b]}return b.sourcePosition.hasSameParentAs(r.splitPosition)&&(b.howMany=r.splitPosition.offset),b.sourcePosition=b.sourcePosition._getTransformedBySplitOperation(r),b.targetPosition=b.targetPosition._getTransformedBySplitOperation(r),[b]}),Mr(La,aa,(b,r)=>{const l=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany)._getTransformedByInsertOperation(r,!1)[0];return b.sourcePosition=l.start,b.howMany=l.end.offset-l.start.offset,b.targetPosition.isEqual(r.position)||(b.targetPosition=b.targetPosition._getTransformedByInsertOperation(r)),[b]}),Mr(La,La,(b,r,l)=>{const p=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany),x=Vi._createFromPositionAndShift(r.sourcePosition,r.howMany);let Z,k=l.aIsStrong,H=!l.aIsStrong;if("insertBefore"==l.abRelation||"insertAfter"==l.baRelation?H=!0:"insertAfter"!=l.abRelation&&"insertBefore"!=l.baRelation||(H=!1),Z=b.targetPosition.isEqual(r.targetPosition)&&H?b.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):b.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),vg(b,r)&&vg(r,b))return[r.getReversed()];if(p.containsPosition(r.targetPosition)&&p.containsRange(x,!0))return p.start=p.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),p.end=p.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),S_([p],Z);if(x.containsPosition(b.targetPosition)&&x.containsRange(p,!0))return p.start=p.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),p.end=p.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),S_([p],Z);const G=ps(b.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==G||"extension"==G)return p.start=p.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),p.end=p.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),S_([p],Z);"remove"!=b.type||"remove"==r.type||l.aWasUndone||l.forceWeakRemove?"remove"==b.type||"remove"!=r.type||l.bWasUndone||l.forceWeakRemove||(k=!1):k=!0;const rt=[],ft=p.getDifference(x);for(const he of ft){he.start=he.start._getTransformedByDeletion(r.sourcePosition,r.howMany),he.end=he.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const Je="same"==ps(he.start.getParentPath(),r.getMovedRangeStart().getParentPath()),fn=he._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,Je);rt.push(...fn)}const Mt=p.getIntersection(x);return null!==Mt&&k&&(Mt.start=Mt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),Mt.end=Mt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===rt.length?rt.push(Mt):1==rt.length?x.start.isBefore(p.start)||x.start.isEqual(p.start)?rt.unshift(Mt):rt.push(Mt):rt.splice(1,0,Mt)),0===rt.length?[new Rc(b.baseVersion)]:S_(rt,Z)}),Mr(La,Jr,(b,r,l)=>{let p=b.targetPosition.clone();b.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=l.abRelation||(p=b.targetPosition._getTransformedBySplitOperation(r));const x=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany);if(x.end.isEqual(r.insertionPosition))return r.graveyardPosition||b.howMany++,b.targetPosition=p,[b];if(x.start.hasSameParentAs(r.splitPosition)&&x.containsPosition(r.splitPosition)){let k=new Vi(r.splitPosition,x.end);return k=k._getTransformedBySplitOperation(r),S_([new Vi(x.start,r.splitPosition),k],p)}b.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==l.abRelation&&(p=r.moveTargetPosition),b.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==l.abRelation&&(p=b.targetPosition);const Z=[x._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const k=x.start.isEqual(r.graveyardPosition)||x.containsPosition(r.graveyardPosition);b.howMany>1&&k&&!l.aWasUndone&&Z.push(Vi._createFromPositionAndShift(r.insertionPosition,1))}return S_(Z,p)}),Mr(La,ac,(b,r,l)=>{const p=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany);if(r.deletionPosition.hasSameParentAs(b.sourcePosition)&&p.containsPosition(r.sourcePosition))if("remove"!=b.type||l.forceWeakRemove){if(1==b.howMany)return l.bWasUndone?(b.sourcePosition=r.graveyardPosition.clone(),b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),[b]):[new Rc(0)]}else if(!l.aWasUndone){const Z=[];let k=r.graveyardPosition.clone(),H=r.targetPosition._getTransformedByMergeOperation(r);b.howMany>1&&(Z.push(new La(b.sourcePosition,b.howMany-1,b.targetPosition,0)),k=k._getTransformedByMove(b.sourcePosition,b.targetPosition,b.howMany-1),H=H._getTransformedByMove(b.sourcePosition,b.targetPosition,b.howMany-1));const G=r.deletionPosition._getCombined(b.sourcePosition,b.targetPosition),rt=new La(k,1,G,0),ft=rt.getMovedRangeStart().path.slice();ft.push(0);const Mt=new mo(rt.targetPosition.root,ft);H=H._getTransformedByMove(k,G,1);const he=new La(H,r.howMany,Mt,0);return Z.push(rt),Z.push(he),Z}const x=Vi._createFromPositionAndShift(b.sourcePosition,b.howMany)._getTransformedByMergeOperation(r);return b.sourcePosition=x.start,b.howMany=x.end.offset-x.start.offset,b.targetPosition=b.targetPosition._getTransformedByMergeOperation(r),[b]}),Mr(Yr,aa,(b,r)=>(b.position=b.position._getTransformedByInsertOperation(r),[b])),Mr(Yr,ac,(b,r)=>b.position.isEqual(r.deletionPosition)?(b.position=r.graveyardPosition.clone(),b.position.stickiness="toNext",[b]):(b.position=b.position._getTransformedByMergeOperation(r),[b])),Mr(Yr,La,(b,r)=>(b.position=b.position._getTransformedByMoveOperation(r),[b])),Mr(Yr,Yr,(b,r,l)=>{if(b.position.isEqual(r.position)){if(!l.aIsStrong)return[new Rc(0)];b.oldName=r.newName}return[b]}),Mr(Yr,Jr,(b,r)=>{if("same"==ps(b.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const l=new Yr(b.position.getShiftedBy(1),b.oldName,b.newName,0);return[b,l]}return b.position=b.position._getTransformedBySplitOperation(r),[b]}),Mr(Ou,Ou,(b,r,l)=>{if(b.root===r.root&&b.key===r.key){if(!l.aIsStrong||b.newValue===r.newValue)return[new Rc(0)];b.oldValue=r.newValue}return[b]}),Mr(Jr,aa,(b,r)=>(b.splitPosition.hasSameParentAs(r.position)&&b.splitPosition.offset{if(!b.graveyardPosition&&!l.bWasUndone&&b.splitPosition.hasSameParentAs(r.sourcePosition)){const p=r.graveyardPosition.path.slice();p.push(0);const x=new mo(r.graveyardPosition.root,p),Z=Jr.getInsertionPosition(new mo(r.graveyardPosition.root,p)),k=new Jr(x,0,null,0);return k.insertionPosition=Z,b.splitPosition=b.splitPosition._getTransformedByMergeOperation(r),b.insertionPosition=Jr.getInsertionPosition(b.splitPosition),b.graveyardPosition=k.insertionPosition.clone(),b.graveyardPosition.stickiness="toNext",[k,b]}return b.splitPosition.hasSameParentAs(r.deletionPosition)&&!b.splitPosition.isAfter(r.deletionPosition)&&b.howMany--,b.splitPosition.hasSameParentAs(r.targetPosition)&&(b.howMany+=r.howMany),b.splitPosition=b.splitPosition._getTransformedByMergeOperation(r),b.insertionPosition=Jr.getInsertionPosition(b.splitPosition),b.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedByMergeOperation(r)),[b]}),Mr(Jr,La,(b,r,l)=>{const p=Vi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(b.graveyardPosition){const x=p.start.isEqual(b.graveyardPosition)||p.containsPosition(b.graveyardPosition);if(!l.bWasUndone&&x){const Z=b.splitPosition._getTransformedByMoveOperation(r),k=b.graveyardPosition._getTransformedByMoveOperation(r),H=k.path.slice();H.push(0);const G=new mo(k.root,H);return[new La(Z,b.howMany,G,0)]}b.graveyardPosition=b.graveyardPosition._getTransformedByMoveOperation(r)}return b.splitPosition.hasSameParentAs(r.sourcePosition)&&p.containsPosition(b.splitPosition)?(b.howMany-=r.howMany-(b.splitPosition.offset-r.sourcePosition.offset),b.splitPosition.hasSameParentAs(r.targetPosition)&&b.splitPosition.offset{if(b.splitPosition.isEqual(r.splitPosition)){if(!b.graveyardPosition&&!r.graveyardPosition)return[new Rc(0)];if(b.graveyardPosition&&r.graveyardPosition&&b.graveyardPosition.isEqual(r.graveyardPosition))return[new Rc(0)];if("splitBefore"==l.abRelation)return b.howMany=0,b.graveyardPosition=b.graveyardPosition._getTransformedBySplitOperation(r),[b]}if(b.graveyardPosition&&r.graveyardPosition&&b.graveyardPosition.isEqual(r.graveyardPosition)){const p="$graveyard"==b.splitPosition.root.rootName,x="$graveyard"==r.splitPosition.root.rootName;if(x&&!p||(!p||x)&&l.aIsStrong){const k=[];return r.howMany&&k.push(new La(r.moveTargetPosition,r.howMany,r.splitPosition,0)),b.howMany&&k.push(new La(b.splitPosition,b.howMany,b.moveTargetPosition,0)),k}return[new Rc(0)]}if(b.graveyardPosition&&(b.graveyardPosition=b.graveyardPosition._getTransformedBySplitOperation(r)),b.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==l.abRelation)return b.howMany++,[b];if(r.splitPosition.isEqual(b.insertionPosition)&&"splitBefore"==l.baRelation){const p=r.insertionPosition.path.slice();p.push(0);const x=new mo(r.insertionPosition.root,p);return[b,new La(b.insertionPosition,1,x,0)]}return b.splitPosition.hasSameParentAs(r.splitPosition)&&b.splitPosition.offsetthis.clearStack())}refresh(){this.isEnabled=this._stack.length>0}addBatch(r){const l=this.editor.model.document.selection,p={ranges:l.hasOwnRange?Array.from(l.getRanges()):[],isBackward:l.isBackward};this._stack.push({batch:r,selection:p}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,l,p){const x=this.editor.model,Z=x.document,k=[],H=r.map(rt=>rt.getTransformedByOperations(p)),G=H.flat();for(const rt of H){const ft=rt.filter(he=>!k_(he,G));w2(ft);const Mt=ft.find(he=>he.root!=Z.graveyard);Mt&&k.push(Mt)}k.length&&x.change(rt=>{rt.setSelection(k,{backward:l})})}_undo(r,l){const p=this.editor.model,x=p.document;this._createdBatches.add(l);const Z=r.operations.slice().filter(k=>k.isDocumentOperation);Z.reverse();for(const k of Z){const G=Array.from(x.history.getOperations(k.baseVersion+1)),rt=P_([k.getReversed()],G,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const ft of rt)l.addOperation(ft),p.applyOperation(ft),x.history.setOperationAsUndone(k,ft)}}}function w2(b){b.sort((r,l)=>r.start.isBefore(l.start)?-1:1);for(let r=1;rl!==b&&l.containsRange(b,!0))}class O3 extends xg{execute(r=null){const l=r?this._stack.findIndex(Z=>Z.batch==r):this._stack.length-1,p=this._stack.splice(l,1)[0],x=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(x,()=>{this._undo(p.batch,x);const Z=this.editor.model.document.history.getOperations(p.batch.baseVersion);this._restoreSelection(p.selection.ranges,p.selection.isBackward,Z),this.fire("revert",p.batch,x)}),this.refresh()}}class B0 extends xg{execute(){const r=this._stack.pop(),l=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(l,()=>{const x=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,x),this._undo(r.batch,l)}),this.refresh()}}class Vf extends ko{static get pluginName(){return"UndoEditing"}constructor(r){super(r),this._batchRegistry=new WeakSet}init(){const r=this.editor;this._undoCommand=new O3(r),this._redoCommand=new B0(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(l,p)=>{const x=p[0];if(!x.isDocumentOperation)return;const Z=x.batch,k=this._redoCommand._createdBatches.has(Z),H=this._undoCommand._createdBatches.has(Z);this._batchRegistry.has(Z)||"transparent"==Z.type&&!k&&!H||(k?this._undoCommand.addBatch(Z):H||(this._undoCommand.addBatch(Z),this._redoCommand.clearStack()),this._batchRegistry.add(Z))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(l,p,x)=>{this._redoCommand.addBatch(x)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Ea='',Bf='';class L3 extends ko{init(){const r=this.editor,l=r.locale,p=r.t,x="ltr"==l.uiLanguageDirection?Ea:Bf,Z="ltr"==l.uiLanguageDirection?Bf:Ea;this._addButton("undo",p("Undo"),"CTRL+Z",x),this._addButton("redo",p("Redo"),"CTRL+Y",Z)}_addButton(r,l,p,x){const Z=this.editor;Z.ui.componentFactory.add(r,k=>{const H=Z.commands.get(r),G=new qs(k);return G.set({label:l,icon:x,keystroke:p,tooltip:!0}),G.bind("isEnabled").to(H,"isEnabled"),this.listenTo(G,"execute",()=>{Z.execute(r),Z.editing.view.focus()}),G})}}class bg extends ko{static get requires(){return[Vf,L3]}static get pluginName(){return"Undo"}}class Z2{constructor(r){this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}ao(Z2,St);class Cg extends Z2{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Er({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new jn.b("pendingactions-add-invalid-message: The message must be a string.",this);const l=Object.create(St);return l.set("message",r),this._actions.add(l),this.hasAny=!0,l}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}class Gf{constructor(){const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=l=>{this.loaded=l.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const l=this._reader;return this.total=r.size,new Promise((p,x)=>{l.onload=()=>{const Z=l.result;this._data=Z,p(Z)},l.onerror=()=>{x("error")},l.onabort=()=>{x("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}ao(Gf,St);class pu extends ko{static get pluginName(){return"FileRepository"}static get requires(){return[Cg]}init(){this.loaders=new Er,this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,l)=>l?r/l*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return console.warn(Object(jn.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;const l=new M2(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(l),this._loadersMap.set(r,l),r instanceof Promise&&l.file.then(p=>{this._loadersMap.set(p,l)}).catch(()=>{}),l.on("change:uploaded",()=>{let p=0;for(const x of this.loaders)p+=x.uploaded;this.uploaded=p}),l.on("change:uploadTotal",()=>{let p=0;for(const x of this.loaders)x.uploadTotal&&(p+=x.uploadTotal);this.uploadTotal=p}),l}destroyLoader(r){const l=r instanceof M2?r:this.getLoader(r);l._destroy(),this.loaders.remove(l),this._loadersMap.forEach((p,x)=>{p===l&&this._loadersMap.delete(x)})}_updatePendingAction(){const r=this.editor.plugins.get(Cg);if(this.loaders.length){if(!this._pendingAction){const l=this.editor.t,p=x=>`${l("Upload in progress")} ${parseInt(x)}%.`;this._pendingAction=r.add(p(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",p)}}else r.remove(this._pendingAction),this._pendingAction=null}}ao(pu,St);class M2{constructor(r,l){this.id=xr(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=l(this),this._reader=new Gf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(p,x)=>x?p/x*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new jn.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new jn.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const l={};return l.promise=new Promise((p,x)=>{l.rejecter=x,l.isFulfilled=!1,r.then(Z=>{l.isFulfilled=!0,p(Z)}).catch(Z=>{l.isFulfilled=!0,x(Z)})}),l}}ao(M2,St);class yg extends ko{static get requires(){return[pu]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(pu).createUploadAdapter=l=>new E3(l,r,this.editor.t))}}class E3{constructor(r,l,p){this.loader=r,this.url=l,this.t=p}upload(){return this.loader.file.then(r=>new Promise((l,p)=>{this._initRequest(),this._initListeners(l,p,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,l,p){const x=this.xhr,Z=this.loader,k=(0,this.t)("Cannot upload file:")+` ${p.name}.`;x.addEventListener("error",()=>l(k)),x.addEventListener("abort",()=>l()),x.addEventListener("load",()=>{const H=x.response;if(!H||!H.uploaded)return l(H&&H.error&&H.error.message?H.error.message:k);r({default:H.url})}),x.upload&&x.upload.addEventListener("progress",H=>{H.lengthComputable&&(Z.uploadTotal=H.total,Z.uploaded=H.loaded)})}_sendRequest(r){const l=new FormData;l.append("upload",r),l.append("ckCsrfToken",function O_(){let b=function(p){p=p.toLowerCase();const x=document.cookie.split(";");for(const Z of x){const k=Z.split("=");if(decodeURIComponent(k[0].trim().toLowerCase())===p)return decodeURIComponent(k[1])}return null}("ckCsrfToken");var l;return b&&40==b.length||(b=function(p){let x="";const Z=new Uint8Array(40);window.crypto.getRandomValues(Z);for(let k=0;k.5?H.toUpperCase():H}return x}(),l=b,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(l)+";path=/"),b}()),this.xhr.send(l)}}function Wl(b){const r=b.next();return r.done?null:r.value}function Pl(b,r,l,p){let x,Z=null;"function"==typeof p?x=p:(Z=b.commands.get(p),x=()=>{b.execute(p)}),b.model.document.on("change:data",(k,H)=>{if(Z&&!Z.isEnabled||!r.isEnabled)return;const G=Wl(b.model.document.selection.getRanges());if(!G.isCollapsed||"transparent"==H.type)return;const rt=Array.from(b.model.document.differ.getChanges()),ft=rt[0];if(1!=rt.length||"insert"!==ft.type||"$text"!=ft.name||1!=ft.length)return;const Mt=ft.position.parent;if(Mt.is("element","codeBlock")||Z&&!0===Z.value)return;const he=Mt.getChild(0),Je=b.model.createRangeOn(he);if(!Je.containsRange(G)&&!G.end.isEqual(Je.end))return;const fn=l.exec(he.data.substr(0,G.end.offset));fn&&b.model.enqueueChange(Mn=>{const In=Mn.createPositionAt(Mt,0),Qn=Mn.createPositionAt(Mt,fn[0].length),Fi=new Np(In,Qn);!1!==x({match:fn})&&Mn.remove(Fi),Fi.detach()})})}function mu(b,r,l,p){let x,Z;l instanceof RegExp?x=l:Z=l,Z=Z||(k=>{let H;const G=[],rt=[];for(;null!==(H=x.exec(k))&&!(H&&H.length<4);){let{index:ft,1:Mt,2:he,3:Je}=H;ft+=H[0].length-(Mt+he+Je).length;const In=[ft+Mt.length+he.length,ft+Mt.length+he.length+Je.length];G.push([ft,ft+Mt.length]),G.push(In),rt.push([ft+Mt.length,ft+Mt.length+he.length])}return{remove:G,format:rt}}),b.model.document.on("change:data",(k,H)=>{if("transparent"==H.type||!r.isEnabled)return;const G=b.model,rt=G.document.selection;if(!rt.isCollapsed)return;const ft=Array.from(G.document.differ.getChanges()),Mt=ft[0];if(1!=ft.length||"insert"!==Mt.type||"$text"!=Mt.name||1!=Mt.length)return;const he=rt.focus,Je=he.parent,{text:fn,range:Mn}=function(Ji,Uo){let va=Ji.start;return{text:Array.from(Ji.getItems()).reduce((Rs,Rr)=>!Rr.is("$text")&&!Rr.is("$textProxy")||Rr.getAttribute("code")?(va=Uo.createPositionAfter(Rr),""):Rs+Rr.data,""),range:Uo.createRange(va,Ji.end)}}(G.createRange(G.createPositionAt(Je,0),he),G),In=Z(fn),Qn=F3(Mn.start,In.format,G),Fi=F3(Mn.start,In.remove,G);Qn.length&&Fi.length&&G.enqueueChange(Ji=>{if(!1!==p(Ji,Qn))for(const Uo of Fi.reverse())Ji.remove(Uo)})})}function F3(b,r,l){return r.filter(p=>void 0!==p[0]&&void 0!==p[1]).map(p=>l.createRange(b.getShiftedBy(p[0]),b.getShiftedBy(p[1])))}function Id(b,r){return(l,p)=>{if(!b.commands.get(r).isEnabled)return!1;const x=b.model.schema.getValidRanges(p,r);for(const Z of x)l.setAttribute(r,!0,Z);l.removeSelectionAttribute(r)}}class Pa extends tr{constructor(r,l){super(r),this.attributeKey=l}refresh(){const r=this.editor.model,l=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(l.selection,this.attributeKey)}execute(r={}){const l=this.editor.model,p=l.document.selection,x=void 0===r.forceValue?!this.value:r.forceValue;l.change(Z=>{if(p.isCollapsed)x?Z.setSelectionAttribute(this.attributeKey,!0):Z.removeSelectionAttribute(this.attributeKey);else{const k=l.schema.getValidRanges(p.getRanges(),this.attributeKey);for(const H of k)x?Z.setAttribute(this.attributeKey,x,H):Z.removeAttribute(this.attributeKey,H)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,l=r.schema,p=r.document.selection;if(p.isCollapsed)return p.hasAttribute(this.attributeKey);for(const x of p.getRanges())for(const Z of x.getItems())if(l.checkAttribute(Z,this.attributeKey))return Z.hasAttribute(this.attributeKey);return!1}}class Tg extends ko{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"bold"}),r.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",l=>{const p=l.getStyle("font-weight");return p?"bold"==p||Number(p)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),r.commands.add("bold",new Pa(r,"bold")),r.keystrokes.set("CTRL+B","bold")}}class Iu extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("bold",p=>{const x=r.commands.get("bold"),Z=new qs(p);return Z.set({label:l("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(x,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("bold"),r.editing.view.focus()}),Z})}}class Hc extends ko{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"italic"}),r.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add("italic",new Pa(r,"italic")),r.keystrokes.set("CTRL+I","italic")}}class Ag extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("italic",p=>{const x=r.commands.get("italic"),Z=new qs(p);return Z.set({label:l("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(x,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("italic"),r.editing.view.focus()}),Z})}}class em extends tr{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const l=this.editor.model,p=l.schema,Z=Array.from(l.document.selection.getSelectedBlocks()),k=void 0===r.forceValue?!this.value:r.forceValue;l.change(H=>{if(k){const G=Z.filter(rt=>L_(rt)||Ug(p,rt));this._applyQuote(H,G)}else this._removeQuote(H,Z.filter(L_))})}_getValue(){const r=Wl(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!L_(r))}_checkEnabled(){if(this.value)return!0;const l=this.editor.model.schema,p=Wl(this.editor.model.document.selection.getSelectedBlocks());return!!p&&Ug(l,p)}_removeQuote(r,l){N3(r,l).reverse().forEach(p=>{if(p.start.isAtStart&&p.end.isAtEnd)return void r.unwrap(p.start.parent);if(p.start.isAtStart){const Z=r.createPositionBefore(p.start.parent);return void r.move(p,Z)}p.end.isAtEnd||r.split(p.end);const x=r.createPositionAfter(p.end.parent);r.move(p,x)})}_applyQuote(r,l){const p=[];N3(r,l).reverse().forEach(x=>{let Z=L_(x.start);Z||(Z=r.createElement("blockQuote"),r.wrap(x,Z)),p.push(Z)}),p.reverse().reduce((x,Z)=>x.nextSibling==Z?(r.merge(r.createPositionAfter(x)),x):Z)}}function L_(b){return"blockQuote"==b.parent.name?b.parent:null}function N3(b,r){let l,p=0;const x=[];for(;p{if(p.endsWith("blockQuote")&&"blockQuote"==x.name)return!1}),r.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),r.model.document.registerPostFixer(p=>{const x=r.model.document.differ.getChanges();for(const Z of x)if("insert"==Z.type){const k=Z.position.nodeAfter;if(!k)continue;if(k.is("element","blockQuote")&&k.isEmpty)return p.remove(k),!0;if(k.is("element","blockQuote")&&!l.checkChild(Z.position,k))return p.unwrap(k),!0;if(k.is("element")){const H=p.createRangeIn(k);for(const G of H.getItems())if(G.is("element","blockQuote")&&!l.checkChild(p.createPositionBefore(G),G))return p.unwrap(G),!0}}else if("remove"==Z.type){const k=Z.position.parent;if(k.is("element","blockQuote")&&k.isEmpty)return p.remove(k),!0}return!1})}afterInit(){const r=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(l,p)=>{const x=this.editor.model.document,Z=x.selection.getLastPosition().parent;x.selection.isCollapsed&&Z.isEmpty&&r.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),p.preventDefault(),l.stop())})}}d(43);class E_ extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("blockQuote",p=>{const x=r.commands.get("blockQuote"),Z=new qs(p);return Z.set({label:l("Block quote"),icon:'',tooltip:!0,isToggleable:!0}),Z.bind("isOn","isEnabled").to(x,"value","isEnabled"),this.listenTo(Z,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),Z})}}class G1 extends ko{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,p=r.t;r.ui.componentFactory.add("ckfinder",x=>{const Z=r.commands.get("ckfinder"),k=new qs(x);return k.set({label:p("Insert image or file"),icon:'',tooltip:!0}),k.bind("isEnabled").to(Z),k.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),k})}}class qd extends ja{observe(r){this.listenTo(r,"load",(l,p)=>{"IMG"==p.target.tagName&&this._fireEvents(p)},{useCapture:!0})}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}class Sl{constructor(){this._stack=[]}add(r,l){const p=this._stack,x=p[0];this._insertDescriptor(r);const Z=p[0];x===Z||D2(x,Z)||this.fire("change:top",{oldDescriptor:x,newDescriptor:Z,writer:l})}remove(r,l){const p=this._stack,x=p[0];this._removeDescriptor(r);const Z=p[0];x===Z||D2(x,Z)||this.fire("change:top",{oldDescriptor:x,newDescriptor:Z,writer:l})}_insertDescriptor(r){const l=this._stack,p=l.findIndex(Z=>Z.id===r.id);if(D2(r,l[p]))return;p>-1&&l.splice(p,1);let x=0;for(;l[x]&&Ym(l[x],r);)x++;l.splice(x,0,r)}_removeDescriptor(r){const l=this._stack,p=l.findIndex(x=>x.id===r);p>-1&&l.splice(p,1)}}function D2(b,r){return b&&r&&b.priority==r.priority&&vs(b.classes)==vs(r.classes)}function Ym(b,r){return b.priority>r.priority||!(b.priorityvs(r.classes)}function vs(b){return Array.isArray(b)?b.sort().join(","):b}ao(Sl,wa),d(45);const ms=Lm("px"),wg=ht.document.body;class er extends Ca{constructor(r){super(r);const l=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",l.to("position",p=>"ck-balloon-panel_"+p),l.if("isVisible","ck-balloon-panel_visible"),l.if("withArrow","ck-balloon-panel_with-arrow"),l.to("class")],style:{top:l.to("top",ms),left:l.to("left",ms)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const l=er.defaultPositions,p=Object.assign({},{element:this.element,positions:[l.southArrowNorth,l.southArrowNorthMiddleWest,l.southArrowNorthMiddleEast,l.southArrowNorthWest,l.southArrowNorthEast,l.northArrowSouth,l.northArrowSouthMiddleWest,l.northArrowSouthMiddleEast,l.northArrowSouthWest,l.northArrowSouthEast],limiter:wg,fitInViewport:!0},r),x=er._getOptimalPosition(p),Z=parseInt(x.left),k=parseInt(x.top);Object.assign(this,{top:k,left:Z,position:x.name})}pin(r){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(r):this._stopPinning()},this._startPinning(r),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(r){this.attachTo(r);const l=nm(r.target),p=r.limiter?nm(r.limiter):wg;this.listenTo(ht.document,"scroll",(x,Z)=>{const k=Z.target,H=l&&k.contains(l),G=p&&k.contains(p);!H&&!G&&l&&p||this.attachTo(r)},{useCapture:!0}),this.listenTo(ht.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(ht.document,"scroll"),this.stopListening(ht.window,"resize")}}function nm(b){return ys(b)?b:uu(b)?b.commonAncestorContainer:"function"==typeof b?nm(b()):null}function kl(b,r){return b.top-r.height-er.arrowVerticalOffset}function $l(b){return b.bottom+er.arrowVerticalOffset}function im(b,r,l){return b&&pd(b)&&!l.isInline(r)}function om(b){return b.getAttribute("widget-type-around")}function pd(b){return!!b.is("element")&&!!b.getCustomProperty("widget")}function Rd(b,r,l={}){if(!b.is("containerElement"))throw new jn.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:b});return r.setAttribute("contenteditable","false",b),r.addClass("ck-widget",b),r.setCustomProperty("widget",!0,b),b.getFillerOffset=qu,l.label&&r.setCustomProperty("widgetLabel",l.label,b),l.hasSelectionHandle&&function(x,Z){const k=Z.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(H){const G=this.toDomElement(H),rt=new Kp;return rt.set("content",''),rt.render(),G.appendChild(rt.element),G});Z.insert(Z.createPositionAt(x,0),k),Z.addClass(["ck-widget_with-selection-handle"],x)}(b,r),P2(b,r,(x,Z,k)=>k.addClass(p(Z.classes),x),(x,Z,k)=>k.removeClass(p(Z.classes),x)),b;function p(x){return Array.isArray(x)?x:[x]}}function P2(b,r,l,p){const x=new Sl;x.on("change:top",(Z,k)=>{k.oldDescriptor&&p(b,k.oldDescriptor,k.writer),k.newDescriptor&&l(b,k.newDescriptor,k.writer)}),r.setCustomProperty("addHighlight",(Z,k,H)=>x.add(k,H),b),r.setCustomProperty("removeHighlight",(Z,k,H)=>x.remove(k,H),b)}function G0(b){const r=b.getCustomProperty("widgetLabel");return r?"function"==typeof r?r():r:""}function C1(b,r){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],b),r.setAttribute("contenteditable",b.isReadOnly?"false":"true",b),b.on("change:isReadOnly",(l,p,x)=>{r.setAttribute("contenteditable",x?"false":"true",b)}),b.on("change:isFocused",(l,p,x)=>{x?r.addClass("ck-editor__nested-editable_focused",b):r.removeClass("ck-editor__nested-editable_focused",b)}),b}function J1(b,r){const l=b.getSelectedElement();if(l){const x=om(b);if(x)return r.createPositionAt(l,x);if(r.schema.isBlock(l))return r.createPositionAfter(l)}const p=b.getSelectedBlocks().next().value;if(p){if(p.isEmpty)return r.createPositionAt(p,0);const x=r.createPositionAfter(p);return b.focus.isTouching(x)?x:r.createPositionBefore(p)}return b.focus}function Ol(b,r){const l=new as(ht.window),p=l.getIntersection(b),x=r.height+er.arrowVerticalOffset;if(b.top-x>l.top||b.bottom+x!x.is("element","image"))}function Kl(b){const r=[];for(const l of b.getChildren())r.push(l),l.is("element")&&r.push(...l.getChildren());return r.find(l=>l.is("element","img"))}function S2(b){return l=>{l.on(`attribute:${b}:image`,r)};function r(l,p,x){if(!x.consumable.consume(p.item,l.name))return;const Z=x.writer,k=Kl(x.mapper.toViewElement(p.item));Z.setAttribute(p.attributeKey,p.attributeNewValue||"",k)}}er.arrowHorizontalOffset=25,er.arrowVerticalOffset=10,er._getOptimalPosition=If,er.defaultPositions={northWestArrowSouthWest:(b,r)=>({top:kl(b,r),left:b.left-er.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(b,r)=>({top:kl(b,r),left:b.left-.25*r.width-er.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(b,r)=>({top:kl(b,r),left:b.left-r.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(b,r)=>({top:kl(b,r),left:b.left-.75*r.width+er.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(b,r)=>({top:kl(b,r),left:b.left-r.width+er.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-er.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-.25*r.width-er.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-r.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-.75*r.width+er.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(b,r)=>({top:kl(b,r),left:b.left+b.width/2-r.width+er.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(b,r)=>({top:kl(b,r),left:b.right-er.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(b,r)=>({top:kl(b,r),left:b.right-.25*r.width-er.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(b,r)=>({top:kl(b,r),left:b.right-r.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(b,r)=>({top:kl(b,r),left:b.right-.75*r.width+er.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(b,r)=>({top:kl(b,r),left:b.right-r.width+er.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(b,r)=>({top:$l(b),left:b.left-er.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(b,r)=>({top:$l(b),left:b.left-.25*r.width-er.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(b,r)=>({top:$l(b),left:b.left-r.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(b,r)=>({top:$l(b),left:b.left-.75*r.width+er.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(b,r)=>({top:$l(b),left:b.left-r.width+er.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(b,r)=>({top:$l(b),left:b.left+b.width/2-er.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(b,r)=>({top:$l(b),left:b.left+b.width/2-.25*r.width-er.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(b,r)=>({top:$l(b),left:b.left+b.width/2-r.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(b,r)=>({top:$l(b),left:b.left+b.width/2-.75*r.width+er.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(b,r)=>({top:$l(b),left:b.left+b.width/2-r.width+er.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(b,r)=>({top:$l(b),left:b.right-er.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(b,r)=>({top:$l(b),left:b.right-.25*r.width-er.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(b,r)=>({top:$l(b),left:b.right-r.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(b,r)=>({top:$l(b),left:b.right-.75*r.width+er.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(b,r)=>({top:$l(b),left:b.right-r.width+er.arrowHorizontalOffset,name:"arrow_ne"})};class y1 extends tr{refresh(){this.isEnabled=zm(this.editor.model)}execute(r){const l=this.editor.model;l.change(p=>{const x=Array.isArray(r.source)?r.source:[r.source];for(const Z of x)Zg(p,l,{src:Z})})}}class Ra extends ko{static get pluginName(){return"ImageEditing"}init(){const r=this.editor,l=r.model.schema,p=r.t,x=r.conversion;r.editing.view.addObserver(qd),l.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),x.for("dataDowncast").elementToElement({model:"image",view:(Z,k)=>I3(k)}),x.for("editingDowncast").elementToElement({model:"image",view:(Z,k)=>{return H=I3(k),G=k,rt=p("image widget"),G.setCustomProperty("image",!0,H),Rd(H,G,{label:function(){const ft=Kl(H).getAttribute("alt");return ft?`${ft} ${rt}`:rt}});var H,G,rt}}),x.for("downcast").add(S2("src")).add(S2("alt")).add(function(){return k=>{k.on("attribute:srcset:image",Z)};function Z(k,H,G){if(!G.consumable.consume(H.item,k.name))return;const rt=G.writer,ft=Kl(G.mapper.toViewElement(H.item));if(null===H.attributeNewValue){const Mt=H.attributeOldValue;Mt.data&&(rt.removeAttribute("srcset",ft),rt.removeAttribute("sizes",ft),Mt.width&&rt.removeAttribute("width",ft))}else{const Mt=H.attributeNewValue;Mt.data&&(rt.setAttribute("srcset",Mt.data,ft),rt.setAttribute("sizes","100vw",ft),Mt.width&&rt.setAttribute("width",Mt.width,ft))}}}()),x.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(Z,k)=>k.createElement("image",{src:Z.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:Z=>{const k={data:Z.getAttribute("srcset")};return Z.hasAttribute("width")&&(k.width=Z.getAttribute("width")),k}}}).add(function(){return k=>{k.on("element:figure",Z)};function Z(k,H,G){if(!G.consumable.test(H.viewItem,{name:!0,classes:"image"}))return;const rt=Kl(H.viewItem);if(!rt||!rt.hasAttribute("src")||!G.consumable.test(rt,{name:!0}))return;const ft=G.convertItem(rt,H.modelCursor),Mt=Wl(ft.modelRange.getItems());Mt&&(G.convertChildren(H.viewItem,G.writer.createPositionAt(Mt,0)),H.modelRange=ft.modelRange,H.modelCursor=ft.modelCursor)}}()),r.commands.add("imageInsert",new y1(r))}}function I3(b){const r=b.createEmptyElement("img"),l=b.createContainerElement("figure",{class:"image"});return b.insert(b.createPositionAt(l,0),r),l}class _u extends N1{constructor(r){super(r),this.domEventType="mousedown"}onDomEvent(r){this.fire(r.type,r)}}class q3 extends ko{static get pluginName(){return"TwoStepCaretMovement"}constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}init(){const r=this.editor,x=r.locale,Z=r.model.document.selection;this.listenTo(r.editing.view.document,"keydown",(k,H)=>{if(!Z.isCollapsed||H.shiftKey||H.altKey||H.ctrlKey)return;const G=H.keyCode==na.arrowright,rt=H.keyCode==na.arrowleft;if(!G&&!rt)return;const ft=x.contentLanguageDirection;let Mt=!1;Mt="ltr"===ft&&G||"rtl"===ft&&rt?this._handleForwardMovement(H):this._handleBackwardMovement(H),!0===Mt&&k.stop()},{priority:ns.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(Z,"change:range",(k,H)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!H.directChange&&T1(Z.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const l=this.attributes,p=this.editor.model.document.selection,x=p.getFirstPosition();return!this._isGravityOverridden&&(!x.isAtStart||!Ap(p,l))&&(T1(x,l)?(Ll(r),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(r){const l=this.attributes,p=this.editor.model,x=p.document.selection,Z=x.getFirstPosition();return this._isGravityOverridden?(Ll(r),this._restoreGravity(),Cr(p,l,Z),!0):Z.isAtStart?!!Ap(x,l)&&(Ll(r),Cr(p,l,Z),!0):(H=l,T1(Z.getShiftedBy(-1),H)?Z.isAtEnd&&!Ap(x,l)&&T1(Z,l)?(Ll(r),Cr(p,l,Z),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0);var H}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function Ap(b,r){for(const l of r)if(b.hasAttribute(l))return!0;return!1}function Cr(b,r,l){const p=l.nodeBefore;b.change(x=>{p?x.setSelectionAttribute(p.getAttributes()):x.removeSelectionAttribute(r)})}function Ll(b){b.preventDefault()}function T1(b,r){const{nodeBefore:l,nodeAfter:p}=b;for(const x of r){const Z=l?l.getAttribute(x):void 0;if((p?p.getAttribute(x):void 0)!==Z)return!0}return!1}function Hd(b,r,l,p){return p.createRange(R3(b,r,l,!0,p),R3(b,r,l,!1,p))}function R3(b,r,l,p,x){let Z=b.textNode||(p?b.nodeBefore:b.nodeAfter),k=null;for(;Z&&Z.getAttribute(r)==l;)k=Z,Z=p?Z.previousSibling:Z.nextSibling;return k?x.createPositionAt(k,p?"before":"after"):b}class Jf{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(l=>this._definitions.add(l)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(l,p,x)=>{if(!x.consumable.test(p.item,"attribute:linkHref"))return;const Z=x.writer,k=Z.document.selection;for(const H of this._definitions){const G=Z.createAttributeElement("a",H.attributes,{priority:5});Z.setCustomProperty("link",!0,G),H.callback(p.attributeNewValue)?p.item.is("selection")?Z.wrap(k.getFirstRange(),G):Z.wrap(x.mapper.toViewRange(p.range),G):Z.unwrap(x.mapper.toViewRange(p.range),G)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:image",(l,p,x)=>{const Z=x.mapper.toViewElement(p.item),k=Array.from(Z.getChildren()).find(H=>"a"===H.name);for(const H of this._definitions){const G=Qa(H.attributes);if(H.callback(p.attributeNewValue))for(const[rt,ft]of G)"class"===rt?x.writer.addClass(ft,k):x.writer.setAttribute(rt,ft,k);else for(const[rt,ft]of G)"class"===rt?x.writer.removeClass(ft,k):x.writer.removeAttribute(rt,k)}})}}}var H3=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Y3=function(b){return H3.test(b)},jf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",z3="\\ud83c[\\udffb-\\udfff]",Wf="[^\\ud800-\\udfff]",$f="(?:\\ud83c[\\udde6-\\uddff]){2}",Vm="[\\ud800-\\udbff][\\udc00-\\udfff]",Bm="(?:"+jf+"|"+z3+")?",k2="[\\ufe0e\\ufe0f]?"+Bm+"(?:\\u200d(?:"+[Wf,$f,Vm].join("|")+")[\\ufe0e\\ufe0f]?"+Bm+")*",V3="(?:"+[Wf+jf+"?",jf,$f,Vm,"[\\ud800-\\udfff]"].join("|")+")",B3=RegExp(z3+"(?="+z3+")|"+V3+k2,"g"),o6=function(b){return Y3(b)?function(b){return b.match(B3)||[]}(b):function(b){return b.split("")}(b)},Q0=function(r){r=wd(r);var l=Y3(r)?o6(r):void 0,p=l?l[0]:r.charAt(0),x=l?function(b,r,l){var p=b.length;return l=void 0===l?p:l,!r&&l>=p?b:Ic(b,r,l)}(l,1).join(""):r.slice(1);return p.toUpperCase()+x};const El=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,_d=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function G3(b,r){const l=r.createAttributeElement("a",{href:b},{priority:5});return r.setCustomProperty("link",!0,l),l}function Kf(b){return function(r){return r.replace(El,"").match(_d)}(b=String(b))?b:"#"}function Q1(b,r){return!!b&&b.is("element","image")&&r.checkAttribute("image","linkHref")}class Xf extends tr{constructor(r){super(r),this.manualDecorators=new Er,this.automaticDecorators=new Jf}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,l=r.document,p=Wl(l.selection.getSelectedBlocks());Q1(p,r.schema)?(this.value=p.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(p,"linkHref")):(this.value=l.selection.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(l.selection,"linkHref"));for(const x of this.manualDecorators)x.value=this._getDecoratorStateFromModel(x.id)}execute(r,l={}){const p=this.editor.model,x=p.document.selection,Z=[],k=[];for(const H in l)l[H]?Z.push(H):k.push(H);p.change(H=>{if(x.isCollapsed){const G=x.getFirstPosition();if(x.hasAttribute("linkHref")){const rt=Hd(G,"linkHref",x.getAttribute("linkHref"),p);H.setAttribute("linkHref",r,rt),Z.forEach(ft=>{H.setAttribute(ft,!0,rt)}),k.forEach(ft=>{H.removeAttribute(ft,rt)}),H.setSelection(H.createPositionAfter(rt.end.nodeBefore))}else if(""!==r){const rt=Qa(x.getAttributes());rt.set("linkHref",r),Z.forEach(Mt=>{rt.set(Mt,!0)});const ft=H.createText(r,rt);p.insertContent(ft,G),H.setSelection(H.createPositionAfter(ft))}["linkHref",...Z,...k].forEach(rt=>{H.removeSelectionAttribute(rt)})}else{const G=p.schema.getValidRanges(x.getRanges(),"linkHref"),rt=[];for(const Mt of x.getSelectedBlocks())p.schema.checkAttribute(Mt,"linkHref")&&rt.push(H.createRangeOn(Mt));const ft=rt.slice();for(const Mt of G)this._isRangeToUpdate(Mt,rt)&&ft.push(Mt);for(const Mt of ft)H.setAttribute("linkHref",r,Mt),Z.forEach(he=>{H.setAttribute(he,!0,Mt)}),k.forEach(he=>{H.removeAttribute(he,Mt)})}})}_getDecoratorStateFromModel(r){const l=this.editor.model,p=l.document,x=Wl(p.selection.getSelectedBlocks());return Q1(x,l.schema)?x.getAttribute(r):p.selection.getAttribute(r)}_isRangeToUpdate(r,l){for(const p of l)if(p.containsRange(r))return!1;return!0}}class Dg extends tr{refresh(){const r=this.editor.model,l=r.document,p=Wl(l.selection.getSelectedBlocks());this.isEnabled=Q1(p,r.schema)?r.schema.checkAttribute(p,"linkHref"):r.schema.checkAttributeInSelection(l.selection,"linkHref")}execute(){const l=this.editor.model,p=l.document.selection,x=this.editor.commands.get("link");l.change(Z=>{const k=p.isCollapsed?[Hd(p.getFirstPosition(),"linkHref",p.getAttribute("linkHref"),l)]:p.getRanges();for(const H of k)if(Z.removeAttribute("linkHref",H),x)for(const G of x.manualDecorators)Z.removeAttribute(G.id,H)})}}class th{constructor({id:r,label:l,attributes:p,defaultValue:x}){this.id=r,this.set("value"),this.defaultValue=x,this.label=l,this.attributes=p}}ao(th,St),d(47);const O2=/^(https?:)?\/\//;class eh extends ko{static get pluginName(){return"LinkEditing"}static get requires(){return[q3,V0,qm]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:G3}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(p,x)=>G3(Kf(p),x)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:p=>p.getAttribute("href")}}),r.commands.add("link",new Xf(r)),r.commands.add("unlink",new Dg(r));const l=function(p,x){const Z={"Open in a new tab":p("Open in a new tab"),Downloadable:p("Downloadable")};return x.forEach(k=>(k.label&&Z[k.label]&&(k.label=Z[k.label]),k)),x}(r.t,function(p){const x=[];if(p)for(const[Z,k]of Object.entries(p)){const H=Object.assign({},k,{id:"link"+Q0(Z)});x.push(H)}return x}(r.config.get("link.decorators")));this._enableAutomaticDecorators(l.filter(p=>"automatic"===p.mode)),this._enableManualDecorators(l.filter(p=>"manual"===p.mode)),r.plugins.get(q3).registerAttribute("linkHref"),function(p,x,Z,k){const H=p.editing.view,G=new Set;H.document.registerPostFixer(rt=>{const ft=p.model.document.selection;let Mt=!1;if(ft.hasAttribute(x)){const he=Hd(ft.getFirstPosition(),x,ft.getAttribute(x),p.model),Je=p.editing.mapper.toViewRange(he);for(const fn of Je.getItems())fn.is("element","a")&&!fn.hasClass(k)&&(rt.addClass(k,fn),G.add(fn),Mt=!0)}return Mt}),p.conversion.for("editingDowncast").add(rt=>{function ft(){H.change(Mt=>{for(const he of G.values())Mt.removeClass(k,he),G.delete(he)})}rt.on("insert",ft,{priority:"highest"}),rt.on("remove",ft,{priority:"highest"}),rt.on("attribute",ft,{priority:"highest"}),rt.on("selection",ft,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(r){const l=this.editor,p=l.commands.get("link").automaticDecorators;l.config.get("link.addTargetToExternalLinks")&&p.add({id:"linkIsExternal",mode:"automatic",callback:x=>O2.test(x),attributes:{target:"_blank",rel:"noopener noreferrer"}}),p.add(r),p.length&&l.conversion.for("downcast").add(p.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const l=this.editor,p=l.commands.get("link").manualDecorators;r.forEach(x=>{l.model.schema.extend("$text",{allowAttributes:x.id}),p.add(new th(x)),l.conversion.for("downcast").attributeToElement({model:x.id,view:(Z,k)=>{if(Z){const H=p.get(x.id).attributes,G=k.createAttributeElement("a",H,{priority:5});return k.setCustomProperty("link",!0,G),G}}}),l.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:p.get(x.id).attributes},model:{key:x.id}})})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor,l=r.model,p=l.document.selection,x=r.commands.get("link");this.listenTo(l,"insertContent",()=>{const Z=p.anchor.nodeBefore,k=p.anchor.nodeAfter;p.hasAttribute("linkHref")&&Z&&Z.hasAttribute("linkHref")&&(k&&k.hasAttribute("linkHref")||l.change(H=>{am(H,x.manualDecorators)}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,l=r.commands.get("link");r.editing.view.addObserver(_u);let p=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{p=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!p)return;p=!1;const x=r.model.document.selection;if(!x.isCollapsed||!x.hasAttribute("linkHref"))return;const Z=x.getFirstPosition(),k=Hd(Z,"linkHref",x.getAttribute("linkHref"),r.model);(Z.isTouching(k.start)||Z.isTouching(k.end))&&r.model.change(H=>{am(H,l.manualDecorators)})})}_enableTypingOverLink(){const r=this.editor;let p,x;this.listenTo(r.editing.view.document,"delete",()=>{x=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const Z=r.model.document.selection;Z.isCollapsed||(x?x=!1:J3(r)&&function(k){const H=k.document.selection,G=H.getFirstPosition(),rt=H.getLastPosition(),ft=G.nodeAfter;return!!(ft&&ft.is("$text")&&ft.hasAttribute("linkHref"))&&(ft===(rt.textNode||rt.nodeBefore)||Hd(G,"linkHref",ft.getAttribute("linkHref"),k).containsRange(k.createRange(G,rt),!0))}(r.model)&&(p=Z.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(Z,[k])=>{x=!1,J3(r)&&p&&(r.model.change(H=>{for(const[G,rt]of p)H.setAttribute(G,rt,k)}),p=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,l=r.model,p=l.document.selection,x=r.editing.view,Z=r.commands.get("link");let k=!1,H=!1;this.listenTo(x.document,"delete",(G,rt)=>{H=rt.domEvent.keyCode===na.backspace},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{k=!1;const G=p.getFirstPosition(),rt=p.getAttribute("linkHref");if(!rt)return;const ft=Hd(G,"linkHref",rt,l);k=ft.containsPosition(G)||ft.end.isEqual(G)},{priority:"high"}),this.listenTo(l,"deleteContent",()=>{H&&(H=!1,k||r.model.enqueueChange(G=>{am(G,Z.manualDecorators)}))},{priority:"low"})}}function am(b,r){b.removeSelectionAttribute("linkHref");for(const l of r)b.removeSelectionAttribute(l.id)}function J3(b){return b.plugins.get("Input").isInput(b.model.change(r=>r.batch))}class Yd extends Z2{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,l)=>{window.alert(l.message)},{priority:"lowest"})}showSuccess(r,l={}){this._showNotification({message:r,type:"success",namespace:l.namespace,title:l.title})}showInfo(r,l={}){this._showNotification({message:r,type:"info",namespace:l.namespace,title:l.title})}showWarning(r,l={}){this._showNotification({message:r,type:"warning",namespace:l.namespace,title:l.title})}_showNotification(r){this.fire("show:"+r.type+(r.namespace?":"+r.namespace:""),{message:r.message,type:r.type,title:r.title||""})}}class nh extends tr{constructor(r){super(r),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("imageInsert"),l=this.editor.commands.get("link");this.isEnabled=r.isEnabled||l.isEnabled}execute(){const r=this.editor,l=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=l&&"modal"!=l)throw new jn.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',r);const p=this.editor.config.get("ckfinder.options")||{};p.chooseFiles=!0;const x=p.onInit;p.language||(p.language=r.locale.uiLanguage),p.onInit=Z=>{x&&x(Z),Z.on("files:choose",k=>{const H=k.data.files.toArray(),G=H.filter(Mt=>!Mt.isImage()),rt=H.filter(Mt=>Mt.isImage());for(const Mt of G)r.execute("link",Mt.getUrl());const ft=[];for(const Mt of rt){const he=Mt.getUrl();ft.push(he||Z.request("file:getProxyUrl",{file:Mt}))}ft.length&&ih(r,ft)}),Z.on("file:choose:resizedImage",k=>{const H=k.data.resizedUrl;if(H)ih(r,[H]);else{const G=r.plugins.get("Notification"),rt=r.locale.t;G.showWarning(rt("Could not obtain resized image URL."),{title:rt("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[l](p)}}function ih(b,r){if(b.commands.get("imageInsert").isEnabled)b.execute("imageInsert",{source:r});else{const l=b.plugins.get("Notification"),p=b.locale.t;l.showWarning(p("Could not insert image at the current position."),{title:p("Inserting image failed"),namespace:"ckfinder"})}}class Q3 extends ko{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Yd,Ra,eh]}init(){const r=this.editor;r.commands.add("ckfinder",new nh(r))}}const oh=/^data:(\S*?);base64,/;class j3{constructor(r,l,p){if(!r)throw new jn.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!l)throw new jn.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!p)throw new jn.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(x){if("string"!=typeof x)return!1;const Z=x.match(oh);return!(!Z||!Z.length)}(r)?function(x,Z=512){try{const k=x.match(oh)[1],H=atob(x.replace(oh,"")),G=[];for(let rt=0;rtr(p)),this}onError(r){return this.once("error",(l,p)=>r(p)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this,l=this.xhr;function p(x){return()=>r.fire("error",x)}l.addEventListener("error",p("Network Error")),l.addEventListener("abort",p("Abort")),l.upload&&l.upload.addEventListener("progress",x=>{x.lengthComputable&&this.fire("progress",{total:x.total,uploaded:x.loaded})}),l.addEventListener("load",()=>{const x=l.status,Z=l.response;if(x<200||x>299)return this.fire("error",Z.message||Z.error)})}_sendRequest(){const r=new FormData,l=this.xhr;return r.append("file",this.file),new Promise((p,x)=>{l.addEventListener("load",()=>{const Z=l.status,k=l.response;return Z<200||Z>299?x(k.message?new jn.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:k.message}):k.error):p(k)}),l.addEventListener("error",()=>x(new Error("Network Error"))),l.addEventListener("abort",()=>x(new Error("Abort"))),l.send(r)})}}ao(j3,wa);const Pg={refreshInterval:36e5,autoRefresh:!0};class zd{constructor(r,l=Pg){if(!r)throw new jn.b("token-missing-token-url: A `tokenUrl` must be provided as the first constructor argument.",this);this.set("value",l.initValue),this._refresh="function"==typeof r?r:()=>{return p=r,new Promise((x,Z)=>{const k=new XMLHttpRequest;k.open("GET",p),k.addEventListener("load",()=>{const H=k.status,G=k.response;return H<200||H>299?Z(new jn.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):x(G)}),k.addEventListener("error",()=>Z(new Error("Network Error"))),k.addEventListener("abort",()=>Z(new Error("Abort"))),k.send()});var p},this._options=Object.assign({},Pg,l)}init(){return new Promise((r,l)=>{this._options.autoRefresh&&this._startRefreshing(),this.value?r(this):this.refreshToken().then(r).catch(l)})}refreshToken(){return this._refresh().then(r=>this.set("value",r)).then(()=>this)}destroy(){this._stopRefreshing()}_startRefreshing(){this._refreshInterval=setInterval(()=>this.refreshToken(),this._options.refreshInterval)}_stopRefreshing(){clearInterval(this._refreshInterval)}static create(r,l=Pg){return new zd(r,l).init()}}ao(zd,St);var Gm=zd;let L2=(()=>{class b extends Z2{static get pluginName(){return"CloudServices"}init(){const l=this.context.config.get("cloudServices")||{};for(const p in l)this[p]=l[p];if(this.tokenUrl)return this.token=new b.Token(this.tokenUrl),this.token.init();this.token=null}destroy(){super.destroy(),this.token&&this.token.destroy()}}return b.Token=Gm,b})();class j1 extends ko{static get requires(){return[pu,L2]}init(){const r=this.editor,l=r.plugins.get(L2),p=l.token;p&&(this._uploadGateway=new j1._UploadGateway(p,l.uploadUrl),r.plugins.get(pu).createUploadAdapter=Z=>new ah(this._uploadGateway,Z))}}class ah{constructor(r,l){this.uploadGateway=r,this.loader=l}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(l,p)=>{this.loader.uploadTotal=p.total,this.loader.uploaded=p.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}j1._UploadGateway=class{constructor(b,r){if(!b)throw new jn.b("uploadgateway-missing-token: Token must be provided.",null);if(!r)throw new jn.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=b,this._apiAddress=r}upload(b){return new j3(b,this._token,this._apiAddress)}},d(49);const Up=["before","after"],rh=(new DOMParser).parseFromString('\n',"image/svg+xml").firstChild;class sh extends ko{static get pluginName(){return"WidgetTypeAround"}constructor(r){super(r),this._currentFakeCaretModelElement=null}init(){const r=this.editor,l=r.editing.view;this.on("change:isEnabled",(p,x,Z)=>{l.change(k=>{for(const H of l.document.roots)Z?k.removeClass("ck-widget__type-around_disabled",H):k.addClass("ck-widget__type-around_disabled",H)}),Z||r.model.change(k=>{k.removeSelectionAttribute("widget-type-around")})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(r,l){const p=this.editor,x=p.editing.view;p.execute("insertParagraph",{position:p.model.createPositionAt(r,l)}),x.focus(),x.scrollToTheSelection()}_listenToIfEnabled(r,l,p,x){this.listenTo(r,l,(...Z)=>{this.isEnabled&&p(...Z)},x)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,l=om(r);if(!l)return!1;const p=r.getSelectedElement();return this._insertParagraph(p,l),!0}_enableTypeAroundUIInjection(){const r=this.editor,l=r.model.schema,p=r.locale.t,x={before:p("Insert paragraph before block"),after:p("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(Z,k,H)=>{const G=H.mapper.toViewElement(k.item);im(G,k.item,l)&&function(rt,ft,Mt){const he=rt.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(Je){const fn=this.toDomElement(Je);return function(Mn,In){for(const Qn of Up){const Fi=new g1({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+Qn],title:In[Qn]},children:[Mn.ownerDocument.importNode(rh,!0)]});Mn.appendChild(Fi.render())}}(fn,ft),function(Mn){const In=new g1({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Mn.appendChild(In.render())}(fn),fn});rt.insert(rt.createPositionAt(Mt,"end"),he)}(H.writer,x,G)},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,l=r.model,p=l.document.selection,x=l.schema;function k(H){return"ck-widget_type-around_show-fake-caret_"+H}this._listenToIfEnabled(r.editing.view.document,"keydown",(H,G)=>{ed(G.keyCode)&&this._handleArrowKeyPress(H,G)},{priority:ns.get("high")+10}),this._listenToIfEnabled(p,"change:range",(H,G)=>{G.directChange&&r.model.change(rt=>{rt.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(l.document,"change:data",()=>{const H=p.getSelectedElement();H&&im(r.editing.mapper.toViewElement(H),H,x)||r.model.change(G=>{G.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(H,G,rt)=>{const ft=rt.writer;if(this._currentFakeCaretModelElement){const fn=rt.mapper.toViewElement(this._currentFakeCaretModelElement);fn&&(ft.removeClass(Up.map(k),fn),this._currentFakeCaretModelElement=null)}const Mt=G.selection.getSelectedElement();if(!Mt)return;const he=rt.mapper.toViewElement(Mt);if(!im(he,Mt,x))return;const Je=om(G.selection);Je&&(ft.addClass(k(Je),he),this._currentFakeCaretModelElement=Mt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(H,G,rt)=>{rt||r.model.change(ft=>{ft.removeSelectionAttribute("widget-type-around")})})}_handleArrowKeyPress(r,l){const p=this.editor,x=p.model,Z=x.document.selection,k=x.schema,H=p.editing.view,G=a1(l.keyCode,p.locale.contentLanguageDirection),rt=H.document.selection.getSelectedElement();let ft;im(rt,p.editing.mapper.toModelElement(rt),k)?ft=this._handleArrowKeyPressOnSelectedWidget(G):Z.isCollapsed&&(ft=this._handleArrowKeyPressWhenSelectionNextToAWidget(G)),ft&&(l.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const l=this.editor.model,p=om(l.document.selection);return l.change(x=>p?p!==(r?"after":"before")&&(x.removeSelectionAttribute("widget-type-around"),!0):(x.setSelectionAttribute("widget-type-around",r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const l=this.editor,p=l.model,x=p.schema,Z=l.plugins.get("Widget"),k=Z._getObjectElementNextToSelection(r);return!!im(l.editing.mapper.toViewElement(k),k,x)&&(p.change(H=>{Z._setSelectionOverElement(k),H.setSelectionAttribute("widget-type-around",r?"before":"after")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"mousedown",(p,x)=>{const Z=x.domTarget.closest(".ck-widget__type-around__button");if(!Z)return;const k=Z.classList.contains("ck-widget__type-around__button_before")?"before":"after",H=function(rt,ft){const Mt=rt.closest(".ck-widget");return ft.mapDomToView(Mt)}(Z,l.domConverter),G=r.editing.mapper.toModelElement(H);this._insertParagraph(G,k),x.preventDefault(),p.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,l=r.editing.view;this._listenToIfEnabled(l.document,"enter",(p,x)=>{const Z=l.document.selection.getSelectedElement(),k=r.editing.mapper.toModelElement(Z),H=r.model.schema;let G;this._insertParagraphAccordingToFakeCaretPosition()?G=!0:im(Z,k,H)&&(this._insertParagraph(k,x.isSoft?"before":"after"),G=!0),G&&(x.preventDefault(),p.stop())})}_enableInsertingParagraphsOnTypingKeystroke(){const l=[na.enter,na.delete,na.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(p,x)=>{l.includes(x.keyCode)||T2(x)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:ns.get("high")+1})}_enableDeleteIntegration(){const r=this.editor,p=r.model,x=p.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(Z,k)=>{const H=om(p.document.selection);if(!H)return;const G=k.direction,rt=p.document.selection.getSelectedElement(),ft="forward"==G;if("before"===H===ft)r.execute("delete",{selection:p.createSelection(rt,"on")});else{const Mt=x.getNearestSelectionRange(p.createPositionAt(rt,H),G);if(Mt)if(Mt.isCollapsed){const he=p.createSelection(Mt.start);if(p.modifySelection(he,{direction:G}),he.focus.isEqual(Mt.start)){const Je=function(fn,Mn){let In=Mn;for(const Qn of Mn.getAncestors({parentFirst:!0})){if(Qn.childCount>1||fn.isLimit(Qn))break;In=Qn}return In}(x,Mt.start.parent);p.deleteContent(p.createSelection(Je,"on"),{doNotAutoparagraph:!0})}else p.change(Je=>{Je.setSelection(Mt),r.execute(ft?"forwardDelete":"delete")})}else p.change(he=>{he.setSelection(Mt),r.execute(ft?"forwardDelete":"delete")})}k.preventDefault(),Z.stop()},{priority:ns.get("high")+1})}_enableInsertContentIntegration(){const l=this.editor.model,p=l.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(x,[Z,k])=>{if(k&&!k.is("documentSelection"))return;const H=om(p);return H?(x.stop(),l.change(G=>{const rt=p.getSelectedElement(),ft=l.createPositionAt(rt,H),Mt=G.createSelection(ft),he=l.insertContent(Z,Mt);return G.setSelection(Mt),he})):void 0},{priority:"high"})}}d(51);class Jm extends ko{static get pluginName(){return"Widget"}static get requires(){return[sh]}init(){const r=this.editor.editing.view,l=r.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(p,x,Z)=>{this._clearPreviouslySelectedWidgets(Z.writer);const k=Z.writer,H=k.document.selection,G=H.getSelectedElement();let rt=null;for(const ft of H.getRanges())for(const Mt of ft){const he=Mt.item;pd(he)&&!Sg(he,rt)&&(k.addClass("ck-widget_selected",he),this._previouslySelected.add(he),rt=he,he==G&&k.setSelection(H.getRanges(),{fake:!0,label:G0(G)}))}},{priority:"low"}),r.addObserver(_u),this.listenTo(l,"mousedown",(...p)=>this._onMousedown(...p)),this.listenTo(l,"keydown",(...p)=>{this._handleSelectionChangeOnArrowKeyPress(...p)},{priority:"high"}),this.listenTo(l,"keydown",(...p)=>{this._preventDefaultOnArrowKeyPress(...p)},{priority:ns.get("high")-20}),this.listenTo(l,"delete",(p,x)=>{this._handleDelete("forward"==x.direction)&&(x.preventDefault(),p.stop())},{priority:"high"})}_onMousedown(r,l){const p=this.editor,x=p.editing.view,Z=x.document;let k=l.target;if(function(G){for(;G;){if(G.is("editableElement")&&!G.is("rootElement"))return!0;if(pd(G))return!1;G=G.parent}return!1}(k)){if((ws_isSafari||ws_isGecko)&&l.domEvent.detail>=3){const G=p.editing.mapper,rt=k.is("attributeElement")?k.findAncestor(Mt=>!Mt.is("attributeElement")):k,ft=G.toModelElement(rt);l.preventDefault(),this.editor.model.change(Mt=>{Mt.setSelection(ft,"in")})}return}if(!pd(k)&&(k=k.findAncestor(pd),!k))return;l.preventDefault(),Z.isFocused||x.focus();const H=p.editing.mapper.toModelElement(k);this._setSelectionOverElement(H)}_handleSelectionChangeOnArrowKeyPress(r,l){const p=l.keyCode;if(!ed(p))return;const x=this.editor.model,Z=x.schema,k=x.document.selection,H=k.getSelectedElement(),G=a1(p,this.editor.locale.contentLanguageDirection);if(H&&Z.isObject(H)){const ft=G?k.getLastPosition():k.getFirstPosition(),Mt=Z.getNearestSelectionRange(ft,G?"forward":"backward");return void(Mt&&(x.change(he=>{he.setSelection(Mt)}),l.preventDefault(),r.stop()))}if(!k.isCollapsed)return;const rt=this._getObjectElementNextToSelection(G);rt&&Z.isObject(rt)&&(this._setSelectionOverElement(rt),l.preventDefault(),r.stop())}_preventDefaultOnArrowKeyPress(r,l){if(!ed(l.keyCode))return;const p=this.editor.model,x=p.schema,Z=p.document.selection.getSelectedElement();Z&&x.isObject(Z)&&(l.preventDefault(),r.stop())}_handleDelete(r){if(this.editor.isReadOnly)return;const l=this.editor.model.document.selection;if(!l.isCollapsed)return;const p=this._getObjectElementNextToSelection(r);return p?(this.editor.model.change(x=>{let Z=l.anchor.parent;for(;Z.isEmpty;){const k=Z;Z=k.parent,x.remove(k)}this._setSelectionOverElement(p)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(l=>{l.setSelection(l.createRangeOn(r))})}_getObjectElementNextToSelection(r){const l=this.editor.model,p=l.schema,Z=l.createSelection(l.document.selection);l.modifySelection(Z,{direction:r?"forward":"backward"});const k=r?Z.focus.nodeBefore:Z.focus.nodeAfter;return k&&p.isObject(k)?k:null}_clearPreviouslySelectedWidgets(r){for(const l of this._previouslySelected)r.removeClass("ck-widget_selected",l);this._previouslySelected.clear()}}function Sg(b,r){return!!r&&Array.from(b.getAncestors()).includes(r)}class W3 extends tr{refresh(){const r=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Tp(r),this.value=!(!Tp(r)||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const l=this.editor.model,p=l.document.selection.getSelectedElement();l.change(x=>{x.setAttribute("alt",r.newValue,p)})}}class Xr extends ko{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new W3(this.editor))}}d(53);class F_ extends Ca{constructor(r,l){super(r);const p="ck-labeled-field-view-"+xr(),x="ck-labeled-field-view-status-"+xr();this.fieldView=l(this,p,x),this.set("label"),this.set("isEnabled",!0),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.labelView=this._createLabelView(p),this.statusView=this._createStatusView(x),this.bind("_statusText").to(this,"errorText",this,"infoText",(k,H)=>k||H);const Z=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",Z.to("class"),Z.if("isEnabled","ck-disabled",k=>!k)]},children:[this.labelView,this.fieldView,this.statusView]})}_createLabelView(r){const l=new Nu(this.locale);return l.for=r,l.bind("text").to(this,"label"),l}_createStatusView(r){const l=new Ca(this.locale),p=this.bindTemplate;return l.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",p.if("errorText","ck-labeled-field-view__status_error"),p.if("_statusText","ck-hidden",x=>!x)],id:r,role:p.if("errorText","alert")},children:[{text:p.to("_statusText")}]}),l}focus(){this.fieldView.focus()}}d(55);class a6 extends Ca{constructor(r){super(r),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById");const l=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",l.if("hasError","ck-error")],id:l.to("id"),placeholder:l.to("placeholder"),readonly:l.to("isReadOnly"),"aria-invalid":l.if("hasError",!0),"aria-describedby":l.to("ariaDescribedById")},on:{input:l.to("input")}})}render(){super.render();const r=l=>{this.element.value=l||0===l?l:""};r(this.value),this.on("change:value",(l,p,x)=>{r(x)})}select(){this.element.select()}focus(){this.element.focus()}}function kg(b,r,l){const p=new a6(b.locale);return p.set({id:r,ariaDescribedById:l}),p.bind("isReadOnly").to(b,"isEnabled",x=>!x),p.bind("hasError").to(b,"errorText",x=>!!x),p.on("input",()=>{b.errorText=null}),p}function E2({view:b}){b.listenTo(b.element,"submit",(r,l)=>{l.preventDefault(),b.fire("submit")},{useCapture:!0})}var ch='',F2='';d(57);class $3 extends Ca{constructor(r){super(r);const l=this.locale.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(l("Save"),ch,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(l("Cancel"),F2,"ck-button-cancel","cancel"),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),E2({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}_createButton(r,l,p,x){const Z=new qs(this.locale);return Z.set({label:r,icon:l,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),x&&Z.delegate("execute").to(this,x),Z}_createLabeledInputView(){const r=this.locale.t,l=new F_(this.locale,kg);return l.label=r("Text alternative"),l.fieldView.placeholder=r("Text alternative"),l}}d(59),d(61);const lh=Lm("px");class Xl extends ko{static get pluginName(){return"ContextualBalloon"}constructor(r){super(r),this.positionLimiter=()=>{const l=this.editor.editing.view,p=l.document.selection.editableElement;return p?l.domConverter.mapViewToDom(p.root):null},this.set("visibleView",null),this.view=new er(r.locale),r.ui.view.body.add(this.view),r.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this.hasView(r.view))throw new jn.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,r]);const l=r.stackId||"main";if(!this._idToStack.has(l))return this._idToStack.set(l,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(l)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(l));const p=this._idToStack.get(l);r.singleViewMode&&this.showStack(l),p.set(r.view,r),this._viewToStack.set(r.view,p),p===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new jn.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,r]);const l=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===l.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(l.values())[l.size-2])),1===l.size?(this._idToStack.delete(this._getStackId(l)),this._numberOfStacks=this._idToStack.size):l.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const l=this._idToStack.get(r);if(!l)throw new jn.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==l&&this._showView(Array.from(l.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(l=>l[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let l=r.indexOf(this._visibleStack)+1;r[l]||(l=0),this.showStack(this._getStackId(r[l]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let l=r.indexOf(this._visibleStack)-1;r[l]||(l=r.length-1),this.showStack(this._getStackId(r[l]))}_createRotatorView(){const r=new uh(this.editor.locale),l=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(p,x)=>!x&&p>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(p,x)=>{if(x<2)return"";const Z=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return l("%0 of %1",[Z,x])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new K3(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(l,p)=>!p&&l>=2?Math.min(l-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:l="",withArrow:p=!0,singleViewMode:x=!1}){this.view.class=l,this.view.withArrow=p,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),x&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&!r.limiter&&(r=Object.assign({},r,{limiter:this.positionLimiter})),r}}class uh extends Ca{constructor(r){super(r);const l=r.t,p=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Zc,this.buttonPrevView=this._createButtonView(l("Previous"),''),this.buttonNextView=this._createButtonView(l("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",p.to("isNavigationVisible",x=>x?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:p.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,l){const p=new qs(this.locale);return p.set({label:r,icon:l,tooltip:!0}),p}}class K3 extends Ca{constructor(r,l){super(r);const p=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=l,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",p.to("numberOfPanels",x=>x?"":"ck-hidden")],style:{top:p.to("top",lh),left:p.to("left",lh),width:p.to("width",lh),height:p.to("height",lh)}},children:this.content}),this.on("change:numberOfPanels",(x,Z,k,H)=>{k>H?this._addPanels(k-H):this._removePanels(H-k),this.updatePosition()})}_addPanels(r){for(;r--;){const l=new Ca;l.setTemplate({tag:"div"}),this.content.add(l),this.registerChild(l)}}_removePanels(r){for(;r--;){const l=this.content.last;this.content.remove(l),this.deregisterChild(l),l.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:l}=this._balloonPanelView,{width:p,height:x}=new as(this._balloonPanelView.element);Object.assign(this,{top:r,left:l,width:p,height:x})}}}function X3(b){const r=b.editing.view,l=er.defaultPositions;return{target:r.domConverter.viewToDom(r.document.selection.getSelectedElement()),positions:[l.northArrowSouth,l.northArrowSouthWest,l.northArrowSouthEast,l.southArrowNorth,l.southArrowNorthWest,l.southArrowNorthEast]}}class j0 extends ko{static get requires(){return[Xl]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const r=this.editor,l=r.t;r.ui.componentFactory.add("imageTextAlternative",p=>{const x=r.commands.get("imageTextAlternative"),Z=new qs(p);return Z.set({label:l("Change image text alternative"),icon:'',tooltip:!0}),Z.bind("isEnabled").to(x,"isEnabled"),this.listenTo(Z,"execute",()=>{this._showForm()}),Z})}_createForm(){const r=this.editor,l=r.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new $3(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(p,x)=>{this._hideForm(!0),x()}),this.listenTo(r.ui,"update",()=>{md(l.selection)?this._isVisible&&function(p){const x=p.plugins.get("ContextualBalloon");if(md(p.editing.view.document.selection)){const Z=X3(p);x.updatePosition(Z)}}(r):this._hideForm(!0)}),v2({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const r=this.editor,l=r.commands.get("imageTextAlternative"),p=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:X3(r)}),p.fieldView.value=p.fieldView.element.value=l.value||"",this._form.labeledInput.fieldView.select()}_hideForm(r){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class dh extends ko{static get requires(){return[Xr,j0]}static get pluginName(){return"ImageTextAlternative"}}d(63);class Og extends ko{static get requires(){return[Ra,Jm,dh]}static get pluginName(){return"Image"}}class Ms extends Ca{constructor(r){super(r),this.buttonView=new qs(r),this._fileInputView=new rm(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class rm extends Ca{constructor(r){super(r),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const l=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:l.to("acceptedType"),multiple:l.to("allowMultipleFiles")},on:{change:l.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}function W0(b){const r=b.map(l=>l.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}class ph extends ko{init(){const r=this.editor,l=r.t;r.ui.componentFactory.add("imageUpload",p=>{const x=new Ms(p),Z=r.commands.get("imageUpload"),k=r.config.get("image.upload.types"),H=W0(k);return x.set({acceptedType:k.map(G=>"image/"+G).join(","),allowMultipleFiles:!0}),x.buttonView.set({label:l("Insert image"),icon:'',tooltip:!0}),x.buttonView.bind("isEnabled").to(Z),x.on("done",(G,rt)=>{const ft=Array.from(rt).filter(Mt=>H.test(Mt.type));ft.length&&r.execute("imageUpload",{file:ft})}),x})}}d(65),d(67),d(69);class N2 extends ko{constructor(r){super(r),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('')}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(...r)=>this.uploadStatusChange(...r))}uploadStatusChange(r,l,p){const x=this.editor,Z=l.item,k=Z.getAttribute("uploadId");if(!p.consumable.consume(l.item,r.name))return;const H=x.plugins.get(pu),G=k?l.attributeNewValue:null,rt=this.placeholder,ft=x.editing.mapper.toViewElement(Z),Mt=p.writer;if("reading"==G)return mh(ft,Mt),void _h(rt,ft,Mt);if("uploading"==G){const he=H.loaders.get(k);return mh(ft,Mt),void(he?(fh(ft,Mt),function(Je,fn,Mn,In){const Qn=function(Fi){const Ji=Fi.createUIElement("div",{class:"ck-progress-bar"});return Fi.setCustomProperty("progressBar",!0,Ji),Ji}(fn);fn.insert(fn.createPositionAt(Je,"end"),Qn),Mn.on("change:uploadedPercent",(Fi,Ji,Uo)=>{In.change(va=>{va.setStyle("width",Uo+"%",Qn)})})}(ft,Mt,he,x.editing.view),function(Je,fn,Mn){if(Mn.data){const In=Kl(Je);fn.setAttribute("src",Mn.data,In)}}(ft,Mt,he)):_h(rt,ft,Mt))}"complete"==G&&H.loaders.get(k)&&function(he,Je,fn){const Mn=Je.createUIElement("div",{class:"ck-image-upload-complete-icon"});Je.insert(Je.createPositionAt(he,"end"),Mn),setTimeout(()=>{fn.change(In=>In.remove(In.createRangeOn(Mn)))},3e3)}(ft,Mt,x.editing.view),Qm(ft,Mt,"progressBar"),fh(ft,Mt),Mt.removeClass("ck-appear",ft)}}function mh(b,r){b.hasClass("ck-appear")||r.addClass("ck-appear",b)}function _h(b,r,l){r.hasClass("ck-image-upload-placeholder")||l.addClass("ck-image-upload-placeholder",r);const p=Kl(r);p.getAttribute("src")!==b&&l.setAttribute("src",b,p),sm(r,"placeholder")||l.insert(l.createPositionAfter(p),function(x){const Z=x.createUIElement("div",{class:"ck-upload-placeholder-loader"});return x.setCustomProperty("placeholder",!0,Z),Z}(l))}function fh(b,r){b.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",b),Qm(b,r,"placeholder")}function sm(b,r){for(const l of b.getChildren())if(l.getCustomProperty(r))return l}function Qm(b,r,l){const p=sm(b,l);p&&r.remove(r.createRangeOn(p))}class hh{constructor(r){this.document=r}createDocumentFragment(r){return new Gl(this.document,r)}createElement(r,l,p){return new Xs(this.document,r,l,p)}createText(r){return new or(this.document,r)}clone(r,l=!1){return r._clone(l)}appendChild(r,l){return l._appendChild(r)}insertChild(r,l,p){return p._insertChild(r,l)}removeChildren(r,l,p){return p._removeChildren(r,l)}remove(r){const l=r.parent;return l?this.removeChildren(l.getChildIndex(r),1,l):[]}replace(r,l){const p=r.parent;if(p){const x=p.getChildIndex(r);return this.removeChildren(x,1,p),this.insertChild(x,l,p),!0}return!1}unwrapElement(r){const l=r.parent;if(l){const p=l.getChildIndex(r);this.remove(r),this.insertChild(p,r.getChildren(),l)}}rename(r,l){const p=new Xs(this.document,r,l.getAttributes(),l.getChildren());return this.replace(l,p)?p:null}setAttribute(r,l,p){p._setAttribute(r,l)}removeAttribute(r,l){l._removeAttribute(r)}addClass(r,l){l._addClass(r)}removeClass(r,l){l._removeClass(r)}setStyle(r,l,p){Gt(r)&&void 0===p&&(p=l),p._setStyle(r,l)}removeStyle(r,l){l._removeStyle(r)}setCustomProperty(r,l,p){p._setCustomProperty(r,l)}removeCustomProperty(r,l){return l._removeCustomProperty(r)}createPositionAt(r,l){return vi._createAt(r,l)}createPositionAfter(r){return vi._createAfter(r)}createPositionBefore(r){return vi._createBefore(r)}createRange(r,l){return new zi(r,l)}createRangeOn(r){return zi._createOn(r)}createRangeIn(r){return zi._createIn(r)}createSelection(r,l,p){return new ga(r,l,p)}}class W1 extends tr{refresh(){this.isEnabled=zm(this.editor.model)}execute(r){const l=this.editor,p=l.model,x=l.plugins.get(pu);p.change(Z=>{const k=Array.isArray(r.file)?r.file:[r.file];for(const H of k)I2(Z,p,x,H)})}}function I2(b,r,l,p){const x=l.createLoader(p);x&&Zg(b,r,{uploadId:x.id})}class t0 extends ko{static get requires(){return[pu,Yd,qm]}static get pluginName(){return"ImageUploadEditing"}constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}})}init(){const r=this.editor,l=r.model.document,p=r.model.schema,x=r.conversion,Z=r.plugins.get(pu),k=W0(r.config.get("image.upload.types"));p.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),r.commands.add("imageUpload",new W1(r)),x.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(H,G)=>{if(rt=G.dataTransfer,Array.from(rt.types).includes("text/html")&&""!==rt.getData("text/html"))return;var rt;const ft=Array.from(G.dataTransfer.files).filter(he=>!!he&&k.test(he.type)),Mt=G.targetRanges.map(he=>r.editing.mapper.toModelRange(he));r.model.change(he=>{he.setSelection(Mt),ft.length&&(H.stop(),r.model.enqueueChange("default",()=>{r.execute("imageUpload",{file:ft})}))})}),this.listenTo(r.plugins.get(qm),"inputTransformation",(H,G)=>{const rt=Array.from(r.editing.view.createRangeIn(G.content)).filter(Mt=>{return!(!(he=Mt.item).is("element","img")||!he.getAttribute("src"))&&(he.getAttribute("src").match(/^data:image\/\w+;base64,/g)||he.getAttribute("src").match(/^blob:/g))&&!Mt.item.getAttribute("uploadProcessed");var he}).map(Mt=>{return{promise:(he=Mt.item,new Promise((Je,fn)=>{const Mn=he.getAttribute("src");fetch(Mn).then(In=>In.blob()).then(In=>{const Qn=(va=Mn,(Uo=In).type?Uo.type:va.match(/data:(image\/\w+);base64/)?va.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"),Fi=Qn.replace("image/",""),Ji=new File([In],"image."+Fi,{type:Qn});var Uo,va;Je(Ji)}).catch(fn)})),imageElement:Mt.item};var he});if(!rt.length)return;const ft=new hh(r.editing.view.document);for(const Mt of rt){ft.setAttribute("uploadProcessed",!0,Mt.imageElement);const he=Z.createLoader(Mt.promise);he&&(ft.setAttribute("src","",Mt.imageElement),ft.setAttribute("uploadId",he.id,Mt.imageElement))}}),r.editing.view.document.on("dragover",(H,G)=>{G.preventDefault()}),l.on("change",()=>{const H=l.differ.getChanges({includeChangesInGraveyard:!0});for(const G of H)if("insert"==G.type&&"$text"!=G.name){const rt=G.position.nodeAfter,ft="$graveyard"==G.position.root.rootName;for(const Mt of gh(r,rt)){const he=Mt.getAttribute("uploadId");if(!he)continue;const Je=Z.loaders.get(he);Je&&(ft?Je.abort():"idle"==Je.status&&this._readAndUpload(Je,Mt))}}})}_readAndUpload(r,l){const p=this.editor,x=p.model,Z=p.locale.t,k=p.plugins.get(pu),H=p.plugins.get(Yd);return x.enqueueChange("transparent",rt=>{rt.setAttribute("uploadStatus","reading",l)}),r.read().then(()=>{const rt=r.upload();if(ws_isSafari){const ft=Kl(p.editing.mapper.toViewElement(l));p.editing.view.once("render",()=>{if(!ft.parent)return;const Mt=p.editing.view.domConverter.mapViewToDom(ft.parent);if(!Mt)return;const he=Mt.style.display;Mt.style.display="none",Mt._ckHack=Mt.offsetHeight,Mt.style.display=he})}return x.enqueueChange("transparent",ft=>{ft.setAttribute("uploadStatus","uploading",l)}),rt}).then(rt=>{x.enqueueChange("transparent",ft=>{ft.setAttributes({uploadStatus:"complete",src:rt.default},l),this._parseAndSetSrcsetAttributeOnImage(rt,l,ft)}),G()}).catch(rt=>{if("error"!==r.status&&"aborted"!==r.status)throw rt;"error"==r.status&&rt&&H.showWarning(rt,{title:Z("Upload failed"),namespace:"upload"}),G(),x.enqueueChange("transparent",ft=>{ft.remove(l)})});function G(){x.enqueueChange("transparent",rt=>{rt.removeAttribute("uploadId",l),rt.removeAttribute("uploadStatus",l)}),k.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,l,p){let x=0;const Z=Object.keys(r).filter(k=>{const H=parseInt(k,10);if(!isNaN(H))return x=Math.max(x,H),!0}).map(k=>`${r[k]} ${k}w`).join(", ");""!=Z&&p.setAttribute("srcset",{data:Z,width:x},l)}}function gh(b,r){return Array.from(b.model.createRangeOn(r)).filter(l=>l.item.is("element","image")).map(l=>l.item)}class jm extends ko{static get pluginName(){return"ImageUpload"}static get requires(){return[t0,ph,N2]}}class fu extends tr{refresh(){const r=this.editor.model,l=Wl(r.document.selection.getSelectedBlocks());this.value=!!l&&l.is("element","paragraph"),this.isEnabled=!!l&&N_(l,r.schema)}execute(r={}){const l=this.editor.model,p=l.document;l.change(x=>{const Z=(r.selection||p.selection).getSelectedBlocks();for(const k of Z)!k.is("element","paragraph")&&N_(k,l.schema)&&x.rename(k,"paragraph")})}}function N_(b,r){return r.checkChild(b.parent,"paragraph")&&!r.isObject(b)}class Lg extends tr{execute(r){const l=this.editor.model;let p=r.position;l.change(x=>{const Z=x.createElement("paragraph");if(!l.schema.checkChild(p.parent,Z)){const k=l.schema.findAllowedParent(p,Z);if(!k)return;p=x.split(p,k).position}l.insertContent(Z,p),x.setSelection(Z,"in")})}}class I_ extends ko{static get pluginName(){return"Paragraph"}init(){const r=this.editor,l=r.model,p=r.data;r.commands.add("paragraph",new fu(r)),r.commands.add("insertParagraph",new Lg(r)),l.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(x,Z)=>I_.paragraphLikeElements.has(x.name)?x.isEmpty?null:Z.createElement("paragraph"):null,converterPriority:"low"}),p.upcastDispatcher.on("element",(x,Z,k)=>{k.consumable.test(Z.viewItem,{name:Z.viewItem.name})&&e0(Z.viewItem,Z.modelCursor,k.schema)&&Object.assign(Z,Wm(Z.viewItem,Z.modelCursor,k))},{priority:"low"}),p.upcastDispatcher.on("text",(x,Z,k)=>{Z.modelRange||e0(Z.viewItem,Z.modelCursor,k.schema)&&Object.assign(Z,Wm(Z.viewItem,Z.modelCursor,k))},{priority:"lowest"}),l.document.registerPostFixer(x=>this._autoparagraphEmptyRoots(x)),r.data.on("ready",()=>{l.enqueueChange("transparent",x=>this._autoparagraphEmptyRoots(x))},{priority:"lowest"})}_autoparagraphEmptyRoots(r){const l=this.editor.model;for(const p of l.document.getRootNames()){const x=l.document.getRoot(p);if(x.isEmpty&&"$graveyard"!=x.rootName&&l.schema.checkChild(x,"paragraph"))return r.insertElement("paragraph",x),!0}}}function Wm(b,r,l){const p=l.writer.createElement("paragraph");return l.writer.insert(p,r),l.convertItem(b,l.writer.createPositionAt(p,0))}function e0(b,r,l){const p=l.createContext(r);return!!l.checkChild(p,"paragraph")&&!!l.checkChild(p.push("paragraph"),b)}I_.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class q2 extends tr{constructor(r,l){super(r),this.modelElements=l}refresh(){const r=Wl(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(l=>$m(r,l,this.editor.model.schema))}execute(r){const l=this.editor.model,p=l.document,x=r.value;l.change(Z=>{const k=Array.from(p.selection.getSelectedBlocks()).filter(H=>$m(H,x,l.schema));for(const H of k)H.is("element",x)||Z.rename(H,x)})}}function $m(b,r,l){return l.checkChild(b.parent,r)&&!l.isObject(b)}class q_ extends ko{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[I_]}init(){const r=this.editor,l=r.config.get("heading.options"),p=[];for(const x of l)"paragraph"!==x.model&&(r.model.schema.register(x.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(x),p.push(x.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new q2(r,p))}afterInit(){const r=this.editor,l=r.commands.get("enter"),p=r.config.get("heading.options");l&&this.listenTo(l,"afterExecute",(x,Z)=>{const k=r.model.document.selection.getFirstPosition().parent;p.some(H=>k.is("element",H.model))&&!k.is("element","paragraph")&&0===k.childCount&&Z.writer.rename(k,"paragraph")})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:ns.get("low")+1})}}class R_{constructor(r,l){l&&Pt(this,l),r&&this.set(r)}}ao(R_,St),d(11);class r6 extends ko{init(){const r=this.editor,l=r.t,p=function(k){const H=k.t,G={Paragraph:H("Paragraph"),"Heading 1":H("Heading 1"),"Heading 2":H("Heading 2"),"Heading 3":H("Heading 3"),"Heading 4":H("Heading 4"),"Heading 5":H("Heading 5"),"Heading 6":H("Heading 6")};return k.config.get("heading.options").map(rt=>{const ft=G[rt.title];return ft&&ft!=rt.title&&(rt.title=ft),rt})}(r),x=l("Choose heading"),Z=l("Heading");r.ui.componentFactory.add("heading",k=>{const H={},G=new Er,rt=r.commands.get("heading"),ft=r.commands.get("paragraph"),Mt=[rt];for(const Je of p){const fn={type:"button",model:new R_({label:Je.title,class:Je.class,withText:!0})};"paragraph"===Je.model?(fn.model.bind("isOn").to(ft,"value"),fn.model.set("commandName","paragraph"),Mt.push(ft)):(fn.model.bind("isOn").to(rt,"value",Mn=>Mn===Je.model),fn.model.set({commandName:"heading",commandValue:Je.model})),G.add(fn),H[Je.model]=Je.title}const he=v1(k);return T3(he,G),he.buttonView.set({isOn:!1,withText:!0,tooltip:Z}),he.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),he.bind("isEnabled").toMany(Mt,"isEnabled",(...Je)=>Je.some(fn=>fn)),he.buttonView.bind("label").to(rt,"value",ft,"value",(Je,fn)=>{const Mn=Je||fn&&"paragraph";return H[Mn]?H[Mn]:x}),this.listenTo(he,"execute",Je=>{r.execute(Je.source.commandName,Je.source.commandValue?{value:Je.source.commandValue}:void 0),r.editing.view.focus()}),he})}}function Km(b){for(const r of b.getChildren())if(r&&r.is("element","caption"))return r;return null}function vh(b){const r=b.parent;return"figcaption"==b.name&&r&&"figure"==r.name&&r.hasClass("image")?{name:!0}:null}class H_ extends ko{static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,l=r.editing.view,x=r.data,Z=r.editing,k=r.t;r.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),r.model.document.registerPostFixer(G=>this._insertMissingModelCaptionElement(G)),r.conversion.for("upcast").elementToElement({view:vh,model:"caption"}),x.downcastDispatcher.on("insert:caption",xh(G=>G.createContainerElement("figcaption"),!1));const H=(G=l,rt=k("Enter image caption"),ft=>{const Mt=ft.createEditableElement("figcaption");return ft.setCustomProperty("imageCaption",!0,Mt),Of({view:G,element:Mt,text:rt}),C1(Mt,ft)});var G,rt;Z.downcastDispatcher.on("insert:caption",xh(H)),Z.downcastDispatcher.on("insert",this._fixCaptionVisibility(G=>G.item),{priority:"high"}),Z.downcastDispatcher.on("remove",this._fixCaptionVisibility(G=>G.position.parent),{priority:"high"}),l.document.registerPostFixer(G=>this._updateCaptionVisibility(G))}_updateCaptionVisibility(r){const l=this.editor.editing.mapper,p=this._lastSelectedCaption;let x;const Z=this.editor.model.document.selection,k=Z.getSelectedElement();if(k&&k.is("element","image")){const G=Km(k);x=l.toViewElement(G)}const H=Eg(Z.getFirstPosition().parent);if(H&&(x=l.toViewElement(H)),x)return p?(p===x||(Y_(p,r),this._lastSelectedCaption=x),z_(x,r)):(this._lastSelectedCaption=x,z_(x,r));if(p){const G=Y_(p,r);return this._lastSelectedCaption=null,G}return!1}_fixCaptionVisibility(r){return(l,p,x)=>{const Z=Eg(r(p)),H=x.writer;if(Z){const G=this.editor.editing.mapper.toViewElement(Z);G&&(Z.childCount?H.removeClass("ck-hidden",G):H.addClass("ck-hidden",G))}}}_insertMissingModelCaptionElement(r){const l=this.editor.model,p=l.document.differ.getChanges(),x=[];for(const Z of p)if("insert"==Z.type&&"$text"!=Z.name){const k=Z.position.nodeAfter;if(k.is("element","image")&&!Km(k)&&x.push(k),!k.is("element","image")&&k.childCount)for(const H of l.createRangeIn(k).getItems())H.is("element","image")&&!Km(H)&&x.push(H)}for(const Z of x)r.appendElement("caption",Z);return!!x.length}}function xh(b,r=!0){return(l,p,x)=>{const Z=p.item;if((Z.childCount||r)&&Tp(Z.parent)){if(!x.consumable.consume(p.item,"insert"))return;const k=x.mapper.toViewElement(p.range.start.parent),H=b(x.writer),G=x.writer;Z.childCount||G.addClass("ck-hidden",H),function(rt,ft,Mt,he){const Je=he.writer.createPositionAt(Mt,"end");he.writer.insert(Je,rt),he.mapper.bindElements(ft,rt)}(H,p.item,k,x)}}}function Eg(b){const r=b.getAncestors({includeSelf:!0}).find(l=>"caption"==l.name);return r&&r.parent&&"image"==r.parent.name?r:null}function Y_(b,r){return!b.childCount&&!b.hasClass("ck-hidden")&&(r.addClass("ck-hidden",b),!0)}function z_(b,r){return!!b.hasClass("ck-hidden")&&(r.removeClass("ck-hidden",b),!0)}d(72);class Vd extends tr{constructor(r,l){super(r),this.defaultStyle=!1,this.styles=l.reduce((p,x)=>(p[x.name]=x,x.isDefault&&(this.defaultStyle=x.name),p),{})}refresh(){const r=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Tp(r),r)if(r.hasAttribute("imageStyle")){const l=r.getAttribute("imageStyle");this.value=!!this.styles[l]&&l}else this.value=this.defaultStyle;else this.value=!1}execute(r){const l=r.value,p=this.editor.model,x=p.document.selection.getSelectedElement();p.change(Z=>{this.styles[l].isDefault?Z.removeAttribute("imageStyle",x):Z.setAttribute("imageStyle",l,x)})}}function R2(b,r){for(const l of r)if(l.name===b)return l}var V_='',B_='',n0='',Xm='';const H2={full:{name:"full",title:"Full size image",icon:V_,isDefault:!0},side:{name:"side",title:"Side image",icon:Xm,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:B_,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:n0,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Xm,className:"image-style-align-right"}},Y2={full:V_,left:B_,right:Xm,center:n0};function bh(b=[]){return b.map(z2)}function z2(b){if("string"==typeof b){const r=b;H2[r]?b=Object.assign({},H2[r]):(console.warn(Object(jn.a)("image-style-not-found: There is no such image style of given name."),{name:r}),b={name:r})}else if(H2[b.name]){const r=H2[b.name],l=Object.assign({},b);for(const p in r)Object.prototype.hasOwnProperty.call(b,p)||(l[p]=r[p]);b=l}return"string"==typeof b.icon&&Y2[b.icon]&&(b.icon=Y2[b.icon]),b}class Ch extends ko{static get pluginName(){return"ImageStyleEditing"}init(){const r=this.editor,l=r.model.schema,p=r.data,x=r.editing;r.config.define("image.styles",["full","side"]);const Z=bh(r.config.get("image.styles"));l.extend("image",{allowAttributes:"imageStyle"});const k=(H=Z,(G,rt,ft)=>{if(!ft.consumable.consume(rt.item,G.name))return;const Mt=R2(rt.attributeNewValue,H),he=R2(rt.attributeOldValue,H),Je=ft.mapper.toViewElement(rt.item),fn=ft.writer;he&&fn.removeClass(he.className,Je),Mt&&fn.addClass(Mt.className,Je)});var H;x.downcastDispatcher.on("attribute:imageStyle:image",k),p.downcastDispatcher.on("attribute:imageStyle:image",k),p.upcastDispatcher.on("element:figure",function(H){const G=H.filter(rt=>!rt.isDefault);return(rt,ft,Mt)=>{if(!ft.modelRange)return;const he=ft.viewItem,Je=Wl(ft.modelRange.getItems());if(Mt.schema.checkAttribute(Je,"imageStyle"))for(const fn of G)Mt.consumable.consume(he,{classes:fn.className})&&Mt.writer.setAttribute("imageStyle",fn.name,Je)}}(Z),{priority:"low"}),r.commands.add("imageStyle",new Vd(r,Z))}}d(74);class fd extends ko{static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=function(l,p){for(const x of l)p[x.title]&&(x.title=p[x.title]);return l}(bh(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles);for(const l of r)this._createButton(l)}_createButton(r){const l=this.editor;l.ui.componentFactory.add("imageStyle:"+r.name,x=>{const Z=l.commands.get("imageStyle"),k=new qs(x);return k.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),k.bind("isEnabled").to(Z,"isEnabled"),k.bind("isOn").to(Z,"value",H=>H===r.name),this.listenTo(k,"execute",()=>{l.execute("imageStyle",{value:r.name}),l.editing.view.focus()}),k})}}class t_ extends ko{static get requires(){return[Xl]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const l=r.plugins.get("BalloonToolbar");this.listenTo(l,"show",p=>{(function(x){const Z=x.getSelectedElement();return!(!Z||!pd(Z))})(r.editing.view.document.selection)&&p.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:l,items:p,getRelatedElement:x,balloonClassName:Z="ck-toolbar-container"}){if(!p.length)return void console.warn(Object(jn.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:r});const k=this.editor,H=k.t,G=new x2(k.locale);if(G.ariaLabel=l||H("Widget toolbar"),this._toolbarDefinitions.has(r))throw new jn.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:r});G.fillFromConfig(p,k.ui.componentFactory),this._toolbarDefinitions.set(r,{view:G,getRelatedElement:x,balloonClassName:Z})}_updateToolbarsVisibility(){let r=0,l=null,p=null;for(const x of this._toolbarDefinitions.values()){const Z=x.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&Z)if(this.editor.ui.focusTracker.isFocused){const k=Z.getAncestors().length;k>r&&(r=k,l=Z,p=x)}else this._isToolbarVisible(x)&&this._hideToolbar(x);else this._isToolbarInBalloon(x)&&this._hideToolbar(x)}p&&this._showToolbar(p,l)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,l){this._isToolbarVisible(r)?yh(this.editor,l):this._isToolbarInBalloon(r)||(this._balloon.add({view:r.view,position:Fg(this.editor,l),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const p of this._toolbarDefinitions.values())if(this._isToolbarVisible(p)){const x=p.getRelatedElement(this.editor.editing.view.document.selection);yh(this.editor,x)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function yh(b,r){const l=b.plugins.get("ContextualBalloon"),p=Fg(b,r);l.updatePosition(p)}function Fg(b,r){const p=er.defaultPositions;return{target:b.editing.view.domConverter.mapViewToDom(r),positions:[p.northArrowSouth,p.northArrowSouthWest,p.northArrowSouthEast,p.southArrowNorth,p.southArrowNorthWest,p.southArrowNorthEast,Ol]}}class Th extends tr{constructor(r){super(r),this._childCommands=[]}refresh(){}execute(...r){return this._getFirstEnabledCommand().execute(r)}registerChildCommand(r){this._childCommands.push(r),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){return this._childCommands.find(r=>r.isEnabled)}}class Ah extends ko{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new Th(r)),r.commands.add("outdent",new Th(r))}}var Ng='',Uh='';class G_ extends ko{static get pluginName(){return"IndentUI"}init(){const r=this.editor,l=r.locale,p=r.t,x="ltr"==l.uiLanguageDirection?Ng:Uh,Z="ltr"==l.uiLanguageDirection?Uh:Ng;this._defineButton("indent",p("Increase indent"),x),this._defineButton("outdent",p("Decrease indent"),Z)}_defineButton(r,l,p){const x=this.editor;x.ui.componentFactory.add(r,Z=>{const k=x.commands.get(r),H=new qs(Z);return H.set({label:l,icon:p,tooltip:!0}),H.bind("isOn","isEnabled").to(k,"value","isEnabled"),this.listenTo(H,"execute",()=>{x.execute(r),x.editing.view.focus()}),H})}}class V2 extends N1{constructor(r){super(r),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}d(76);class $0 extends Ca{constructor(r,l,p){super(r);const x=r.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.urlInputView=this._createUrlInput(p),this.saveButtonView=this._createButton(x("Save"),ch,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(x("Cancel"),F2,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(l),this.children=this._createFormChildren(l.manualDecorators),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const Z=["ck","ck-link-form"];l.manualDecorators.length&&Z.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:Z,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,l)=>(r[l.name]=l.isOn,r),{})}render(){super.render(),E2({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(r="https://"){const l=this.locale.t,p=new F_(this.locale,kg);return p.label=l("Link URL"),p.fieldView.placeholder=r+"example.com",p}_createButton(r,l,p,x){const Z=new qs(this.locale);return Z.set({label:r,icon:l,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),x&&Z.delegate("execute").to(this,x),Z}_createManualDecoratorSwitches(r){const l=this.createCollection();for(const p of r.manualDecorators){const x=new M_(this.locale);x.set({name:p.id,label:p.label,withText:!0}),x.bind("isOn").toMany([p,r],"value",(Z,k)=>void 0===k&&void 0===Z?p.defaultValue:Z),x.on("execute",()=>{p.set("value",!x.isOn)}),l.add(x)}return l}_createFormChildren(r){const l=this.createCollection();if(l.add(this.urlInputView),r.length){const p=new Ca;p.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(x=>({tag:"li",children:[x],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),l.add(p)}return l.add(this.saveButtonView),l.add(this.cancelButtonView),l}}d(78);class D extends Ca{constructor(r){super(r);const l=r.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(l("Unlink"),'',"unlink"),this.editButtonView=this._createButton(l("Edit link"),'',"edit"),this.set("href"),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(r,l,p){const x=new qs(this.locale);return x.set({label:r,icon:l,tooltip:!0}),x.delegate("execute").to(this,p),x}_createPreviewButton(){const r=new qs(this.locale),l=this.bindTemplate,p=this.t;return r.set({withText:!0,tooltip:p("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:l.to("href",x=>x&&Kf(x)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",x=>x||p("This link has no URL")),r.bind("isEnabled").to(this,"href",x=>!!x),r.template.tag="a",r.template.eventListeners={},r}}const I=/^((\w+:(\/{2,})?)|(\W))/i,it=/[\w-]+@[\w-]+\.+[\w-]+/i;class jt extends ko{static get requires(){return[Xl]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(V2),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=r.plugins.get(Xl),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),r.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const r=this.editor,l=new D(r.locale),p=r.commands.get("link"),x=r.commands.get("unlink");return l.bind("href").to(p,"value"),l.editButtonView.bind("isEnabled").to(p),l.unlinkButtonView.bind("isEnabled").to(x),this.listenTo(l,"edit",()=>{this._addFormView()}),this.listenTo(l,"unlink",()=>{r.execute("unlink"),this._hideUI()}),l.keystrokes.set("Esc",(Z,k)=>{this._hideUI(),k()}),l.keystrokes.set("Ctrl+K",(Z,k)=>{this._addFormView(),k()}),l}_createFormView(){const r=this.editor,l=r.commands.get("link"),p=r.config.get("link.defaultProtocol"),x=new $0(r.locale,l,p);return x.urlInputView.fieldView.bind("value").to(l,"value"),x.urlInputView.bind("isReadOnly").to(l,"isEnabled",Z=>!Z),x.saveButtonView.bind("isEnabled").to(l),this.listenTo(x,"submit",()=>{const{value:Z}=x.urlInputView.fieldView.element,k=!!p&&!I.test(Z),H=it.test(Z);r.execute("link",Z&&k?(H?"mailto:":p)+Z:Z,x.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(x,"cancel",()=>{this._closeFormView()}),x.keystrokes.set("Esc",(Z,k)=>{this._closeFormView(),k()}),x}_createToolbarLinkButton(){const r=this.editor,l=r.commands.get("link"),p=r.t;r.keystrokes.set("Ctrl+K",(x,Z)=>{Z(),this._showUI(!0)}),r.ui.componentFactory.add("link",x=>{const Z=new qs(x);return Z.isEnabled=!0,Z.label=p("Link"),Z.icon='',Z.keystroke="Ctrl+K",Z.tooltip=!0,Z.isToggleable=!0,Z.bind("isEnabled").to(l,"isEnabled"),Z.bind("isOn").to(l,"value",k=>!!k),this.listenTo(Z,"execute",()=>this._showUI(!0)),Z})}_enableUserBalloonInteractions(){this.listenTo(this.editor.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(l,p)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),p())},{priority:"high"}),this.editor.keystrokes.set("Esc",(l,p)=>{this._isUIVisible&&(this._hideUI(),p())}),v2({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const r=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView(),this._showFakeVisualSelection()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,l=r.editing.view.document;let p=this._getSelectedLinkElement(),x=k();const Z=()=>{const H=this._getSelectedLinkElement(),G=k();p&&!H||!p&&G!==x?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),p=H,x=G};function k(){return l.selection.focus.getAncestors().reverse().find(H=>H.is("element"))}this.listenTo(r.ui,"update",Z),this.listenTo(this._balloon,"change:visibleView",Z)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,l=r.document,p=this._getSelectedLinkElement();return{target:p?r.domConverter.mapViewToDom(p):r.domConverter.viewRangeToDom(l.selection.getFirstRange())}}_getSelectedLinkElement(){const r=this.editor.editing.view,l=r.document.selection;if(l.isCollapsed)return Ee(l.getFirstPosition());{const p=l.getFirstRange().getTrimmed(),x=Ee(p.start),Z=Ee(p.end);return x&&x==Z&&r.createRangeIn(x).getTrimmed().isEqual(p)?x:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(l=>{r.markers.has("link-ui")?l.updateMarker("link-ui",{range:r.document.selection.getFirstRange()}):l.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:r.document.selection.getFirstRange()})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has("link-ui")&&r.change(l=>{l.removeMarker("link-ui")})}}function Ee(b){return b.getAncestors().find(r=>{return(l=r).is("attributeElement")&&!!l.getCustomProperty("link");var l})}class pn extends tr{constructor(r,l){super(r),this.type=l}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model,p=Array.from(r.document.selection.getSelectedBlocks()).filter(Z=>ci(Z,r.schema)),x=!0===this.value;r.change(Z=>{if(x){let k=p[p.length-1].nextSibling,H=Number.POSITIVE_INFINITY,G=[];for(;k&&"listItem"==k.name&&0!==k.getAttribute("listIndent");){const rt=k.getAttribute("listIndent");rt=l;)Z>x.getAttribute("listIndent")&&(Z=x.getAttribute("listIndent")),x.getAttribute("listIndent")==Z&&b[r?"unshift":"push"](x),x=x[r?"previousSibling":"nextSibling"]}}function ci(b,r){return r.checkChild(b.parent,"listItem")&&!r.isObject(b)}class fi extends tr{constructor(r,l){super(r),this._indentBy="forward"==l?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let p=Array.from(r.document.selection.getSelectedBlocks());r.change(x=>{const Z=p[p.length-1];let k=Z.nextSibling;for(;k&&"listItem"==k.name&&k.getAttribute("listIndent")>Z.getAttribute("listIndent");)p.push(k),k=k.nextSibling;this._indentBy<0&&(p=p.reverse());for(const H of p){const G=H.getAttribute("listIndent")+this._indentBy;G<0?x.rename(H,"paragraph"):x.setAttribute("listIndent",G,H)}})}_checkEnabled(){const r=Wl(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const l=r.getAttribute("listIndent"),p=r.getAttribute("listType");let x=r.previousSibling;for(;x&&x.is("element","listItem")&&x.getAttribute("listIndent")>=l;){if(x.getAttribute("listIndent")==l)return x.getAttribute("listType")==p;x=x.previousSibling}return!1}return!0}}function to(b,r,l,p){const x=r.parent,Z=l.mapper,k=l.writer;let H=Z.toViewPosition(p.createPositionBefore(b));const G=Go(b.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:b.getAttribute("listIndent")}),rt=b.previousSibling;if(G&&G.getAttribute("listIndent")==b.getAttribute("listIndent")){const ft=Z.toViewElement(G);H=k.breakContainer(k.createPositionAfter(ft))}else if(rt&&"listItem"==rt.name){H=Z.toViewPosition(p.createPositionAt(rt,"end"));const ft=Z.findMappedViewAncestor(H),Mt=function(he){for(const Je of he.getChildren())if("ul"==Je.name||"ol"==Je.name)return Je;return null}(ft);H=Mt?k.createPositionBefore(Mt):k.createPositionAt(ft,"end")}else H=Z.toViewPosition(p.createPositionBefore(b));if(H=Fo(H),k.insert(H,x),rt&&"listItem"==rt.name){const ft=Z.toViewElement(rt),Mt=k.createRange(k.createPositionAt(ft,0),H).getWalker({ignoreElementEnd:!0});for(const he of Mt)if(he.item.is("element","li")){const Je=k.breakContainer(k.createPositionBefore(he.item)),fn=he.item.parent,Mn=k.createPositionAt(r,"end");Ki(k,Mn.nodeBefore,Mn.nodeAfter),k.move(k.createRangeOn(fn),Mn),Mt.position=Je}}else{const ft=x.nextSibling;if(ft&&(ft.is("element","ul")||ft.is("element","ol"))){let Mt=null;for(const he of ft.getChildren()){const Je=Z.toModelElement(he);if(!(Je&&Je.getAttribute("listIndent")>b.getAttribute("listIndent")))break;Mt=he}Mt&&(k.breakContainer(k.createPositionAfter(Mt)),k.move(k.createRangeOn(Mt.parent),k.createPositionAt(r,"end")))}}Ki(k,x,x.nextSibling),Ki(k,x.previousSibling,x)}function Ki(b,r,l){return!r||!l||"ul"!=r.name&&"ol"!=r.name||r.name!=l.name||r.getAttribute("class")!==l.getAttribute("class")?null:b.mergeContainers(b.createPositionAfter(r))}function Fo(b){return b.getLastMatchingPosition(r=>r.item.is("uiElement"))}function Go(b,r){const l=!!r.sameIndent,p=!!r.smallerIndent,x=r.listIndent;let Z=b;for(;Z&&"listItem"==Z.name;){const k=Z.getAttribute("listIndent");if(l&&x==k||p&&x>k)return Z;Z=Z.previousSibling}return null}function da(b,r,l,p){b.ui.componentFactory.add(r,x=>{const Z=b.commands.get(r),k=new qs(x);return k.set({label:l,icon:p,tooltip:!0,isToggleable:!0}),k.bind("isOn","isEnabled").to(Z,"value","isEnabled"),k.on("execute",()=>{b.execute(r),b.editing.view.focus()}),k})}function fa(){const b=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||b?0:td.call(this)}function ca(b){return(r,l,p)=>{const x=p.consumable;if(!x.test(l.item,"insert")||!x.test(l.item,"attribute:listType")||!x.test(l.item,"attribute:listIndent"))return;x.consume(l.item,"insert"),x.consume(l.item,"attribute:listType"),x.consume(l.item,"attribute:listIndent");const Z=l.item;to(Z,function eo(b,r){const l=r.mapper,p=r.writer,x="numbered"==b.getAttribute("listType")?"ol":"ul",Z=function(H){const G=H.createContainerElement("li");return G.getFillerOffset=fa,G}(p),k=p.createContainerElement(x,null);return p.insert(p.createPositionAt(k,0),Z),l.bindElements(b,Z),Z}(Z,p),p,b)}}function Wa(b,r,l){if(!l.consumable.consume(r.item,"attribute:listType"))return;const p=l.mapper.toViewElement(r.item),x=l.writer;x.breakContainer(x.createPositionBefore(p)),x.breakContainer(x.createPositionAfter(p)),x.rename("numbered"==r.attributeNewValue?"ol":"ul",p.parent)}function Fa(b,r,l){const p=l.mapper.toViewElement(r.item).parent,x=l.writer;Ki(x,p,p.nextSibling),Ki(x,p.previousSibling,p);for(const Z of r.item.getChildren())l.consumable.consume(Z,"insert")}function tu(b,r,l){if("listItem"!=r.item.name){let p=l.mapper.toViewPosition(r.range.start);const x=l.writer,Z=[];for(;("ul"==p.parent.name||"ol"==p.parent.name)&&(p=x.breakContainer(p),"li"==p.parent.name);){const k=p,H=x.createPositionAt(p.parent,"end");if(!k.isEqual(H)){const G=x.remove(x.createRange(k,H));Z.push(G)}p=x.createPositionAfter(p.parent)}if(Z.length>0){for(let k=0;k0){const G=Ki(x,H,H.nextSibling);G&&G.parent==H&&p.offset--}}Ki(x,p.nodeBefore,p.nodeAfter)}}}function hc(b,r,l){const p=l.mapper.toViewPosition(r.position);Ki(l.writer,p.nodeBefore,p.nodeAfter)}function hl(b,r,l){if(l.consumable.consume(r.viewItem,{name:!0})){const p=l.writer,x=p.createElement("listItem"),Z=function(rt){let ft=0,Mt=rt.parent;for(;Mt;){if(Mt.is("element","li"))ft++;else{const he=Mt.previousSibling;he&&he.is("element","li")&&ft++}Mt=Mt.parent}return ft}(r.viewItem);p.setAttribute("listIndent",Z,x),p.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",x);const H=l.splitToAllowedParent(x,r.modelCursor);if(!H)return;p.insert(x,H.position);const G=function(rt,ft,Mt){const{writer:he,schema:Je}=Mt;let fn=he.createPositionAfter(rt);for(const Mn of ft)if("ul"==Mn.name||"ol"==Mn.name)fn=Mt.convertItem(Mn,fn).modelCursor;else{const In=Mt.convertItem(Mn,he.createPositionAt(rt,"end")),Qn=In.modelRange.start.nodeAfter;Qn&&Qn.is("element")&&!Je.checkChild(rt,Qn.name)&&(rt=In.modelCursor.parent.is("element","listItem")?In.modelCursor.parent:wh(In.modelCursor),fn=he.createPositionAfter(rt))}return fn}(x,r.viewItem.getChildren(),l);r.modelRange=p.createRange(r.modelCursor,G),r.modelCursor=H.cursorParent?p.createPositionAt(H.cursorParent,0):r.modelRange.end}}function xs(b,r,l){if(l.consumable.test(r.viewItem,{name:!0})){const p=Array.from(r.viewItem.getChildren());for(const x of p)!x.is("element","li")&&!A1(x)&&x._remove()}}function gl(b,r,l){if(l.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const p=[...r.viewItem.getChildren()];let x=!1,Z=!0;for(const k of p)x&&!A1(k)&&k._remove(),k.is("$text")?(Z&&(k._data=k.data.replace(/^\s+/,"")),k.nextSibling&&!A1(k.nextSibling)||(k._data=k.data.replace(/\s+$/,""))):A1(k)&&(x=!0),Z=!1}}function vl(b){return(r,l)=>{if(l.isPhantom)return;const p=l.modelPosition.nodeBefore;if(p&&p.is("element","listItem")){const x=l.mapper.toViewElement(p),Z=x.getAncestors().find(A1),k=b.createPositionAt(x,0).getWalker();for(const H of k){if("elementStart"==H.type&&H.item.is("element","li")){l.viewPosition=H.previousPosition;break}if("elementEnd"==H.type&&H.item==Z){l.viewPosition=H.nextPosition;break}}}}}function cm(b,[r,l]){let p,x=r.is("documentFragment")?r.getChild(0):r;if(p=l?this.createSelection(l):this.document.selection,x&&x.is("element","listItem")){const Z=p.getFirstPosition();let k=null;if(Z.parent.is("element","listItem")?k=Z.parent:Z.nodeBefore&&Z.nodeBefore.is("element","listItem")&&(k=Z.nodeBefore),k){const H=k.getAttribute("listIndent");if(H>0)for(;x&&x.is("element","listItem");)x._setAttribute("listIndent",x.getAttribute("listIndent")+H),x=x.nextSibling}}}function wh(b){const r=new Xc({startPosition:b});let l;do{l=r.next()}while(!l.value.item.is("element","listItem"));return l.value.item}function B2(b,r,l,p,x,Z){const k=Go(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:b,foo:"b"}),H=x.mapper,G=x.writer,rt=k?k.getAttribute("listIndent"):null;let ft;if(k)if(rt==b){const Mt=H.toViewElement(k).parent;ft=G.createPositionAfter(Mt)}else{const Mt=Z.createPositionAt(k,"end");ft=H.toViewPosition(Mt)}else ft=l;ft=Fo(ft);for(const Mt of[...p.getChildren()])A1(Mt)&&(ft=G.move(G.createRangeOn(Mt),ft).end,Ki(G,Mt,Mt.nextSibling),Ki(G,Mt.previousSibling,Mt))}function A1(b){return b.is("element","ol")||b.is("element","ul")}class K0 extends ko{static get pluginName(){return"ListEditing"}static get requires(){return[I_]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const l=r.data,p=r.editing;var x;r.model.document.registerPostFixer(H=>function(G,rt){const ft=G.document.differ.getChanges(),Mt=new Map;let he=!1;for(const In of ft)if("insert"==In.type&&"listItem"==In.name)Je(In.position);else if("insert"==In.type&&"listItem"!=In.name){if("$text"!=In.name){const Qn=In.position.nodeAfter;Qn.hasAttribute("listIndent")&&(rt.removeAttribute("listIndent",Qn),he=!0),Qn.hasAttribute("listType")&&(rt.removeAttribute("listType",Qn),he=!0);for(const Fi of Array.from(G.createRangeIn(Qn)).filter(Ji=>Ji.item.is("element","listItem")))Je(Fi.previousPosition)}Je(In.position.getShiftedBy(In.length))}else"remove"==In.type&&"listItem"==In.name?Je(In.position):("attribute"==In.type&&"listIndent"==In.attributeKey||"attribute"==In.type&&"listType"==In.attributeKey)&&Je(In.range.start);for(const In of Mt.values())fn(In),Mn(In);return he;function Je(In){const Qn=In.nodeBefore;if(Qn&&Qn.is("element","listItem")){let Fi=Qn;if(Mt.has(Fi))return;for(let Ji=Fi.previousSibling;Ji&&Ji.is("element","listItem");Ji=Fi.previousSibling)if(Fi=Ji,Mt.has(Fi))return;Mt.set(Qn,Fi)}else{const Fi=In.nodeAfter;Fi&&Fi.is("element","listItem")&&Mt.set(Fi,Fi)}}function fn(In){let Qn=0,Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Ji>Qn){let Uo;null===Fi?(Fi=Ji-Qn,Uo=Qn):(Fi>Ji&&(Fi=Ji),Uo=Ji-Fi),rt.setAttribute("listIndent",Uo,In),he=!0}else Fi=null,Qn=In.getAttribute("listIndent")+1;In=In.nextSibling}}function Mn(In){let Qn=[],Fi=null;for(;In&&In.is("element","listItem");){const Ji=In.getAttribute("listIndent");if(Fi&&Fi.getAttribute("listIndent")>Ji&&(Qn=Qn.slice(0,Ji+1)),0!=Ji)if(Qn[Ji]){const Uo=Qn[Ji];In.getAttribute("listType")!=Uo&&(rt.setAttribute("listType",Uo,In),he=!0)}else Qn[Ji]=In.getAttribute("listType");Fi=In,In=In.nextSibling}}}(r.model,H)),p.mapper.registerViewToModelLength("li",Ig),l.mapper.registerViewToModelLength("li",Ig),p.mapper.on("modelToViewPosition",vl(p.view)),p.mapper.on("viewToModelPosition",(x=r.model,(H,G)=>{const rt=G.viewPosition,ft=rt.parent,Mt=G.mapper;if("ul"==ft.name||"ol"==ft.name){if(rt.isAtEnd){const he=Mt.toModelElement(rt.nodeBefore),Je=Mt.getModelLength(rt.nodeBefore);G.modelPosition=x.createPositionBefore(he).getShiftedBy(Je)}else{const he=Mt.toModelElement(rt.nodeAfter);G.modelPosition=x.createPositionBefore(he)}H.stop()}else if("li"==ft.name&&rt.nodeBefore&&("ul"==rt.nodeBefore.name||"ol"==rt.nodeBefore.name)){const he=Mt.toModelElement(ft);let Je=1,fn=rt.nodeBefore;for(;fn&&A1(fn);)Je+=Mt.getModelLength(fn),fn=fn.previousSibling;G.modelPosition=x.createPositionBefore(he).getShiftedBy(Je),H.stop()}})),l.mapper.on("modelToViewPosition",vl(p.view)),r.conversion.for("editingDowncast").add(H=>{var G;H.on("insert",tu,{priority:"high"}),H.on("insert:listItem",ca(r.model)),H.on("attribute:listType:listItem",Wa,{priority:"high"}),H.on("attribute:listType:listItem",Fa,{priority:"low"}),H.on("attribute:listIndent:listItem",(G=r.model,(rt,ft,Mt)=>{if(!Mt.consumable.consume(ft.item,"attribute:listIndent"))return;const he=Mt.mapper.toViewElement(ft.item),Je=Mt.writer;Je.breakContainer(Je.createPositionBefore(he)),Je.breakContainer(Je.createPositionAfter(he));const fn=he.parent,Mn=fn.previousSibling,In=Je.createRangeOn(fn);Je.remove(In),Mn&&Mn.nextSibling&&Ki(Je,Mn,Mn.nextSibling),B2(ft.attributeOldValue+1,ft.range.start,In.start,he,Mt,G),to(ft.item,he,Mt,G);for(const Qn of ft.item.getChildren())Mt.consumable.consume(Qn,"insert")})),H.on("remove:listItem",function(G){return(rt,ft,Mt)=>{const he=Mt.mapper.toViewPosition(ft.position).getLastMatchingPosition(Fi=>!Fi.item.is("element","li")).nodeAfter,Je=Mt.writer;Je.breakContainer(Je.createPositionBefore(he)),Je.breakContainer(Je.createPositionAfter(he));const fn=he.parent,Mn=fn.previousSibling,In=Je.createRangeOn(fn),Qn=Je.remove(In);Mn&&Mn.nextSibling&&Ki(Je,Mn,Mn.nextSibling),B2(Mt.mapper.toModelElement(he).getAttribute("listIndent")+1,ft.position,In.start,he,Mt,G);for(const Fi of Je.createRangeIn(Qn).getItems())Mt.mapper.unbindViewElement(Fi);rt.stop()}}(r.model)),H.on("remove",hc,{priority:"low"})}),r.conversion.for("dataDowncast").add(H=>{H.on("insert",tu,{priority:"high"}),H.on("insert:listItem",ca(r.model))}),r.conversion.for("upcast").add(H=>{H.on("element:ul",xs,{priority:"high"}),H.on("element:ol",xs,{priority:"high"}),H.on("element:li",gl,{priority:"high"}),H.on("element:li",hl)}),r.model.on("insertContent",cm,{priority:"high"}),r.commands.add("numberedList",new pn(r,"numbered")),r.commands.add("bulletedList",new pn(r,"bulleted")),r.commands.add("indentList",new fi(r,"forward")),r.commands.add("outdentList",new fi(r,"backward"));const Z=p.view.document;this.listenTo(Z,"enter",(H,G)=>{const rt=this.editor.model.document,ft=rt.selection.getLastPosition().parent;rt.selection.isCollapsed&&"listItem"==ft.name&&ft.isEmpty&&(this.editor.execute("outdentList"),G.preventDefault(),H.stop())}),this.listenTo(Z,"delete",(H,G)=>{if("backward"!==G.direction)return;const rt=this.editor.model.document.selection;if(!rt.isCollapsed)return;const ft=rt.getFirstPosition();if(!ft.isAtStart)return;const Mt=ft.parent;"listItem"===Mt.name&&(Mt.previousSibling&&"listItem"===Mt.previousSibling.name||(this.editor.execute("outdentList"),G.preventDefault(),H.stop()))},{priority:"high"});const k=H=>(G,rt)=>{this.editor.commands.get(H).isEnabled&&(this.editor.execute(H),rt())};r.keystrokes.set("Tab",k("indentList")),r.keystrokes.set("Shift+Tab",k("outdentList"))}afterInit(){const r=this.editor.commands,l=r.get("indent"),p=r.get("outdent");l&&l.registerChildCommand(r.get("indentList")),p&&p.registerChildCommand(r.get("outdentList"))}}function Ig(b){let r=1;for(const l of b.getChildren())if("ul"==l.name||"ol"==l.name)for(const p of l.getChildren())r+=Ig(p);return r}class s6 extends ko{init(){const r=this.editor.t;da(this.editor,"numberedList",r("Numbered List"),''),da(this.editor,"bulletedList",r("Bulleted List"),'')}}function qg(b,r){return p=>{p.on("attribute:url:media",l)};function l(p,x,Z){if(!Z.consumable.consume(x.item,p.name))return;const k=x.attributeNewValue,H=Z.writer,G=Z.mapper.toViewElement(x.item),rt=[...G.getChildren()].find(Mt=>Mt.getCustomProperty("media-content"));H.remove(rt);const ft=b.getMediaViewElement(H,k,r);H.insert(H.createPositionAt(G,0),ft)}}function o0(b,r,l,p){const x=b.createContainerElement("figure",{class:"media"});return b.insert(b.createPositionAt(x,0),r.getMediaViewElement(b,l,p)),x}function a0(b){const r=b.getSelectedElement();return r&&r.is("element","media")?r:null}function X0(b,r,l){b.change(p=>{const x=p.createElement("media",{url:r});b.insertContent(x,l),p.setSelection(x,"on")})}class r0 extends tr{refresh(){const r=this.editor.model,l=r.document.selection,p=r.schema,x=l.getFirstPosition(),Z=a0(l);let k=x.parent;k!=k.root&&(k=k.parent),this.value=Z?Z.getAttribute("url"):null,this.isEnabled=p.checkChild(k,"media")}execute(r){const l=this.editor.model,p=l.document.selection,x=a0(p);if(x)l.change(Z=>{Z.setAttribute("url",r,x)});else{const Z=J1(p,l);X0(l,r,Z)}}}class t4{constructor(r,l){const p=l.providers,x=l.extraProviders||[],Z=new Set(l.removeProviders),k=p.concat(x).filter(H=>{const G=H.name;return G?!Z.has(G):(console.warn(Object(jn.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:H}),!1)});this.locale=r,this.providerDefinitions=k}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,l,p){return this._getMedia(l).getViewElement(r,p)}_getMedia(r){if(!r)return new c6(this.locale);r=r.trim();for(const l of this.providerDefinitions){const p=l.html;let x=l.url;Array.isArray(x)||(x=[x]);for(const Z of x){const k=this._getUrlMatches(r,Z);if(k)return new c6(this.locale,r,k,p)}}return null}_getUrlMatches(r,l){let p=r.match(l);if(p)return p;let x=r.replace(/^https?:\/\//,"");return p=x.match(l),p||(x=x.replace(/^www\./,""),p=x.match(l),p||null)}}class c6{constructor(r,l,p,x){this.url=this._getValidUrl(l),this._t=r.t,this._match=p,this._previewRenderer=x}getViewElement(r,l){const p={};let x;if(l.renderForEditingView||l.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(p["data-oembed-url"]=this.url),l.renderForEditingView&&(p.class="ck-media__wrapper");const Z=this._getPreviewHtml(l);x=r.createRawElement("div",p,function(k){k.innerHTML=Z})}else this.url&&(p.url=this.url),x=r.createEmptyElement("oembed",p);return r.setCustomProperty("media-content",!0,x),x}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new y3,l=new Kp;return r.text=this._t("Open media in new tab"),l.content='',l.viewBox="0 0 64 42",new g1({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[l]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},r]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}d(80);class Bd extends ko{static get pluginName(){return"MediaEmbedEditing"}constructor(r){super(r),r.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:l=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:l=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:l=>`
`},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:l=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new t4(r.locale,r.config.get("mediaEmbed"))}init(){const r=this.editor,l=r.model.schema,p=r.t,x=r.conversion,Z=r.config.get("mediaEmbed.previewsInData"),k=this.registry;r.commands.add("mediaEmbed",new r0(r)),l.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),x.for("dataDowncast").elementToElement({model:"media",view:(H,G)=>{const rt=H.getAttribute("url");return o0(G,k,rt,{renderMediaPreview:rt&&Z})}}),x.for("dataDowncast").add(qg(k,{renderMediaPreview:Z})),x.for("editingDowncast").elementToElement({model:"media",view:(H,G)=>{const rt=H.getAttribute("url");return Mt=o0(G,k,rt,{renderForEditingView:!0}),he=G,Je=p("media widget"),he.setCustomProperty("media",!0,Mt),Rd(Mt,he,{label:Je});var Mt,he,Je}}),x.for("editingDowncast").add(qg(k,{renderForEditingView:!0})),x.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(H,G)=>{const rt=H.getAttribute("url");if(k.hasMedia(rt))return G.createElement("media",{url:rt})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(H,G)=>{const rt=H.getAttribute("data-oembed-url");if(k.hasMedia(rt))return G.createElement("media",{url:rt})}})}}const Rg=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;class s0 extends ko{static get requires(){return[qm,bg]}static get pluginName(){return"AutoMediaEmbed"}constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}init(){const r=this.editor,l=r.model.document;this.listenTo(r.plugins.get(qm),"inputTransformation",()=>{const p=l.selection.getFirstRange(),x=tl.fromPosition(p.start);x.stickiness="toPrevious";const Z=tl.fromPosition(p.end);Z.stickiness="toNext",l.once("change:data",()=>{this._embedMediaBetweenPositions(x,Z),x.detach(),Z.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(ht.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,l){const p=this.editor,x=p.plugins.get(Bd).registry,Z=new Np(r,l),k=Z.getWalker({ignoreElementEnd:!0});let H="";for(const G of k)G.item.is("$textProxy")&&(H+=G.item.data);H=H.trim(),H.match(Rg)&&x.hasMedia(H)&&p.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=tl.fromPosition(r),this._timeoutId=ht.window.setTimeout(()=>{p.model.change(G=>{let rt;this._timeoutId=null,G.remove(Z),Z.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(rt=this._positionToInsert),X0(p.model,H,rt),this._positionToInsert.detach(),this._positionToInsert=null})},100)):Z.detach()}}d(82);class $1 extends Ca{constructor(r,l){super(l);const p=l.t;this.focusTracker=new Zc,this.keystrokes=new Od,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(p("Save"),ch,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(p("Cancel"),F2,"ck-button-cancel","cancel"),this._focusables=new Eu,this._focusCycler=new Qp({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),E2({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element);const r=l=>l.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(this.urlInputView.element,"selectstart",(l,p)=>{p.stopPropagation()},{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const l=r(this);if(l)return this.urlInputView.errorText=l,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,l=new F_(this.locale,kg),p=l.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),l.label=r("Media URL"),l.infoText=this._urlInputViewInfoDefault,p.placeholder="https://example.com",p.on("input",()=>{l.infoText=p.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),l}_createButton(r,l,p,x){const Z=new qs(this.locale);return Z.set({label:r,icon:l,tooltip:!0}),Z.extendTemplate({attributes:{class:p}}),x&&Z.delegate("execute").to(this,x),Z}}class wp extends ko{static get requires(){return[Bd]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,l=r.commands.get("mediaEmbed"),p=r.plugins.get(Bd).registry;r.ui.componentFactory.add("mediaEmbed",x=>{const Z=v1(x),k=new $1((H=r.t,G=p,[rt=>{if(!rt.url.length)return H("The URL must not be empty.")},rt=>{if(!G.hasMedia(rt.url))return H("This media URL is not supported.")}]),r.locale);var H,G;return this._setUpDropdown(Z,k,l,r),this._setUpForm(Z,k,l),Z})}_setUpDropdown(r,l,p){const x=this.editor,Z=x.t,k=r.buttonView;function H(){x.editing.view.focus(),r.isOpen=!1}r.bind("isEnabled").to(p),r.panelView.children.add(l),k.set({label:Z("Insert media"),icon:'',tooltip:!0}),k.on("open",()=>{l.url=p.value||"",l.urlInputView.fieldView.select(),l.focus()},{priority:"low"}),r.on("submit",()=>{l.isValid()&&(x.execute("mediaEmbed",l.url),H())}),r.on("change:isOpen",()=>l.resetFormStatus()),r.on("cancel",()=>H())}_setUpForm(r,l,p){l.delegate("submit","cancel").to(r),l.urlInputView.bind("value").to(p,"value"),l.urlInputView.bind("isReadOnly").to(p,"isEnabled",x=>!x),l.saveButtonView.bind("isEnabled").to(p)}}function n4(b,r,l){const p=r.parent,x=l.createElement(b.type),Z=p.getChildIndex(r)+1;return l.insertChild(Z,x,p),x}function Hg(b){const r={},l=b.getStyle("mso-list");if(l){const p=l.match(/(^|\s+)l(\d+)/i),x=l.match(/\s*lfo(\d+)/i),Z=l.match(/\s*level(\d+)/i);p&&x&&Z&&(r.id=p[2],r.order=x[1],r.indent=Z[1])}return r}d(84);const Yg=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class c0{constructor(r){this.document=r}isActive(r){return Yg.test(r)}execute(r){const l=new hh(this.document);(function(p,x){for(const Z of p.getChildren())if(Z.is("element","b")&&"normal"===Z.getStyle("font-weight")){const k=p.getChildIndex(Z);x.remove(Z),x.insertChild(k,Z.getChildren(),p)}})(r.content,l),function(p,x){for(const Z of x.createRangeIn(p)){const k=Z.item;if(k.is("element","li")){const H=k.getChild(0);H.is("element","p")&&x.unwrapElement(H)}}}(r.content,l)}}function l6(b){return b.replace(/(\s+)<\/span>/g,(r,l)=>1===l.length?" ":Array(l.length+1).join("\xa0 ").substr(0,l.length))}const J2=//i,i4=/xmlns:o="urn:schemas-microsoft-com/i;class o4{constructor(r){this.document=r}isActive(r){return J2.test(r)||i4.test(r)}execute(r){const{body:l,stylesString:p}=function zg(b,r){const l=new DOMParser,p=l6(l6(function(G){const rt=G.match(/<\/body>(.*?)(<\/html>|$)/);return rt&&rt[1]&&(G=G.slice(0,rt.index)+G.slice(rt.index).replace(rt[1],"")),G}(b=b.replace(//)>-1||t[O].search(/\]>/)>-1||t[O].search(/!DOCTYPE/)>-1)&&(U=!1)):t[O].search(/-->/)>-1||t[O].search(/\]>/)>-1?(P+=t[O],U=!1):/^<\w/.exec(t[O-1])&&/^<\/\w/.exec(t[O])&&/^<[\w:\-\.\,]+/.exec(t[O-1])==/^<\/[\w:\-\.\,]+/.exec(t[O])[0].replace("/","")?(P+=t[O],U||w--):t[O].search(/<\w/)>-1&&-1==t[O].search(/<\//)&&-1==t[O].search(/\/>/)?P=P+=U?t[O]:L[w++]+t[O]:t[O].search(/<\w/)>-1&&t[O].search(/<\//)>-1?P=P+=U?t[O]:L[w]+t[O]:t[O].search(/<\//)>-1?P=P+=U?t[O]:L[--w]+t[O]:t[O].search(/\/>/)>-1?P=P+=U?t[O]:L[w]+t[O]:t[O].search(/<\?/)>-1||t[O].search(/xmlns\:/)>-1||t[O].search(/xmlns\=/)>-1?P+=L[w]+t[O]:P+=t[O];return"\n"==P[0]?P.slice(1):P},f.prototype.json=function(v,t){return t=t||this.step,typeof JSON>"u"?v:"string"==typeof v?JSON.stringify(JSON.parse(v),null,t):"object"==typeof v?JSON.stringify(v,null,t):v},f.prototype.css=function(v,g){var t=v.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),T=t.length,U=0,w="",P=0,O=g?W(g):this.shift;for(P=0;P/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},f.prototype.jsonmin=function(v){return typeof JSON>"u"?v:JSON.stringify(JSON.parse(v),null,0)},f.prototype.cssmin=function(v,g){return(g?v:v.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},f.prototype.sqlmin=function(v){return v.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},tt.exports=new f},67824:(tt,W,f)=>{"use strict";function u(d){for(var v in d)W.hasOwnProperty(v)||(W[v]=d[v])}Object.defineProperty(W,"__esModule",{value:!0}),u(f(95085)),u(f(26243)),u(f(91786)),u(f(30225)),u(f(76767)),u(f(30345)),u(f(15675)),u(f(86461)),u(f(58802)),u(f(33900)),u(f(88866)),u(f(94655)),u(f(4068)),u(f(33858)),u(f(98237)),u(f(83292))},95085:function(tt,W,f){"use strict";var t,u=this&&this.__extends||(t=function(T,U){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,P){w.__proto__=P}||function(w,P){for(var O in P)P.hasOwnProperty(O)&&(w[O]=P[O])})(T,U)},function(T,U){function w(){this.constructor=T}t(T,U),T.prototype=null===U?Object.create(U):(w.prototype=U.prototype,new w)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(15675),v=function(t){function T(U){var w=t.call(this)||this,O=U;return O.trigger&&(w.trigger=O.trigger),O.kick&&(w.kick=O.kick),O.drag&&(w.drag=O.drag),O.on&&(w.on=O.on),w.dragstart=w.dragStart=d.Layout.dragStart,w.dragend=w.dragEnd=d.Layout.dragEnd,w}return u(T,t),T.prototype.trigger=function(U){},T.prototype.kick=function(){},T.prototype.drag=function(){},T.prototype.on=function(U,w){return this},T}(d.Layout);W.LayoutAdaptor=v,W.adaptor=function g(t){return new v(t)}},83292:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(15675),d=f(76767);W.gridify=function v(T,U,w,P){T.cola.start(0,0,0,10,!1);var O=function g(T,U,w,P){T.forEach(function(L){L.routerNode={name:L.name,bounds:L.bounds.inflate(-w)}}),U.forEach(function(L){L.routerNode={bounds:L.bounds.inflate(-P),children:(typeof L.groups<"u"?L.groups.map(function(N){return T.length+N.id}):[]).concat(typeof L.leaves<"u"?L.leaves.map(function(N){return N.index}):[])}});var O=T.concat(U).map(function(L,N){return L.routerNode.id=N,L.routerNode});return new d.GridRouter(O,{getChildren:function(L){return L.children},getBounds:function(L){return L.bounds}},w-P)}(T.cola.nodes(),T.cola.groups(),w,P);return O.routeEdges(T.powerGraph.powerEdges,U,function(L){return L.source.routerNode.id},function(L){return L.target.routerNode.id})},W.powerGraphGridLayout=function t(T,U,w){var P;T.nodes.forEach(function(B,K){return B.index=K}),(new u.Layout).avoidOverlaps(!1).nodes(T.nodes).links(T.links).powerGraphGroups(function(B){(P=B).groups.forEach(function(K){return K.padding=w})});var O=T.nodes.length,L=[],N=T.nodes.slice(0);return N.forEach(function(B,K){return B.index=K}),P.groups.forEach(function(B){var K=B.index=B.id+O;N.push(B),typeof B.leaves<"u"&&B.leaves.forEach(function(et){return L.push({source:K,target:et.index})}),typeof B.groups<"u"&&B.groups.forEach(function(et){return L.push({source:K,target:et.id+O})})}),P.powerEdges.forEach(function(B){L.push({source:B.source.index,target:B.target.index})}),(new u.Layout).size(U).nodes(N).links(L).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new u.Layout).convergenceThreshold(.001).size(U).avoidOverlaps(!0).nodes(T.nodes).links(T.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(B){(P=B).groups.forEach(function(K){K.padding=w})}).start(50,0,100,0,!1),powerGraph:P}}},26243:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(49346),d=f(22487);W.d3adaptor=function v(t){return!t||function g(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new u.D3StyleLayoutAdaptor:new d.D3StyleLayoutAdaptor(t)}},49346:function(tt,W,f){"use strict";var t,u=this&&this.__extends||(t=function(T,U){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,P){w.__proto__=P}||function(w,P){for(var O in P)P.hasOwnProperty(O)&&(w[O]=P[O])})(T,U)},function(T,U){function w(){this.constructor=T}t(T,U),T.prototype=null===U?Object.create(U):(w.prototype=U.prototype,new w)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(15675),v=function(t){function T(){var U=t.call(this)||this;U.event=d3.dispatch(d.EventType[d.EventType.start],d.EventType[d.EventType.tick],d.EventType[d.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=d3.behavior.drag().origin(d.Layout.dragOrigin).on("dragstart.d3adaptor",d.Layout.dragStart).on("drag.d3adaptor",function(L){d.Layout.drag(L,d3.event),w.resume()}).on("dragend.d3adaptor",d.Layout.dragEnd);if(!arguments.length)return O;this.call(O)},U}return u(T,t),T.prototype.trigger=function(U){var w={type:d.EventType[U.type],alpha:U.alpha,stress:U.stress};this.event[w.type](w)},T.prototype.kick=function(){var U=this;d3.timer(function(){return t.prototype.tick.call(U)})},T.prototype.on=function(U,w){return this.event.on("string"==typeof U?U:d.EventType[U],w),this},T}(d.Layout);W.D3StyleLayoutAdaptor=v,W.d3adaptor=function g(){return new v}},22487:function(tt,W,f){"use strict";var g,u=this&&this.__extends||(g=function(t,T){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,w){U.__proto__=w}||function(U,w){for(var P in w)w.hasOwnProperty(P)&&(U[P]=w[P])})(t,T)},function(t,T){function U(){this.constructor=t}g(t,T),t.prototype=null===T?Object.create(T):(U.prototype=T.prototype,new U)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(15675),v=function(g){function t(T){var U=g.call(this)||this;U.d3Context=T,U.event=T.dispatch(d.EventType[d.EventType.start],d.EventType[d.EventType.tick],d.EventType[d.EventType.end]);var w=U;return U.drag=function(){if(!O)var O=T.drag().subject(d.Layout.dragOrigin).on("start.d3adaptor",d.Layout.dragStart).on("drag.d3adaptor",function(L){d.Layout.drag(L,T.event),w.resume()}).on("end.d3adaptor",d.Layout.dragEnd);if(!arguments.length)return O;arguments[0].call(O)},U}return u(t,g),t.prototype.trigger=function(T){var U={type:d.EventType[T.type],alpha:T.alpha,stress:T.stress};this.event.call(U.type,U)},t.prototype.kick=function(){var T=this,U=this.d3Context.timer(function(){return g.prototype.tick.call(T)&&U.stop()})},t.prototype.on=function(T,U){return this.event.on("string"==typeof T?T:d.EventType[T],U),this},t}(d.Layout);W.D3StyleLayoutAdaptor=v},91786:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function(){function v(){this.locks={}}return v.prototype.add=function(g,t){this.locks[g]=t},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var g in this.locks)return!1;return!0},v.prototype.apply=function(g){for(var t in this.locks)g(Number(t),this.locks[t])},v}();W.Locks=f;var u=function(){function v(g,t,T){void 0===T&&(T=null),this.D=t,this.G=T,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new d,this.project=null,this.x=g,this.k=g.length;var U=this.n=g[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new f,this.minD=Number.MAX_VALUE;for(var P,w=U;w--;)for(P=U;--P>w;){var O=t[w][P];O>0&&O1e-9)break;var lt=this.offsetDir();for(U=0;U1&&Ct>Dt||!isFinite(Dt)){for(U=0;U1&&(Zt=1);var Rt=Dt*Dt,Gt=2*Zt*(Ct-Dt)/(Rt*Ct),Tt=Ct*Ct*Ct,Ut=2*-Zt/(Rt*Tt);for(isFinite(Gt)||console.log(Gt),U=0;U0?le-(ge+1)*mt:le-(ge-1)*mt)&&ct<=bt&&(this.scaleSnapByMaxH?(this.g[U][N]+=L*Bt*ct,this.H[U][N][N]+=L*Bt):(this.g[U][N]+=Bt*ct,this.H[U][N][N]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(qe,je){for(U=0;U0;)for(var w=t;w-- >0;)T(U,w)},v.prototype.matrixApply=function(g){v.mApply(this.k,this.n,g)},v.prototype.computeNextPosition=function(g,t){var T=this;this.computeDerivatives(g);var U=this.computeStepSize(this.g);if(this.stepAndProject(g,t,this.g,U),this.project){this.matrixApply(function(P,O){return T.e[P][O]=g[P][O]-t[P][O]});var w=this.computeStepSize(this.e);w=Math.max(.2,Math.min(w,1)),this.stepAndProject(g,t,this.e,w)}},v.prototype.run=function(g){for(var t=Number.MAX_VALUE,T=!1;!T&&g-- >0;){var U=this.rungeKutta();T=Math.abs(t/U-1)>16)/this.range},v.prototype.getNextBetween=function(g,t){return g+this.getNext()*(t-g)},v}();W.PseudoRandom=d},30225:function(tt,W,f){"use strict";var be,u=this&&this.__extends||(be=function(ge,Fe){return(be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,je){qe.__proto__=je}||function(qe,je){for(var Qt in je)je.hasOwnProperty(Qt)&&(qe[Qt]=je[Qt])})(ge,Fe)},function(ge,Fe){function qe(){this.constructor=ge}be(ge,Fe),ge.prototype=null===Fe?Object.create(Fe):(qe.prototype=Fe.prototype,new qe)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(4068),v=function be(){};W.Point=v;var g=function be(ge,Fe,qe,je){this.x1=ge,this.y1=Fe,this.x2=qe,this.y2=je};W.LineSegment=g;var t=function(be){function ge(){return null!==be&&be.apply(this,arguments)||this}return u(ge,be),ge}(v);function T(be,ge,Fe){return(ge.x-be.x)*(Fe.y-be.y)-(Fe.x-be.x)*(ge.y-be.y)}function U(be,ge,Fe){return T(be,ge,Fe)>0}function w(be,ge,Fe){return T(be,ge,Fe)<0}function B(be,ge){var Fe=ge.slice(0);return Fe.push(ge[0]),{rtan:K(be,Fe),ltan:et(be,Fe)}}function K(be,ge){var qe,je,Qt,ie,Fe=ge.length-1;if(w(be,ge[1],ge[0])&&!U(be,ge[Fe-1],ge[0]))return 0;for(qe=0,je=Fe;;){if(je-qe==1)return U(be,ge[qe],ge[je])?qe:je;if((ie=w(be,ge[(Qt=Math.floor((qe+je)/2))+1],ge[Qt]))&&!U(be,ge[Qt-1],ge[Qt]))return Qt;U(be,ge[qe+1],ge[qe])?ie||U(be,ge[qe],ge[Qt])?je=Qt:qe=Qt:ie&&w(be,ge[qe],ge[Qt])?je=Qt:qe=Qt}}function et(be,ge){var qe,je,Qt,ie,Fe=ge.length-1;if(U(be,ge[Fe-1],ge[0])&&!w(be,ge[1],ge[0]))return 0;for(qe=0,je=Fe;;){if(je-qe==1)return w(be,ge[qe],ge[je])?qe:je;if(ie=w(be,ge[(Qt=Math.floor((qe+je)/2))+1],ge[Qt]),U(be,ge[Qt-1],ge[Qt])&&!ie)return Qt;w(be,ge[qe+1],ge[qe])?ie?w(be,ge[qe],ge[Qt])?je=Qt:qe=Qt:je=Qt:ie?qe=Qt:U(be,ge[qe],ge[Qt])?je=Qt:qe=Qt}}function ct(be,ge,Fe,qe,je,Qt){var Ue,ie;ie=qe(be[Ue=Fe(ge[0],be)],ge);for(var Wt=!1;!Wt;){for(Wt=!0;Ue===be.length-1&&(Ue=0),!je(ge[ie],be[Ue],be[Ue+1]);)++Ue;for(;0===ie&&(ie=ge.length-1),!Qt(be[Ue],ge[ie],ge[ie-1]);)--ie,Wt=!1}return{t1:Ue,t2:ie}}function Ct(be,ge){return ct(be,ge,K,et,U,w)}W.PolyPoint=t,W.isLeft=T,W.ConvexHull=function P(be){var qe,ge=be.slice(0).sort(function(De,nn){return De.x!==nn.x?nn.x-De.x:nn.y-De.y}),Fe=be.length,Qt=ge[0].x;for(qe=1;qe=0&&ge[qe].x===Xt;qe--);for(Wt=qe+1,qe=Ue;++qe<=Wt;)if(!(T(ge[0],ge[Wt],ge[qe])>=0&&qe1&&!(T(ie[ie.length-2],ie[ie.length-1],ge[qe])>0);)ie.length-=1;0!=qe&&ie.push(ge[qe])}se!=Wt&&ie.push(ge[se]);var ae=ie.length;for(qe=Wt;--qe>=Ue;)if(!(T(ge[se],ge[Ue],ge[qe])>=0&&qe>Ue)){for(;ie.length>ae&&!(T(ie[ie.length-2],ie[ie.length-1],ge[qe])>0);)ie.length-=1;0!=qe&&ie.push(ge[qe])}}return ie},W.clockwiseRadialSweep=function O(be,ge,Fe){ge.slice(0).sort(function(qe,je){return Math.atan2(qe.y-be.y,qe.x-be.x)-Math.atan2(je.y-be.y,je.x-be.x)}).forEach(Fe)},W.tangent_PolyPolyC=ct,W.LRtangent_PolyPolyC=function lt(be,ge){var Fe=Ct(ge,be);return{t1:Fe.t2,t2:Fe.t1}},W.RLtangent_PolyPolyC=Ct,W.LLtangent_PolyPolyC=function Dt(be,ge){return ct(be,ge,et,et,w,w)},W.RRtangent_PolyPolyC=function Zt(be,ge){return ct(be,ge,K,K,U,U)};var Rt=function be(ge,Fe){this.t1=ge,this.t2=Fe};W.BiTangent=Rt;var Gt=function be(){};W.BiTangents=Gt;var Tt=function(be){function ge(){return null!==be&&be.apply(this,arguments)||this}return u(ge,be),ge}(v);W.TVGPoint=Tt;var Ut=function be(ge,Fe,qe,je){this.id=ge,this.polyid=Fe,this.polyvertid=qe,this.p=je,je.vv=this};W.VisibilityVertex=Ut;var bt=function(){function be(ge,Fe){this.source=ge,this.target=Fe}return be.prototype.length=function(){var ge=this.source.p.x-this.target.p.x,Fe=this.source.p.y-this.target.p.y;return Math.sqrt(ge*ge+Fe*Fe)},be}();W.VisibilityEdge=bt;var mt=function(){function be(ge,Fe){if(this.P=ge,this.V=[],this.E=[],Fe)this.V=Fe.V.slice(0),this.E=Fe.E.slice(0);else{for(var qe=ge.length,je=0;je0&&this.E.push(new bt(Qt[Ue-1].vv,Wt))}Qt.length>1&&this.E.push(new bt(Qt[0].vv,Qt[Qt.length-1].vv))}for(je=0;je0)return!0;return!1},be}();function Lt(be,ge){for(var Fe=[],qe=1,je=ge.length;qe=0&&hn>=0&&Ce<0&&bn>=0&&Oe>=0&&dn<0?je.ll=new Rt(Qt,Ue):nn<=0&&hn<=0&&Ce>0&&bn<=0&&Oe<=0&&dn>0?je.rr=new Rt(Qt,Ue):nn<=0&&hn>0&&Ce<=0&&bn>=0&&Oe<0&&dn>=0?je.rl=new Rt(Qt,Ue):nn>=0&&hn<0&&Ce>=0&&bn<=0&&Oe>0&&dn<=0&&(je.lr=new Rt(Qt,Ue))}return je}function le(be,ge){return!be.every(function(Fe){return!function kt(be,ge){for(var Fe=1,qe=ge.length;Fe0)return!0}return!1}},76767:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(4068),d=f(98237),v=f(33858),g=function w(P,O,L){this.id=P,this.rect=O,this.children=L,this.leaf=typeof L>"u"||0===L.length};W.NodeWrapper=g;var t=function w(P,O,L,N,B){void 0===N&&(N=null),void 0===B&&(B=null),this.id=P,this.x=O,this.y=L,this.node=N,this.line=B};W.Vert=t;var T=function(){function w(P,O){this.s=P,this.t=O;var L=w.findMatch(P,O),N=O.slice(0).reverse(),B=w.findMatch(P,N);L.length>=B.length?(this.length=L.length,this.si=L.si,this.ti=L.ti,this.reversed=!1):(this.length=B.length,this.si=B.si,this.ti=O.length-B.ti-B.length,this.reversed=!0)}return w.findMatch=function(P,O){for(var L=P.length,N=O.length,B={length:0,si:-1,ti:-1},K=new Array(L),et=0;etB.length&&(B.length=lt,B.si=et-lt+1,B.ti=ct-lt+1)}else K[et][ct]=0}return B},w.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},w}();W.LongestCommonSubsequence=T;var U=function(){function w(P,O,L){var N=this;void 0===L&&(L=12),this.originalnodes=P,this.groupPadding=L,this.leaves=null,this.nodes=P.map(function(Tt,Ut){return new g(Ut,O.getBounds(Tt),O.getChildren(Tt))}),this.leaves=this.nodes.filter(function(Tt){return Tt.leaf}),this.groups=this.nodes.filter(function(Tt){return!Tt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(Tt){return Tt.children.forEach(function(Ut){return N.nodes[Ut].parent=Tt})}),this.root={children:[]},this.nodes.forEach(function(Tt){typeof Tt.parent>"u"&&(Tt.parent=N.root,N.root.children.push(Tt.id)),Tt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(Tt,Ut){return N.getDepth(Tt)-N.getDepth(Ut)}),this.backToFront.slice(0).reverse().filter(function(Tt){return!Tt.leaf}).forEach(function(Tt){var Ut=u.Rectangle.empty();Tt.children.forEach(function(bt){return Ut=Ut.union(N.nodes[bt].rect)}),Tt.rect=Ut.inflate(N.groupPadding)});var K=this.midPoints(this.cols.map(function(Tt){return Tt.pos})),et=this.midPoints(this.rows.map(function(Tt){return Tt.pos})),ct=K[0],lt=K[K.length-1],Ct=et[0],Dt=et[et.length-1],Zt=this.rows.map(function(Tt){return{x1:ct,x2:lt,y1:Tt.pos,y2:Tt.pos}}).concat(et.map(function(Tt){return{x1:ct,x2:lt,y1:Tt,y2:Tt}})),Rt=this.cols.map(function(Tt){return{x1:Tt.pos,x2:Tt.pos,y1:Ct,y2:Dt}}).concat(K.map(function(Tt){return{x1:Tt,x2:Tt,y1:Ct,y2:Dt}})),Gt=Zt.concat(Rt);Gt.forEach(function(Tt){return Tt.verts=[]}),this.verts=[],this.edges=[],Zt.forEach(function(Tt){return Rt.forEach(function(Ut){var bt=new t(N.verts.length,Ut.x1,Tt.y1);Tt.verts.push(bt),Ut.verts.push(bt),N.verts.push(bt);for(var mt=N.backToFront.length;mt-- >0;){var Lt=N.backToFront[mt],Bt=Lt.rect,kt=Math.abs(bt.x-Bt.cx()),le=Math.abs(bt.y-Bt.cy());if(kt0;){var N=L.filter(function(K){return K.rect["overlap"+P.toUpperCase()](L[0].rect)}),B={nodes:N,pos:this.avg(N.map(function(K){return K.rect["c"+P]()}))};O.push(B),B.nodes.forEach(function(K){return L.splice(L.indexOf(K),1)})}return O.sort(function(K,et){return K.pos-et.pos}),O},w.prototype.getDepth=function(P){for(var O=0;P.parent!==this.root;)O++,P=P.parent;return O},w.prototype.midPoints=function(P){for(var O=P[1]-P[0],L=[P[0]-O/2],N=1;N.1)&&Ct.push(Dt={pos:ct[0][O],segments:[]}),Dt.segments.push(ct)}return Ct},w.nudgeSegs=function(P,O,L,N,B,K){var et=N.length;if(!(et<=1)){for(var ct=N.map(function(Lt){return new d.Variable(Lt[0][P])}),lt=[],Ct=0;Ct=0&<.push(new d.Constraint(ct[Ut],ct[bt],K))}new d.Solver(ct,lt).solve(),ct.forEach(function(Lt,Bt){var kt=N[Bt],le=Lt.position();kt[0][P]=kt[1][P]=le;var Vt=L[kt.edgeid];kt.i>0&&(Vt[kt.i-1][1][P]=le),kt.iMath.PI||B<-Math.PI)&&(B=N-L),B},w.isLeft=function(P,O,L){return(O.x-P.x)*(L.y-P.y)-(O.y-P.y)*(L.x-P.x)<=0},w.getOrder=function(P){for(var O={},L=0;L"u"&&(O[N.l]={}),O[N.l][N.r]=!0}return function(B,K){return typeof O[B]<"u"&&O[B][K]}},w.orderEdges=function(P){for(var O=[],L=0;L=B.length||et.ti+et.length>=K.length)){O.push({l:L,r:N});continue}et.si+et.length>=B.length||et.ti+et.length>=K.length?(ct=B[et.si+1],Ct=B[et.si-1],lt=K[et.ti-1]):(ct=B[et.si+et.length-2],lt=B[et.si+et.length],Ct=K[et.ti+et.length]),w.isLeft(ct,lt,Ct)?O.push({l:N,r:L}):O.push({l:L,r:N})}}return w.getOrder(O)},w.makeSegments=function(P){function O(lt){return{x:lt.x,y:lt.y}}for(var N=[],B=O(P[0]),K=1;K1&&be>1?1e3:0}).reverse().map(function(bt){return L.verts[bt]});return Ut.push(this.nodes[B.id].ports[0]),Ut.filter(function(bt,mt){return!(mt0&&bt.node===B&&Ut[mt-1].node===B)})},w.getRoutePath=function(P,O,L,N){var et,ct,lt,Vt,be,B={routepath:"M "+P[0][0].x+" "+P[0][0].y+" ",arrowpath:""};if(P.length>1)for(var K=0;K0?ct-=Ct/Math.abs(Ct)*O:lt-=Dt/Math.abs(Dt)*O,B.routepath+="L "+ct+" "+lt+" ";var Zt=P[K+1],Rt=Zt[0].x,Gt=Zt[0].y;Ct=Zt[1].x-Rt,Dt=Zt[1].y-Gt;var mt,Lt,bt=w.angleBetween2Lines(et,Zt)<0?1:0;Math.abs(Ct)>0?(mt=Rt+Ct/Math.abs(Ct)*O,Lt=Gt):(mt=Rt,Lt=Gt+Dt/Math.abs(Dt)*O);var Bt=Math.abs(mt-ct),kt=Math.abs(Lt-lt);B.routepath+="A "+Bt+" "+kt+" 0 0 "+bt+" "+mt+" "+Lt+" "}else{var le=[ct,lt];Math.abs(Ct)>0?(Vt=[ct-=Ct/Math.abs(Ct)*N,lt+L],be=[ct,lt-L]):(Vt=[ct+L,lt-=Dt/Math.abs(Dt)*N],be=[ct-L,lt]),B.routepath+="L "+ct+" "+lt+" ",N>0&&(B.arrowpath="M "+le[0]+" "+le[1]+" L "+Vt[0]+" "+Vt[1]+" L "+be[0]+" "+be[1])}}else Ct=(ct=(et=P[0])[1].x)-et[0].x,Dt=(lt=et[1].y)-et[0].y,le=[ct,lt],Math.abs(Ct)>0?(Vt=[ct-=Ct/Math.abs(Ct)*N,lt+L],be=[ct,lt-L]):(Vt=[ct+L,lt-=Dt/Math.abs(Dt)*N],be=[ct-L,lt]),B.routepath+="L "+ct+" "+lt+" ",N>0&&(B.arrowpath="M "+le[0]+" "+le[1]+" L "+Vt[0]+" "+Vt[1]+" L "+be[0]+" "+be[1]);return B},w}();W.GridRouter=U},30345:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f_GOLDEN_SECTION=(1+Math.sqrt(5))/2;W.applyPacking=function u(v,g,t,K,B,w){void 0===B&&(B=1),void 0===w&&(w=!0);var L=g,N=t,et=(B=typeof B<"u"?B:1,K=typeof K<"u"?K:0,0),ct=0,lt=0,Ct=0,Dt=[];function Tt(Lt,Bt){Dt=[],et=0,ct=0,Ct=0;for(var kt=0;kt=Lt.height&&Dt[le].x+Dt[le].width+Lt.width+10-Bt<=1e-4){kt=Dt[le];break}Dt.push(Lt),void 0!==kt?(Lt.x=kt.x+kt.width+10,Lt.y=kt.bottom,Lt.space_left=Lt.height,Lt.bottom=Lt.y,kt.space_left-=Lt.height+10,kt.bottom+=Lt.height+10):(Lt.y=Ct,Ct+=Lt.height+10,Lt.x=0,Lt.bottom=Lt.y,Lt.space_left=Lt.height),Lt.y+Lt.height-ct>-1e-4&&(ct=Lt.y+Lt.height-0),Lt.x+Lt.width-et>-1e-4&&(et=Lt.x+Lt.width-0)}0!=v.length&&(function Zt(Lt){Lt.forEach(function(kt){!function Bt(kt){var le=Number.MAX_VALUE,Vt=Number.MAX_VALUE,be=0,ge=0;kt.array.forEach(function(Fe){var qe=typeof Fe.width<"u"?Fe.width:K,je=typeof Fe.height<"u"?Fe.height:K;qe/=2,je/=2,be=Math.max(Fe.x+qe,be),le=Math.min(Fe.x-qe,le),ge=Math.max(Fe.y+je,ge),Vt=Math.min(Fe.y-je,Vt)}),kt.width=be-le,kt.height=ge-Vt}(kt)})}(v),function Gt(Lt,Bt){var kt=Number.POSITIVE_INFINITY,le=0;Lt.sort(function(se,Xt){return Xt.height-se.height});for(var Vt=ie=lt=Lt.reduce(function(se,Xt){return se.widthlt||Ue>1e-4;){if(1!=je){var ie=be-(be-Vt)/f_GOLDEN_SECTION;Fe=Tt(Lt,ie)}if(0!=je){var Wt=Vt+(be-Vt)/f_GOLDEN_SECTION;qe=Tt(Lt,Wt)}if(Qt=Math.abs(ie-Wt),Ue=Math.abs(Fe-qe),Feqe?(Vt=ie,ie=Wt,Fe=qe,je=1):(be=Wt,Wt=ie,qe=Fe,je=0),ge++>100)break}Tt(Lt,le)}(v),w&&function Rt(Lt){Lt.forEach(function(Bt){var kt={x:0,y:0};Bt.array.forEach(function(be){kt.x+=be.x,kt.y+=be.y}),kt.x/=Bt.array.length,kt.y/=Bt.array.length;var Vt_x=Bt.x-(kt.x-Bt.width/2)+L/2-et/2,Vt_y=Bt.y-(kt.y-Bt.height/2)+N/2-ct/2;Bt.array.forEach(function(be){be.x+=Vt_x,be.y+=Vt_y})})}(v))},W.separateGraphs=function d(v,g){for(var t={},T={},U=[],w=0,P=0;P{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var w,L,u=f(33900),d=f(58802),v=f(91786),g=f(4068),t=f(33858),T=f(30225),U=f(30345);function P(L){return typeof L.leaves<"u"||typeof L.groups<"u"}(L=w=W.EventType||(W.EventType={}))[L.start=0]="start",L[L.tick=1]="tick",L[L.end=2]="end";var O=function(){function L(){var N=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:L.getSourceIndex,getTargetIndex:L.getTargetIndex,setLength:L.setLinkLength,getType:function(B){return"function"==typeof N._linkType?N._linkType(B):0}}}return L.prototype.on=function(N,B){return this.event||(this.event={}),"string"==typeof N?this.event[w[N]]=B:this.event[N]=B,this},L.prototype.trigger=function(N){this.event&&typeof this.event[N.type]<"u"&&this.event[N.type](N)},L.prototype.kick=function(){for(;!this.tick(););},L.prototype.tick=function(){if(this._alpha"u"||typeof K.py>"u")&&(K.px=K.x,K.py=K.y),this._descent.locks.add(et,[K.px,K.py]));var lt=this._descent.rungeKutta();return 0===lt?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=lt),this._lastStress=lt,this.updateNodePositions(),this.trigger({type:w.tick,alpha:this._alpha,stress:this._lastStress}),!1},L.prototype.updateNodePositions=function(){for(var K,N=this._descent.x[0],B=this._descent.x[1],et=this._nodes.length;et--;)(K=this._nodes[et]).x=N[et],K.y=B[et]},L.prototype.nodes=function(N){if(!N){if(0===this._nodes.length&&this._links.length>0){var B=0;this._links.forEach(function(et){B=Math.max(B,et.source,et.target)}),this._nodes=new Array(++B);for(var K=0;K"u"&&(K.padding=1),typeof K.leaves<"u"&&K.leaves.forEach(function(et,ct){"number"==typeof et&&((K.leaves[ct]=B._nodes[et]).parent=K)}),typeof K.groups<"u"&&K.groups.forEach(function(et,ct){"number"==typeof et&&((K.groups[ct]=B._groups[et]).parent=K)})}),this._rootGroup.leaves=this._nodes.filter(function(K){return typeof K.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(K){return typeof K.parent>"u"}),this):this._groups},L.prototype.powerGraphGroups=function(N){var B=u.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(B.groups),N(B),this},L.prototype.avoidOverlaps=function(N){return arguments.length?(this._avoidOverlaps=N,this):this._avoidOverlaps},L.prototype.handleDisconnected=function(N){return arguments.length?(this._handleDisconnected=N,this):this._handleDisconnected},L.prototype.flowLayout=function(N,B){return arguments.length||(N="y"),this._directedLinkConstraints={axis:N,getMinSeparation:"number"==typeof B?function(){return B}:B},this},L.prototype.links=function(N){return arguments.length?(this._links=N,this):this._links},L.prototype.constraints=function(N){return arguments.length?(this._constraints=N,this):this._constraints},L.prototype.distanceMatrix=function(N){return arguments.length?(this._distanceMatrix=N,this):this._distanceMatrix},L.prototype.size=function(N){return N?(this._canvasSize=N,this):this._canvasSize},L.prototype.defaultNodeSize=function(N){return N?(this._defaultNodeSize=N,this):this._defaultNodeSize},L.prototype.groupCompactness=function(N){return N?(this._groupCompactness=N,this):this._groupCompactness},L.prototype.linkDistance=function(N){return N?(this._linkDistance="function"==typeof N?N:+N,this._linkLengthCalculator=null,this):this._linkDistance},L.prototype.linkType=function(N){return this._linkType=N,this},L.prototype.convergenceThreshold=function(N){return N?(this._threshold="function"==typeof N?N:+N,this):this._threshold},L.prototype.alpha=function(N){return arguments.length?(N=+N,this._alpha?this._alpha=N>0?N:0:N>0&&(this._running||(this._running=!0,this.trigger({type:w.start,alpha:this._alpha=N}),this.kick())),this):this._alpha},L.prototype.getLinkLength=function(N){return"function"==typeof this._linkDistance?+this._linkDistance(N):this._linkDistance},L.setLinkLength=function(N,B){N.length=B},L.prototype.getLinkType=function(N){return"function"==typeof this._linkType?this._linkType(N):0},L.prototype.symmetricDiffLinkLengths=function(N,B){var K=this;return void 0===B&&(B=1),this.linkDistance(function(et){return N*et.length}),this._linkLengthCalculator=function(){return d.symmetricDiffLinkLengths(K._links,K.linkAccessor,B)},this},L.prototype.jaccardLinkLengths=function(N,B){var K=this;return void 0===B&&(B=1),this.linkDistance(function(et){return N*et.length}),this._linkLengthCalculator=function(){return d.jaccardLinkLengths(K._links,K.linkAccessor,B)},this},L.prototype.start=function(N,B,K,et,ct,lt){var Ct=this;void 0===N&&(N=0),void 0===B&&(B=0),void 0===K&&(K=0),void 0===et&&(et=0),void 0===ct&&(ct=!0),void 0===lt&&(lt=!0);var le,Rt=this.nodes().length,Gt=Rt+2*this._groups.length,Ut=this._canvasSize[0],bt=this._canvasSize[1],mt=new Array(Gt),Lt=new Array(Gt),Bt=null,kt=this._avoidOverlaps;this._nodes.forEach(function(Qt,Ue){Qt.index=Ue,typeof Qt.x>"u"&&(Qt.x=Ut/2,Qt.y=bt/2),mt[Ue]=Qt.x,Lt[Ue]=Qt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?le=this._distanceMatrix:(le=new t.Calculator(Gt,this._links,L.getSourceIndex,L.getTargetIndex,function(Qt){return Ct.getLinkLength(Qt)}).DistanceMatrix(),Bt=v.Descent.createSquareMatrix(Gt,function(){return 2}),this._links.forEach(function(Qt){"number"==typeof Qt.source&&(Qt.source=Ct._nodes[Qt.source]),"number"==typeof Qt.target&&(Qt.target=Ct._nodes[Qt.target])}),this._links.forEach(function(Qt){var Ue=L.getSourceIndex(Qt),ie=L.getTargetIndex(Qt);Bt[Ue][ie]=Bt[ie][Ue]=Qt.weight||1}));var Vt=v.Descent.createSquareMatrix(Gt,function(Qt,Ue){return le[Qt][Ue]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Dt=Rt;this._groups.forEach(function(Ue){(function(Ue,ie,Wt,se){Bt[Ue][ie]=Bt[ie][Ue]=Wt,Vt[Ue][ie]=Vt[ie][Ue]=.1})(Dt,Dt+1,Ct._groupCompactness),mt[Dt]=0,Lt[Dt++]=0,mt[Dt]=0,Lt[Dt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var ge=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,ge=ge.concat(d.generateDirectedEdgeConstraints(Rt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([mt,Lt],Vt),this._descent.locks.clear(),Dt=0;Dt0&&(this._descent.project=new g.Projection(this._nodes,this._groups,this._rootGroup,ge).projectFunctions()),this._descent.run(B),this.separateOverlappingComponents(Ut,bt,lt),this.avoidOverlaps(kt),kt&&(this._nodes.forEach(function(Qt,Ue){Qt.x=mt[Ue],Qt.y=Lt[Ue]}),this._descent.project=new g.Projection(this._nodes,this._groups,this._rootGroup,ge,!0).projectFunctions(),this._nodes.forEach(function(Qt,Ue){mt[Ue]=Qt.x,Lt[Ue]=Qt.y})),this._descent.G=Bt,this._descent.run(K),et){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=Rt,this._descent.scaleSnapByMaxH=Rt!=Gt;var je=v.Descent.createSquareMatrix(Gt,function(Qt,Ue){return Qt>=Rt||Ue>=Rt?Bt[Qt][Ue]:0});this._descent.G=je,this._descent.run(et)}return this.updateNodePositions(),this.separateOverlappingComponents(Ut,bt,lt),ct?this.resume():this},L.prototype.initialLayout=function(N,B,K){if(this._groups.length>0&&N>0){var et=this._nodes.length,ct=this._links.map(function(Ct){return{source:Ct.source.index,target:Ct.target.index}}),lt=this._nodes.map(function(Ct){return{index:Ct.index}});this._groups.forEach(function(Ct,Dt){lt.push({index:Ct.index=et+Dt})}),this._groups.forEach(function(Ct,Dt){typeof Ct.leaves<"u"&&Ct.leaves.forEach(function(Zt){return ct.push({source:Ct.index,target:Zt.index})}),typeof Ct.groups<"u"&&Ct.groups.forEach(function(Zt){return ct.push({source:Ct.index,target:Zt.index})})}),(new L).size(this.size()).nodes(lt).links(ct).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(N,0,0,0,!1),this._nodes.forEach(function(Ct){B[Ct.index]=lt[Ct.index].x,K[Ct.index]=lt[Ct.index].y})}else this._descent.run(N)},L.prototype.separateOverlappingComponents=function(N,B,K){var et=this;if(void 0===K&&(K=!0),!this._distanceMatrix&&this._handleDisconnected){var ct=this._descent.x[0],lt=this._descent.x[1];this._nodes.forEach(function(Dt,Zt){Dt.x=ct[Zt],Dt.y=lt[Zt]});var Ct=U.separateGraphs(this._nodes,this._links);U.applyPacking(Ct,N,B,this._defaultNodeSize,1,K),this._nodes.forEach(function(Dt,Zt){et._descent.x[0][Zt]=Dt.x,et._descent.x[1][Zt]=Dt.y,Dt.bounds&&(Dt.bounds.setXCentre(Dt.x),Dt.bounds.setYCentre(Dt.y))})}},L.prototype.resume=function(){return this.alpha(.1)},L.prototype.stop=function(){return this.alpha(0)},L.prototype.prepareEdgeRouting=function(N){void 0===N&&(N=0),this._visibilityGraph=new T.TangentVisibilityGraph(this._nodes.map(function(B){return B.bounds.inflate(-N).vertices()}))},L.prototype.routeEdge=function(N,B,K){void 0===B&&(B=5);var et=[],ct=new T.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),lt={x:N.source.x,y:N.source.y},Ct={x:N.target.x,y:N.target.y},Dt=ct.addPoint(lt,N.source.index),Zt=ct.addPoint(Ct,N.target.index);ct.addEdgeIfVisible(lt,Ct,N.source.index,N.target.index),typeof K<"u"&&K(ct);var bt=new t.Calculator(ct.V.length,ct.E,function(Vt){return Vt.source.id},function(Vt){return Vt.target.id},function(Vt){return Vt.length()}).PathFromNodeToNode(Dt.id,Zt.id);if(1===bt.length||bt.length===ct.V.length){var mt=g.makeEdgeBetween(N.source.innerBounds,N.target.innerBounds,B);et=[mt.sourceIntersection,mt.arrowStart]}else{for(var Lt=bt.length-2,Bt=ct.V[bt[Lt]].p,kt=ct.V[bt[0]].p,le=(et=[N.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Lt);le>=0;--le)et.push(ct.V[bt[le]].p);et.push(g.makeEdgeTo(kt,N.target.innerBounds,B))}return et},L.getSourceIndex=function(N){return"number"==typeof N.source?N.source:N.source.index},L.getTargetIndex=function(N){return"number"==typeof N.target?N.target:N.target.index},L.linkId=function(N){return L.getSourceIndex(N)+"-"+L.getTargetIndex(N)},L.dragStart=function(N){P(N)?L.storeOffset(N,L.dragOrigin(N)):(L.stopNode(N),N.fixed|=2)},L.stopNode=function(N){N.px=N.x,N.py=N.y},L.storeOffset=function(N,B){typeof N.leaves<"u"&&N.leaves.forEach(function(K){K.fixed|=2,L.stopNode(K),K._dragGroupOffsetX=K.x-B.x,K._dragGroupOffsetY=K.y-B.y}),typeof N.groups<"u"&&N.groups.forEach(function(K){return L.storeOffset(K,B)})},L.dragOrigin=function(N){return P(N)?{x:N.bounds.cx(),y:N.bounds.cy()}:N},L.drag=function(N,B){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(K){N.bounds.setXCentre(B.x),N.bounds.setYCentre(B.y),K.px=K._dragGroupOffsetX+B.x,K.py=K._dragGroupOffsetY+B.y}),typeof N.groups<"u"&&N.groups.forEach(function(K){return L.drag(K,B)})):(N.px=B.x,N.py=B.y)},L.dragEnd=function(N){P(N)?(typeof N.leaves<"u"&&N.leaves.forEach(function(B){L.dragEnd(B),delete B._dragGroupOffsetX,delete B._dragGroupOffsetY}),typeof N.groups<"u"&&N.groups.forEach(L.dragEnd)):N.fixed&=-7},L.mouseOver=function(N){N.fixed|=4,N.px=N.x,N.py=N.y},L.mouseOut=function(N){N.fixed&=-5},L}();W.Layout=O},86461:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(33858),d=f(91786),v=f(4068),g=f(58802),t=function(){function P(O,L){this.source=O,this.target=L}return P.prototype.actualLength=function(O){var L=this;return Math.sqrt(O.reduce(function(N,B){var K=B[L.target]-B[L.source];return N+K*K},0))},P}();W.Link3D=t,W.Node3D=function P(O,L,N){void 0===O&&(O=0),void 0===L&&(L=0),void 0===N&&(N=0),this.x=O,this.y=L,this.z=N};var U=function(){function P(O,L,N){var B=this;void 0===N&&(N=1),this.nodes=O,this.links=L,this.idealLinkLength=N,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(P.k);for(var K=0;K"u"&&(et[Dt]=Math.random())}B.result[0][ct]=et.x,B.result[1][ct]=et.y,B.result[2][ct]=et.z})}return P.prototype.linkLength=function(O){return O.actualLength(this.result)},P.prototype.start=function(O){var L=this;void 0===O&&(O=100);var N=this.nodes.length,B=new w;this.useJaccardLinkLengths&&g.jaccardLinkLengths(this.links,B,1.5),this.links.forEach(function(Dt){return Dt.length*=L.idealLinkLength});var K=new u.Calculator(N,this.links,function(Dt){return Dt.source},function(Dt){return Dt.target},function(Dt){return Dt.length}).DistanceMatrix(),et=d.Descent.createSquareMatrix(N,function(Dt,Zt){return K[Dt][Zt]}),ct=d.Descent.createSquareMatrix(N,function(){return 2});this.links.forEach(function(Dt){var Zt=Dt.source,Rt=Dt.target;return ct[Zt][Rt]=ct[Rt][Zt]=1}),this.descent=new d.Descent(this.result,et),this.descent.threshold=.001,this.descent.G=ct,this.constraints&&(this.descent.project=new v.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var lt=0;lt{"use strict";function f(w,P){var O={};for(var L in w)O[L]={};for(var L in P)O[L]={};return Object.keys(O).length}function u(w,P){var O=0;for(var L in w)typeof P[L]<"u"&&++O;return O}function v(w,P,O,L){var N=function d(w,P){var O={},L=function(N,B){typeof O[N]>"u"&&(O[N]={}),O[N][B]={}};return w.forEach(function(N){var B=P.getSourceIndex(N),K=P.getTargetIndex(N);L(B,K),L(K,B)}),O}(w,L);w.forEach(function(B){var K=N[L.getSourceIndex(B)],et=N[L.getTargetIndex(B)];L.setLength(B,1+P*O(K,et))})}function U(w,P,O){var L=[],N=0,B=[],K=[];function et(bt){bt.index=bt.lowlink=N++,B.push(bt),bt.onStack=!0;for(var mt=0,Lt=bt.out;mt"u"?(et(Bt),bt.lowlink=Math.min(bt.lowlink,Bt.lowlink)):Bt.onStack&&(bt.lowlink=Math.min(bt.lowlink,Bt.index))}if(bt.lowlink===bt.index){for(var kt=[];B.length&&((Bt=B.pop()).onStack=!1,kt.push(Bt),Bt!==bt););K.push(kt.map(function(le){return le.id}))}}for(var ct=0;ct"u"&&et(Ut)}return K}Object.defineProperty(W,"__esModule",{value:!0}),W.symmetricDiffLinkLengths=function g(w,P,O){void 0===O&&(O=1),v(w,O,function(L,N){return Math.sqrt(f(L,N)-u(L,N))},P)},W.jaccardLinkLengths=function t(w,P,O){void 0===O&&(O=1),v(w,O,function(L,N){return Math.min(Object.keys(L).length,Object.keys(N).length)<1.1?0:u(L,N)/f(L,N)},P)},W.generateDirectedEdgeConstraints=function T(w,P,O,L){var N=U(w,P,L),B={};N.forEach(function(et,ct){return et.forEach(function(lt){return B[lt]=ct})});var K=[];return P.forEach(function(et){var ct=L.getSourceIndex(et),lt=L.getTargetIndex(et);B[ct]!==B[lt]&&K.push({axis:O,left:ct,right:lt,gap:L.getMinSeparation(et)})}),K},W.stronglyConnectedComponents=U},33900:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function P(O,L,N){this.source=O,this.target=L,this.type=N};W.PowerEdge=f;var u=function(){function P(O,L,N,B){var K=this;if(this.linkAccessor=N,this.modules=new Array(O),this.roots=[],B)this.initModulesFromGroup(B);else{this.roots.push(new t);for(var et=0;et=this.R))return this.merge(N.a,N.b,O),!0}},P.prototype.nEdges=function(O,L){var N=O.incoming.intersection(L.incoming),B=O.outgoing.intersection(L.outgoing);return this.R-N.count()-B.count()},P.prototype.getGroupHierarchy=function(O){var L=this,N=[];return d(this.roots[0],{},N),this.allEdges().forEach(function(et){var ct=L.modules[et.source],lt=L.modules[et.target];O.push(new f(typeof ct.gid>"u"?et.source:N[ct.gid],typeof lt.gid>"u"?et.target:N[lt.gid],et.type))}),N},P.prototype.allEdges=function(){var O=[];return P.getEdges(this.roots[0],O),O},P.getEdges=function(O,L){O.forAll(function(N){N.getEdges(L),P.getEdges(N.children,L)})},P}();function d(P,O,L){P.forAll(function(N){if(N.isLeaf())O.leaves||(O.leaves=[]),O.leaves.push(N.id);else{var B=O;if(N.gid=L.length,!N.isIsland()||N.isPredefined()){if(B={id:N.gid},N.isPredefined())for(var K in N.definition)B[K]=N.definition[K];O.groups||(O.groups=[]),O.groups.push(N.gid),L.push(B)}d(N.children,B,L)}})}W.Configuration=u;var v=function(){function P(O,L,N,B,K){void 0===L&&(L=new T),void 0===N&&(N=new T),void 0===B&&(B=new t),this.id=O,this.outgoing=L,this.incoming=N,this.children=B,this.definition=K}return P.prototype.getEdges=function(O){var L=this;this.outgoing.forAll(function(N,B){N.forAll(function(K){O.push(new f(L.id,K.id,B))})})},P.prototype.isLeaf=function(){return 0===this.children.count()},P.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},P.prototype.isPredefined=function(){return typeof this.definition<"u"},P}();W.Module=v;var t=function(){function P(){this.table={}}return P.prototype.count=function(){return Object.keys(this.table).length},P.prototype.intersection=function(O){var L=new P;return L.table=function g(P,O){var L={};for(var N in P)N in O&&(L[N]=P[N]);return L}(this.table,O.table),L},P.prototype.intersectionCount=function(O){return this.intersection(O).count()},P.prototype.contains=function(O){return O in this.table},P.prototype.add=function(O){this.table[O.id]=O},P.prototype.remove=function(O){delete this.table[O.id]},P.prototype.forAll=function(O){for(var L in this.table)O(this.table[L])},P.prototype.modules=function(){var O=[];return this.forAll(function(L){L.isPredefined()||O.push(L)}),O},P}();W.ModuleSet=t;var T=function(){function P(){this.sets={},this.n=0}return P.prototype.count=function(){return this.n},P.prototype.contains=function(O){var L=!1;return this.forAllModules(function(N){!L&&N.id==O&&(L=!0)}),L},P.prototype.add=function(O,L){(O in this.sets?this.sets[O]:this.sets[O]=new t).add(L),++this.n},P.prototype.remove=function(O,L){var N=this.sets[O];N.remove(L),0===N.count()&&delete this.sets[O],--this.n},P.prototype.forAll=function(O){for(var L in this.sets)O(this.sets[L],Number(L))},P.prototype.forAllModules=function(O){this.forAll(function(L,N){return L.forAll(O)})},P.prototype.intersection=function(O){var L=new P;return this.forAll(function(N,B){if(B in O.sets){var K=N.intersection(O.sets[B]),et=K.count();et>0&&(L.sets[B]=K,L.n+=et)}}),L},P}();W.LinkSets=T,W.getGroups=function w(P,O,L,N){for(var K=new u(P.length,O,L,N);K.greedyMerge(););var et=[],ct=K.getGroupHierarchy(et);return et.forEach(function(lt){var Ct=function(Dt){var Zt=lt[Dt];"number"==typeof Zt&&(lt[Dt]=P[Zt])};Ct("source"),Ct("target")}),{groups:ct,powerEdges:et}}},88866:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function(){function d(v){this.elem=v,this.subheaps=[]}return d.prototype.toString=function(v){for(var g="",t=!1,T=0;T0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(T){for(var U=this._root;null!==U;){var w=this._comparator(T,U.data);if(0===w)return U.data;U=U.get_child(w>0)}return null},t.prototype.lowerBound=function(T){return this._bound(T,this._comparator)},t.prototype.upperBound=function(T){var U=this._comparator;return this._bound(T,function w(P,O){return U(O,P)})},t.prototype.min=function(){var T=this._root;if(null===T)return null;for(;null!==T.left;)T=T.left;return T.data},t.prototype.max=function(){var T=this._root;if(null===T)return null;for(;null!==T.right;)T=T.right;return T.data},t.prototype.iterator=function(){return new d(this)},t.prototype.each=function(T){for(var w,U=this.iterator();null!==(w=U.next());)T(w)},t.prototype.reach=function(T){for(var w,U=this.iterator();null!==(w=U.prev());)T(w)},t.prototype._bound=function(T,U){for(var w=this._root,P=this.iterator();null!==w;){var O=this._comparator(T,w.data);if(0===O)return P._cursor=w,P;P._ancestors.push(w),w=w.get_child(O>0)}for(var L=P._ancestors.length-1;L>=0;--L)if(U(T,(w=P._ancestors[L]).data)>0)return P._cursor=w,P._ancestors.length=L,P;return P._ancestors.length=0,P},t}();W.TreeBase=u;var d=function(){function t(T){this._tree=T,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var T=this._tree._root;null!==T&&this._minNode(T)}else if(null===this._cursor.right){var U;do{if(U=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===U)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var T=this._tree._root;null!==T&&this._maxNode(T)}else if(null===this._cursor.left){var U;do{if(U=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===U)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(T){for(;null!==T.left;)this._ancestors.push(T),T=T.left;this._cursor=T},t.prototype._maxNode=function(T){for(;null!==T.right;)this._ancestors.push(T),T=T.right;this._cursor=T},t}();W.Iterator=d;var v=function(){function t(T){this.data=T,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(T){return T?this.right:this.left},t.prototype.set_child=function(T,U){T?this.right=U:this.left=U},t}(),g=function(t){function T(U){var w=t.call(this)||this;return w._root=null,w._comparator=U,w.size=0,w}return f(T,t),T.prototype.insert=function(U){var w=!1;if(null===this._root)this._root=new v(U),w=!0,this.size++;else{var P=new v(void 0),O=!1,L=!1,N=null,B=P,K=null,et=this._root;for(B.right=this._root;;){if(null===et?(et=new v(U),K.set_child(O,et),w=!0,this.size++):T.is_red(et.left)&&T.is_red(et.right)&&(et.red=!0,et.left.red=!1,et.right.red=!1),T.is_red(et)&&T.is_red(K)){var ct=B.right===N;et===K.get_child(L)?B.set_child(ct,T.single_rotate(N,!L)):B.set_child(ct,T.double_rotate(N,!L))}var lt=this._comparator(et.data,U);if(0===lt)break;L=O,null!==N&&(B=N),N=K,K=et,et=et.get_child(O=lt<0)}this._root=P.right}return this._root.red=!1,w},T.prototype.remove=function(U){if(null===this._root)return!1;var w=new v(void 0),P=w;P.right=this._root;for(var O=null,L=null,N=null,B=!0;null!==P.get_child(B);){var K=B;L=O,O=P,P=P.get_child(B);var et=this._comparator(U,P.data);if(B=et>0,0===et&&(N=P),!T.is_red(P)&&!T.is_red(P.get_child(B)))if(T.is_red(P.get_child(!B))){var ct=T.single_rotate(P,B);O.set_child(K,ct),O=ct}else if(!T.is_red(P.get_child(!B))){var lt=O.get_child(!K);if(null!==lt)if(T.is_red(lt.get_child(!K))||T.is_red(lt.get_child(K))){var Ct=L.right===O;T.is_red(lt.get_child(K))?L.set_child(Ct,T.double_rotate(O,K)):T.is_red(lt.get_child(!K))&&L.set_child(Ct,T.single_rotate(O,K));var Dt=L.get_child(Ct);Dt.red=!0,P.red=!0,Dt.left.red=!1,Dt.right.red=!1}else O.red=!1,lt.red=!0,P.red=!0}}return null!==N&&(N.data=P.data,O.set_child(O.right===P,P.get_child(null===P.left)),this.size--),this._root=w.right,null!==this._root&&(this._root.red=!1),null!==N},T.is_red=function(U){return null!==U&&U.red},T.single_rotate=function(U,w){var P=U.get_child(!w);return U.set_child(!w,P.get_child(w)),P.set_child(w,U),U.red=!0,P.red=!1,P},T.double_rotate=function(U,w){return U.set_child(!w,T.single_rotate(U.get_child(!w),!w)),T.single_rotate(U,w)},T}(u);W.RBTree=g},4068:function(tt,W,f){"use strict";var bt,u=this&&this.__extends||(bt=function(mt,Lt){return(bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,kt){Bt.__proto__=kt}||function(Bt,kt){for(var le in kt)kt.hasOwnProperty(le)&&(Bt[le]=kt[le])})(mt,Lt)},function(mt,Lt){function Bt(){this.constructor=mt}bt(mt,Lt),mt.prototype=null===Lt?Object.create(Lt):(Bt.prototype=Lt.prototype,new Bt)});Object.defineProperty(W,"__esModule",{value:!0});var d=f(98237),v=f(94655);function g(bt){return bt.bounds=typeof bt.leaves<"u"?bt.leaves.reduce(function(mt,Lt){return Lt.bounds.union(mt)},t.empty()):t.empty(),typeof bt.groups<"u"&&(bt.bounds=bt.groups.reduce(function(mt,Lt){return g(Lt).union(mt)},bt.bounds)),bt.bounds=bt.bounds.inflate(bt.padding),bt.bounds}W.computeGroupBounds=g;var t=function(){function bt(mt,Lt,Bt,kt){this.x=mt,this.X=Lt,this.y=Bt,this.Y=kt}return bt.empty=function(){return new bt(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},bt.prototype.cx=function(){return(this.x+this.X)/2},bt.prototype.cy=function(){return(this.y+this.Y)/2},bt.prototype.overlapX=function(mt){var Lt=this.cx(),Bt=mt.cx();return Lt<=Bt&&mt.x0?Bt[0]:null},bt.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},bt.lineIntersection=function(mt,Lt,Bt,kt,le,Vt,be,ge){var Fe=Bt-mt,qe=be-le,je=kt-Lt,Qt=ge-Vt,Ue=Qt*Fe-qe*je;if(0==Ue)return null;var ie=mt-le,Wt=Lt-Vt,Xt=(qe*Wt-Qt*ie)/Ue,De=(Fe*Wt-je*ie)/Ue;return Xt>=0&&Xt<=1&&De>=0&&De<=1?{x:mt+Xt*Fe,y:Lt+Xt*je}:null},bt.prototype.inflate=function(mt){return new bt(this.x-mt,this.X+mt,this.y-mt,this.Y+mt)},bt}();W.Rectangle=t,W.makeEdgeBetween=function T(bt,mt,Lt){var Bt=bt.rayIntersection(mt.cx(),mt.cy())||{x:bt.cx(),y:bt.cy()},kt=mt.rayIntersection(bt.cx(),bt.cy())||{x:mt.cx(),y:mt.cy()},le=kt.x-Bt.x,Vt=kt.y-Bt.y,be=Math.sqrt(le*le+Vt*Vt),ge=be-Lt;return{sourceIntersection:Bt,targetIntersection:kt,arrowStart:{x:Bt.x+ge*le/be,y:Bt.y+ge*Vt/be}}},W.makeEdgeTo=function U(bt,mt,Lt){var Bt=mt.rayIntersection(bt.x,bt.y);Bt||(Bt={x:mt.cx(),y:mt.cy()});var kt=Bt.x-bt.x,le=Bt.y-bt.y,Vt=Math.sqrt(kt*kt+le*le);return{x:Bt.x-Lt*kt/Vt,y:Bt.y-Lt*le/Vt}};var w=function bt(mt,Lt,Bt){this.v=mt,this.r=Lt,this.pos=Bt,this.prev=L(),this.next=L()},P=function bt(mt,Lt,Bt){this.isOpen=mt,this.v=Lt,this.pos=Bt};function O(bt,mt){return bt.pos>mt.pos?1:bt.pos0&&(bt[Bt].insert(le),le[kt].insert(bt))};Lt("next","prev"),Lt("prev","next")}};function K(bt,mt,Lt,Bt){void 0===Bt&&(Bt=!1);var kt=bt.padding,le=typeof bt.groups<"u"?bt.groups.length:0,Vt=typeof bt.leaves<"u"?bt.leaves.length:0,be=le?bt.groups.reduce(function(hn,Ce){return hn.concat(K(Ce,mt,Lt,!0))},[]):[],ge=(Bt?2:0)+Vt+le,Fe=new Array(ge),qe=new Array(ge),je=0,Qt=function(hn,Ce){qe[je]=hn,Fe[je++]=Ce};if(Bt){var Ue=bt.bounds,ie=mt.getCentre(Ue),Wt=mt.getSize(Ue)/2,se=mt.getOpen(Ue),Xt=mt.getClose(Ue),ae=ie-Wt+kt/2,De=ie+Wt-kt/2;bt.minVar.desiredPosition=ae,Qt(mt.makeRect(se,Xt,ae,kt),bt.minVar),bt.maxVar.desiredPosition=De,Qt(mt.makeRect(se,Xt,De,kt),bt.maxVar)}Vt&&bt.leaves.forEach(function(hn){return Qt(hn.bounds,hn.variable)}),le&&bt.groups.forEach(function(hn){var Ce=hn.bounds;Qt(mt.makeRect(mt.getOpen(Ce),mt.getClose(Ce),mt.getCentre(Ce),mt.getSize(Ce)),hn.minVar)});var nn=et(qe,Fe,mt,Lt);return le&&(Fe.forEach(function(hn){hn.cOut=[],hn.cIn=[]}),nn.forEach(function(hn){hn.left.cOut.push(hn),hn.right.cIn.push(hn)}),bt.groups.forEach(function(hn){var Ce=(hn.padding-mt.getSize(hn.bounds))/2;hn.minVar.cIn.forEach(function(bn){return bn.gap+=Ce}),hn.minVar.cOut.forEach(function(bn){bn.left=hn.maxVar,bn.gap+=Ce})})),be.concat(nn)}function et(bt,mt,Lt,Bt){var kt,le=bt.length,Vt=2*le;console.assert(mt.length>=le);var be=new Array(Vt);for(kt=0;ktbe[Bt]&&(be[Bt]=ge)}Vt=be})}},bt.prototype.createAlignment=function(mt){var Lt=this,Bt=this.nodes[mt.offsets[0].node].variable;this.makeFeasible(mt);var kt="x"===mt.axis?this.xConstraints:this.yConstraints;mt.offsets.slice(1).forEach(function(le){kt.push(new d.Constraint(Bt,Lt.nodes[le.node].variable,le.offset,!0))})},bt.prototype.createConstraints=function(mt){var Lt=this,Bt=function(kt){return typeof kt.type>"u"||"separation"===kt.type};this.xConstraints=mt.filter(function(kt){return"x"===kt.axis&&Bt(kt)}).map(function(kt){return Lt.createSeparation(kt)}),this.yConstraints=mt.filter(function(kt){return"y"===kt.axis&&Bt(kt)}).map(function(kt){return Lt.createSeparation(kt)}),mt.filter(function(kt){return"alignment"===kt.type}).forEach(function(kt){return Lt.createAlignment(kt)})},bt.prototype.setupVariablesAndBounds=function(mt,Lt,Bt,kt){this.nodes.forEach(function(le,Vt){le.fixed?(le.variable.weight=le.fixedWeight?le.fixedWeight:1e3,Bt[Vt]=kt(le)):le.variable.weight=1;var be=(le.width||0)/2,ge=(le.height||0)/2,Fe=mt[Vt],qe=Lt[Vt];le.bounds=new t(Fe-be,Fe+be,qe-ge,qe+ge)})},bt.prototype.xProject=function(mt,Lt,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(mt,Lt,mt,Bt,function(kt){return kt.px},this.xConstraints,Zt,function(kt){return kt.bounds.setXCentre(Bt[kt.variable.index]=kt.variable.position())},function(kt){var le=Bt[kt.minVar.index]=kt.minVar.position(),Vt=Bt[kt.maxVar.index]=kt.maxVar.position(),be=kt.padding/2;kt.bounds.x=le-be,kt.bounds.X=Vt+be})},bt.prototype.yProject=function(mt,Lt,Bt){!this.rootGroup&&!this.yConstraints||this.project(mt,Lt,Lt,Bt,function(kt){return kt.py},this.yConstraints,Rt,function(kt){return kt.bounds.setYCentre(Bt[kt.variable.index]=kt.variable.position())},function(kt){var le=Bt[kt.minVar.index]=kt.minVar.position(),Vt=Bt[kt.maxVar.index]=kt.maxVar.position(),be=kt.padding/2;kt.bounds.y=le-be,kt.bounds.Y=Vt+be})},bt.prototype.projectFunctions=function(){var mt=this;return[function(Lt,Bt,kt){return mt.xProject(Lt,Bt,kt)},function(Lt,Bt,kt){return mt.yProject(Lt,Bt,kt)}]},bt.prototype.project=function(mt,Lt,Bt,kt,le,Vt,be,ge,Fe){this.setupVariablesAndBounds(mt,Lt,kt,le),this.rootGroup&&this.avoidOverlaps&&(g(this.rootGroup),Vt=Vt.concat(be(this.rootGroup))),this.solve(this.variables,Vt,Bt,kt),this.nodes.forEach(ge),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Fe),g(this.rootGroup))},bt.prototype.solve=function(mt,Lt,Bt,kt){var le=new d.Solver(mt,Lt);le.setStartingPositions(Bt),le.setDesiredPositions(kt),le.solve()},bt}();W.Projection=Ut},33858:(tt,W,f)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var u=f(88866),d=function T(U,w){this.id=U,this.distance=w},v=function T(U){this.id=U,this.neighbours=[]},g=function T(U,w,P){this.node=U,this.prev=w,this.d=P},t=function(){function T(U,w,P,O,L){this.n=U,this.es=w,this.neighbours=new Array(this.n);for(var N=this.n;N--;)this.neighbours[N]=new v(N);for(N=this.es.length;N--;){var B=this.es[N],K=P(B),et=O(B),ct=L(B);this.neighbours[K].neighbours.push(new d(et,ct)),this.neighbours[et].neighbours.push(new d(K,ct))}}return T.prototype.DistanceMatrix=function(){for(var U=new Array(this.n),w=0;wlt&&(et.d=lt,et.prev=B,P.reduceKey(et.q,et,function(Dt,Zt){return Dt.q=Zt}))}}return L},T}();W.Calculator=t},98237:(tt,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var f=function(){function U(w){this.scale=w,this.AB=0,this.AD=0,this.A2=0}return U.prototype.addVariable=function(w){var P=this.scale/w.scale,L=w.weight;this.AB+=L*P*(w.offset/w.scale),this.AD+=L*P*w.desiredPosition,this.A2+=L*P*P},U.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},U}();W.PositionStats=f;var u=function(){function U(w,P,O,L){void 0===L&&(L=!1),this.left=w,this.right=P,this.gap=O,this.equality=L,this.active=!1,this.unsatisfiable=!1,this.left=w,this.right=P,this.gap=O,this.equality=L}return U.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},U}();W.Constraint=u;var d=function(){function U(w,P,O){void 0===P&&(P=1),void 0===O&&(O=1),this.desiredPosition=w,this.weight=P,this.scale=O,this.offset=0}return U.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},U.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},U.prototype.visitNeighbours=function(w,P){var O=function(L,N){return L.active&&w!==N&&P(L,N)};this.cOut.forEach(function(L){return O(L,L.right)}),this.cIn.forEach(function(L){return O(L,L.left)})},U}();W.Variable=d;var v=function(){function U(w){this.vars=[],w.offset=0,this.ps=new f(w.scale),this.addVariable(w)}return U.prototype.addVariable=function(w){w.block=this,this.vars.push(w),this.ps.addVariable(w),this.posn=this.ps.getPosn()},U.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var w=0,P=this.vars.length;w=0?this.inactive.push(w):this.bs.merge(w)}}},U.prototype.solve=function(){this.satisfy();for(var w=Number.MAX_VALUE,P=this.bs.cost();Math.abs(w-P)>1e-4;)this.satisfy(),w=P,P=this.bs.cost();return P},U.LAGRANGIAN_TOLERANCE=-1e-4,U.ZERO_UPPERBOUND=-1e-10,U}();W.Solver=t,W.removeOverlapInOneDimension=function T(U,w,P){for(var O=U.map(function(Tt){return new d(Tt.desiredCenter)}),L=[],N=U.length,B=0;B{var u={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function d(g){var t=v(g);return f(t)}function v(g){if(!f.o(u,g)){var t=new Error("Cannot find module '"+g+"'");throw t.code="MODULE_NOT_FOUND",t}return u[g]}d.keys=function(){return Object.keys(u)},d.resolve=v,tt.exports=d,d.id=46700},7100:(tt,W,f)=>{"use strict";f.d(W,{AB:()=>kn,EC:()=>ai,K:()=>an,g2:()=>_n});var u=f(84080),d=f(94650),v=f(42654),g=f(8929),t=f(36787),T=f(29521),U=f(72986),w=f(1059),P=f(7625),O=f(80013),L=f(92198),N=f(99602),B=f(36895),K=f(3238),et=f(40445),ct=f(4859),lt=f(21281),Ct=f(98184),Dt=f(24006),Zt=f(59549),Rt=f(284),Gt=f(97392),Tt=f(65412),Ut=f(83353);const bt=["ngx-mat-calendar-body",""];function mt(j,Ft){if(1&j&&(d.TgZ(0,"tr",2)(1,"td",3),d._uU(2),d.qZA()()),2&j){const J=d.oxw();d.xp6(1),d.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),d.uIk("colspan",J.numCols),d.xp6(1),d.hij(" ",J.label," ")}}function Lt(j,Ft){if(1&j&&(d.TgZ(0,"td",7),d._uU(1),d.qZA()),2&j){const J=d.oxw(2);d.Udp("padding-top",J._cellPadding)("padding-bottom",J._cellPadding),d.uIk("colspan",J._firstRowOffset),d.xp6(1),d.hij(" ",J._firstRowOffset>=J.labelMinRequiredCells?J.label:""," ")}}function Bt(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td",8),d.NdJ("click",function(ze){const Xi=d.CHM(J).$implicit,To=d.oxw(2);return d.KtG(To._cellClicked(Xi,ze))}),d.TgZ(1,"div",9),d._uU(2),d.qZA(),d._UZ(3,"div",10),d.qZA()}if(2&j){const J=Ft.$implicit,Et=Ft.index,ze=d.oxw().index,Vn=d.oxw();d.Udp("width",Vn._cellWidth)("padding-top",Vn._cellPadding)("padding-bottom",Vn._cellPadding),d.ekj("mat-calendar-body-disabled",!J.enabled)("mat-calendar-body-active",Vn._isActiveCell(ze,Et))("mat-calendar-body-range-start",Vn._isRangeStart(J.compareValue))("mat-calendar-body-range-end",Vn._isRangeEnd(J.compareValue))("mat-calendar-body-in-range",Vn._isInRange(J.compareValue))("mat-calendar-body-comparison-bridge-start",Vn._isComparisonBridgeStart(J.compareValue,ze,Et))("mat-calendar-body-comparison-bridge-end",Vn._isComparisonBridgeEnd(J.compareValue,ze,Et))("mat-calendar-body-comparison-start",Vn._isComparisonStart(J.compareValue))("mat-calendar-body-comparison-end",Vn._isComparisonEnd(J.compareValue))("mat-calendar-body-in-comparison-range",Vn._isInComparisonRange(J.compareValue))("mat-calendar-body-preview-start",Vn._isPreviewStart(J.compareValue))("mat-calendar-body-preview-end",Vn._isPreviewEnd(J.compareValue))("mat-calendar-body-in-preview",Vn._isInPreview(J.compareValue)),d.Q6J("ngClass",J.cssClasses)("tabindex",Vn._isActiveCell(ze,Et)?0:-1),d.uIk("data-mat-row",ze)("data-mat-col",Et)("aria-label",J.ariaLabel)("aria-disabled",!J.enabled||null)("aria-selected",Vn._isSelected(J)),d.xp6(1),d.ekj("mat-calendar-body-selected",Vn._isSelected(J))("mat-calendar-body-today",Vn.todayValue===J.compareValue),d.xp6(1),d.hij(" ",J.displayValue," ")}}function kt(j,Ft){if(1&j&&(d.TgZ(0,"tr",4),d.YNc(1,Lt,2,6,"td",5),d.YNc(2,Bt,4,44,"td",6),d.qZA()),2&j){const J=Ft.$implicit,Et=Ft.index,ze=d.oxw();d.xp6(1),d.Q6J("ngIf",0===Et&&ze._firstRowOffset),d.xp6(1),d.Q6J("ngForOf",J)}}function le(j,Ft){if(1&j&&(d.TgZ(0,"th",5),d._uU(1),d.qZA()),2&j){const J=Ft.$implicit;d.uIk("aria-label",J.long),d.xp6(1),d.Oqu(J.narrow)}}const Vt=["*"];function be(j,Ft){}function ge(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"ngx-mat-month-view",5),d.NdJ("activeDateChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.activeDate=ze)})("selectedChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._dateSelected(ze))})("_userSelection",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze._userSelected())}),d.qZA()}if(2&j){const J=d.oxw();d.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)("dateClass",J.dateClass)}}function Fe(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"ngx-mat-year-view",6),d.NdJ("activeDateChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.activeDate=ze)})("monthSelected",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._monthSelectedInYearView(ze))})("selectedChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._goToDateInView(ze,"month"))}),d.qZA()}if(2&j){const J=d.oxw();d.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function qe(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"ngx-mat-multi-year-view",7),d.NdJ("activeDateChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.activeDate=ze)})("yearSelected",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._yearSelectedInMultiYearView(ze))})("selectedChange",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn._goToDateInView(ze,"year"))}),d.qZA()}if(2&j){const J=d.oxw();d.Q6J("activeDate",J.activeDate)("selected",J.selected)("dateFilter",J.dateFilter)("maxDate",J.maxDate)("minDate",J.minDate)}}function je(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td")(1,"button",10),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw(2);return d.KtG(ze.change("second",!0))}),d.TgZ(2,"mat-icon"),d._uU(3,"expand_less"),d.qZA()()()}if(2&j){const J=d.oxw(2);d.xp6(1),d.Q6J("disabled",J.disabled||J.disableMinute)}}function Qt(j,Ft){1&j&&d._UZ(0,"td",6)}function Ue(j,Ft){1&j&&d._UZ(0,"td")}function ie(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"tr")(1,"td")(2,"button",10),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("hour",!0))}),d.TgZ(3,"mat-icon"),d._uU(4,"expand_less"),d.qZA()()(),d._UZ(5,"td"),d.TgZ(6,"td")(7,"button",10),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("minute",!0))}),d.TgZ(8,"mat-icon"),d._uU(9,"expand_less"),d.qZA()()(),d._UZ(10,"td"),d.YNc(11,je,4,1,"td",3),d.YNc(12,Qt,1,0,"td",8),d.YNc(13,Ue,1,0,"td",3),d.qZA()}if(2&j){const J=d.oxw();d.xp6(2),d.Q6J("disabled",J.disabled),d.xp6(5),d.Q6J("disabled",J.disabled||J.disableMinute),d.xp6(4),d.Q6J("ngIf",J.showSeconds),d.xp6(1),d.Q6J("ngIf",J.enableMeridian),d.xp6(1),d.Q6J("ngIf",J.enableMeridian)}}function Wt(j,Ft){1&j&&(d.TgZ(0,"td",6),d._uU(1,":"),d.qZA())}function se(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),d.NdJ("input",function(ze){d.CHM(J);const Vn=d.oxw();return d.KtG(Vn.formatInput(ze.target))})("keydown.ArrowUp",function(ze){return d.CHM(J),d.oxw().change("second",!0),d.KtG(ze.preventDefault())})("keydown.ArrowDown",function(ze){return d.CHM(J),d.oxw().change("second",!1),d.KtG(ze.preventDefault())})("blur",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("second"))}),d.qZA()()()}}function Xt(j,Ft){1&j&&d._UZ(0,"td",6)}function ae(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td",12)(1,"button",13),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.toggleMeridian())}),d._uU(2),d.qZA()()}if(2&j){const J=d.oxw();d.xp6(1),d.Q6J("color",J.color)("disabled",J.disabled),d.xp6(1),d.hij(" ",J.meridian," ")}}function De(j,Ft){1&j&&d._UZ(0,"td")}function nn(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"td")(1,"button",14),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw(2);return d.KtG(ze.change("second",!1))}),d.TgZ(2,"mat-icon"),d._uU(3,"expand_more"),d.qZA()()()}if(2&j){const J=d.oxw(2);d.xp6(1),d.Q6J("disabled",J.disabled||J.disableMinute)}}function hn(j,Ft){1&j&&d._UZ(0,"td",6)}function Ce(j,Ft){1&j&&d._UZ(0,"td")}function bn(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"tr")(1,"td")(2,"button",14),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("hour",!1))}),d.TgZ(3,"mat-icon"),d._uU(4,"expand_more"),d.qZA()()(),d._UZ(5,"td"),d.TgZ(6,"td")(7,"button",14),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.change("minute",!1))}),d.TgZ(8,"mat-icon"),d._uU(9,"expand_more"),d.qZA()()(),d.YNc(10,De,1,0,"td",3),d.YNc(11,nn,4,1,"td",3),d.YNc(12,hn,1,0,"td",8),d.YNc(13,Ce,1,0,"td",3),d.qZA()}if(2&j){const J=d.oxw();d.xp6(2),d.Q6J("disabled",J.disabled),d.xp6(5),d.Q6J("disabled",J.disabled||J.disableMinute),d.xp6(3),d.Q6J("ngIf",J.showSeconds),d.xp6(1),d.Q6J("ngIf",J.showSeconds),d.xp6(1),d.Q6J("ngIf",J.enableMeridian),d.xp6(1),d.Q6J("ngIf",J.enableMeridian)}}function Oe(j,Ft){if(1&j){const J=d.EpF();d.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),d.NdJ("ngModelChange",function(ze){d.CHM(J);const Vn=d.oxw(2);return d.KtG(Vn.datepicker._selected=ze)}),d.qZA()()}if(2&j){const J=d.oxw(2);d.ekj("disable-seconds",!J.datepicker._showSeconds),d.xp6(1),d.Q6J("showSpinners",J.datepicker._showSpinners)("showSeconds",J.datepicker._showSeconds)("disabled",J.datepicker._disabled)("stepHour",J.datepicker._stepHour)("stepMinute",J.datepicker._stepMinute)("stepSecond",J.datepicker._stepSecond)("ngModel",J.datepicker._selected)("color",J.datepicker._color)("enableMeridian",J.datepicker._enableMeridian)("disableMinute",J.datepicker._disableMinute)}}function dn(j,Ft){1&j&&(d.TgZ(0,"mat-icon"),d._uU(1,"done"),d.qZA())}function Pn(j,Ft){}function ii(j,Ft){if(1&j){const J=d.EpF();d.ynx(0),d.YNc(1,Oe,2,12,"div",2),d.TgZ(2,"div",3)(3,"button",4),d.NdJ("click",function(){d.CHM(J);const ze=d.oxw();return d.KtG(ze.datepicker.ok())}),d.YNc(4,dn,2,0,"mat-icon",1),d.YNc(5,Pn,0,0,"ng-template",5),d.qZA()(),d.BQk()}if(2&j){const J=d.oxw();d.xp6(1),d.Q6J("ngIf",!J.datepicker._hideTime),d.xp6(2),d.Q6J("color",J.datepicker._color)("disabled",!J.valid),d.xp6(1),d.Q6J("ngIf",!J.datepicker._customIcon),d.xp6(1),d.Q6J("cdkPortalOutlet",J._templateCustomIconPortal)}}const _i=new d.OlP("ngx-mat-date-formats");class oi{constructor(Ft,J,Et,ze,Vn={},Xi=Ft,To){this.value=Ft,this.displayValue=J,this.ariaLabel=Et,this.enabled=ze,this.cssClasses=Vn,this.compareValue=Xi,this.rawValue=To}}let We=(()=>{class j{constructor(J,Et){this._elementRef=J,this._ngZone=Et,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new d.vpe,this.previewChange=new d.vpe,this._enterHandler=ze=>{if(this._skipNextFocus&&"focus"===ze.type)this._skipNextFocus=!1;else if(ze.target&&this.isRange){const Vn=this._getCellFromElement(ze.target);Vn&&this._ngZone.run(()=>this.previewChange.emit({value:Vn.enabled?Vn:null,event:ze}))}},this._leaveHandler=ze=>{null!==this.previewEnd&&this.isRange&&ze.target&&ee(ze.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:ze}))},Et.runOutsideAngular(()=>{const ze=J.nativeElement;ze.addEventListener("mouseenter",this._enterHandler,!0),ze.addEventListener("focus",this._enterHandler,!0),ze.addEventListener("mouseleave",this._leaveHandler,!0),ze.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(J,Et){J.enabled&&this.selectedValueChange.emit({value:J.value,event:Et})}_isSelected(J){return this.startValue===J.compareValue||this.endValue===J.compareValue}ngOnChanges(J){const Et=J.numCols,{rows:ze,numCols:Vn}=this;(J.rows||Et)&&(this._firstRowOffset=ze&&ze.length&&ze[0].length?Vn-ze[0].length:0),(J.cellAspectRatio||Et||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vn+"%"),(Et||!this._cellWidth)&&(this._cellWidth=100/Vn+"%")}ngOnDestroy(){const J=this._elementRef.nativeElement;J.removeEventListener("mouseenter",this._enterHandler,!0),J.removeEventListener("focus",this._enterHandler,!0),J.removeEventListener("mouseleave",this._leaveHandler,!0),J.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(J,Et){let ze=J*this.numCols+Et;return J&&(ze-=this._firstRowOffset),ze==this.activeCell}_focusActiveCell(J=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,U.q)(1)).subscribe(()=>{const Et=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Et&&(J||(this._skipNextFocus=!0),Et.focus())})})}_isRangeStart(J){return ot(J,this.startValue,this.endValue)}_isRangeEnd(J){return X(J,this.startValue,this.endValue)}_isInRange(J){return At(J,this.startValue,this.endValue,this.isRange)}_isComparisonStart(J){return ot(J,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(J,Et,ze){if(!this._isComparisonStart(J)||this._isRangeStart(J)||!this._isInRange(J))return!1;let Vn=this.rows[Et][ze-1];if(!Vn){const Xi=this.rows[Et-1];Vn=Xi&&Xi[Xi.length-1]}return Vn&&!this._isRangeEnd(Vn.compareValue)}_isComparisonBridgeEnd(J,Et,ze){if(!this._isComparisonEnd(J)||this._isRangeEnd(J)||!this._isInRange(J))return!1;let Vn=this.rows[Et][ze+1];if(!Vn){const Xi=this.rows[Et+1];Vn=Xi&&Xi[0]}return Vn&&!this._isRangeStart(Vn.compareValue)}_isComparisonEnd(J){return X(J,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(J){return At(J,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(J){return ot(J,this.previewStart,this.previewEnd)}_isPreviewEnd(J){return X(J,this.previewStart,this.previewEnd)}_isInPreview(J){return At(J,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(J){let Et;if(ee(J)?Et=J:ee(J.parentNode)&&(Et=J.parentNode),Et){const ze=Et.getAttribute("data-ngx-mat-row"),Vn=Et.getAttribute("data-ngx-mat-col");if(ze&&Vn)return this.rows[parseInt(ze)][parseInt(Vn)]}return null}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.SBq),d.Y36(d.R0b))},j.\u0275cmp=d.Xpm({type:j,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[d.TTD],attrs:bt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(J,Et){1&J&&(d.YNc(0,mt,3,6,"tr",0),d.YNc(1,kt,3,2,"tr",1)),2&J&&(d.Q6J("ngIf",Et._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),j})();function ee(j){return"TD"===j.nodeName}function ot(j,Ft,J){return null!==J&&Ft!==J&&j=Ft&&j===J}function At(j,Ft,J,Et){return Et&&null!==Ft&&null!==J&&Ft!==J&&j>=Ft&&j<=J}class Ht extends K._A{isSameTime(Ft,J){return null==Ft||null==J||this.getHour(Ft)===this.getHour(J)&&this.getMinute(Ft)===this.getMinute(J)&&this.getSecond(Ft)===this.getSecond(J)}copyTime(Ft,J){this.setHour(Ft,this.getHour(J)),this.setMinute(Ft,this.getMinute(J)),this.setSecond(Ft,this.getSecond(J))}compareDateWithTime(Ft,J,Et){let ze=super.compareDate(Ft,J)||this.getHour(Ft)-this.getHour(J)||this.getMinute(Ft)-this.getMinute(J);return Et&&(ze=ze||this.getSecond(Ft)-this.getSecond(J)),ze}setTimeByDefaultValues(Ft,J){if(!Array.isArray(J))throw Error("@Input DefaultTime should be an array");this.setHour(Ft,J[0]||0),this.setMinute(Ft,J[1]||0),this.setSecond(Ft,J[2]||0)}}const ue=new d.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let ye=(()=>{class j{constructor(J){this._dateAdapter=J}selectionFinished(J,Et){let{start:ze,end:Vn}=Et;return null==ze?ze=J:null==Vn&&J&&this._dateAdapter.compareDate(J,ze)>=0?Vn=J:(ze=J,Vn=null),new N.C0(ze,Vn)}createPreview(J,Et){let ze=null,Vn=null;return Et.start&&!Et.end&&J&&(ze=Et.start,Vn=J),new N.C0(ze,Vn)}}return j.\u0275fac=function(J){return new(J||j)(d.LFG(Ht))},j.\u0275prov=d.Yz7({token:j,factory:j.\u0275fac}),j})();const Se={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},mi=/[^0-9]/g,Di=/^(2[0-3]|[0-1][0-9]|[0-9])$/,bo=/^([0-5][0-9]|[0-9])$/,hi=/^([0-5][0-9]|[0-9])$/;function zn(j){const Ft=j.toString();return Ft.length>1?Ft:`0${Ft}`}function Bn(j){return Error(`NgxMatDatepicker: No provider found for ${j}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let Ve=(()=>{class j{constructor(J,Et,ze,Vn,Xi){if(this._changeDetectorRef=J,this._dateFormats=Et,this._dateAdapter=ze,this._dir=Vn,this._rangeStrategy=Xi,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new d.vpe,this._userSelection=new d.vpe,this.activeDateChange=new d.vpe,!this._dateAdapter)throw Bn("NgxMatDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){const Et=this._activeDate,ze=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(ze,this.minDate,this.maxDate),this._hasSameMonthAndYear(Et,this._activeDate)||this._init()}get selected(){return this._selected}set selected(J){this._selected=J instanceof N.C0?J:this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(J){const Et=J.value,ze=this._dateAdapter.getYear(this.activeDate),Vn=this._dateAdapter.getMonth(this.activeDate),Xi=this._dateAdapter.createDate(ze,Vn,Et);let To,_r;this._selected instanceof N.C0?(To=this._getDateInCurrentMonth(this._selected.start),_r=this._getDateInCurrentMonth(this._selected.end)):To=_r=this._getDateInCurrentMonth(this._selected),(To!==Et||_r!==Et)&&this.selectedChange.emit(Xi),this._userSelection.emit({value:Xi,event:J.event})}_handleCalendarBodyKeydown(J){const Et=this._activeDate,ze=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,ze?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,ze?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case T.Ku:this.activeDate=J.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case T.VM:this.activeDate=J.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case T.K5:case T.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:J}),J.preventDefault()));case T.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:J}),J.preventDefault(),J.stopPropagation()));default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(J)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(J){this._matCalendarBody._focusActiveCell(J)}_previewChanged({event:J,value:Et}){if(this._rangeStrategy){const Vn=this._rangeStrategy.createPreview(Et?Et.rawValue:null,this.selected,J);this._previewStart=this._getCellCompareValue(Vn.start),this._previewEnd=this._getCellCompareValue(Vn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const J=this._dateAdapter.getFirstDayOfWeek(),Et=this._dateAdapter.getDayOfWeekNames("narrow");let Vn=this._dateAdapter.getDayOfWeekNames("long").map((Xi,To)=>({long:Xi,narrow:Et[To]}));this._weekdays=Vn.slice(J).concat(Vn.slice(0,J))}_createWeekCells(){const J=this._dateAdapter.getNumDaysInMonth(this.activeDate),Et=this._dateAdapter.getDateNames();this._weeks=[[]];for(let ze=0,Vn=this._firstWeekOffset;ze=0)&&(!this.maxDate||this._dateAdapter.compareDate(J,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(J))}_getDateInCurrentMonth(J){return J&&this._hasSameMonthAndYear(J,this.activeDate)?this._dateAdapter.getDate(J):null}_hasSameMonthAndYear(J,Et){return!(!J||!Et||this._dateAdapter.getMonth(J)!=this._dateAdapter.getMonth(Et)||this._dateAdapter.getYear(J)!=this._dateAdapter.getYear(Et))}_getCellCompareValue(J){if(J){const Et=this._dateAdapter.getYear(J),ze=this._dateAdapter.getMonth(J),Vn=this._dateAdapter.getDate(J);return new Date(Et,ze,Vn).getTime()}return null}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(J){J instanceof N.C0?(this._rangeStart=this._getCellCompareValue(J.start),this._rangeEnd=this._getCellCompareValue(J.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(J),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.sBO),d.Y36(_i,8),d.Y36(Ht,8),d.Y36(et.Is,8),d.Y36(ue,8))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-month-view"]],viewQuery:function(J,Et){if(1&J&&d.Gf(We,5),2&J){let ze;d.iGM(ze=d.CRH())&&(Et._matCalendarBody=ze.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(J,Et){1&J&&(d.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),d.YNc(3,le,2,2,"th",2),d.qZA(),d.TgZ(4,"tr"),d._UZ(5,"th",3),d.qZA()(),d.TgZ(6,"tbody",4),d.NdJ("selectedValueChange",function(Vn){return Et._dateSelected(Vn)})("previewChange",function(Vn){return Et._previewChanged(Vn)})("keydown",function(Vn){return Et._handleCalendarBodyKeydown(Vn)}),d.qZA()()),2&J&&(d.xp6(3),d.Q6J("ngForOf",Et._weekdays),d.xp6(3),d.Q6J("label",Et._monthLabel)("rows",Et._weeks)("todayValue",Et._todayDate)("startValue",Et._rangeStart)("endValue",Et._rangeEnd)("comparisonStart",Et._comparisonRangeStart)("comparisonEnd",Et._comparisonRangeEnd)("previewStart",Et._previewStart)("previewEnd",Et._previewEnd)("isRange",Et._isRange)("labelMinRequiredCells",3)("activeCell",Et._dateAdapter.getDate(Et.activeDate)-1))},dependencies:[B.sg,We],encapsulation:2,changeDetection:0}),j})(),ce=(()=>{class j{constructor(J,Et,ze){if(this._changeDetectorRef=J,this._dateAdapter=Et,this._dir=ze,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new d.vpe,this.yearSelected=new d.vpe,this.activeDateChange=new d.vpe,!this._dateAdapter)throw Bn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Et=this._activeDate;const ze=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(ze,this.minDate,this.maxDate),Be(this._dateAdapter,Et,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(J){this._selected=J instanceof N.C0?J:this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._setSelectedYear(J)}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Et=this._dateAdapter.getYear(this._activeDate)-oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let ze=0,Vn=[];ze<24;ze++)Vn.push(Et+ze),4==Vn.length&&(this._years.push(Vn.map(Xi=>this._createCellForYear(Xi))),Vn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(J){const Et=J.value;this.yearSelected.emit(this._dateAdapter.createDate(Et,0,1));let ze=this._dateAdapter.getMonth(this.activeDate),Vn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Et,ze,1));this.selectedChange.emit(this._dateAdapter.createDate(Et,ze,Math.min(this._dateAdapter.getDate(this.activeDate),Vn)))}_handleCalendarBodyKeydown(J){const Et=this._activeDate,ze=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ze?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ze?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case T.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?-240:-24);break;case T.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?240:24);break;case T.K5:case T.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:J});break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_getActiveCell(){return oe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(J){let Et=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return new oi(J,Et,Et,this._shouldEnableYear(J))}_shouldEnableYear(J){if(null==J||this.maxDate&&J>this._dateAdapter.getYear(this.maxDate)||this.minDate&&J{class j{constructor(J,Et,ze,Vn){if(this._changeDetectorRef=J,this._dateFormats=Et,this._dateAdapter=ze,this._dir=Vn,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new d.vpe,this.monthSelected=new d.vpe,this.activeDateChange=new d.vpe,!this._dateAdapter)throw Bn("NgxMatDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(J){let Et=this._activeDate;const ze=this._getValidDateOrNull(this._dateAdapter.deserialize(J))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(ze,this.minDate,this.maxDate),this._dateAdapter.getYear(Et)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(J){this._selected=J instanceof N.C0?J:this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._setSelectedMonth(J)}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(J){const Et=J.value,ze=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Et,1);this.monthSelected.emit(ze);const Vn=this._dateAdapter.getNumDaysInMonth(ze);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Et,Math.min(this._dateAdapter.getDate(this.activeDate),Vn)))}_handleCalendarBodyKeydown(J){const Et=this._activeDate,ze=this._isRtl();switch(J.keyCode){case T.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,ze?1:-1);break;case T.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,ze?-1:1);break;case T.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case T.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case T.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case T.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case T.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?-10:-1);break;case T.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J.altKey?10:1);break;case T.K5:case T.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:J});break;default:return}this._dateAdapter.compareDate(Et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),J.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let J=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Et=>Et.map(ze=>this._createCellForMonth(ze,J[ze]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(J){return J&&this._dateAdapter.getYear(J)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(J):null}_createCellForMonth(J,Et){let ze=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),J,1),this._dateFormats.display.monthYearA11yLabel);return new oi(J,Et.toLocaleUpperCase(),ze,this._shouldEnableMonth(J))}_shouldEnableMonth(J){const Et=this._dateAdapter.getYear(this.activeDate);if(null==J||this._isYearAndMonthAfterMaxDate(Et,J)||this._isYearAndMonthBeforeMinDate(Et,J))return!1;if(!this.dateFilter)return!0;for(let Vn=this._dateAdapter.createDate(Et,J,1);this._dateAdapter.getMonth(Vn)==J;Vn=this._dateAdapter.addCalendarDays(Vn,1))if(this.dateFilter(Vn))return!0;return!1}_isYearAndMonthAfterMaxDate(J,Et){if(this.maxDate){const ze=this._dateAdapter.getYear(this.maxDate),Vn=this._dateAdapter.getMonth(this.maxDate);return J>ze||J===ze&&Et>Vn}return!1}_isYearAndMonthBeforeMinDate(J,Et){if(this.minDate){const ze=this._dateAdapter.getYear(this.minDate),Vn=this._dateAdapter.getMonth(this.minDate);return J{class j{constructor(J,Et,ze,Vn,Xi){this._intl=J,this.calendar=Et,this._dateAdapter=ze,this._dateFormats=Vn,this.calendar.stateChanges.subscribe(()=>Xi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Et=this._dateAdapter.getYear(this.calendar.activeDate)-oe(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),ze=Et+24-1;return function Qe(j,Ft){return`${j} \u2013 ${Ft}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Et,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(ze,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(J,Et){return"month"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Et)&&this._dateAdapter.getMonth(J)==this._dateAdapter.getMonth(Et):"year"==this.calendar.currentView?this._dateAdapter.getYear(J)==this._dateAdapter.getYear(Et):Be(this._dateAdapter,J,Et,this.calendar.minDate,this.calendar.maxDate)}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(N.S8),d.Y36((0,d.Gpc)(()=>It)),d.Y36(Ht,8),d.Y36(_i,8),d.Y36(d.sBO))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Vt,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(J,Et){1&J&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1)(2,"button",2),d.NdJ("click",function(){return Et.currentPeriodClicked()}),d._uU(3),d._UZ(4,"div",3),d.qZA(),d._UZ(5,"div",4),d.Hsn(6),d.TgZ(7,"button",5),d.NdJ("click",function(){return Et.previousClicked()}),d.qZA(),d.TgZ(8,"button",6),d.NdJ("click",function(){return Et.nextClicked()}),d.qZA()()()),2&J&&(d.xp6(2),d.uIk("aria-label",Et.periodButtonLabel),d.xp6(1),d.hij(" ",Et.periodButtonText," "),d.xp6(1),d.ekj("mat-calendar-invert","month"!=Et.calendar.currentView),d.xp6(3),d.Q6J("disabled",!Et.previousEnabled()),d.uIk("aria-label",Et.prevButtonLabel),d.xp6(1),d.Q6J("disabled",!Et.nextEnabled()),d.uIk("aria-label",Et.nextButtonLabel))},dependencies:[ct.lW],encapsulation:2,changeDetection:0}),j})(),It=(()=>{class j{constructor(J,Et,ze,Vn){if(this._dateAdapter=Et,this._dateFormats=ze,this._changeDetectorRef=Vn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new d.vpe,this.yearSelected=new d.vpe,this.monthSelected=new d.vpe,this._userSelection=new d.vpe,this.stateChanges=new g.xQ,!this._dateAdapter)throw Bn("NgxDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._intlChanges=J.changes.subscribe(()=>{Vn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(J){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get selected(){return this._selected}set selected(J){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get minDate(){return this._minDate}set minDate(J){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get maxDate(){return this._maxDate}set maxDate(J){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get activeDate(){return this._clampedActiveDate}set activeDate(J){this._clampedActiveDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(J){this._currentView=J,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new u.C5(this.headerComponent||xe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(J){const Et=J.minDate||J.maxDate||J.dateFilter;if(Et&&!Et.firstChange){const ze=this._getCurrentViewComponent();ze&&(this._changeDetectorRef.detectChanges(),ze._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(J){J&&!this._dateAdapter.sameDate(J,this.selected)&&this.selectedChange.emit(J)}_yearSelectedInMultiYearView(J){this.yearSelected.emit(J)}_monthSelectedInYearView(J){this.monthSelected.emit(J)}_userSelected(){this._userSelection.emit()}_goToDateInView(J,Et){this.activeDate=J,this.currentView=Et}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(N.S8),d.Y36(Ht,8),d.Y36(_i,8),d.Y36(d.sBO))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-calendar"]],viewQuery:function(J,Et){if(1&J&&(d.Gf(Ve,5),d.Gf(cn,5),d.Gf(ce,5)),2&J){let ze;d.iGM(ze=d.CRH())&&(Et.monthView=ze.first),d.iGM(ze=d.CRH())&&(Et.yearView=ze.first),d.iGM(ze=d.CRH())&&(Et.multiYearView=ze.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[d.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(J,Et){1&J&&(d.YNc(0,be,0,0,"ng-template",0),d.TgZ(1,"div",1),d.YNc(2,ge,1,6,"ngx-mat-month-view",2),d.YNc(3,Fe,1,5,"ngx-mat-year-view",3),d.YNc(4,qe,1,5,"ngx-mat-multi-year-view",4),d.qZA()),2&J&&(d.Q6J("cdkPortalOutlet",Et._calendarHeaderPortal),d.xp6(1),d.Q6J("ngSwitch",Et.currentView),d.xp6(1),d.Q6J("ngSwitchCase","month"),d.xp6(1),d.Q6J("ngSwitchCase","year"),d.xp6(1),d.Q6J("ngSwitchCase","multi-year"))},dependencies:[B.RF,B.n9,u.Pl,Ve,cn,ce],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),j})(),Le=(()=>{class j{constructor(J,Et,ze){if(this._dateAdapter=J,this.cd=Et,this.formBuilder=ze,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new g.xQ,this.pattern=Di,!this._dateAdapter)throw Bn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(Di)]],minute:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(bo)]],second:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(hi)]]})}get hour(){let J=Number(this.form.controls.hour.value);return isNaN(J)?0:J}get minute(){let J=Number(this.form.controls.minute.value);return isNaN(J)?0:J}get second(){let J=Number(this.form.controls.second.value);return isNaN(J)?0:J}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,P.R)(this._destroyed),(0,O.b)(400)).subscribe(J=>{this._updateModel()})}ngOnChanges(J){(J.disabled||J.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(J){null!=J?this._model=J:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this._disabled=J,this.cd.markForCheck()}formatInput(J){J.value=J.value.replace(mi,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(J,Et){const ze=this._getNextValueByProp(J,Et);this.form.controls[J].setValue(zn(ze),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let J=this._dateAdapter.getHour(this._model);const Et=this._dateAdapter.getMinute(this._model),ze=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(J>=Se.meridian?(J-=Se.meridian,this.meridian="PM"):this.meridian="AM",0===J&&(J=Se.meridian)),this.form.controls.hour.setValue(zn(J)),this.form.controls.minute.setValue(zn(Et)),this.form.controls.second.setValue(zn(ze))}_updateModel(){let J=this.hour;this.enableMeridian&&("AM"===this.meridian&&J===Se.meridian?J=0:"PM"===this.meridian&&J!==Se.meridian&&(J+=Se.meridian)),this._dateAdapter.setHour(this._model,J),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(J,Et){const ze=J[0].toUpperCase()+J.slice(1),Vn=Se[`min${ze}`];let To,Xi=Se[`max${ze}`];return"hour"===J&&this.enableMeridian&&(Xi=Se.meridian),null==Et?(To=this[J]%Xi,"hour"===J&&this.enableMeridian&&0===To&&(To=Xi)):(To=Et?this[J]+this[`step${ze}`]:this[J]-this[`step${ze}`],"hour"===J&&this.enableMeridian?(To%=Xi+1,0===To&&(To=Et?1:Xi)):To%=Xi,To=Et?To>Xi?To-Xi+Vn:To:Toj),multi:!0}]),d.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(J,Et){1&J&&(d.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),d.YNc(3,ie,14,5,"tr",3),d.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),d.NdJ("input",function(Vn){return Et.formatInput(Vn.target)})("keydown.ArrowUp",function(Vn){return Et.change("hour",!0),Vn.preventDefault()})("keydown.ArrowDown",function(Vn){return Et.change("hour",!1),Vn.preventDefault()})("blur",function(){return Et.change("hour")}),d.qZA()()(),d.TgZ(8,"td",6),d._uU(9,":"),d.qZA(),d.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),d.NdJ("input",function(Vn){return Et.formatInput(Vn.target)})("keydown.ArrowUp",function(Vn){return Et.change("minute",!0),Vn.preventDefault()})("keydown.ArrowDown",function(Vn){return Et.change("minute",!1),Vn.preventDefault()})("blur",function(){return Et.change("minute")}),d.qZA()()(),d.YNc(13,Wt,2,0,"td",8),d.YNc(14,se,3,0,"td",3),d.YNc(15,Xt,1,0,"td",8),d.YNc(16,ae,3,3,"td",9),d.qZA(),d.YNc(17,bn,14,6,"tr",3),d.qZA()()()),2&J&&(d.Q6J("formGroup",Et.form),d.xp6(3),d.Q6J("ngIf",Et.showSpinners),d.xp6(10),d.Q6J("ngIf",Et.showSeconds),d.xp6(1),d.Q6J("ngIf",Et.showSeconds),d.xp6(1),d.Q6J("ngIf",Et.enableMeridian),d.xp6(1),d.Q6J("ngIf",Et.enableMeridian),d.xp6(1),d.Q6J("ngIf",Et.showSpinners))},dependencies:[B.O5,Zt.KE,Rt.Nt,Dt._Y,Dt.Fj,Dt.JJ,Dt.JL,Dt.nD,Dt.sg,Dt.u,Gt.Hw,ct.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),j})(),zt=0;const we=(0,K.pj)(class{constructor(j){this._elementRef=j}});let He=(()=>{class j extends we{constructor(J,Et,ze){super(J),this.cd=Et,this._viewContainerRef=ze}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new u.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.s_b))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(J,Et){if(1&J&&(d.Gf(It,5),d.Gf(Le,5)),2&J){let ze;d.iGM(ze=d.CRH())&&(Et._calendar=ze.first),d.iGM(ze=d.CRH())&&(Et._timePicker=ze.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(J,Et){2&J&&(d.d8E("@transformPanel","enter"),d.ekj("mat-datepicker-content-touch",Et.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[d.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(J,Et){1&J&&(d.TgZ(0,"ngx-mat-calendar",0),d.NdJ("selectedChange",function(Vn){return Et.datepicker.select(Vn)})("yearSelected",function(Vn){return Et.datepicker._selectYear(Vn)})("monthSelected",function(Vn){return Et.datepicker._selectMonth(Vn)}),d.qZA(),d.YNc(1,ii,6,5,"ng-container",1)),2&J&&(d.Q6J("id",Et.datepicker.id)("ngClass",Et.datepicker.panelClass)("startAt",Et.datepicker.startAt)("startView",Et.datepicker.startView)("minDate",Et.datepicker._minDate)("maxDate",Et.datepicker._maxDate)("dateFilter",Et.datepicker._dateFilter)("headerComponent",Et.datepicker.calendarHeaderComponent)("selected",Et.datepicker._selected)("dateClass",Et.datepicker.dateClass)("@fadeInCalendar","enter"),d.xp6(1),d.Q6J("ngIf",Et.isViewMonth))},dependencies:[B.mk,B.O5,u.Pl,Dt.JJ,Dt.On,Gt.Hw,ct.lW,Le,It],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[N.E2.transformPanel,N.E2.fadeInCalendar]},changeDetection:0}),j})(),kn=(()=>{class j{constructor(J,Et,ze,Vn,Xi,To,_r,fr){if(this._dialog=J,this._overlay=Et,this._ngZone=ze,this._viewContainerRef=Vn,this._dateAdapter=To,this._dir=_r,this._document=fr,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new d.vpe,this.monthSelected=new d.vpe,this.openedStream=new d.vpe,this.closedStream=new d.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+zt++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=v.w.EMPTY,this.stateChanges=new g.xQ,this._selectedChanged=new g.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw Bn("NgxMatDateAdapter");this._scrollStrategy=Xi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(J){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(J))}get defaultColor(){return this._defaultColor}set defaultColor(J){this._defaultColor=J}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(J){this._color=J}get touchUi(){return this._touchUi}set touchUi(J){this._touchUi=(0,lt.Ig)(J)}get hideTime(){return this._hideTime}set hideTime(J){this._hideTime=(0,lt.Ig)(J)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(J){const Et=(0,lt.Ig)(J);Et!==this._disabled&&(this._disabled=Et,this.stateChanges.next(Et))}get opened(){return this._opened}set opened(J){J?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(J){this._showSpinners=J}get showSeconds(){return this._showSeconds}set showSeconds(J){this._showSeconds=J}get stepHour(){return this._stepHour}set stepHour(J){this._stepHour=J}get stepMinute(){return this._stepMinute}set stepMinute(J){this._stepMinute=J}get stepSecond(){return this._stepSecond}set stepSecond(J){this._stepSecond=J}get enableMeridian(){return this._enableMeridian}set enableMeridian(J){this._enableMeridian=J}get disableMinute(){return this._disableMinute}set disableMinute(J){this._disableMinute=J}get defaultTime(){return this._defaultTime}set defaultTime(J){this._defaultTime=J}get _selected(){return this._validSelected}set _selected(J){this._validSelected=J}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const J=this._minValidator(),Et=this._maxValidator();return null==J&&null==Et}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(J){this._dateAdapter.copyTime(J,this._selected),this._selected=J}_selectYear(J){this.yearSelected.emit(J)}_selectMonth(J){this.monthSelected.emit(J)}ok(){const J=this._dateAdapter.clone(this._selected);this._selectedChanged.next(J),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(J){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=J,this._inputSubscription=this.datepickerInput._valueChange.subscribe(Et=>this._selected=Et)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const J=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(J)):J()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(He,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new u.C5(He,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,U.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const J=new Ct.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(J),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,L.h)(Et=>Et.keyCode===T.hY||this.datepickerInput&&Et.altKey&&Et.keyCode===T.LH))).subscribe(Et=>{Et&&Et.preventDefault(),this._hasBackdrop&&Et?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}_setColor(){const J=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=J),this._dialogRef&&(this._dialogRef.componentInstance.color=J)}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(Tt.uw),d.Y36(Ct.aV),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(N.Uu),d.Y36(Ht,8),d.Y36(et.Is,8),d.Y36(B.K0,8))},j.\u0275cmp=d.Xpm({type:j,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(J,Et,ze){if(1&J&&d.Suo(ze,d.Rgc,5),2&J){let Vn;d.iGM(Vn=d.CRH())&&(Et._customIcon=Vn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(J,Et){},encapsulation:2,changeDetection:0}),j})();const Ei={provide:Dt.JU,useExisting:(0,d.Gpc)(()=>_n),multi:!0},Bi={provide:Dt.Cf,useExisting:(0,d.Gpc)(()=>_n),multi:!0};class un{constructor(Ft,J){this.target=Ft,this.targetElement=J,this.value=this.target.value}}let xi,_n=(()=>{class j{constructor(J,Et,ze,Vn){if(this._elementRef=J,this._dateAdapter=Et,this._dateFormats=ze,this._formField=Vn,this.dateChange=new d.vpe,this.dateInput=new d.vpe,this._valueChange=new d.vpe,this.stateChanges=new d.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=v.w.EMPTY,this._localeSubscription=v.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Xi=>{const To=this._getValidDateOrNull(this._dateAdapter.deserialize(Xi.value));return!this.min||!To||this._dateAdapter.compareDateWithTime(this.min,To,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:To}}},this._maxValidator=Xi=>{const To=this._getValidDateOrNull(this._dateAdapter.deserialize(Xi.value));return!this.max||!To||this._dateAdapter.compareDateWithTime(this.max,To,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:To}}},this._filterValidator=Xi=>{const To=this._getValidDateOrNull(this._dateAdapter.deserialize(Xi.value));return this._dateFilter&&To&&!this._dateFilter(To)?{matDatetimePickerFilter:!0}:null},this._validator=Dt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Bn("NgxMatDateAdapter");if(!this._dateFormats)throw Bn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Et.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(J){!J||(this._datepicker=J,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(Et=>{this.value=Et,this._cvaOnChange(Et),this._onTouched(),this.dateInput.emit(new un(this,this._elementRef.nativeElement)),this.dateChange.emit(new un(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(J){this._dateFilter=J,this._validatorOnChange()}get value(){return this._value}set value(J){J=this._dateAdapter.deserialize(J),this._lastValueValid=!J||this._dateAdapter.isValid(J),J=this._getValidDateOrNull(J);const Et=this.value;this._value=J,this._formatValue(J),this._dateAdapter.sameDate(Et,J)||this._valueChange.emit(J)}get min(){return this._min}set min(J){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._validatorOnChange()}get max(){return this._max}set max(J){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(J)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(J){const Et=null!=J&&"false"!=`${J}`,ze=this._elementRef.nativeElement;this._disabled!==Et&&(this._disabled=Et,this.stateChanges.emit(void 0)),Et&&ze.blur&&ze.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(J){this._validatorOnChange=J}validate(J){return this._validator?this._validator(J):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(J){this.value=J}registerOnChange(J){this._cvaOnChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J}_onKeydown(J){this._datepicker&&J.altKey&&J.keyCode===T.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),J.preventDefault())}_onInput(J){const Et=this._lastValueValid;let ze=this._dateAdapter.parse(J,this._dateFormats.parse.dateInput);this._lastValueValid=!ze||this._dateAdapter.isValid(ze),ze=this._getValidDateOrNull(ze);const Vn=this._dateAdapter.isSameTime(ze,this._value);null!=ze&&(!Vn||!this._dateAdapter.sameDate(ze,this._value))||null==ze&&null!=this._value?(this._value=ze,this._cvaOnChange(ze),this._valueChange.emit(ze),this.dateInput.emit(new un(this,this._elementRef.nativeElement))):Et!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new un(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(J){this._elementRef.nativeElement.value=J?this._dateAdapter.format(J,this._dateFormats.display.dateInput):""}_getValidDateOrNull(J){return this._dateAdapter.isDateInstance(J)&&this._dateAdapter.isValid(J)?J:null}}return j.\u0275fac=function(J){return new(J||j)(d.Y36(d.SBq),d.Y36(Ht,8),d.Y36(_i,8),d.Y36(Zt.KE,8))},j.\u0275dir=d.lG2({type:j,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(J,Et){1&J&&d.NdJ("input",function(Vn){return Et._onInput(Vn.target.value)})("change",function(){return Et._onChange()})("blur",function(){return Et._onBlur()})("focus",function(){return Et._onFocus()})("keydown",function(Vn){return Et._onKeydown(Vn)}),2&J&&(d.Ikx("disabled",Et.disabled),d.uIk("aria-haspopup",Et._datepicker?"dialog":null)("aria-owns",(null==Et._datepicker?null:Et._datepicker.opened)&&Et._datepicker.id||null)("min",Et.min?Et._dateAdapter.toIso8601(Et.min):null)("max",Et.max?Et._dateAdapter.toIso8601(Et.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[d._Bn([Ei,Bi,{provide:Rt.Jk,useExisting:j}])]}),j})(),Ke=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({imports:[B.ez,Rt.c,Dt.UX,Dt.u5,Gt.Ps,ct.ot]}),j})(),ai=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({providers:[N.Lv,{provide:ue,useClass:ye}],imports:[B.ez,N.FA,Tt.Is,u.eL,Dt.u5,Gt.Ps,ct.ot,Rt.c,Ke]}),j})();try{xi=typeof Intl<"u"}catch{xi=!1}const co={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Co=Ta(31,j=>String(j+1)),So={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ma=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ta(j,Ft){const J=Array(j);for(let Et=0;Et{class j extends Ht{constructor(J,Et){super(),this.useUtcForDisplay=!0,super.setLocale(J),this.useUtcForDisplay=!Et.TRIDENT,this._clampDate=Et.TRIDENT||Et.EDGE}getYear(J){return J.getFullYear()}getMonth(J){return J.getMonth()}getDate(J){return J.getDate()}getDayOfWeek(J){return J.getDay()}getMonthNames(J){if(xi){const Et=new Intl.DateTimeFormat(this.locale,{month:J,timeZone:"utc"});return Ta(12,ze=>this._stripDirectionalityCharacters(this._format(Et,new Date(2017,ze,1))))}return co[J]}getDateNames(){if(xi){const J=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ta(31,Et=>this._stripDirectionalityCharacters(this._format(J,new Date(2017,0,Et+1))))}return Co}getDayOfWeekNames(J){if(xi){const Et=new Intl.DateTimeFormat(this.locale,{weekday:J,timeZone:"utc"});return Ta(7,ze=>this._stripDirectionalityCharacters(this._format(Et,new Date(2017,0,ze+1))))}return So[J]}getYearName(J){if(xi){const Et=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Et,J))}return String(this.getYear(J))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(J){return this.getDate(this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+1,0))}clone(J){return new Date(J.getTime())}createDate(J,Et,ze){if(Et<0||Et>11)throw Error(`Invalid month index "${Et}". Month index has to be between 0 and 11.`);if(ze<1)throw Error(`Invalid date "${ze}". Date has to be greater than 0.`);let Vn=this._createDateWithOverflow(J,Et,ze);if(Vn.getMonth()!=Et)throw Error(`Invalid date "${ze}" for month with index "${Et}".`);return Vn}today(){return new Date}parse(J){return"number"==typeof J?new Date(J):J?new Date(Date.parse(J)):null}format(J,Et){if(!this.isValid(J))throw Error("NativeDateAdapter: Cannot format invalid date.");if(xi){this._clampDate&&(J.getFullYear()<1||J.getFullYear()>9999)&&(J=this.clone(J)).setFullYear(Math.max(1,Math.min(9999,J.getFullYear()))),Et={...Et,timeZone:"utc"};const ze=new Intl.DateTimeFormat(this.locale,Et);return this._stripDirectionalityCharacters(this._format(ze,J))}return this._stripDirectionalityCharacters(J.toDateString())}addCalendarYears(J,Et){return this.addCalendarMonths(J,12*Et)}addCalendarMonths(J,Et){let ze=this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+Et,this.getDate(J));return this.getMonth(ze)!=((this.getMonth(J)+Et)%12+12)%12&&(ze=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),0)),ze}addCalendarDays(J,Et){return this._createDateWithOverflow(this.getYear(J),this.getMonth(J),this.getDate(J)+Et)}toIso8601(J){return[J.getUTCFullYear(),this._2digit(J.getUTCMonth()+1),this._2digit(J.getUTCDate())].join("-")}deserialize(J){if("string"==typeof J){if(!J)return null;if(ma.test(J)){let Et=new Date(J);if(this.isValid(Et))return Et}}return super.deserialize(J)}isDateInstance(J){return J instanceof Date}isValid(J){return!isNaN(J.getTime())}invalid(){return new Date(NaN)}getHour(J){return J.getHours()}getMinute(J){return J.getMinutes()}getSecond(J){return J.getSeconds()}setHour(J,Et){J.setHours(Et)}setMinute(J,Et){J.setMinutes(Et)}setSecond(J,Et){J.setSeconds(Et)}_createDateWithOverflow(J,Et,ze){const Vn=new Date(J,Et,ze);return J>=0&&J<100&&Vn.setFullYear(this.getYear(Vn)-1900),Vn}_2digit(J){return("00"+J).slice(-2)}_stripDirectionalityCharacters(J){return J.replace(/[\u200e\u200f]/g,"")}_format(J,Et){const ze=new Date;return ze.setUTCFullYear(Et.getFullYear(),Et.getMonth(),Et.getDate()),ze.setUTCHours(Et.getHours(),Et.getMinutes(),Et.getSeconds(),Et.getMilliseconds()),J.format(ze)}}return j.\u0275fac=function(J){return new(J||j)(d.LFG(K.Ad,8),d.LFG(Ut.t4))},j.\u0275prov=d.Yz7({token:j,factory:j.\u0275fac}),j})();const Rn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},Ye={parse:{dateInput:Rn},display:{dateInput:Rn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Me=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({providers:[{provide:Ht,useClass:Re}],imports:[Ut.ud]}),j})(),an=(()=>{class j{}return j.\u0275fac=function(J){return new(J||j)},j.\u0275mod=d.oAB({type:j}),j.\u0275inj=d.cJS({providers:[{provide:_i,useValue:Ye}],imports:[Me]}),j})()},37340:(tt,W,f)=>{"use strict";f.d(W,{F4:()=>O,IO:()=>et,LC:()=>d,SB:()=>P,X$:()=>g,ZE:()=>Dt,ZN:()=>Ct,_j:()=>u,eR:()=>L,jt:()=>t,k1:()=>Zt,l3:()=>v,oB:()=>w,pV:()=>B,ru:()=>T,vP:()=>U});class u{}class d{}const v="*";function g(Rt,Gt){return{type:7,name:Rt,definitions:Gt,options:{}}}function t(Rt,Gt=null){return{type:4,styles:Gt,timings:Rt}}function T(Rt,Gt=null){return{type:3,steps:Rt,options:Gt}}function U(Rt,Gt=null){return{type:2,steps:Rt,options:Gt}}function w(Rt){return{type:6,styles:Rt,offset:null}}function P(Rt,Gt,Tt){return{type:0,name:Rt,styles:Gt,options:Tt}}function O(Rt){return{type:5,steps:Rt}}function L(Rt,Gt,Tt=null){return{type:1,expr:Rt,animation:Gt,options:Tt}}function B(Rt=null){return{type:9,options:Rt}}function et(Rt,Gt,Tt=null){return{type:11,selector:Rt,animation:Gt,options:Tt}}function lt(Rt){Promise.resolve().then(Rt)}class Ct{constructor(Gt=0,Tt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Gt+Tt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Gt=>Gt()),this._onDoneFns=[])}onStart(Gt){this._originalOnStartFns.push(Gt),this._onStartFns.push(Gt)}onDone(Gt){this._originalOnDoneFns.push(Gt),this._onDoneFns.push(Gt)}onDestroy(Gt){this._onDestroyFns.push(Gt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Gt=>Gt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Gt=>Gt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Gt){this._position=this.totalTime?Gt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Gt){const Tt="start"==Gt?this._onStartFns:this._onDoneFns;Tt.forEach(Ut=>Ut()),Tt.length=0}}class Dt{constructor(Gt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Gt;let Tt=0,Ut=0,bt=0;const mt=this.players.length;0==mt?lt(()=>this._onFinish()):this.players.forEach(Lt=>{Lt.onDone(()=>{++Tt==mt&&this._onFinish()}),Lt.onDestroy(()=>{++Ut==mt&&this._onDestroy()}),Lt.onStart(()=>{++bt==mt&&this._onStart()})}),this.totalTime=this.players.reduce((Lt,Bt)=>Math.max(Lt,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Gt=>Gt()),this._onDoneFns=[])}init(){this.players.forEach(Gt=>Gt.init())}onStart(Gt){this._onStartFns.push(Gt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Gt=>Gt()),this._onStartFns=[])}onDone(Gt){this._onDoneFns.push(Gt)}onDestroy(Gt){this._onDestroyFns.push(Gt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Gt=>Gt.play())}pause(){this.players.forEach(Gt=>Gt.pause())}restart(){this.players.forEach(Gt=>Gt.restart())}finish(){this._onFinish(),this.players.forEach(Gt=>Gt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Gt=>Gt.destroy()),this._onDestroyFns.forEach(Gt=>Gt()),this._onDestroyFns=[])}reset(){this.players.forEach(Gt=>Gt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Gt){const Tt=Gt*this.totalTime;this.players.forEach(Ut=>{const bt=Ut.totalTime?Math.min(1,Tt/Ut.totalTime):1;Ut.setPosition(bt)})}getPosition(){const Gt=this.players.reduce((Tt,Ut)=>null===Tt||Ut.totalTime>Tt.totalTime?Ut:Tt,null);return null!=Gt?Gt.getPosition():0}beforeDestroy(){this.players.forEach(Gt=>{Gt.beforeDestroy&&Gt.beforeDestroy()})}triggerCallback(Gt){const Tt="start"==Gt?this._onStartFns:this._onDoneFns;Tt.forEach(Ut=>Ut()),Tt.length=0}}const Zt="!"},12687:(tt,W,f)=>{"use strict";f.d(W,{$s:()=>Bt,Em:()=>ge,Kd:()=>mi,X6:()=>ee,ic:()=>qe,kH:()=>Bn,mK:()=>dn,qV:()=>Oe,qm:()=>Ne,rt:()=>tn,s1:()=>be,tE:()=>zn,yG:()=>ot});var u=f(36895),d=f(94650),v=f(83353),g=f(8929),t=f(42654),T=f(591),U=f(21086),w=f(29521),P=f(22868),O=f(80013),L=f(92198),N=f(24850),B=f(72986),K=f(31307),et=f(75778),ct=f(7625),lt=f(21281),Ct=f(49643),Dt=f(62289);function Tt(ce,Be){return(ce.getAttribute(Be)||"").match(/\S+/g)||[]}const bt="cdk-describedby-message",mt="cdk-describedby-host";let Lt=0,Bt=(()=>{class ce{constructor(oe,rn){this._platform=rn,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Lt++,this._document=oe,this._id=(0,d.f3M)(d.AFp)+"-"+Lt++}describe(oe,rn,gn){if(!this._canBeDescribed(oe,rn))return;const cn=kt(rn,gn);"string"!=typeof rn?(le(rn,this._id),this._messageRegistry.set(cn,{messageElement:rn,referenceCount:0})):this._messageRegistry.has(cn)||this._createMessageElement(rn,gn),this._isElementDescribedByMessage(oe,cn)||this._addMessageReference(oe,cn)}removeDescription(oe,rn,gn){if(!rn||!this._isElementNode(oe))return;const cn=kt(rn,gn);if(this._isElementDescribedByMessage(oe,cn)&&this._removeMessageReference(oe,cn),"string"==typeof rn){const xe=this._messageRegistry.get(cn);xe&&0===xe.referenceCount&&this._deleteMessageElement(cn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const oe=this._document.querySelectorAll(`[${mt}="${this._id}"]`);for(let rn=0;rn0!=gn.indexOf(bt));oe.setAttribute("aria-describedby",rn.join(" "))}_addMessageReference(oe,rn){const gn=this._messageRegistry.get(rn);(function Rt(ce,Be,oe){const rn=Tt(ce,Be);rn.some(gn=>gn.trim()==oe.trim())||(rn.push(oe.trim()),ce.setAttribute(Be,rn.join(" ")))})(oe,"aria-describedby",gn.messageElement.id),oe.setAttribute(mt,this._id),gn.referenceCount++}_removeMessageReference(oe,rn){const gn=this._messageRegistry.get(rn);gn.referenceCount--,function Gt(ce,Be,oe){const gn=Tt(ce,Be).filter(cn=>cn!=oe.trim());gn.length?ce.setAttribute(Be,gn.join(" ")):ce.removeAttribute(Be)}(oe,"aria-describedby",gn.messageElement.id),oe.removeAttribute(mt)}_isElementDescribedByMessage(oe,rn){const gn=Tt(oe,"aria-describedby"),cn=this._messageRegistry.get(rn),xe=cn&&cn.messageElement.id;return!!xe&&-1!=gn.indexOf(xe)}_canBeDescribed(oe,rn){if(!this._isElementNode(oe))return!1;if(rn&&"object"==typeof rn)return!0;const gn=null==rn?"":`${rn}`.trim(),cn=oe.getAttribute("aria-label");return!(!gn||cn&&cn.trim()===gn)}_isElementNode(oe){return oe.nodeType===this._document.ELEMENT_NODE}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(u.K0),d.LFG(v.t4))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function kt(ce,Be){return"string"==typeof ce?`${Be||""}/${ce}`:ce}function le(ce,Be){ce.id||(ce.id=`${bt}-${Be}-${Lt++}`)}class Vt{constructor(Be){this._items=Be,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new g.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=oe=>oe.disabled,this._pressedLetters=[],this.tabOut=new g.xQ,this.change=new g.xQ,Be instanceof d.n_E&&Be.changes.subscribe(oe=>{if(this._activeItem){const gn=oe.toArray().indexOf(this._activeItem);gn>-1&&gn!==this._activeItemIndex&&(this._activeItemIndex=gn)}})}skipPredicate(Be){return this._skipPredicateFn=Be,this}withWrap(Be=!0){return this._wrap=Be,this}withVerticalOrientation(Be=!0){return this._vertical=Be,this}withHorizontalOrientation(Be){return this._horizontal=Be,this}withAllowedModifierKeys(Be){return this._allowedModifierKeys=Be,this}withTypeAhead(Be=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,P.b)(oe=>this._pressedLetters.push(oe)),(0,O.b)(Be),(0,L.h)(()=>this._pressedLetters.length>0),(0,N.U)(()=>this._pressedLetters.join(""))).subscribe(oe=>{const rn=this._getItemsArray();for(let gn=1;gn!Be[cn]||this._allowedModifierKeys.indexOf(cn)>-1);switch(oe){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&gn){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&gn){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&gn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&gn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&gn){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&gn){this.setLastItemActive();break}return;default:return void((gn||(0,w.Vb)(Be,"shiftKey"))&&(Be.key&&1===Be.key.length?this._letterKeyStream.next(Be.key.toLocaleUpperCase()):(oe>=w.A&&oe<=w.Z||oe>=w.xE&&oe<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(oe))))}this._pressedLetters=[],Be.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Be){const oe=this._getItemsArray(),rn="number"==typeof Be?Be:oe.indexOf(Be);this._activeItem=oe[rn]??null,this._activeItemIndex=rn}_setActiveItemByDelta(Be){this._wrap?this._setActiveInWrapMode(Be):this._setActiveInDefaultMode(Be)}_setActiveInWrapMode(Be){const oe=this._getItemsArray();for(let rn=1;rn<=oe.length;rn++){const gn=(this._activeItemIndex+Be*rn+oe.length)%oe.length;if(!this._skipPredicateFn(oe[gn]))return void this.setActiveItem(gn)}}_setActiveInDefaultMode(Be){this._setActiveItemByIndex(this._activeItemIndex+Be,Be)}_setActiveItemByIndex(Be,oe){const rn=this._getItemsArray();if(rn[Be]){for(;this._skipPredicateFn(rn[Be]);)if(!rn[Be+=oe])return;this.setActiveItem(Be)}}_getItemsArray(){return this._items instanceof d.n_E?this._items.toArray():this._items}}class be extends Vt{setActiveItem(Be){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Be),this.activeItem&&this.activeItem.setActiveStyles()}}class ge extends Vt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Be){return this._origin=Be,this}setActiveItem(Be){super.setActiveItem(Be),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class ce{constructor(oe){this._platform=oe}isDisabled(oe){return oe.hasAttribute("disabled")}isVisible(oe){return function Qt(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(oe)&&"visible"===getComputedStyle(oe).visibility}isTabbable(oe){if(!this._platform.isBrowser)return!1;const rn=function je(ce){try{return ce.frameElement}catch{return null}}(function Ce(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(oe));if(rn&&(-1===De(rn)||!this.isVisible(rn)))return!1;let gn=oe.nodeName.toLowerCase(),cn=De(oe);return oe.hasAttribute("contenteditable")?-1!==cn:!("iframe"===gn||"object"===gn||this._platform.WEBKIT&&this._platform.IOS&&!function nn(ce){let Be=ce.nodeName.toLowerCase(),oe="input"===Be&&ce.type;return"text"===oe||"password"===oe||"select"===Be||"textarea"===Be}(oe))&&("audio"===gn?!!oe.hasAttribute("controls")&&-1!==cn:"video"===gn?-1!==cn&&(null!==cn||this._platform.FIREFOX||oe.hasAttribute("controls")):oe.tabIndex>=0)}isFocusable(oe,rn){return function hn(ce){return!function ie(ce){return function se(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function Ue(ce){let Be=ce.nodeName.toLowerCase();return"input"===Be||"select"===Be||"button"===Be||"textarea"===Be}(ce)||function Wt(ce){return function Xt(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||ae(ce))}(oe)&&!this.isDisabled(oe)&&(rn?.ignoreVisibility||this.isVisible(oe))}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(v.t4))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function ae(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let Be=ce.getAttribute("tabindex");return!(!Be||isNaN(parseInt(Be,10)))}function De(ce){if(!ae(ce))return null;const Be=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(Be)?-1:Be}class bn{constructor(Be,oe,rn,gn,cn=!1){this._element=Be,this._checker=oe,this._ngZone=rn,this._document=gn,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,cn||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Be){this._enabled=Be,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Be,this._startAnchor),this._toggleAnchorTabIndex(Be,this._endAnchor))}destroy(){const Be=this._startAnchor,oe=this._endAnchor;Be&&(Be.removeEventListener("focus",this.startAnchorListener),Be.remove()),oe&&(oe.removeEventListener("focus",this.endAnchorListener),oe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Be){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusInitialElement(Be)))})}focusFirstTabbableElementWhenReady(Be){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusFirstTabbableElement(Be)))})}focusLastTabbableElementWhenReady(Be){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusLastTabbableElement(Be)))})}_getRegionBoundary(Be){const oe=this._element.querySelectorAll(`[cdk-focus-region-${Be}], [cdkFocusRegion${Be}], [cdk-focus-${Be}]`);return"start"==Be?oe.length?oe[0]:this._getFirstTabbableElement(this._element):oe.length?oe[oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Be){const oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(oe){if(!this._checker.isFocusable(oe)){const rn=this._getFirstTabbableElement(oe);return rn?.focus(Be),!!rn}return oe.focus(Be),!0}return this.focusFirstTabbableElement(Be)}focusFirstTabbableElement(Be){const oe=this._getRegionBoundary("start");return oe&&oe.focus(Be),!!oe}focusLastTabbableElement(Be){const oe=this._getRegionBoundary("end");return oe&&oe.focus(Be),!!oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Be){if(this._checker.isFocusable(Be)&&this._checker.isTabbable(Be))return Be;const oe=Be.children;for(let rn=0;rn=0;rn--){const gn=oe[rn].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(oe[rn]):null;if(gn)return gn}return null}_createAnchor(){const Be=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Be),Be.classList.add("cdk-visually-hidden"),Be.classList.add("cdk-focus-trap-anchor"),Be.setAttribute("aria-hidden","true"),Be}_toggleAnchorTabIndex(Be,oe){Be?oe.setAttribute("tabindex","0"):oe.removeAttribute("tabindex")}toggleAnchors(Be){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Be,this._startAnchor),this._toggleAnchorTabIndex(Be,this._endAnchor))}_executeOnStable(Be){this._ngZone.isStable?Be():this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(Be)}}let Oe=(()=>{class ce{constructor(oe,rn,gn){this._checker=oe,this._ngZone=rn,this._document=gn}create(oe,rn=!1){return new bn(oe,this._checker,this._ngZone,this._document,rn)}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(qe),d.LFG(d.R0b),d.LFG(u.K0))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),dn=(()=>{class ce{constructor(oe,rn,gn){this._elementRef=oe,this._focusTrapFactory=rn,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(oe){this.focusTrap.enabled=(0,lt.Ig)(oe)}get autoCapture(){return this._autoCapture}set autoCapture(oe){this._autoCapture=(0,lt.Ig)(oe)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(oe){const rn=oe.autoCapture;rn&&!rn.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.Y36(d.SBq),d.Y36(Oe),d.Y36(u.K0))},ce.\u0275dir=d.lG2({type:ce,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[d.TTD]}),ce})();function ee(ce){return 0===ce.buttons||0===ce.offsetX&&0===ce.offsetY}function ot(ce){const Be=ce.touches&&ce.touches[0]||ce.changedTouches&&ce.changedTouches[0];return!(!Be||-1!==Be.identifier||null!=Be.radiusX&&1!==Be.radiusX||null!=Be.radiusY&&1!==Be.radiusY)}const X=new d.OlP("cdk-input-modality-detector-options"),At={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},ue=(0,v.i$)({passive:!0,capture:!0});let ye=(()=>{class ce{constructor(oe,rn,gn,cn){this._platform=oe,this._mostRecentTarget=null,this._modality=new T.X(null),this._lastTouchMs=0,this._onKeydown=xe=>{this._options?.ignoreKeys?.some(It=>It===xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(xe))},this._onMousedown=xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ee(xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(xe))},this._onTouchstart=xe=>{ot(xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(xe))},this._options={...At,...cn},this.modalityDetected=this._modality.pipe((0,K.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,et.x)()),oe.isBrowser&&rn.runOutsideAngular(()=>{gn.addEventListener("keydown",this._onKeydown,ue),gn.addEventListener("mousedown",this._onMousedown,ue),gn.addEventListener("touchstart",this._onTouchstart,ue)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ue),document.removeEventListener("mousedown",this._onMousedown,ue),document.removeEventListener("touchstart",this._onTouchstart,ue))}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(v.t4),d.LFG(d.R0b),d.LFG(u.K0),d.LFG(X,8))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const Se=new d.OlP("liveAnnouncerElement",{providedIn:"root",factory:function vn(){return null}}),qn=new d.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class ce{constructor(oe,rn,gn,cn){this._ngZone=rn,this._defaultOptions=cn,this._document=gn,this._liveElement=oe||this._createLiveElement()}announce(oe,...rn){const gn=this._defaultOptions;let cn,xe;return 1===rn.length&&"number"==typeof rn[0]?xe=rn[0]:[cn,xe]=rn,this.clear(),clearTimeout(this._previousTimeout),cn||(cn=gn&&gn.politeness?gn.politeness:"polite"),null==xe&&gn&&(xe=gn.duration),this._liveElement.setAttribute("aria-live",cn),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(It=>this._currentResolve=It)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=oe,"number"==typeof xe&&(this._previousTimeout=setTimeout(()=>this.clear(),xe)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const oe="cdk-live-announcer-element",rn=this._document.getElementsByClassName(oe),gn=this._document.createElement("div");for(let cn=0;cn{class ce{constructor(oe,rn,gn,cn,xe){this._ngZone=oe,this._platform=rn,this._inputModalityDetector=gn,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new g.xQ,this._rootNodeFocusAndBlurListener=It=>{for(let zt=(0,v.sA)(It);zt;zt=zt.parentElement)"focus"===It.type?this._onFocus(It,zt):this._onBlur(It,zt)},this._document=cn,this._detectionMode=xe?.detectionMode||0}monitor(oe,rn=!1){const gn=(0,lt.fI)(oe);if(!this._platform.isBrowser||1!==gn.nodeType)return(0,U.of)(null);const cn=(0,v.kV)(gn)||this._getDocument(),xe=this._elementInfo.get(gn);if(xe)return rn&&(xe.checkChildren=!0),xe.subject;const It={checkChildren:rn,subject:new g.xQ,rootNode:cn};return this._elementInfo.set(gn,It),this._registerGlobalListeners(It),It.subject}stopMonitoring(oe){const rn=(0,lt.fI)(oe),gn=this._elementInfo.get(rn);gn&&(gn.subject.complete(),this._setClasses(rn),this._elementInfo.delete(rn),this._removeGlobalListeners(gn))}focusVia(oe,rn,gn){const cn=(0,lt.fI)(oe);cn===this._getDocument().activeElement?this._getClosestElementsInfo(cn).forEach(([It,Le])=>this._originChanged(It,rn,Le)):(this._setOrigin(rn),"function"==typeof cn.focus&&cn.focus(gn))}ngOnDestroy(){this._elementInfo.forEach((oe,rn)=>this.stopMonitoring(rn))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:oe&&this._isLastInteractionFromInputLabel(oe)?"mouse":"program"}_shouldBeAttributedToTouch(oe){return 1===this._detectionMode||!!oe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(oe,rn){oe.classList.toggle("cdk-focused",!!rn),oe.classList.toggle("cdk-touch-focused","touch"===rn),oe.classList.toggle("cdk-keyboard-focused","keyboard"===rn),oe.classList.toggle("cdk-mouse-focused","mouse"===rn),oe.classList.toggle("cdk-program-focused","program"===rn)}_setOrigin(oe,rn=!1){this._ngZone.runOutsideAngular(()=>{this._origin=oe,this._originFromTouchInteraction="touch"===oe&&rn,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(oe,rn){const gn=this._elementInfo.get(rn),cn=(0,v.sA)(oe);!gn||!gn.checkChildren&&rn!==cn||this._originChanged(rn,this._getFocusOrigin(cn),gn)}_onBlur(oe,rn){const gn=this._elementInfo.get(rn);!gn||gn.checkChildren&&oe.relatedTarget instanceof Node&&rn.contains(oe.relatedTarget)||(this._setClasses(rn),this._emitOrigin(gn,null))}_emitOrigin(oe,rn){oe.subject.observers.length&&this._ngZone.run(()=>oe.subject.next(rn))}_registerGlobalListeners(oe){if(!this._platform.isBrowser)return;const rn=oe.rootNode,gn=this._rootNodeFocusListenerCount.get(rn)||0;gn||this._ngZone.runOutsideAngular(()=>{rn.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),rn.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(rn,gn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ct.R)(this._stopInputModalityDetector)).subscribe(cn=>{this._setOrigin(cn,!0)}))}_removeGlobalListeners(oe){const rn=oe.rootNode;if(this._rootNodeFocusListenerCount.has(rn)){const gn=this._rootNodeFocusListenerCount.get(rn);gn>1?this._rootNodeFocusListenerCount.set(rn,gn-1):(rn.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hi),rn.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hi),this._rootNodeFocusListenerCount.delete(rn))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(oe,rn,gn){this._setClasses(oe,rn),this._emitOrigin(gn,rn),this._lastFocusOrigin=rn}_getClosestElementsInfo(oe){const rn=[];return this._elementInfo.forEach((gn,cn)=>{(cn===oe||gn.checkChildren&&cn.contains(oe))&&rn.push([cn,gn])}),rn}_isLastInteractionFromInputLabel(oe){const{_mostRecentTarget:rn,mostRecentModality:gn}=this._inputModalityDetector;if("mouse"!==gn||!rn||rn===oe||"INPUT"!==oe.nodeName&&"TEXTAREA"!==oe.nodeName||oe.disabled)return!1;const cn=oe.labels;if(cn)for(let xe=0;xe{class ce{constructor(oe,rn){this._elementRef=oe,this._focusMonitor=rn,this._focusOrigin=null,this.cdkFocusChange=new d.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const oe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(oe,1===oe.nodeType&&oe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(rn=>{this._focusOrigin=rn,this.cdkFocusChange.emit(rn)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.Y36(d.SBq),d.Y36(zn))},ce.\u0275dir=d.lG2({type:ce,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),ce})();const Qe="cdk-high-contrast-black-on-white",xn="cdk-high-contrast-white-on-black",Ve="cdk-high-contrast-active";let Ne=(()=>{class ce{constructor(oe,rn){this._platform=oe,this._document=rn,this._breakpointSubscription=(0,d.f3M)(Dt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const oe=this._document.createElement("div");oe.style.backgroundColor="rgb(1,2,3)",oe.style.position="absolute",this._document.body.appendChild(oe);const rn=this._document.defaultView||window,gn=rn&&rn.getComputedStyle?rn.getComputedStyle(oe):null,cn=(gn&&gn.backgroundColor||"").replace(/ /g,"");switch(oe.remove(),cn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const oe=this._document.body.classList;oe.remove(Ve,Qe,xn),this._hasCheckedHighContrastMode=!0;const rn=this.getHighContrastMode();1===rn?oe.add(Ve,Qe):2===rn&&oe.add(Ve,xn)}}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(v.t4),d.LFG(u.K0))},ce.\u0275prov=d.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),tn=(()=>{class ce{constructor(oe){oe._applyBodyHighContrastModeCssClasses()}}return ce.\u0275fac=function(oe){return new(oe||ce)(d.LFG(Ne))},ce.\u0275mod=d.oAB({type:ce}),ce.\u0275inj=d.cJS({imports:[Ct.Q8]}),ce})()},40445:(tt,W,f)=>{"use strict";f.d(W,{Is:()=>U,vT:()=>P});var u=f(94650),d=f(36895);const v=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function g(){return(0,u.f3M)(d.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let U=(()=>{class O{constructor(N){if(this.value="ltr",this.change=new u.vpe,N){const K=N.documentElement?N.documentElement.dir:null;this.value=function T(O){const L=O?.toLowerCase()||"";return"auto"===L&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===L?"rtl":"ltr"}((N.body?N.body.dir:null)||K||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(N){return new(N||O)(u.LFG(v,8))},O.\u0275prov=u.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),P=(()=>{class O{}return O.\u0275fac=function(N){return new(N||O)},O.\u0275mod=u.oAB({type:O}),O.\u0275inj=u.cJS({}),O})()},64425:(tt,W,f)=>{"use strict";f.d(W,{TU:()=>g});var u=f(36895),d=f(94650);class v{constructor(P,O){this._document=O;const L=this._textarea=this._document.createElement("textarea"),N=L.style;N.position="fixed",N.top=N.opacity="0",N.left="-999em",L.setAttribute("aria-hidden","true"),L.value=P,L.readOnly=!0,this._document.body.appendChild(L)}copy(){const P=this._textarea;let O=!1;try{if(P){const L=this._document.activeElement;P.select(),P.setSelectionRange(0,P.value.length),O=this._document.execCommand("copy"),L&&L.focus()}}catch{}return O}destroy(){const P=this._textarea;P&&(P.remove(),this._textarea=void 0)}}let g=(()=>{class w{constructor(O){this._document=O}copy(O){const L=this.beginCopy(O),N=L.copy();return L.destroy(),N}beginCopy(O){return new v(O,this._document)}}return w.\u0275fac=function(O){return new(O||w)(d.LFG(u.K0))},w.\u0275prov=d.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},21281:(tt,W,f)=>{"use strict";f.d(W,{Eq:()=>t,HM:()=>T,Ig:()=>d,du:()=>w,fI:()=>U,su:()=>v,t6:()=>g});var u=f(94650);function d(P){return null!=P&&"false"!=`${P}`}function v(P,O=0){return g(P)?Number(P):O}function g(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}function t(P){return Array.isArray(P)?P:[P]}function T(P){return null==P?"":"string"==typeof P?P:`${P}px`}function U(P){return P instanceof u.SBq?P.nativeElement:P}function w(P,O=/\s+/){const L=[];if(null!=P){const N=Array.isArray(P)?P:`${P}`.split(O);for(const B of N){const K=`${B}`.trim();K&&L.push(K)}}return L}},95017:(tt,W,f)=>{"use strict";f.d(W,{A8:()=>L,Ov:()=>P,Z9:()=>t,eX:()=>w,k:()=>N,o2:()=>g,yy:()=>U});var u=f(71762),d=f(8929),v=f(94650);class g{}function t(B){return B&&"function"==typeof B.connect&&!(B instanceof u.c)}class U{applyChanges(K,et,ct,lt,Ct){K.forEachOperation((Dt,Zt,Rt)=>{let Gt,Tt;if(null==Dt.previousIndex){const Ut=ct(Dt,Zt,Rt);Gt=et.createEmbeddedView(Ut.templateRef,Ut.context,Ut.index),Tt=1}else null==Rt?(et.remove(Zt),Tt=3):(Gt=et.get(Zt),et.move(Gt,Rt),Tt=2);Ct&&Ct({context:Gt?.context,operation:Tt,record:Dt})})}detach(){}}class w{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(K,et,ct,lt,Ct){K.forEachOperation((Dt,Zt,Rt)=>{let Gt,Tt;null==Dt.previousIndex?(Gt=this._insertView(()=>ct(Dt,Zt,Rt),Rt,et,lt(Dt)),Tt=Gt?1:0):null==Rt?(this._detachAndCacheView(Zt,et),Tt=3):(Gt=this._moveView(Zt,Rt,et,lt(Dt)),Tt=2),Ct&&Ct({context:Gt?.context,operation:Tt,record:Dt})})}detach(){for(const K of this._viewCache)K.destroy();this._viewCache=[]}_insertView(K,et,ct,lt){const Ct=this._insertViewFromCache(et,ct);if(Ct)return void(Ct.context.$implicit=lt);const Dt=K();return ct.createEmbeddedView(Dt.templateRef,Dt.context,Dt.index)}_detachAndCacheView(K,et){const ct=et.detach(K);this._maybeCacheView(ct,et)}_moveView(K,et,ct,lt){const Ct=ct.get(K);return ct.move(Ct,et),Ct.context.$implicit=lt,Ct}_maybeCacheView(K,et){if(this._viewCache.lengththis._markSelected(Ct)):this._markSelected(et[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...K){this._verifyValueAssignment(K),K.forEach(ct=>this._markSelected(ct));const et=this._hasQueuedChanges();return this._emitChangeEvent(),et}deselect(...K){this._verifyValueAssignment(K),K.forEach(ct=>this._unmarkSelected(ct));const et=this._hasQueuedChanges();return this._emitChangeEvent(),et}setSelection(...K){this._verifyValueAssignment(K);const et=this.selected,ct=new Set(K);K.forEach(Ct=>this._markSelected(Ct)),et.filter(Ct=>!ct.has(Ct)).forEach(Ct=>this._unmarkSelected(Ct));const lt=this._hasQueuedChanges();return this._emitChangeEvent(),lt}toggle(K){return this.isSelected(K)?this.deselect(K):this.select(K)}clear(K=!0){this._unmarkAll();const et=this._hasQueuedChanges();return K&&this._emitChangeEvent(),et}isSelected(K){if(this.compareWith){for(const et of this._selection)if(this.compareWith(et,K))return!0;return!1}return this._selection.has(K)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(K){this._multiple&&this.selected&&this._selected.sort(K)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(K){this.isSelected(K)||(this._multiple||this._unmarkAll(),this.isSelected(K)||this._selection.add(K),this._emitChanges&&this._selectedToEmit.push(K))}_unmarkSelected(K){this.isSelected(K)&&(this._selection.delete(K),this._emitChanges&&this._deselectedToEmit.push(K))}_unmarkAll(){this.isEmpty()||this._selection.forEach(K=>this._unmarkSelected(K))}_verifyValueAssignment(K){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let L=(()=>{class B{constructor(){this._listeners=[]}notify(et,ct){for(let lt of this._listeners)lt(et,ct)}listen(et){return this._listeners.push(et),()=>{this._listeners=this._listeners.filter(ct=>et!==ct)}}ngOnDestroy(){this._listeners=[]}}return B.\u0275fac=function(et){return new(et||B)},B.\u0275prov=v.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const N=new v.OlP("_ViewRepeater")},53977:(tt,W,f)=>{"use strict";f.d(W,{Zt:()=>rn,Wj:()=>Qe,_t:()=>gn,bA:()=>dn});var u=f(94650),d=f(36895),v=f(67376),g=f(83353),t=f(21281),T=f(12687),U=f(8929),w=f(42654),P=f(56498),O=f(20353),L=f(84241);function B(cn){const{subscriber:xe,counter:It,period:Le}=cn;xe.next(It),this.schedule({subscriber:xe,counter:It+1,period:Le},Le)}var K=f(90352),et=f(36787),ct=f(7625),lt=f(1059),Ct=f(24850),Dt=f(72986),Zt=f(22868),Rt=f(87545),Gt=f(40445);function Tt(cn,xe,It){for(let Le in xe)if(xe.hasOwnProperty(Le)){const zt=xe[Le];zt?cn.setProperty(Le,zt,It?.has(Le)?"important":""):cn.removeProperty(Le)}return cn}function Ut(cn,xe){const It=xe?"":"none";Tt(cn.style,{"touch-action":xe?"":"none","-webkit-user-drag":xe?"":"none","-webkit-tap-highlight-color":xe?"":"transparent","user-select":It,"-ms-user-select":It,"-webkit-user-select":It,"-moz-user-select":It})}function bt(cn,xe,It){Tt(cn.style,{position:xe?"":"fixed",top:xe?"":"0",opacity:xe?"":"0",left:xe?"":"-999em"},It)}function mt(cn,xe){return xe&&"none"!=xe?cn+" "+xe:cn}function Lt(cn){const xe=cn.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(cn)*xe}function kt(cn,xe){return cn.getPropertyValue(xe).split(",").map(Le=>Le.trim())}function le(cn){const xe=cn.getBoundingClientRect();return{top:xe.top,right:xe.right,bottom:xe.bottom,left:xe.left,width:xe.width,height:xe.height,x:xe.x,y:xe.y}}function Vt(cn,xe,It){const{top:Le,bottom:zt,left:we,right:He}=cn;return It>=Le&&It<=zt&&xe>=we&&xe<=He}function be(cn,xe,It){cn.top+=xe,cn.bottom=cn.top+cn.height,cn.left+=It,cn.right=cn.left+cn.width}function ge(cn,xe,It,Le){const{top:zt,right:we,bottom:He,left:kn,width:Ei,height:Bi}=cn,un=Ei*xe,_n=Bi*xe;return Le>zt-_n&&Lekn-un&&It{this.positions.set(It,{scrollPosition:{top:It.scrollTop,left:It.scrollLeft},clientRect:le(It)})})}handleScroll(xe){const It=(0,g.sA)(xe),Le=this.positions.get(It);if(!Le)return null;const zt=Le.scrollPosition;let we,He;if(It===this._document){const Bi=this.getViewportScrollPosition();we=Bi.top,He=Bi.left}else we=It.scrollTop,He=It.scrollLeft;const kn=zt.top-we,Ei=zt.left-He;return this.positions.forEach((Bi,un)=>{Bi.clientRect&&It!==un&&It.contains(un)&&be(Bi.clientRect,kn,Ei)}),zt.top=we,zt.left=He,{top:kn,left:Ei}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function qe(cn){const xe=cn.cloneNode(!0),It=xe.querySelectorAll("[id]"),Le=cn.nodeName.toLowerCase();xe.removeAttribute("id");for(let zt=0;zt{if(this.beforeStarted.next(),this._handles.length){const Ei=this._getTargetHandle(kn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&this._initializeDragSequence(Ei,kn)}else this.disabled||this._initializeDragSequence(this._rootElement,kn)},this._pointerMove=kn=>{const Ei=this._getPointerPositionOnPage(kn);if(!this._hasStartedDragging){if(Math.abs(Ei.x-this._pickupPositionOnPage.x)+Math.abs(Ei.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const ai=Date.now()>=this._dragStartTime+this._getDragStartDelay(kn),xi=this._dropContainer;if(!ai)return void this._endDragSequence(kn);(!xi||!xi.isDragging()&&!xi.isReceiving())&&(kn.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(kn)))}return}kn.preventDefault();const Bi=this._getConstrainedPointerPosition(Ei);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ei,this._updatePointerDirectionDelta(Bi),this._dropContainer)this._updateActiveDropContainer(Bi,Ei);else{const un=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,_n=this._activeTransform;_n.x=Bi.x-un.x+this._passiveTransform.x,_n.y=Bi.y-un.y+this._passiveTransform.y,this._applyRootElementTransform(_n.x,_n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Bi,event:kn,distance:this._getDragDistance(Bi),delta:this._pointerDirectionDelta})})},this._pointerUp=kn=>{this._endDragSequence(kn)},this._nativeDragStart=kn=>{if(this._handles.length){const Ei=this._getTargetHandle(kn);Ei&&!this._disabledHandles.has(Ei)&&!this.disabled&&kn.preventDefault()}else this.disabled||kn.preventDefault()},this.withRootElement(xe).withParent(It.parentDragRef||null),this._parentPositions=new Fe(Le),He.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(xe){const It=(0,t.Ig)(xe);It!==this._disabled&&(this._disabled=It,this._toggleNativeDragInteractions(),this._handles.forEach(Le=>Ut(Le,It)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(xe){this._handles=xe.map(Le=>(0,t.fI)(Le)),this._handles.forEach(Le=>Ut(Le,this.disabled)),this._toggleNativeDragInteractions();const It=new Set;return this._disabledHandles.forEach(Le=>{this._handles.indexOf(Le)>-1&&It.add(Le)}),this._disabledHandles=It,this}withPreviewTemplate(xe){return this._previewTemplate=xe,this}withPlaceholderTemplate(xe){return this._placeholderTemplate=xe,this}withRootElement(xe){const It=(0,t.fI)(xe);return It!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{It.addEventListener("mousedown",this._pointerDown,se),It.addEventListener("touchstart",this._pointerDown,Wt),It.addEventListener("dragstart",this._nativeDragStart,se)}),this._initialTransform=void 0,this._rootElement=It),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(xe){return this._boundaryElement=xe?(0,t.fI)(xe):null,this._resizeSubscription.unsubscribe(),xe&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(xe){return this._parentDragRef=xe,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(xe){!this._disabledHandles.has(xe)&&this._handles.indexOf(xe)>-1&&(this._disabledHandles.add(xe),Ut(xe,!0))}enableHandle(xe){this._disabledHandles.has(xe)&&(this._disabledHandles.delete(xe),Ut(xe,this.disabled))}withDirection(xe){return this._direction=xe,this}_withDropContainer(xe){this._dropContainer=xe}getFreeDragPosition(){const xe=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:xe.x,y:xe.y}}setFreeDragPosition(xe){return this._activeTransform={x:0,y:0},this._passiveTransform.x=xe.x,this._passiveTransform.y=xe.y,this._dropContainer||this._applyRootElementTransform(xe.x,xe.y),this}withPreviewContainer(xe){return this._previewContainer=xe,this}_sortFromLastPointerPosition(){const xe=this._lastKnownPointerPosition;xe&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(xe),xe)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(xe){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:xe}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(xe),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const It=this._getPointerPositionOnPage(xe);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(It),dropPoint:It,event:xe})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(xe){Ce(xe)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const It=this._dropContainer;if(It){const Le=this._rootElement,zt=Le.parentNode,we=this._placeholder=this._createPlaceholderElement(),He=this._anchor=this._anchor||this._document.createComment(""),kn=this._getShadowRoot();zt.insertBefore(He,Le),this._initialTransform=Le.style.transform||"",this._preview=this._createPreviewElement(),bt(Le,!1,ae),this._document.body.appendChild(zt.replaceChild(we,Le)),this._getPreviewInsertionPoint(zt,kn).appendChild(this._preview),this.started.next({source:this,event:xe}),It.start(),this._initialContainer=It,this._initialIndex=It.getItemIndex(this)}else this.started.next({source:this,event:xe}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(It?It.getScrollableParents():[])}_initializeDragSequence(xe,It){this._parentDragRef&&It.stopPropagation();const Le=this.isDragging(),zt=Ce(It),we=!zt&&0!==It.button,He=this._rootElement,kn=(0,g.sA)(It),Ei=!zt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Bi=zt?(0,T.yG)(It):(0,T.X6)(It);if(kn&&kn.draggable&&"mousedown"===It.type&&It.preventDefault(),Le||we||Ei||Bi)return;if(this._handles.length){const Ke=He.style;this._rootElementTapHighlight=Ke.webkitTapHighlightColor||"",Ke.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ke=>this._updateOnScroll(Ke)),this._boundaryElement&&(this._boundaryRect=le(this._boundaryElement));const un=this._previewTemplate;this._pickupPositionInElement=un&&un.template&&!un.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,xe,It);const _n=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(It);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:_n.x,y:_n.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,It)}_cleanupDragArtifacts(xe){bt(this._rootElement,!0,ae),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const It=this._dropContainer,Le=It.getItemIndex(this),zt=this._getPointerPositionOnPage(xe),we=this._getDragDistance(zt),He=It._isOverContainer(zt.x,zt.y);this.ended.next({source:this,distance:we,dropPoint:zt,event:xe}),this.dropped.next({item:this,currentIndex:Le,previousIndex:this._initialIndex,container:It,previousContainer:this._initialContainer,isPointerOverContainer:He,distance:we,dropPoint:zt,event:xe}),It.drop(this,Le,this._initialIndex,this._initialContainer,He,we,zt,xe),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:xe,y:It},{x:Le,y:zt}){let we=this._initialContainer._getSiblingContainerFromPosition(this,xe,It);!we&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(xe,It)&&(we=this._initialContainer),we&&we!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=we,this._dropContainer.enter(this,xe,It,we===this._initialContainer&&we.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:we,currentIndex:we.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Le,zt),this._dropContainer._sortItem(this,xe,It,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(xe,It):this._applyPreviewTransform(xe-this._pickupPositionInElement.x,It-this._pickupPositionInElement.y))}_createPreviewElement(){const xe=this._previewTemplate,It=this.previewClass,Le=xe?xe.template:null;let zt;if(Le&&xe){const we=xe.matchSize?this._initialClientRect:null,He=xe.viewContainer.createEmbeddedView(Le,xe.context);He.detectChanges(),zt=bn(He,this._document),this._previewRef=He,xe.matchSize?Oe(zt,we):zt.style.transform=nn(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else zt=qe(this._rootElement),Oe(zt,this._initialClientRect),this._initialTransform&&(zt.style.transform=this._initialTransform);return Tt(zt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ae),Ut(zt,!1),zt.classList.add("cdk-drag-preview"),zt.setAttribute("dir",this._direction),It&&(Array.isArray(It)?It.forEach(we=>zt.classList.add(we)):zt.classList.add(It)),zt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const xe=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(xe.left,xe.top);const It=function Bt(cn){const xe=getComputedStyle(cn),It=kt(xe,"transition-property"),Le=It.find(kn=>"transform"===kn||"all"===kn);if(!Le)return 0;const zt=It.indexOf(Le),we=kt(xe,"transition-duration"),He=kt(xe,"transition-delay");return Lt(we[zt])+Lt(He[zt])}(this._preview);return 0===It?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Le=>{const zt=He=>{(!He||(0,g.sA)(He)===this._preview&&"transform"===He.propertyName)&&(this._preview?.removeEventListener("transitionend",zt),Le(),clearTimeout(we))},we=setTimeout(zt,1.5*It);this._preview.addEventListener("transitionend",zt)}))}_createPlaceholderElement(){const xe=this._placeholderTemplate,It=xe?xe.template:null;let Le;return It?(this._placeholderRef=xe.viewContainer.createEmbeddedView(It,xe.context),this._placeholderRef.detectChanges(),Le=bn(this._placeholderRef,this._document)):Le=qe(this._rootElement),Le.style.pointerEvents="none",Le.classList.add("cdk-drag-placeholder"),Le}_getPointerPositionInElement(xe,It,Le){const zt=It===this._rootElement?null:It,we=zt?zt.getBoundingClientRect():xe,He=Ce(Le)?Le.targetTouches[0]:Le,kn=this._getViewportScrollPosition();return{x:we.left-xe.left+(He.pageX-we.left-kn.left),y:we.top-xe.top+(He.pageY-we.top-kn.top)}}_getPointerPositionOnPage(xe){const It=this._getViewportScrollPosition(),Le=Ce(xe)?xe.touches[0]||xe.changedTouches[0]||{pageX:0,pageY:0}:xe,zt=Le.pageX-It.left,we=Le.pageY-It.top;if(this._ownerSVGElement){const He=this._ownerSVGElement.getScreenCTM();if(He){const kn=this._ownerSVGElement.createSVGPoint();return kn.x=zt,kn.y=we,kn.matrixTransform(He.inverse())}}return{x:zt,y:we}}_getConstrainedPointerPosition(xe){const It=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Le,y:zt}=this.constrainPosition?this.constrainPosition(xe,this,this._initialClientRect,this._pickupPositionInElement):xe;if("x"===this.lockAxis||"x"===It?zt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===It)&&(Le=this._pickupPositionOnPage.x),this._boundaryRect){const{x:we,y:He}=this._pickupPositionInElement,kn=this._boundaryRect,{width:Ei,height:Bi}=this._getPreviewRect(),un=kn.top+He,_n=kn.bottom-(Bi-He);Le=hn(Le,kn.left+we,kn.right-(Ei-we)),zt=hn(zt,un,_n)}return{x:Le,y:zt}}_updatePointerDirectionDelta(xe){const{x:It,y:Le}=xe,zt=this._pointerDirectionDelta,we=this._pointerPositionAtLastDirectionChange,He=Math.abs(It-we.x),kn=Math.abs(Le-we.y);return He>this._config.pointerDirectionChangeThreshold&&(zt.x=It>we.x?1:-1,we.x=It),kn>this._config.pointerDirectionChangeThreshold&&(zt.y=Le>we.y?1:-1,we.y=Le),zt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const xe=this._handles.length>0||!this.isDragging();xe!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=xe,Ut(this._rootElement,xe))}_removeRootElementListeners(xe){xe.removeEventListener("mousedown",this._pointerDown,se),xe.removeEventListener("touchstart",this._pointerDown,Wt),xe.removeEventListener("dragstart",this._nativeDragStart,se)}_applyRootElementTransform(xe,It){const Le=nn(xe,It),zt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=zt.transform&&"none"!=zt.transform?zt.transform:""),zt.transform=mt(Le,this._initialTransform)}_applyPreviewTransform(xe,It){const Le=this._previewTemplate?.template?void 0:this._initialTransform,zt=nn(xe,It);this._preview.style.transform=mt(zt,Le)}_getDragDistance(xe){const It=this._pickupPositionOnPage;return It?{x:xe.x-It.x,y:xe.y-It.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:xe,y:It}=this._passiveTransform;if(0===xe&&0===It||this.isDragging()||!this._boundaryElement)return;const Le=this._rootElement.getBoundingClientRect(),zt=this._boundaryElement.getBoundingClientRect();if(0===zt.width&&0===zt.height||0===Le.width&&0===Le.height)return;const we=zt.left-Le.left,He=Le.right-zt.right,kn=zt.top-Le.top,Ei=Le.bottom-zt.bottom;zt.width>Le.width?(we>0&&(xe+=we),He>0&&(xe-=He)):xe=0,zt.height>Le.height?(kn>0&&(It+=kn),Ei>0&&(It-=Ei)):It=0,(xe!==this._passiveTransform.x||It!==this._passiveTransform.y)&&this.setFreeDragPosition({y:It,x:xe})}_getDragStartDelay(xe){const It=this.dragStartDelay;return"number"==typeof It?It:Ce(xe)?It.touch:It?It.mouse:0}_updateOnScroll(xe){const It=this._parentPositions.handleScroll(xe);if(It){const Le=(0,g.sA)(xe);this._boundaryRect&&Le!==this._boundaryElement&&Le.contains(this._boundaryElement)&&be(this._boundaryRect,It.top,It.left),this._pickupPositionOnPage.x+=It.left,this._pickupPositionOnPage.y+=It.top,this._dropContainer||(this._activeTransform.x-=It.left,this._activeTransform.y-=It.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,g.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(xe,It){const Le=this._previewContainer||"global";if("parent"===Le)return xe;if("global"===Le){const zt=this._document;return It||zt.fullscreenElement||zt.webkitFullscreenElement||zt.mozFullScreenElement||zt.msFullscreenElement||zt.body}return(0,t.fI)(Le)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(xe){return this._handles.find(It=>xe.target&&(xe.target===It||It.contains(xe.target)))}}function nn(cn,xe){return`translate3d(${Math.round(cn)}px, ${Math.round(xe)}px, 0)`}function hn(cn,xe,It){return Math.max(xe,Math.min(It,cn))}function Ce(cn){return"t"===cn.type[0]}function bn(cn,xe){const It=cn.rootNodes;if(1===It.length&&It[0].nodeType===xe.ELEMENT_NODE)return It[0];const Le=xe.createElement("div");return It.forEach(zt=>Le.appendChild(zt)),Le}function Oe(cn,xe){cn.style.width=`${xe.width}px`,cn.style.height=`${xe.height}px`,cn.style.transform=nn(xe.left,xe.top)}function dn(cn,xe,It){const Le=_i(xe,cn.length-1),zt=_i(It,cn.length-1);if(Le===zt)return;const we=cn[Le],He=zt0)return null;const kn="horizontal"===this.orientation,Ei=we.findIndex(Co=>Co.drag===xe),Bi=we[He],_n=Bi.clientRect,Ke=Ei>He?1:-1,ai=this._getItemOffsetPx(we[Ei].clientRect,_n,Ke),xi=this._getSiblingOffsetPx(Ei,we,Ke),co=we.slice();return dn(we,Ei,He),we.forEach((Co,So)=>{if(co[So]===Co)return;const ma=Co.drag===xe,Ta=ma?ai:xi,Re=ma?xe.getPlaceholderElement():Co.drag.getRootElement();Co.offset+=Ta,kn?(Re.style.transform=mt(`translate3d(${Math.round(Co.offset)}px, 0, 0)`,Co.initialTransform),be(Co.clientRect,0,Ta)):(Re.style.transform=mt(`translate3d(0, ${Math.round(Co.offset)}px, 0)`,Co.initialTransform),be(Co.clientRect,Ta,0))}),this._previousSwap.overlaps=Vt(_n,It,Le),this._previousSwap.drag=Bi.drag,this._previousSwap.delta=kn?zt.x:zt.y,{previousIndex:Ei,currentIndex:He}}enter(xe,It,Le,zt){const we=null==zt||zt<0?this._getItemIndexFromPointerPosition(xe,It,Le):zt,He=this._activeDraggables,kn=He.indexOf(xe),Ei=xe.getPlaceholderElement();let Bi=He[we];if(Bi===xe&&(Bi=He[we+1]),!Bi&&(null==we||-1===we||we-1&&He.splice(kn,1),Bi&&!this._dragDropRegistry.isDragging(Bi)){const un=Bi.getRootElement();un.parentElement.insertBefore(Ei,un),He.splice(we,0,xe)}else(0,t.fI)(this._element).appendChild(Ei),He.push(xe);Ei.style.transform="",this._cacheItemPositions()}withItems(xe){this._activeDraggables=xe.slice(),this._cacheItemPositions()}withSortPredicate(xe){this._sortPredicate=xe}reset(){this._activeDraggables.forEach(xe=>{const It=xe.getRootElement();if(It){const Le=this._itemPositions.find(zt=>zt.drag===xe)?.initialTransform;It.style.transform=Le||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(xe){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Le=>Le.drag===xe)}updateOnScroll(xe,It){this._itemPositions.forEach(({clientRect:Le})=>{be(Le,xe,It)}),this._itemPositions.forEach(({drag:Le})=>{this._dragDropRegistry.isDragging(Le)&&Le._sortFromLastPointerPosition()})}_cacheItemPositions(){const xe="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(It=>{const Le=It.getVisibleElement();return{drag:It,offset:0,initialTransform:Le.style.transform||"",clientRect:le(Le)}}).sort((It,Le)=>xe?It.clientRect.left-Le.clientRect.left:It.clientRect.top-Le.clientRect.top)}_getItemOffsetPx(xe,It,Le){const zt="horizontal"===this.orientation;let we=zt?It.left-xe.left:It.top-xe.top;return-1===Le&&(we+=zt?It.width-xe.width:It.height-xe.height),we}_getSiblingOffsetPx(xe,It,Le){const zt="horizontal"===this.orientation,we=It[xe].clientRect,He=It[xe+-1*Le];let kn=we[zt?"width":"height"]*Le;if(He){const Ei=zt?"left":"top",Bi=zt?"right":"bottom";-1===Le?kn-=He.clientRect[Ei]-we[Bi]:kn+=we[Ei]-He.clientRect[Bi]}return kn}_shouldEnterAsFirstChild(xe,It){if(!this._activeDraggables.length)return!1;const Le=this._itemPositions,zt="horizontal"===this.orientation;if(Le[0].drag!==this._activeDraggables[0]){const He=Le[Le.length-1].clientRect;return zt?xe>=He.right:It>=He.bottom}{const He=Le[0].clientRect;return zt?xe<=He.left:It<=He.top}}_getItemIndexFromPointerPosition(xe,It,Le,zt){const we="horizontal"===this.orientation,He=this._itemPositions.findIndex(({drag:kn,clientRect:Ei})=>{if(kn===xe)return!1;if(zt){const Bi=we?zt.x:zt.y;if(kn===this._previousSwap.drag&&this._previousSwap.overlaps&&Bi===this._previousSwap.delta)return!1}return we?It>=Math.floor(Ei.left)&&It=Math.floor(Ei.top)&&Le!0,this.sortPredicate=()=>!0,this.beforeStarted=new U.xQ,this.entered=new U.xQ,this.exited=new U.xQ,this.dropped=new U.xQ,this.sorted=new U.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=w.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new U.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function N(cn=0,xe=O.P){return(!(0,L.k)(cn)||cn<0)&&(cn=0),(!xe||"function"!=typeof xe.schedule)&&(xe=O.P),new P.y(It=>(It.add(xe.schedule(B,cn,{subscriber:It,counter:0,period:cn})),It))}(0,K.Z).pipe((0,ct.R)(this._stopScrollTimers)).subscribe(()=>{const He=this._scrollNode,kn=this.autoScrollStep;1===this._verticalScrollDirection?He.scrollBy(0,-kn):2===this._verticalScrollDirection&&He.scrollBy(0,kn),1===this._horizontalScrollDirection?He.scrollBy(-kn,0):2===this._horizontalScrollDirection&&He.scrollBy(kn,0)})},this.element=(0,t.fI)(xe),this._document=Le,this.withScrollableParents([this.element]),It.registerDropContainer(this),this._parentPositions=new Fe(Le),this._sortStrategy=new oi(this.element,It),this._sortStrategy.withSortPredicate((He,kn)=>this.sortPredicate(He,kn,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(xe,It,Le,zt){this._draggingStarted(),null==zt&&this.sortingDisabled&&(zt=this._draggables.indexOf(xe)),this._sortStrategy.enter(xe,It,Le,zt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:xe,container:this,currentIndex:this.getItemIndex(xe)})}exit(xe){this._reset(),this.exited.next({item:xe,container:this})}drop(xe,It,Le,zt,we,He,kn,Ei={}){this._reset(),this.dropped.next({item:xe,currentIndex:It,previousIndex:Le,container:this,previousContainer:zt,isPointerOverContainer:we,distance:He,dropPoint:kn,event:Ei})}withItems(xe){const It=this._draggables;return this._draggables=xe,xe.forEach(Le=>Le._withDropContainer(this)),this.isDragging()&&(It.filter(zt=>zt.isDragging()).every(zt=>-1===xe.indexOf(zt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(xe){return this._sortStrategy.direction=xe,this}connectedTo(xe){return this._siblings=xe.slice(),this}withOrientation(xe){return this._sortStrategy.orientation=xe,this}withScrollableParents(xe){const It=(0,t.fI)(this.element);return this._scrollableElements=-1===xe.indexOf(It)?[It,...xe]:xe.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(xe){return this._isDragging?this._sortStrategy.getItemIndex(xe):this._draggables.indexOf(xe)}isReceiving(){return this._activeSiblings.size>0}_sortItem(xe,It,Le,zt){if(this.sortingDisabled||!this._clientRect||!ge(this._clientRect,.05,It,Le))return;const we=this._sortStrategy.sort(xe,It,Le,zt);we&&this.sorted.next({previousIndex:we.previousIndex,currentIndex:we.currentIndex,container:this,item:xe})}_startScrollingIfNecessary(xe,It){if(this.autoScrollDisabled)return;let Le,zt=0,we=0;if(this._parentPositions.positions.forEach((He,kn)=>{kn===this._document||!He.clientRect||Le||ge(He.clientRect,.05,xe,It)&&([zt,we]=function Ht(cn,xe,It,Le){const zt=X(xe,Le),we=At(xe,It);let He=0,kn=0;if(zt){const Ei=cn.scrollTop;1===zt?Ei>0&&(He=1):cn.scrollHeight-Ei>cn.clientHeight&&(He=2)}if(we){const Ei=cn.scrollLeft;1===we?Ei>0&&(kn=1):cn.scrollWidth-Ei>cn.clientWidth&&(kn=2)}return[He,kn]}(kn,He.clientRect,xe,It),(zt||we)&&(Le=kn))}),!zt&&!we){const{width:He,height:kn}=this._viewportRuler.getViewportSize(),Ei={width:He,height:kn,top:0,right:He,bottom:kn,left:0};zt=X(Ei,It),we=At(Ei,xe),Le=window}Le&&(zt!==this._verticalScrollDirection||we!==this._horizontalScrollDirection||Le!==this._scrollNode)&&(this._verticalScrollDirection=zt,this._horizontalScrollDirection=we,this._scrollNode=Le,(zt||we)&&Le?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const xe=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=xe.msScrollSnapType||xe.scrollSnapType||"",xe.scrollSnapType=xe.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const xe=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(xe).clientRect}_reset(){this._isDragging=!1;const xe=(0,t.fI)(this.element).style;xe.scrollSnapType=xe.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(It=>It._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(xe,It){return null!=this._clientRect&&Vt(this._clientRect,xe,It)}_getSiblingContainerFromPosition(xe,It,Le){return this._siblings.find(zt=>zt._canReceive(xe,It,Le))}_canReceive(xe,It,Le){if(!this._clientRect||!Vt(this._clientRect,It,Le)||!this.enterPredicate(xe,this))return!1;const zt=this._getShadowRoot().elementFromPoint(It,Le);if(!zt)return!1;const we=(0,t.fI)(this.element);return zt===we||we.contains(zt)}_startReceiving(xe,It){const Le=this._activeSiblings;!Le.has(xe)&&It.every(zt=>this.enterPredicate(zt,this)||this._draggables.indexOf(zt)>-1)&&(Le.add(xe),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(xe){this._activeSiblings.delete(xe),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(xe=>{if(this.isDragging()){const It=this._parentPositions.handleScroll(xe);It&&this._sortStrategy.updateOnScroll(It.top,It.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const xe=(0,g.kV)((0,t.fI)(this.element));this._cachedShadowRoot=xe||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const xe=this._sortStrategy.getActiveItemsSnapshot().filter(It=>It.isDragging());this._siblings.forEach(It=>It._startReceiving(this,xe))}}function X(cn,xe){const{top:It,bottom:Le,height:zt}=cn,we=.05*zt;return xe>=It-we&&xe<=It+we?1:xe>=Le-we&&xe<=Le+we?2:0}function At(cn,xe){const{left:It,right:Le,width:zt}=cn,we=.05*zt;return xe>=It-we&&xe<=It+we?1:xe>=Le-we&&xe<=Le+we?2:0}const ue=(0,g.i$)({passive:!1,capture:!0});let ye=(()=>{class cn{constructor(It,Le){this._ngZone=It,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=zt=>zt.isDragging(),this.pointerMove=new U.xQ,this.pointerUp=new U.xQ,this.scroll=new U.xQ,this._preventDefaultWhileDragging=zt=>{this._activeDragInstances.length>0&&zt.preventDefault()},this._persistentTouchmoveListener=zt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&zt.preventDefault(),this.pointerMove.next(zt))},this._document=Le}registerDropContainer(It){this._dropInstances.has(It)||this._dropInstances.add(It)}registerDragItem(It){this._dragInstances.add(It),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ue)})}removeDropContainer(It){this._dropInstances.delete(It)}removeDragItem(It){this._dragInstances.delete(It),this.stopDragging(It),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ue)}startDragging(It,Le){if(!(this._activeDragInstances.indexOf(It)>-1)&&(this._activeDragInstances.push(It),1===this._activeDragInstances.length)){const zt=Le.type.startsWith("touch");this._globalListeners.set(zt?"touchend":"mouseup",{handler:we=>this.pointerUp.next(we),options:!0}).set("scroll",{handler:we=>this.scroll.next(we),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ue}),zt||this._globalListeners.set("mousemove",{handler:we=>this.pointerMove.next(we),options:ue}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((we,He)=>{this._document.addEventListener(He,we.handler,we.options)})})}}stopDragging(It){const Le=this._activeDragInstances.indexOf(It);Le>-1&&(this._activeDragInstances.splice(Le,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(It){return this._activeDragInstances.indexOf(It)>-1}scrolled(It){const Le=[this.scroll];return It&&It!==this._document&&Le.push(new P.y(zt=>this._ngZone.runOutsideAngular(()=>{const He=kn=>{this._activeDragInstances.length&&zt.next(kn)};return It.addEventListener("scroll",He,!0),()=>{It.removeEventListener("scroll",He,!0)}}))),(0,et.T)(...Le)}ngOnDestroy(){this._dragInstances.forEach(It=>this.removeDragItem(It)),this._dropInstances.forEach(It=>this.removeDropContainer(It)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((It,Le)=>{this._document.removeEventListener(Le,It.handler,It.options)}),this._globalListeners.clear()}}return cn.\u0275fac=function(It){return new(It||cn)(u.LFG(u.R0b),u.LFG(d.K0))},cn.\u0275prov=u.Yz7({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})();const Se={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let vn=(()=>{class cn{constructor(It,Le,zt,we){this._document=It,this._ngZone=Le,this._viewportRuler=zt,this._dragDropRegistry=we}createDrag(It,Le=Se){return new De(It,Le,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(It){return new ot(It,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return cn.\u0275fac=function(It){return new(It||cn)(u.LFG(d.K0),u.LFG(u.R0b),u.LFG(v.rL),u.LFG(ye))},cn.\u0275prov=u.Yz7({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})();const qn=new u.OlP("CDK_DRAG_PARENT"),mi=new u.OlP("CdkDropListGroup"),bo=new u.OlP("CDK_DRAG_CONFIG");let zn=0;const Bn=new u.OlP("CdkDropList");let Qe=(()=>{class cn{constructor(It,Le,zt,we,He,kn,Ei){this.element=It,this._changeDetectorRef=zt,this._scrollDispatcher=we,this._dir=He,this._group=kn,this._destroyed=new U.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+zn++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new u.vpe,this.entered=new u.vpe,this.exited=new u.vpe,this.sorted=new u.vpe,this._unsortedItems=new Set,this._dropListRef=Le.createDropList(It),this._dropListRef.data=this,Ei&&this._assignDefaults(Ei),this._dropListRef.enterPredicate=(Bi,un)=>this.enterPredicate(Bi.data,un.data),this._dropListRef.sortPredicate=(Bi,un,_n)=>this.sortPredicate(Bi,un.data,_n.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),cn._dropLists.push(this),kn&&kn._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(It){this._dropListRef.disabled=this._disabled=(0,t.Ig)(It)}addItem(It){this._unsortedItems.add(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(It){this._unsortedItems.delete(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((It,Le)=>It._dragRef.getVisibleElement().compareDocumentPosition(Le._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const It=cn._dropLists.indexOf(this);It>-1&&cn._dropLists.splice(It,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(It){this._dir&&this._dir.change.pipe((0,lt.O)(this._dir.value),(0,ct.R)(this._destroyed)).subscribe(Le=>It.withDirection(Le)),It.beforeStarted.subscribe(()=>{const Le=(0,t.Eq)(this.connectedTo).map(zt=>"string"==typeof zt?cn._dropLists.find(He=>He.id===zt):zt);if(this._group&&this._group._items.forEach(zt=>{-1===Le.indexOf(zt)&&Le.push(zt)}),!this._scrollableParentsResolved){const zt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(we=>we.getElementRef().nativeElement);this._dropListRef.withScrollableParents(zt),this._scrollableParentsResolved=!0}It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.sortingDisabled=(0,t.Ig)(this.sortingDisabled),It.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),It.autoScrollStep=(0,t.su)(this.autoScrollStep,2),It.connectedTo(Le.filter(zt=>zt&&zt!==this).map(zt=>zt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(It){It.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Le=>{this.entered.emit({container:this,item:Le.item.data,currentIndex:Le.currentIndex})}),It.exited.subscribe(Le=>{this.exited.emit({container:this,item:Le.item.data}),this._changeDetectorRef.markForCheck()}),It.sorted.subscribe(Le=>{this.sorted.emit({previousIndex:Le.previousIndex,currentIndex:Le.currentIndex,container:this,item:Le.item.data})}),It.dropped.subscribe(Le=>{this.dropped.emit({previousIndex:Le.previousIndex,currentIndex:Le.currentIndex,previousContainer:Le.previousContainer.data,container:Le.container.data,item:Le.item.data,isPointerOverContainer:Le.isPointerOverContainer,distance:Le.distance,dropPoint:Le.dropPoint,event:Le.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(It){const{lockAxis:Le,draggingDisabled:zt,sortingDisabled:we,listAutoScrollDisabled:He,listOrientation:kn}=It;this.disabled=zt??!1,this.sortingDisabled=we??!1,this.autoScrollDisabled=He??!1,this.orientation=kn||"vertical",Le&&(this.lockAxis=Le)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(It=>It._dragRef))}}return cn._dropLists=[],cn.\u0275fac=function(It){return new(It||cn)(u.Y36(u.SBq),u.Y36(vn),u.Y36(u.sBO),u.Y36(v.mF),u.Y36(Gt.Is,8),u.Y36(mi,12),u.Y36(bo,8))},cn.\u0275dir=u.lG2({type:cn,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(It,Le){2&It&&(u.uIk("id",Le.id),u.ekj("cdk-drop-list-disabled",Le.disabled)("cdk-drop-list-dragging",Le._dropListRef.isDragging())("cdk-drop-list-receiving",Le._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[u._Bn([{provide:mi,useValue:void 0},{provide:Bn,useExisting:cn}])]}),cn})();const xn=new u.OlP("CdkDragHandle"),Ne=new u.OlP("CdkDragPlaceholder"),ce=new u.OlP("CdkDragPreview");let rn=(()=>{class cn{constructor(It,Le,zt,we,He,kn,Ei,Bi,un,_n,Ke){this.element=It,this.dropContainer=Le,this._ngZone=we,this._viewContainerRef=He,this._dir=Ei,this._changeDetectorRef=un,this._selfHandle=_n,this._parentDrag=Ke,this._destroyed=new U.xQ,this.started=new u.vpe,this.released=new u.vpe,this.ended=new u.vpe,this.entered=new u.vpe,this.exited=new u.vpe,this.dropped=new u.vpe,this.moved=new P.y(ai=>{const xi=this._dragRef.moved.pipe((0,Ct.U)(co=>({source:this,pointerPosition:co.pointerPosition,event:co.event,delta:co.delta,distance:co.distance}))).subscribe(ai);return()=>{xi.unsubscribe()}}),this._dragRef=Bi.createDrag(It,{dragStartThreshold:kn&&null!=kn.dragStartThreshold?kn.dragStartThreshold:5,pointerDirectionChangeThreshold:kn&&null!=kn.pointerDirectionChangeThreshold?kn.pointerDirectionChangeThreshold:5,zIndex:kn?.zIndex}),this._dragRef.data=this,cn._dragInstances.push(this),kn&&this._assignDefaults(kn),Le&&(this._dragRef._withDropContainer(Le._dropListRef),Le.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(It){this._disabled=(0,t.Ig)(It),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(It){this._dragRef.setFreeDragPosition(It)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Dt.q)(1),(0,ct.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(It){const Le=It.rootElementSelector,zt=It.freeDragPosition;Le&&!Le.firstChange&&this._updateRootElement(),zt&&!zt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const It=cn._dragInstances.indexOf(this);It>-1&&cn._dragInstances.splice(It,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const It=this.element.nativeElement;let Le=It;this.rootElementSelector&&(Le=void 0!==It.closest?It.closest(this.rootElementSelector):It.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Le||It)}_getBoundaryElement(){const It=this.boundaryElement;return It?"string"==typeof It?this.element.nativeElement.closest(It):(0,t.fI)(It):null}_syncInputs(It){It.beforeStarted.subscribe(()=>{if(!It.isDragging()){const Le=this._dir,zt=this.dragStartDelay,we=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,He=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.dragStartDelay="object"==typeof zt&&zt?zt:(0,t.su)(zt),It.constrainPosition=this.constrainPosition,It.previewClass=this.previewClass,It.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(we).withPreviewTemplate(He).withPreviewContainer(this.previewContainer||"global"),Le&&It.withDirection(Le.value)}}),It.beforeStarted.pipe((0,Dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void It.withParent(this._parentDrag._dragRef);let Le=this.element.nativeElement.parentElement;for(;Le;){if(Le.classList.contains("cdk-drag")){It.withParent(cn._dragInstances.find(zt=>zt.element.nativeElement===Le)?._dragRef||null);break}Le=Le.parentElement}})}_handleEvents(It){It.started.subscribe(Le=>{this.started.emit({source:this,event:Le.event}),this._changeDetectorRef.markForCheck()}),It.released.subscribe(Le=>{this.released.emit({source:this,event:Le.event})}),It.ended.subscribe(Le=>{this.ended.emit({source:this,distance:Le.distance,dropPoint:Le.dropPoint,event:Le.event}),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Le=>{this.entered.emit({container:Le.container.data,item:this,currentIndex:Le.currentIndex})}),It.exited.subscribe(Le=>{this.exited.emit({container:Le.container.data,item:this})}),It.dropped.subscribe(Le=>{this.dropped.emit({previousIndex:Le.previousIndex,currentIndex:Le.currentIndex,previousContainer:Le.previousContainer.data,container:Le.container.data,isPointerOverContainer:Le.isPointerOverContainer,item:this,distance:Le.distance,dropPoint:Le.dropPoint,event:Le.event})})}_assignDefaults(It){const{lockAxis:Le,dragStartDelay:zt,constrainPosition:we,previewClass:He,boundaryElement:kn,draggingDisabled:Ei,rootElementSelector:Bi,previewContainer:un}=It;this.disabled=Ei??!1,this.dragStartDelay=zt||0,Le&&(this.lockAxis=Le),we&&(this.constrainPosition=we),He&&(this.previewClass=He),kn&&(this.boundaryElement=kn),Bi&&(this.rootElementSelector=Bi),un&&(this.previewContainer=un)}_setupHandlesListener(){this._handles.changes.pipe((0,lt.O)(this._handles),(0,Zt.b)(It=>{const Le=It.filter(zt=>zt._parentDrag===this).map(zt=>zt.element);this._selfHandle&&this.rootElementSelector&&Le.push(this.element),this._dragRef.withHandles(Le)}),(0,Rt.w)(It=>(0,et.T)(...It.map(Le=>Le._stateChanges.pipe((0,lt.O)(Le))))),(0,ct.R)(this._destroyed)).subscribe(It=>{const Le=this._dragRef,zt=It.element.nativeElement;It.disabled?Le.disableHandle(zt):Le.enableHandle(zt)})}}return cn._dragInstances=[],cn.\u0275fac=function(It){return new(It||cn)(u.Y36(u.SBq),u.Y36(Bn,12),u.Y36(d.K0),u.Y36(u.R0b),u.Y36(u.s_b),u.Y36(bo,8),u.Y36(Gt.Is,8),u.Y36(vn),u.Y36(u.sBO),u.Y36(xn,10),u.Y36(qn,12))},cn.\u0275dir=u.lG2({type:cn,selectors:[["","cdkDrag",""]],contentQueries:function(It,Le,zt){if(1&It&&(u.Suo(zt,ce,5),u.Suo(zt,Ne,5),u.Suo(zt,xn,5)),2&It){let we;u.iGM(we=u.CRH())&&(Le._previewTemplate=we.first),u.iGM(we=u.CRH())&&(Le._placeholderTemplate=we.first),u.iGM(we=u.CRH())&&(Le._handles=we)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(It,Le){2&It&&u.ekj("cdk-drag-disabled",Le.disabled)("cdk-drag-dragging",Le._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[u._Bn([{provide:qn,useExisting:cn}]),u.TTD]}),cn})(),gn=(()=>{class cn{}return cn.\u0275fac=function(It){return new(It||cn)},cn.\u0275mod=u.oAB({type:cn}),cn.\u0275inj=u.cJS({providers:[vn],imports:[v.ZD]}),cn})()},29521:(tt,W,f)=>{"use strict";f.d(W,{A:()=>ie,JH:()=>Zt,JU:()=>T,K5:()=>t,Ku:()=>B,LH:()=>Ct,L_:()=>N,MW:()=>qn,Mf:()=>v,SV:()=>Dt,Sd:()=>ct,VM:()=>K,Vb:()=>cc,Z:()=>vn,ZH:()=>d,aO:()=>Fe,b2:()=>Or,hY:()=>L,jx:()=>U,oh:()=>lt,uR:()=>et,xE:()=>bt,yY:()=>Ut,zL:()=>w});const d=8,v=9,t=13,T=16,U=17,w=18,L=27,N=32,B=33,K=34,et=35,ct=36,lt=37,Ct=38,Dt=39,Zt=40,Ut=46,bt=48,Fe=57,ie=65,vn=90,qn=91,Or=224;function cc(nr,...ls){return ls.length?ls.some(Ar=>nr[Ar]):nr.altKey||nr.shiftKey||nr.ctrlKey||nr.metaKey}},62289:(tt,W,f)=>{"use strict";f.d(W,{Yg:()=>Zt,u3:()=>Gt,xu:()=>K});var u=f(94650),d=f(21281),v=f(8929),g=f(23426),t=f(61221),T=f(56498),U=f(72986),w=f(31307),P=f(80013),O=f(24850),L=f(1059),N=f(7625),B=f(83353);let K=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=u.oAB({type:Tt}),Tt.\u0275inj=u.cJS({}),Tt})();const et=new Set;let ct,lt=(()=>{class Tt{constructor(bt){this._platform=bt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dt}matchMedia(bt){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ct(Tt){if(!et.has(Tt))try{ct||(ct=document.createElement("style"),ct.setAttribute("type","text/css"),document.head.appendChild(ct)),ct.sheet&&(ct.sheet.insertRule(`@media ${Tt} {body{ }}`,0),et.add(Tt))}catch(Ut){console.error(Ut)}}(bt),this._matchMedia(bt)}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.LFG(B.t4))},Tt.\u0275prov=u.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();function Dt(Tt){return{matches:"all"===Tt||""===Tt,media:Tt,addListener:()=>{},removeListener:()=>{}}}let Zt=(()=>{class Tt{constructor(bt,mt){this._mediaMatcher=bt,this._zone=mt,this._queries=new Map,this._destroySubject=new v.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(bt){return Rt((0,d.Eq)(bt)).some(Lt=>this._registerQuery(Lt).mql.matches)}observe(bt){const Lt=Rt((0,d.Eq)(bt)).map(kt=>this._registerQuery(kt).observable);let Bt=(0,g.aj)(Lt);return Bt=(0,t.z)(Bt.pipe((0,U.q)(1)),Bt.pipe((0,w.T)(1),(0,P.b)(0))),Bt.pipe((0,O.U)(kt=>{const le={matches:!1,breakpoints:{}};return kt.forEach(({matches:Vt,query:be})=>{le.matches=le.matches||Vt,le.breakpoints[be]=Vt}),le}))}_registerQuery(bt){if(this._queries.has(bt))return this._queries.get(bt);const mt=this._mediaMatcher.matchMedia(bt),Bt={observable:new T.y(kt=>{const le=Vt=>this._zone.run(()=>kt.next(Vt));return mt.addListener(le),()=>{mt.removeListener(le)}}).pipe((0,L.O)(mt),(0,O.U)(({matches:kt})=>({query:bt,matches:kt})),(0,N.R)(this._destroySubject)),mql:mt};return this._queries.set(bt,Bt),Bt}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.LFG(lt),u.LFG(u.R0b))},Tt.\u0275prov=u.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();function Rt(Tt){return Tt.map(Ut=>Ut.split(",")).reduce((Ut,bt)=>Ut.concat(bt)).map(Ut=>Ut.trim())}const Gt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(tt,W,f)=>{"use strict";f.d(W,{Q8:()=>P,wD:()=>w});var u=f(21281),d=f(94650),v=f(56498),g=f(8929),t=f(80013);let T=(()=>{class O{create(N){return typeof MutationObserver>"u"?null:new MutationObserver(N)}}return O.\u0275fac=function(N){return new(N||O)},O.\u0275prov=d.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),U=(()=>{class O{constructor(N){this._mutationObserverFactory=N,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((N,B)=>this._cleanupObserver(B))}observe(N){const B=(0,u.fI)(N);return new v.y(K=>{const ct=this._observeElement(B).subscribe(K);return()=>{ct.unsubscribe(),this._unobserveElement(B)}})}_observeElement(N){if(this._observedElements.has(N))this._observedElements.get(N).count++;else{const B=new g.xQ,K=this._mutationObserverFactory.create(et=>B.next(et));K&&K.observe(N,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(N,{observer:K,stream:B,count:1})}return this._observedElements.get(N).stream}_unobserveElement(N){this._observedElements.has(N)&&(this._observedElements.get(N).count--,this._observedElements.get(N).count||this._cleanupObserver(N))}_cleanupObserver(N){if(this._observedElements.has(N)){const{observer:B,stream:K}=this._observedElements.get(N);B&&B.disconnect(),K.complete(),this._observedElements.delete(N)}}}return O.\u0275fac=function(N){return new(N||O)(d.LFG(T))},O.\u0275prov=d.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),w=(()=>{class O{constructor(N,B,K){this._contentObserver=N,this._elementRef=B,this._ngZone=K,this.event=new d.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,u.Ig)(N),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(N){this._debounce=(0,u.su)(N),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const N=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?N.pipe((0,t.b)(this.debounce)):N).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return O.\u0275fac=function(N){return new(N||O)(d.Y36(U),d.Y36(d.SBq),d.Y36(d.R0b))},O.\u0275dir=d.lG2({type:O,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),O})(),P=(()=>{class O{}return O.\u0275fac=function(N){return new(N||O)},O.\u0275mod=d.oAB({type:O}),O.\u0275inj=d.cJS({providers:[T]}),O})()},98184:(tt,W,f)=>{"use strict";f.d(W,{Iu:()=>Fe,U8:()=>oi,X_:()=>Ut,Xj:()=>ge,_G:()=>Qt,aV:()=>Ce,pI:()=>Pn,xu:()=>dn});var u=f(67376),d=f(36895),v=f(94650),g=f(21281),t=f(83353),T=f(40445),U=f(84080),w=f(8929),P=f(42654),O=f(36787),L=f(72986),N=f(7625),B=f(44290),K=f(29521);const et=(0,t.Mq)();class ct{constructor(ot,X){this._viewportRuler=ot,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=X}attach(){}enable(){if(this._canBeEnabled()){const ot=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ot.style.left||"",this._previousHTMLStyles.top=ot.style.top||"",ot.style.left=(0,g.HM)(-this._previousScrollPosition.left),ot.style.top=(0,g.HM)(-this._previousScrollPosition.top),ot.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ot=this._document.documentElement,At=ot.style,Ht=this._document.body.style,ue=At.scrollBehavior||"",ye=Ht.scrollBehavior||"";this._isEnabled=!1,At.left=this._previousHTMLStyles.left,At.top=this._previousHTMLStyles.top,ot.classList.remove("cdk-global-scrollblock"),et&&(At.scrollBehavior=Ht.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),et&&(At.scrollBehavior=ue,Ht.scrollBehavior=ye)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const X=this._document.body,At=this._viewportRuler.getViewportSize();return X.scrollHeight>At.height||X.scrollWidth>At.width}}class Ct{constructor(ot,X,At,Ht){this._scrollDispatcher=ot,this._ngZone=X,this._viewportRuler=At,this._config=Ht,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ot){this._overlayRef=ot}enable(){if(this._scrollSubscription)return;const ot=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ot.subscribe(()=>{const X=this._viewportRuler.getViewportScrollPosition().top;Math.abs(X-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ot.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dt{enable(){}disable(){}attach(){}}function Zt(ee,ot){return ot.some(X=>ee.bottomX.bottom||ee.rightX.right)}function Rt(ee,ot){return ot.some(X=>ee.topX.bottom||ee.leftX.right)}class Gt{constructor(ot,X,At,Ht){this._scrollDispatcher=ot,this._viewportRuler=X,this._ngZone=At,this._config=Ht,this._scrollSubscription=null}attach(ot){this._overlayRef=ot}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const X=this._overlayRef.overlayElement.getBoundingClientRect(),{width:At,height:Ht}=this._viewportRuler.getViewportSize();Zt(X,[{width:At,height:Ht,bottom:Ht,right:At,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Tt=(()=>{class ee{constructor(X,At,Ht,ue){this._scrollDispatcher=X,this._viewportRuler=At,this._ngZone=Ht,this.noop=()=>new Dt,this.close=ye=>new Ct(this._scrollDispatcher,this._ngZone,this._viewportRuler,ye),this.block=()=>new ct(this._viewportRuler,this._document),this.reposition=ye=>new Gt(this._scrollDispatcher,this._viewportRuler,this._ngZone,ye),this._document=ue}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(u.mF),v.LFG(u.rL),v.LFG(v.R0b),v.LFG(d.K0))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();class Ut{constructor(ot){if(this.scrollStrategy=new Dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ot){const X=Object.keys(ot);for(const At of X)void 0!==ot[At]&&(this[At]=ot[At])}}}class Lt{constructor(ot,X){this.connectionPair=ot,this.scrollableViewProperties=X}}let le=(()=>{class ee{constructor(X){this._attachedOverlays=[],this._document=X}ngOnDestroy(){this.detach()}add(X){this.remove(X),this._attachedOverlays.push(X)}remove(X){const At=this._attachedOverlays.indexOf(X);At>-1&&this._attachedOverlays.splice(At,1),0===this._attachedOverlays.length&&this.detach()}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(d.K0))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Vt=(()=>{class ee extends le{constructor(X,At){super(X),this._ngZone=At,this._keydownListener=Ht=>{const ue=this._attachedOverlays;for(let ye=ue.length-1;ye>-1;ye--)if(ue[ye]._keydownEvents.observers.length>0){const Se=ue[ye]._keydownEvents;this._ngZone?this._ngZone.run(()=>Se.next(Ht)):Se.next(Ht);break}}}add(X){super.add(X),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(d.K0),v.LFG(v.R0b,8))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),be=(()=>{class ee extends le{constructor(X,At,Ht){super(X),this._platform=At,this._ngZone=Ht,this._cursorStyleIsSet=!1,this._pointerDownListener=ue=>{this._pointerDownEventTarget=(0,t.sA)(ue)},this._clickListener=ue=>{const ye=(0,t.sA)(ue),Se="click"===ue.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ye;this._pointerDownEventTarget=null;const vn=this._attachedOverlays.slice();for(let qn=vn.length-1;qn>-1;qn--){const mi=vn[qn];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(ye)||mi.overlayElement.contains(Se))break;const Di=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Di.next(ue)):Di.next(ue)}}}add(X){if(super.add(X),!this._isAttached){const At=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(At)):this._addEventListeners(At),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=At.style.cursor,At.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const X=this._document.body;X.removeEventListener("pointerdown",this._pointerDownListener,!0),X.removeEventListener("click",this._clickListener,!0),X.removeEventListener("auxclick",this._clickListener,!0),X.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(X.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(X){X.addEventListener("pointerdown",this._pointerDownListener,!0),X.addEventListener("click",this._clickListener,!0),X.addEventListener("auxclick",this._clickListener,!0),X.addEventListener("contextmenu",this._clickListener,!0)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(d.K0),v.LFG(t.t4),v.LFG(v.R0b,8))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),ge=(()=>{class ee{constructor(X,At){this._platform=At,this._document=X}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const X="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Ht=this._document.querySelectorAll(`.${X}[platform="server"], .${X}[platform="test"]`);for(let ue=0;uethis._backdropClick.next(Di),this._backdropTransitionendHandler=Di=>{this._disposeBackdrop(Di.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,Ht.scrollStrategy&&(this._scrollStrategy=Ht.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ht.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ot){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const X=this._portalOutlet.attach(ot);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof X?.onDestroy&&X.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),X}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ot=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ot}dispose(){const ot=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ot&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ot){ot!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ot,this.hasAttached()&&(ot.attach(this),this.updatePosition()))}updateSize(ot){this._config={...this._config,...ot},this._updateElementSize()}setDirection(ot){this._config={...this._config,direction:ot},this._updateElementDirection()}addPanelClass(ot){this._pane&&this._toggleClasses(this._pane,ot,!0)}removePanelClass(ot){this._pane&&this._toggleClasses(this._pane,ot,!1)}getDirection(){const ot=this._config.direction;return ot?"string"==typeof ot?ot:ot.value:"ltr"}updateScrollStrategy(ot){ot!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ot,this.hasAttached()&&(ot.attach(this),ot.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ot=this._pane.style;ot.width=(0,g.HM)(this._config.width),ot.height=(0,g.HM)(this._config.height),ot.minWidth=(0,g.HM)(this._config.minWidth),ot.minHeight=(0,g.HM)(this._config.minHeight),ot.maxWidth=(0,g.HM)(this._config.maxWidth),ot.maxHeight=(0,g.HM)(this._config.maxHeight)}_togglePointerEvents(ot){this._pane.style.pointerEvents=ot?"":"none"}_attachBackdrop(){const ot="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ot)})}):this._backdropElement.classList.add(ot)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ot=this._backdropElement;if(ot){if(this._animationsDisabled)return void this._disposeBackdrop(ot);ot.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ot.addEventListener("transitionend",this._backdropTransitionendHandler)}),ot.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ot)},500))}}_toggleClasses(ot,X,At){const Ht=(0,g.Eq)(X||[]).filter(ue=>!!ue);Ht.length&&(At?ot.classList.add(...Ht):ot.classList.remove(...Ht))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ot=this._ngZone.onStable.pipe((0,N.R)((0,O.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ot.unsubscribe())})})}_disposeScrollStrategy(){const ot=this._scrollStrategy;ot&&(ot.disable(),ot.detach&&ot.detach())}_disposeBackdrop(ot){ot&&(ot.removeEventListener("click",this._backdropClickHandler),ot.removeEventListener("transitionend",this._backdropTransitionendHandler),ot.remove(),this._backdropElement===ot&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qe="cdk-overlay-connected-position-bounding-box",je=/([A-Za-z%]+)$/;class Qt{constructor(ot,X,At,Ht,ue){this._viewportRuler=X,this._document=At,this._platform=Ht,this._overlayContainer=ue,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w.xQ,this._resizeSubscription=P.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ot)}get positions(){return this._preferredPositions}attach(ot){this._validatePositions(),ot.hostElement.classList.add(qe),this._overlayRef=ot,this._boundingBox=ot.hostElement,this._pane=ot.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ot=this._originRect,X=this._overlayRect,At=this._viewportRect,Ht=this._containerRect,ue=[];let ye;for(let Se of this._preferredPositions){let vn=this._getOriginPoint(ot,Ht,Se),qn=this._getOverlayPoint(vn,X,Se),mi=this._getOverlayFit(qn,X,At,Se);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Se,vn);this._canFitWithFlexibleDimensions(mi,qn,At)?ue.push({position:Se,origin:vn,overlayRect:X,boundingBoxRect:this._calculateBoundingBoxRect(vn,Se)}):(!ye||ye.overlayFit.visibleAreavn&&(vn=mi,Se=qn)}return this._isPushed=!1,void this._applyPosition(Se.position,Se.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ye.position,ye.originPoint);this._applyPosition(ye.position,ye.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ue(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ot=this._lastPosition;if(ot){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const X=this._getOriginPoint(this._originRect,this._containerRect,ot);this._applyPosition(ot,X)}else this.apply()}withScrollableContainers(ot){return this._scrollables=ot,this}withPositions(ot){return this._preferredPositions=ot,-1===ot.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ot){return this._viewportMargin=ot,this}withFlexibleDimensions(ot=!0){return this._hasFlexibleDimensions=ot,this}withGrowAfterOpen(ot=!0){return this._growAfterOpen=ot,this}withPush(ot=!0){return this._canPush=ot,this}withLockedPosition(ot=!0){return this._positionLocked=ot,this}setOrigin(ot){return this._origin=ot,this}withDefaultOffsetX(ot){return this._offsetX=ot,this}withDefaultOffsetY(ot){return this._offsetY=ot,this}withTransformOriginOn(ot){return this._transformOriginSelector=ot,this}_getOriginPoint(ot,X,At){let Ht,ue;if("center"==At.originX)Ht=ot.left+ot.width/2;else{const ye=this._isRtl()?ot.right:ot.left,Se=this._isRtl()?ot.left:ot.right;Ht="start"==At.originX?ye:Se}return X.left<0&&(Ht-=X.left),ue="center"==At.originY?ot.top+ot.height/2:"top"==At.originY?ot.top:ot.bottom,X.top<0&&(ue-=X.top),{x:Ht,y:ue}}_getOverlayPoint(ot,X,At){let Ht,ue;return Ht="center"==At.overlayX?-X.width/2:"start"===At.overlayX?this._isRtl()?-X.width:0:this._isRtl()?0:-X.width,ue="center"==At.overlayY?-X.height/2:"top"==At.overlayY?0:-X.height,{x:ot.x+Ht,y:ot.y+ue}}_getOverlayFit(ot,X,At,Ht){const ue=Wt(X);let{x:ye,y:Se}=ot,vn=this._getOffset(Ht,"x"),qn=this._getOffset(Ht,"y");vn&&(ye+=vn),qn&&(Se+=qn);let bo=0-Se,hi=Se+ue.height-At.height,zn=this._subtractOverflows(ue.width,0-ye,ye+ue.width-At.width),Bn=this._subtractOverflows(ue.height,bo,hi),Qe=zn*Bn;return{visibleArea:Qe,isCompletelyWithinViewport:ue.width*ue.height===Qe,fitsInViewportVertically:Bn===ue.height,fitsInViewportHorizontally:zn==ue.width}}_canFitWithFlexibleDimensions(ot,X,At){if(this._hasFlexibleDimensions){const Ht=At.bottom-X.y,ue=At.right-X.x,ye=ie(this._overlayRef.getConfig().minHeight),Se=ie(this._overlayRef.getConfig().minWidth),qn=ot.fitsInViewportHorizontally||null!=Se&&Se<=ue;return(ot.fitsInViewportVertically||null!=ye&&ye<=Ht)&&qn}return!1}_pushOverlayOnScreen(ot,X,At){if(this._previousPushAmount&&this._positionLocked)return{x:ot.x+this._previousPushAmount.x,y:ot.y+this._previousPushAmount.y};const Ht=Wt(X),ue=this._viewportRect,ye=Math.max(ot.x+Ht.width-ue.width,0),Se=Math.max(ot.y+Ht.height-ue.height,0),vn=Math.max(ue.top-At.top-ot.y,0),qn=Math.max(ue.left-At.left-ot.x,0);let mi=0,Di=0;return mi=Ht.width<=ue.width?qn||-ye:ot.xzn&&!this._isInitialRender&&!this._growAfterOpen&&(ye=ot.y-zn/2)}if("end"===X.overlayX&&!Ht||"start"===X.overlayX&&Ht)bo=At.width-ot.x+this._viewportMargin,mi=ot.x-this._viewportMargin;else if("start"===X.overlayX&&!Ht||"end"===X.overlayX&&Ht)Di=ot.x,mi=At.right-ot.x;else{const hi=Math.min(At.right-ot.x+At.left,ot.x),zn=this._lastBoundingBoxSize.width;mi=2*hi,Di=ot.x-hi,mi>zn&&!this._isInitialRender&&!this._growAfterOpen&&(Di=ot.x-zn/2)}return{top:ye,left:Di,bottom:Se,right:bo,width:mi,height:ue}}_setBoundingBoxStyles(ot,X){const At=this._calculateBoundingBoxRect(ot,X);!this._isInitialRender&&!this._growAfterOpen&&(At.height=Math.min(At.height,this._lastBoundingBoxSize.height),At.width=Math.min(At.width,this._lastBoundingBoxSize.width));const Ht={};if(this._hasExactPosition())Ht.top=Ht.left="0",Ht.bottom=Ht.right=Ht.maxHeight=Ht.maxWidth="",Ht.width=Ht.height="100%";else{const ue=this._overlayRef.getConfig().maxHeight,ye=this._overlayRef.getConfig().maxWidth;Ht.height=(0,g.HM)(At.height),Ht.top=(0,g.HM)(At.top),Ht.bottom=(0,g.HM)(At.bottom),Ht.width=(0,g.HM)(At.width),Ht.left=(0,g.HM)(At.left),Ht.right=(0,g.HM)(At.right),Ht.alignItems="center"===X.overlayX?"center":"end"===X.overlayX?"flex-end":"flex-start",Ht.justifyContent="center"===X.overlayY?"center":"bottom"===X.overlayY?"flex-end":"flex-start",ue&&(Ht.maxHeight=(0,g.HM)(ue)),ye&&(Ht.maxWidth=(0,g.HM)(ye))}this._lastBoundingBoxSize=At,Ue(this._boundingBox.style,Ht)}_resetBoundingBoxStyles(){Ue(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ue(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ot,X){const At={},Ht=this._hasExactPosition(),ue=this._hasFlexibleDimensions,ye=this._overlayRef.getConfig();if(Ht){const mi=this._viewportRuler.getViewportScrollPosition();Ue(At,this._getExactOverlayY(X,ot,mi)),Ue(At,this._getExactOverlayX(X,ot,mi))}else At.position="static";let Se="",vn=this._getOffset(X,"x"),qn=this._getOffset(X,"y");vn&&(Se+=`translateX(${vn}px) `),qn&&(Se+=`translateY(${qn}px)`),At.transform=Se.trim(),ye.maxHeight&&(Ht?At.maxHeight=(0,g.HM)(ye.maxHeight):ue&&(At.maxHeight="")),ye.maxWidth&&(Ht?At.maxWidth=(0,g.HM)(ye.maxWidth):ue&&(At.maxWidth="")),Ue(this._pane.style,At)}_getExactOverlayY(ot,X,At){let Ht={top:"",bottom:""},ue=this._getOverlayPoint(X,this._overlayRect,ot);return this._isPushed&&(ue=this._pushOverlayOnScreen(ue,this._overlayRect,At)),"bottom"===ot.overlayY?Ht.bottom=this._document.documentElement.clientHeight-(ue.y+this._overlayRect.height)+"px":Ht.top=(0,g.HM)(ue.y),Ht}_getExactOverlayX(ot,X,At){let ye,Ht={left:"",right:""},ue=this._getOverlayPoint(X,this._overlayRect,ot);return this._isPushed&&(ue=this._pushOverlayOnScreen(ue,this._overlayRect,At)),ye=this._isRtl()?"end"===ot.overlayX?"left":"right":"end"===ot.overlayX?"right":"left","right"===ye?Ht.right=this._document.documentElement.clientWidth-(ue.x+this._overlayRect.width)+"px":Ht.left=(0,g.HM)(ue.x),Ht}_getScrollVisibility(){const ot=this._getOriginRect(),X=this._pane.getBoundingClientRect(),At=this._scrollables.map(Ht=>Ht.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rt(ot,At),isOriginOutsideView:Zt(ot,At),isOverlayClipped:Rt(X,At),isOverlayOutsideView:Zt(X,At)}}_subtractOverflows(ot,...X){return X.reduce((At,Ht)=>At-Math.max(Ht,0),ot)}_getNarrowedViewportRect(){const ot=this._document.documentElement.clientWidth,X=this._document.documentElement.clientHeight,At=this._viewportRuler.getViewportScrollPosition();return{top:At.top+this._viewportMargin,left:At.left+this._viewportMargin,right:At.left+ot-this._viewportMargin,bottom:At.top+X-this._viewportMargin,width:ot-2*this._viewportMargin,height:X-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ot,X){return"x"===X?ot.offsetX??this._offsetX:ot.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(ot){this._pane&&(0,g.Eq)(ot).forEach(X=>{""!==X&&-1===this._appliedPanelClasses.indexOf(X)&&(this._appliedPanelClasses.push(X),this._pane.classList.add(X))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ot=>{this._pane.classList.remove(ot)}),this._appliedPanelClasses=[])}_getOriginRect(){const ot=this._origin;if(ot instanceof v.SBq)return ot.nativeElement.getBoundingClientRect();if(ot instanceof Element)return ot.getBoundingClientRect();const X=ot.width||0,At=ot.height||0;return{top:ot.y,bottom:ot.y+At,left:ot.x,right:ot.x+X,height:At,width:X}}}function Ue(ee,ot){for(let X in ot)ot.hasOwnProperty(X)&&(ee[X]=ot[X]);return ee}function ie(ee){if("number"!=typeof ee&&null!=ee){const[ot,X]=ee.split(je);return X&&"px"!==X?null:parseFloat(ot)}return ee||null}function Wt(ee){return{top:Math.floor(ee.top),right:Math.floor(ee.right),bottom:Math.floor(ee.bottom),left:Math.floor(ee.left),width:Math.floor(ee.width),height:Math.floor(ee.height)}}const ae="cdk-global-overlay-wrapper";class De{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ot){const X=ot.getConfig();this._overlayRef=ot,this._width&&!X.width&&ot.updateSize({width:this._width}),this._height&&!X.height&&ot.updateSize({height:this._height}),ot.hostElement.classList.add(ae),this._isDisposed=!1}top(ot=""){return this._bottomOffset="",this._topOffset=ot,this._alignItems="flex-start",this}left(ot=""){return this._xOffset=ot,this._xPosition="left",this}bottom(ot=""){return this._topOffset="",this._bottomOffset=ot,this._alignItems="flex-end",this}right(ot=""){return this._xOffset=ot,this._xPosition="right",this}start(ot=""){return this._xOffset=ot,this._xPosition="start",this}end(ot=""){return this._xOffset=ot,this._xPosition="end",this}width(ot=""){return this._overlayRef?this._overlayRef.updateSize({width:ot}):this._width=ot,this}height(ot=""){return this._overlayRef?this._overlayRef.updateSize({height:ot}):this._height=ot,this}centerHorizontally(ot=""){return this.left(ot),this._xPosition="center",this}centerVertically(ot=""){return this.top(ot),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ot=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement.style,At=this._overlayRef.getConfig(),{width:Ht,height:ue,maxWidth:ye,maxHeight:Se}=At,vn=!("100%"!==Ht&&"100vw"!==Ht||ye&&"100%"!==ye&&"100vw"!==ye),qn=!("100%"!==ue&&"100vh"!==ue||Se&&"100%"!==Se&&"100vh"!==Se),mi=this._xPosition,Di=this._xOffset,bo="rtl"===this._overlayRef.getConfig().direction;let hi="",zn="",Bn="";vn?Bn="flex-start":"center"===mi?(Bn="center",bo?zn=Di:hi=Di):bo?"left"===mi||"end"===mi?(Bn="flex-end",hi=Di):("right"===mi||"start"===mi)&&(Bn="flex-start",zn=Di):"left"===mi||"start"===mi?(Bn="flex-start",hi=Di):("right"===mi||"end"===mi)&&(Bn="flex-end",zn=Di),ot.position=this._cssPosition,ot.marginLeft=vn?"0":hi,ot.marginTop=qn?"0":this._topOffset,ot.marginBottom=this._bottomOffset,ot.marginRight=vn?"0":zn,X.justifyContent=Bn,X.alignItems=qn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ot=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement,At=X.style;X.classList.remove(ae),At.justifyContent=At.alignItems=ot.marginTop=ot.marginBottom=ot.marginLeft=ot.marginRight=ot.position="",this._overlayRef=null,this._isDisposed=!0}}let nn=(()=>{class ee{constructor(X,At,Ht,ue){this._viewportRuler=X,this._document=At,this._platform=Ht,this._overlayContainer=ue}global(){return new De}flexibleConnectedTo(X){return new Qt(X,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(u.rL),v.LFG(d.K0),v.LFG(t.t4),v.LFG(ge))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),hn=0,Ce=(()=>{class ee{constructor(X,At,Ht,ue,ye,Se,vn,qn,mi,Di,bo,hi){this.scrollStrategies=X,this._overlayContainer=At,this._componentFactoryResolver=Ht,this._positionBuilder=ue,this._keyboardDispatcher=ye,this._injector=Se,this._ngZone=vn,this._document=qn,this._directionality=mi,this._location=Di,this._outsideClickDispatcher=bo,this._animationsModuleType=hi}create(X){const At=this._createHostElement(),Ht=this._createPaneElement(At),ue=this._createPortalOutlet(Ht),ye=new Ut(X);return ye.direction=ye.direction||this._directionality.value,new Fe(ue,At,Ht,ye,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(X){const At=this._document.createElement("div");return At.id="cdk-overlay-"+hn++,At.classList.add("cdk-overlay-pane"),X.appendChild(At),At}_createHostElement(){const X=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(X),X}_createPortalOutlet(X){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new U.u0(X,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ee.\u0275fac=function(X){return new(X||ee)(v.LFG(Tt),v.LFG(ge),v.LFG(v._Vd),v.LFG(nn),v.LFG(Vt),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(d.K0),v.LFG(T.Is),v.LFG(d.Ye),v.LFG(be),v.LFG(v.QbO,8))},ee.\u0275prov=v.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const bn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Oe=new v.OlP("cdk-connected-overlay-scroll-strategy");let dn=(()=>{class ee{constructor(X){this.elementRef=X}}return ee.\u0275fac=function(X){return new(X||ee)(v.Y36(v.SBq))},ee.\u0275dir=v.lG2({type:ee,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ee})(),Pn=(()=>{class ee{constructor(X,At,Ht,ue,ye){this._overlay=X,this._dir=ye,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=P.w.EMPTY,this._attachSubscription=P.w.EMPTY,this._detachSubscription=P.w.EMPTY,this._positionSubscription=P.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new U.UE(At,Ht),this._scrollStrategyFactory=ue,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(X){this._offsetX=X,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(X){this._offsetY=X,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(X){this._hasBackdrop=(0,g.Ig)(X)}get lockPosition(){return this._lockPosition}set lockPosition(X){this._lockPosition=(0,g.Ig)(X)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(X){this._flexibleDimensions=(0,g.Ig)(X)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(X){this._growAfterOpen=(0,g.Ig)(X)}get push(){return this._push}set push(X){this._push=(0,g.Ig)(X)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(X){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),X.origin&&this.open&&this._position.apply()),X.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bn);const X=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=X.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=X.detachments().subscribe(()=>this.detach.emit()),X.keydownEvents().subscribe(At=>{this.overlayKeydown.next(At),At.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(At)&&(At.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(At=>{this.overlayOutsideClick.next(At)})}_buildConfig(){const X=this._position=this.positionStrategy||this._createPositionStrategy(),At=new Ut({direction:this._dir,positionStrategy:X,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(At.width=this.width),(this.height||0===this.height)&&(At.height=this.height),(this.minWidth||0===this.minWidth)&&(At.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(At.minHeight=this.minHeight),this.backdropClass&&(At.backdropClass=this.backdropClass),this.panelClass&&(At.panelClass=this.panelClass),At}_updatePositionStrategy(X){const At=this.positions.map(Ht=>({originX:Ht.originX,originY:Ht.originY,overlayX:Ht.overlayX,overlayY:Ht.overlayY,offsetX:Ht.offsetX||this.offsetX,offsetY:Ht.offsetY||this.offsetY,panelClass:Ht.panelClass||void 0}));return X.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(At).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const X=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(X),X}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof dn?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(X=>{this.backdropClick.emit(X)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,B.o)(()=>this.positionChange.observers.length>0)).subscribe(X=>{this.positionChange.emit(X),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ee.\u0275fac=function(X){return new(X||ee)(v.Y36(Ce),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Oe),v.Y36(T.Is,8))},ee.\u0275dir=v.lG2({type:ee,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.TTD]}),ee})();const _i={provide:Oe,deps:[Ce],useFactory:function ii(ee){return()=>ee.scrollStrategies.reposition()}};let oi=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=v.oAB({type:ee}),ee.\u0275inj=v.cJS({providers:[Ce,_i],imports:[T.vT,U.eL,u.Cl,u.Cl]}),ee})()},83353:(tt,W,f)=>{"use strict";f.d(W,{Mq:()=>K,Oy:()=>Rt,_i:()=>et,ht:()=>Dt,i$:()=>L,kV:()=>Ct,qK:()=>w,sA:()=>Zt,t4:()=>g,ud:()=>t});var u=f(94650),d=f(36895);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let T,g=(()=>{class Gt{constructor(Ut){this._platformId=Ut,this.isBrowser=this._platformId?(0,d.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Gt.\u0275fac=function(Ut){return new(Ut||Gt)(u.LFG(u.Lbi))},Gt.\u0275prov=u.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})(),t=(()=>{class Gt{}return Gt.\u0275fac=function(Ut){return new(Ut||Gt)},Gt.\u0275mod=u.oAB({type:Gt}),Gt.\u0275inj=u.cJS({}),Gt})();const U=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function w(){if(T)return T;if("object"!=typeof document||!document)return T=new Set(U),T;let Gt=document.createElement("input");return T=new Set(U.filter(Tt=>(Gt.setAttribute("type",Tt),Gt.type===Tt))),T}let P,N,B,ct;function L(Gt){return function O(){if(null==P&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?Gt:!!Gt.capture}function K(){if(null==B){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return B=!1,B;if("scrollBehavior"in document.documentElement.style)B=!0;else{const Gt=Element.prototype.scrollTo;B=!!Gt&&!/\{\s*\[native code\]\s*\}/.test(Gt.toString())}}return B}function et(){if("object"!=typeof document||!document)return 0;if(null==N){const Gt=document.createElement("div"),Tt=Gt.style;Gt.dir="rtl",Tt.width="1px",Tt.overflow="auto",Tt.visibility="hidden",Tt.pointerEvents="none",Tt.position="absolute";const Ut=document.createElement("div"),bt=Ut.style;bt.width="2px",bt.height="1px",Gt.appendChild(Ut),document.body.appendChild(Gt),N=0,0===Gt.scrollLeft&&(Gt.scrollLeft=1,N=0===Gt.scrollLeft?1:2),Gt.remove()}return N}function Ct(Gt){if(function lt(){if(null==ct){const Gt=typeof document<"u"?document.head:null;ct=!(!Gt||!Gt.createShadowRoot&&!Gt.attachShadow)}return ct}()){const Tt=Gt.getRootNode?Gt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Tt instanceof ShadowRoot)return Tt}return null}function Dt(){let Gt=typeof document<"u"&&document?document.activeElement:null;for(;Gt&&Gt.shadowRoot;){const Tt=Gt.shadowRoot.activeElement;if(Tt===Gt)break;Gt=Tt}return Gt}function Zt(Gt){return Gt.composedPath?Gt.composedPath()[0]:Gt.target}function Rt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(tt,W,f)=>{"use strict";f.d(W,{C5:()=>O,Pl:()=>Dt,UE:()=>L,eL:()=>Rt,en:()=>B,ig:()=>lt,u0:()=>et});var u=f(94650),d=f(36895);class P{attach(Ut){return this._attachedHost=Ut,Ut.attach(this)}detach(){let Ut=this._attachedHost;null!=Ut&&(this._attachedHost=null,Ut.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ut){this._attachedHost=Ut}}class O extends P{constructor(Ut,bt,mt,Lt){super(),this.component=Ut,this.viewContainerRef=bt,this.injector=mt,this.componentFactoryResolver=Lt}}class L extends P{constructor(Ut,bt,mt,Lt){super(),this.templateRef=Ut,this.viewContainerRef=bt,this.context=mt,this.injector=Lt}get origin(){return this.templateRef.elementRef}attach(Ut,bt=this.context){return this.context=bt,super.attach(Ut)}detach(){return this.context=void 0,super.detach()}}class N extends P{constructor(Ut){super(),this.element=Ut instanceof u.SBq?Ut.nativeElement:Ut}}class B{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Ut){return Ut instanceof O?(this._attachedPortal=Ut,this.attachComponentPortal(Ut)):Ut instanceof L?(this._attachedPortal=Ut,this.attachTemplatePortal(Ut)):this.attachDomPortal&&Ut instanceof N?(this._attachedPortal=Ut,this.attachDomPortal(Ut)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Ut){this._disposeFn=Ut}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class et extends B{constructor(Ut,bt,mt,Lt,Bt){super(),this.outletElement=Ut,this._componentFactoryResolver=bt,this._appRef=mt,this._defaultInjector=Lt,this.attachDomPortal=kt=>{const le=kt.element,Vt=this._document.createComment("dom-portal");le.parentNode.insertBefore(Vt,le),this.outletElement.appendChild(le),this._attachedPortal=kt,super.setDisposeFn(()=>{Vt.parentNode&&Vt.parentNode.replaceChild(le,Vt)})},this._document=Bt}attachComponentPortal(Ut){const mt=(Ut.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ut.component);let Lt;return Ut.viewContainerRef?(Lt=Ut.viewContainerRef.createComponent(mt,Ut.viewContainerRef.length,Ut.injector||Ut.viewContainerRef.injector),this.setDisposeFn(()=>Lt.destroy())):(Lt=mt.create(Ut.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(Lt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Lt.hostView),Lt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Lt)),this._attachedPortal=Ut,Lt}attachTemplatePortal(Ut){let bt=Ut.viewContainerRef,mt=bt.createEmbeddedView(Ut.templateRef,Ut.context,{injector:Ut.injector});return mt.rootNodes.forEach(Lt=>this.outletElement.appendChild(Lt)),mt.detectChanges(),this.setDisposeFn(()=>{let Lt=bt.indexOf(mt);-1!==Lt&&bt.remove(Lt)}),this._attachedPortal=Ut,mt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ut){return Ut.hostView.rootNodes[0]}}let lt=(()=>{class Tt extends L{constructor(bt,mt){super(bt,mt)}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(u.Rgc),u.Y36(u.s_b))},Tt.\u0275dir=u.lG2({type:Tt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[u.qOj]}),Tt})(),Dt=(()=>{class Tt extends B{constructor(bt,mt,Lt){super(),this._componentFactoryResolver=bt,this._viewContainerRef=mt,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=Bt=>{const kt=Bt.element,le=this._document.createComment("dom-portal");Bt.setAttachedHost(this),kt.parentNode.insertBefore(le,kt),this._getRootNode().appendChild(kt),this._attachedPortal=Bt,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(kt,le)})},this._document=Lt}get portal(){return this._attachedPortal}set portal(bt){this.hasAttached()&&!bt&&!this._isInitialized||(this.hasAttached()&&super.detach(),bt&&super.attach(bt),this._attachedPortal=bt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(bt){bt.setAttachedHost(this);const mt=null!=bt.viewContainerRef?bt.viewContainerRef:this._viewContainerRef,Bt=(bt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(bt.component),kt=mt.createComponent(Bt,mt.length,bt.injector||mt.injector);return mt!==this._viewContainerRef&&this._getRootNode().appendChild(kt.hostView.rootNodes[0]),super.setDisposeFn(()=>kt.destroy()),this._attachedPortal=bt,this._attachedRef=kt,this.attached.emit(kt),kt}attachTemplatePortal(bt){bt.setAttachedHost(this);const mt=this._viewContainerRef.createEmbeddedView(bt.templateRef,bt.context,{injector:bt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=bt,this._attachedRef=mt,this.attached.emit(mt),mt}_getRootNode(){const bt=this._viewContainerRef.element.nativeElement;return bt.nodeType===bt.ELEMENT_NODE?bt:bt.parentNode}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(d.K0))},Tt.\u0275dir=u.lG2({type:Tt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),Tt})(),Rt=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=u.oAB({type:Tt}),Tt.\u0275inj=u.cJS({}),Tt})()},67376:(tt,W,f)=>{"use strict";f.d(W,{Cl:()=>je,PQ:()=>Tt,ZD:()=>qe,mF:()=>Gt,rL:()=>bt});var u=f(21281),d=f(94650),v=f(8929),g=f(21086),t=f(56498),T=f(23753),P=(f(90352),f(8139),f(57138)),O=f(92198),L=f(7625),N=f(83353),B=f(36895),K=f(40445);let Gt=(()=>{class Qt{constructor(ie,Wt,se){this._ngZone=ie,this._platform=Wt,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=se}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const Wt=this.scrollContainers.get(ie);Wt&&(Wt.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new t.y(Wt=>{this._globalSubscription||this._addGlobalListener();const se=ie>0?this._scrolled.pipe((0,P.e)(ie)).subscribe(Wt):this._scrolled.subscribe(Wt);return this._scrolledCount++,()=>{se.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,g.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,Wt)=>this.deregister(Wt)),this._scrolled.complete()}ancestorScrolled(ie,Wt){const se=this.getAncestorScrollContainers(ie);return this.scrolled(Wt).pipe((0,O.h)(Xt=>!Xt||se.indexOf(Xt)>-1))}getAncestorScrollContainers(ie){const Wt=[];return this.scrollContainers.forEach((se,Xt)=>{this._scrollableContainsElement(Xt,ie)&&Wt.push(Xt)}),Wt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,Wt){let se=(0,u.fI)(Wt),Xt=ie.getElementRef().nativeElement;do{if(se==Xt)return!0}while(se=se.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,T.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(d.LFG(d.R0b),d.LFG(N.t4),d.LFG(B.K0,8))},Qt.\u0275prov=d.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"}),Qt})(),Tt=(()=>{class Qt{constructor(ie,Wt,se,Xt){this.elementRef=ie,this.scrollDispatcher=Wt,this.ngZone=se,this.dir=Xt,this._destroyed=new v.xQ,this._elementScrolled=new t.y(ae=>this.ngZone.runOutsideAngular(()=>(0,T.R)(this.elementRef.nativeElement,"scroll").pipe((0,L.R)(this._destroyed)).subscribe(ae)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ie){const Wt=this.elementRef.nativeElement,se=this.dir&&"rtl"==this.dir.value;null==ie.left&&(ie.left=se?ie.end:ie.start),null==ie.right&&(ie.right=se?ie.start:ie.end),null!=ie.bottom&&(ie.top=Wt.scrollHeight-Wt.clientHeight-ie.bottom),se&&0!=(0,N._i)()?(null!=ie.left&&(ie.right=Wt.scrollWidth-Wt.clientWidth-ie.left),2==(0,N._i)()?ie.left=ie.right:1==(0,N._i)()&&(ie.left=ie.right?-ie.right:ie.right)):null!=ie.right&&(ie.left=Wt.scrollWidth-Wt.clientWidth-ie.right),this._applyScrollToOptions(ie)}_applyScrollToOptions(ie){const Wt=this.elementRef.nativeElement;(0,N.Mq)()?Wt.scrollTo(ie):(null!=ie.top&&(Wt.scrollTop=ie.top),null!=ie.left&&(Wt.scrollLeft=ie.left))}measureScrollOffset(ie){const Wt="left",Xt=this.elementRef.nativeElement;if("top"==ie)return Xt.scrollTop;if("bottom"==ie)return Xt.scrollHeight-Xt.clientHeight-Xt.scrollTop;const ae=this.dir&&"rtl"==this.dir.value;return"start"==ie?ie=ae?"right":Wt:"end"==ie&&(ie=ae?Wt:"right"),ae&&2==(0,N._i)()?ie==Wt?Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft:Xt.scrollLeft:ae&&1==(0,N._i)()?ie==Wt?Xt.scrollLeft+Xt.scrollWidth-Xt.clientWidth:-Xt.scrollLeft:ie==Wt?Xt.scrollLeft:Xt.scrollWidth-Xt.clientWidth-Xt.scrollLeft}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(d.Y36(d.SBq),d.Y36(Gt),d.Y36(d.R0b),d.Y36(K.Is,8))},Qt.\u0275dir=d.lG2({type:Qt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Qt})(),bt=(()=>{class Qt{constructor(ie,Wt,se){this._platform=ie,this._change=new v.xQ,this._changeListener=Xt=>{this._change.next(Xt)},this._document=se,Wt.runOutsideAngular(()=>{if(ie.isBrowser){const Xt=this._getWindow();Xt.addEventListener("resize",this._changeListener),Xt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:Wt,height:se}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+se,right:ie.left+Wt,height:se,width:Wt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,Wt=this._getWindow(),se=ie.documentElement,Xt=se.getBoundingClientRect();return{top:-Xt.top||ie.body.scrollTop||Wt.scrollY||se.scrollTop||0,left:-Xt.left||ie.body.scrollLeft||Wt.scrollX||se.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,P.e)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(d.LFG(N.t4),d.LFG(d.R0b),d.LFG(B.K0,8))},Qt.\u0275prov=d.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"}),Qt})(),qe=(()=>{class Qt{}return Qt.\u0275fac=function(ie){return new(ie||Qt)},Qt.\u0275mod=d.oAB({type:Qt}),Qt.\u0275inj=d.cJS({}),Qt})(),je=(()=>{class Qt{}return Qt.\u0275fac=function(ie){return new(ie||Qt)},Qt.\u0275mod=d.oAB({type:Qt}),Qt.\u0275inj=d.cJS({imports:[K.vT,qe,K.vT,qe]}),Qt})()},12138:(tt,W,f)=>{"use strict";f.d(W,{B8:()=>Zt,KL:()=>B,U5:()=>Tt,be:()=>Dt,gx:()=>Ct,po:()=>Gt,st:()=>Rt,u6:()=>K});var u=f(12687),d=f(40445),v=f(21281),g=f(29521),t=f(94650),T=f(83353),U=f(8929),w=f(21086),P=f(1059),O=f(7625);function L(Ut,bt){1&Ut&&t.Hsn(0)}const N=["*"];let B=(()=>{class Ut{constructor(mt){this._elementRef=mt}focus(){this._elementRef.nativeElement.focus()}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(t.SBq))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Ut})(),K=(()=>{class Ut{constructor(mt){this.template=mt}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(t.Rgc))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["","cdkStepLabel",""]]}),Ut})(),et=0;const Ct=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Dt=(()=>{class Ut{constructor(mt,Lt){this._stepper=mt,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Lt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(mt){this._editable=(0,v.Ig)(mt)}get optional(){return this._optional}set optional(mt){this._optional=(0,v.Ig)(mt)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(mt){this._completedOverride=(0,v.Ig)(mt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(mt){this._customError=(0,v.Ig)(mt)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36((0,t.Gpc)(()=>Zt)),t.Y36(Ct,8))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["cdk-step"]],contentQueries:function(mt,Lt,Bt){if(1&mt&&t.Suo(Bt,K,5),2&mt){let kt;t.iGM(kt=t.CRH())&&(Lt.stepLabel=kt.first)}},viewQuery:function(mt,Lt){if(1&mt&&t.Gf(t.Rgc,7),2&mt){let Bt;t.iGM(Bt=t.CRH())&&(Lt.content=Bt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:N,decls:1,vars:0,template:function(mt,Lt){1&mt&&(t.F$t(),t.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Ut})(),Zt=(()=>{class Ut{constructor(mt,Lt,Bt){this._dir=mt,this._changeDetectorRef=Lt,this._elementRef=Bt,this._destroyed=new U.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=et++}get linear(){return this._linear}set linear(mt){this._linear=(0,v.Ig)(mt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(mt){const Lt=(0,v.su)(mt);this.steps&&this._steps?(this._isValidIndex(Lt),this.selected?._markAsInteracted(),this._selectedIndex!==Lt&&!this._anyControlsInvalidOrPending(Lt)&&(Lt>=this._selectedIndex||this.steps.toArray()[Lt].editable)&&this._updateSelectedItemIndex(Lt)):this._selectedIndex=Lt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(mt){this.selectedIndex=mt&&this.steps?this.steps.toArray().indexOf(mt):-1}get orientation(){return this._orientation}set orientation(mt){this._orientation=mt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===mt)}ngAfterContentInit(){this._steps.changes.pipe((0,P.O)(this._steps),(0,O.R)(this._destroyed)).subscribe(mt=>{this.steps.reset(mt.filter(Lt=>Lt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,P.O)(this._stepHeader),(0,O.R)(this._destroyed)).subscribe(mt=>{this._sortedHeaders.reset(mt.toArray().sort((Lt,Bt)=>Lt._elementRef.nativeElement.compareDocumentPosition(Bt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new u.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,w.of)()).pipe((0,P.O)(this._layoutDirection()),(0,O.R)(this._destroyed)).subscribe(mt=>this._keyManager.withHorizontalOrientation(mt)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(mt=>mt.reset()),this._stateChanged()}_getStepLabelId(mt){return`cdk-step-label-${this._groupId}-${mt}`}_getStepContentId(mt){return`cdk-step-content-${this._groupId}-${mt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(mt){const Lt=mt-this._selectedIndex;return Lt<0?"rtl"===this._layoutDirection()?"next":"previous":Lt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(mt,Lt="number"){const Bt=this.steps.toArray()[mt],kt=this._isCurrentStep(mt);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,kt):this._getGuidelineLogic(Bt,kt,Lt)}_getDefaultIndicatorLogic(mt,Lt){return mt._showError()&&mt.hasError&&!Lt?"error":!mt.completed||Lt?"number":mt.editable?"edit":"done"}_getGuidelineLogic(mt,Lt,Bt="number"){return mt._showError()&&mt.hasError&&!Lt?"error":mt.completed&&!Lt?"done":mt.completed&&Lt?Bt:mt.editable&&Lt?"edit":Bt}_isCurrentStep(mt){return this._selectedIndex===mt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(mt){const Lt=this.steps.toArray();this.selectionChange.emit({selectedIndex:mt,previouslySelectedIndex:this._selectedIndex,selectedStep:Lt[mt],previouslySelectedStep:Lt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(mt):this._keyManager.updateActiveItem(mt),this._selectedIndex=mt,this._stateChanged()}_onKeydown(mt){const Lt=(0,g.Vb)(mt),Bt=mt.keyCode,kt=this._keyManager;null==kt.activeItemIndex||Lt||Bt!==g.L_&&Bt!==g.K5?kt.onKeydown(mt):(this.selectedIndex=kt.activeItemIndex,mt.preventDefault())}_anyControlsInvalidOrPending(mt){return!!(this._linear&&mt>=0)&&this.steps.toArray().slice(0,mt).some(Lt=>{const Bt=Lt.stepControl;return(Bt?Bt.invalid||Bt.pending||!Lt.interacted:!Lt.completed)&&!Lt.optional&&!Lt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const mt=this._elementRef.nativeElement,Lt=(0,T.ht)();return mt===Lt||mt.contains(Lt)}_isValidIndex(mt){return mt>-1&&(!this.steps||mt{class Ut{constructor(mt){this._stepper=mt,this.type="submit"}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(Zt))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&t.NdJ("click",function(){return Lt._stepper.next()}),2&mt&&t.Ikx("type",Lt.type)},inputs:{type:"type"}}),Ut})(),Gt=(()=>{class Ut{constructor(mt){this._stepper=mt,this.type="button"}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(t.Y36(Zt))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&t.NdJ("click",function(){return Lt._stepper.previous()}),2&mt&&t.Ikx("type",Lt.type)},inputs:{type:"type"}}),Ut})(),Tt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=t.oAB({type:Ut}),Ut.\u0275inj=t.cJS({imports:[d.vT]}),Ut})()},39349:(tt,W,f)=>{"use strict";f.d(W,{IC:()=>B,Ky:()=>K,Lq:()=>L});var u=f(83353),d=f(94650),v=f(21281),g=f(68896),t=f(8929),T=f(23753),U=f(57138),w=f(7625),P=f(36895);const O=(0,u.i$)({passive:!0});let L=(()=>{class et{constructor(lt,Ct){this._platform=lt,this._ngZone=Ct,this._monitoredElements=new Map}monitor(lt){if(!this._platform.isBrowser)return g.E;const Ct=(0,v.fI)(lt),Dt=this._monitoredElements.get(Ct);if(Dt)return Dt.subject;const Zt=new t.xQ,Rt="cdk-text-field-autofilled",Gt=Tt=>{"cdk-text-field-autofill-start"!==Tt.animationName||Ct.classList.contains(Rt)?"cdk-text-field-autofill-end"===Tt.animationName&&Ct.classList.contains(Rt)&&(Ct.classList.remove(Rt),this._ngZone.run(()=>Zt.next({target:Tt.target,isAutofilled:!1}))):(Ct.classList.add(Rt),this._ngZone.run(()=>Zt.next({target:Tt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Ct.addEventListener("animationstart",Gt,O),Ct.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Ct,{subject:Zt,unlisten:()=>{Ct.removeEventListener("animationstart",Gt,O)}}),Zt}stopMonitoring(lt){const Ct=(0,v.fI)(lt),Dt=this._monitoredElements.get(Ct);Dt&&(Dt.unlisten(),Dt.subject.complete(),Ct.classList.remove("cdk-text-field-autofill-monitored"),Ct.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Ct))}ngOnDestroy(){this._monitoredElements.forEach((lt,Ct)=>this.stopMonitoring(Ct))}}return et.\u0275fac=function(lt){return new(lt||et)(d.LFG(u.t4),d.LFG(d.R0b))},et.\u0275prov=d.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),B=(()=>{class et{constructor(lt,Ct,Dt,Zt){this._elementRef=lt,this._platform=Ct,this._ngZone=Dt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Rt=>{this._hasFocus="focus"===Rt.type},this._document=Zt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(lt){this._minRows=(0,v.su)(lt),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(lt){this._maxRows=(0,v.su)(lt),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(lt){lt=(0,v.Ig)(lt),this._enabled!==lt&&((this._enabled=lt)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(lt){this._cachedPlaceholderHeight=void 0,lt?this._textareaElement.setAttribute("placeholder",lt):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const lt=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.minHeight=lt)}_setMaxHeight(){const lt=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.maxHeight=lt)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const lt=this._getWindow();(0,T.R)(lt,"resize").pipe((0,U.e)(16),(0,w.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let lt=this._textareaElement.cloneNode(!1);lt.rows=1,lt.style.position="absolute",lt.style.visibility="hidden",lt.style.border="none",lt.style.padding="0",lt.style.height="",lt.style.minHeight="",lt.style.maxHeight="",lt.style.overflow="hidden",this._textareaElement.parentNode.appendChild(lt),this._cachedLineHeight=lt.clientHeight,lt.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const lt=this._textareaElement,Ct=lt.style.marginBottom||"",Dt=this._platform.FIREFOX,Zt=Dt&&this._hasFocus,Rt=Dt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Zt&&(lt.style.marginBottom=`${lt.clientHeight}px`),lt.classList.add(Rt);const Gt=lt.scrollHeight-4;return lt.classList.remove(Rt),Zt&&(lt.style.marginBottom=Ct),Gt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const lt=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=lt}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(lt=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Ct=this._elementRef.nativeElement,Dt=Ct.value;if(!lt&&this._minRows===this._previousMinRows&&Dt===this._previousValue)return;const Zt=this._measureScrollHeight(),Rt=Math.max(Zt,this._cachedPlaceholderHeight||0);Ct.style.height=`${Rt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Ct)):setTimeout(()=>this._scrollToCaretPosition(Ct))}),this._previousValue=Dt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(lt){const{selectionStart:Ct,selectionEnd:Dt}=lt;!this._destroyed.isStopped&&this._hasFocus&<.setSelectionRange(Ct,Dt)}}return et.\u0275fac=function(lt){return new(lt||et)(d.Y36(d.SBq),d.Y36(u.t4),d.Y36(d.R0b),d.Y36(P.K0,8))},et.\u0275dir=d.lG2({type:et,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(lt,Ct){1<&&d.NdJ("input",function(){return Ct._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),et})(),K=(()=>{class et{}return et.\u0275fac=function(lt){return new(lt||et)},et.\u0275mod=d.oAB({type:et}),et.\u0275inj=d.cJS({}),et})()},57851:(tt,W,f)=>{"use strict";f.d(W,{C2:()=>B,HI:()=>et,Hs:()=>bt,Ud:()=>Vt,VY:()=>K,XJ:()=>le,Xx:()=>Bt,_0:()=>Ut,cu:()=>ct,nZ:()=>ge,rO:()=>Ct});var u=f(95017),d=f(54715),v=f(8929),g=f(591),t=f(21086),T=f(72986),U=f(92198),w=f(7625),P=f(94650),O=f(21281),L=f(40445);class N{constructor(){this.expansionModel=new u.Ov(!0)}toggle(qe){this.expansionModel.toggle(this._trackByValue(qe))}expand(qe){this.expansionModel.select(this._trackByValue(qe))}collapse(qe){this.expansionModel.deselect(this._trackByValue(qe))}isExpanded(qe){return this.expansionModel.isSelected(this._trackByValue(qe))}toggleDescendants(qe){this.expansionModel.isSelected(this._trackByValue(qe))?this.collapseDescendants(qe):this.expandDescendants(qe)}collapseAll(){this.expansionModel.clear()}expandDescendants(qe){let je=[qe];je.push(...this.getDescendants(qe)),this.expansionModel.select(...je.map(Qt=>this._trackByValue(Qt)))}collapseDescendants(qe){let je=[qe];je.push(...this.getDescendants(qe)),this.expansionModel.deselect(...je.map(Qt=>this._trackByValue(Qt)))}_trackByValue(qe){return this.trackBy?this.trackBy(qe):qe}}class B extends N{constructor(qe,je,Qt){super(),this.getLevel=qe,this.isExpandable=je,this.options=Qt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(qe){const Qt=[];for(let Ue=this.dataNodes.indexOf(qe)+1;Uethis._trackByValue(qe)))}}class K extends N{constructor(qe,je){super(),this.getChildren=qe,this.options=je,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const qe=this.dataNodes.reduce((je,Qt)=>[...je,...this.getDescendants(Qt),Qt],[]);this.expansionModel.select(...qe.map(je=>this._trackByValue(je)))}getDescendants(qe){const je=[];return this._getDescendants(je,qe),je.splice(1)}_getDescendants(qe,je){qe.push(je);const Qt=this.getChildren(je);Array.isArray(Qt)?Qt.forEach(Ue=>this._getDescendants(qe,Ue)):(0,d.b)(Qt)&&Qt.pipe((0,T.q)(1),(0,U.h)(Boolean)).subscribe(Ue=>{for(const ie of Ue)this._getDescendants(qe,ie)})}}const et=new P.OlP("CDK_TREE_NODE_OUTLET_NODE");let ct=(()=>{class Fe{constructor(je,Qt){this.viewContainer=je,this._node=Qt}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.s_b),P.Y36(et,8))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodeOutlet",""]]}),Fe})();class lt{constructor(qe){this.$implicit=qe}}let Ct=(()=>{class Fe{constructor(je){this.template=je}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.Rgc))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Fe})(),Ut=(()=>{class Fe{constructor(je,Qt){this._differs=je,this._changeDetectorRef=Qt,this._onDestroy=new v.xQ,this._levels=new Map,this.viewChange=new g.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(je){this._dataSource!==je&&this._switchDataSource(je)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const je=this._nodeDefs.filter(Qt=>!Qt.when);this._defaultNodeDef=je[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(je){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),je||this._nodeOutlet.viewContainer.clear(),this._dataSource=je,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let je;(0,u.Z9)(this._dataSource)?je=this._dataSource.connect(this):(0,d.b)(this._dataSource)?je=this._dataSource:Array.isArray(this._dataSource)&&(je=(0,t.of)(this._dataSource)),je&&(this._dataSubscription=je.pipe((0,w.R)(this._onDestroy)).subscribe(Qt=>this.renderNodeChanges(Qt)))}renderNodeChanges(je,Qt=this._dataDiffer,Ue=this._nodeOutlet.viewContainer,ie){const Wt=Qt.diff(je);!Wt||(Wt.forEachOperation((se,Xt,ae)=>{if(null==se.previousIndex)this.insertNode(je[ae],ae,Ue,ie);else if(null==ae)Ue.remove(Xt),this._levels.delete(se.item);else{const De=Ue.get(Xt);Ue.move(De,ae)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(je,Qt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ie=>ie.when&&ie.when(Qt,je))||this._defaultNodeDef}insertNode(je,Qt,Ue,ie){const Wt=this._getNodeDef(je,Qt),se=new lt(je);se.level=this.treeControl.getLevel?this.treeControl.getLevel(je):typeof ie<"u"&&this._levels.has(ie)?this._levels.get(ie)+1:0,this._levels.set(je,se.level),(Ue||this._nodeOutlet.viewContainer).createEmbeddedView(Wt.template,se,Qt),bt.mostRecentTreeNode&&(bt.mostRecentTreeNode.data=je)}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.ZZ4),P.Y36(P.sBO))},Fe.\u0275cmp=P.Xpm({type:Fe,selectors:[["cdk-tree"]],contentQueries:function(je,Qt,Ue){if(1&je&&P.Suo(Ue,Ct,5),2&je){let ie;P.iGM(ie=P.CRH())&&(Qt._nodeDefs=ie)}},viewQuery:function(je,Qt){if(1&je&&P.Gf(ct,7),2&je){let Ue;P.iGM(Ue=P.CRH())&&(Qt._nodeOutlet=Ue.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(je,Qt){1&je&&P.GkF(0,0)},dependencies:[ct],encapsulation:2}),Fe})(),bt=(()=>{class Fe{constructor(je,Qt){this._elementRef=je,this._tree=Qt,this._destroyed=new v.xQ,this._dataChanges=new v.xQ,Fe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(je){this._elementRef.nativeElement.setAttribute("role",je)}get data(){return this._data}set data(je){je!==this._data&&(this._data=je,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function mt(Fe){let qe=Fe.parentElement;for(;qe&&!Lt(qe);)qe=qe.parentElement;return qe?qe.classList.contains("cdk-nested-tree-node")?(0,O.su)(qe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Fe.mostRecentTreeNode===this&&(Fe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Fe.mostRecentTreeNode=null,Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.SBq),P.Y36(Ut))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(je,Qt){2&je&&P.uIk("aria-expanded",Qt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Fe})();function Lt(Fe){const qe=Fe.classList;return!(!qe?.contains("cdk-nested-tree-node")&&!qe?.contains("cdk-tree"))}let Bt=(()=>{class Fe extends bt{constructor(je,Qt,Ue){super(je,Qt),this._differs=Ue}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const je=this._tree.treeControl.getChildren(this.data);Array.isArray(je)?this.updateChildrenNodes(je):(0,d.b)(je)&&je.pipe((0,w.R)(this._destroyed)).subscribe(Qt=>this.updateChildrenNodes(Qt)),this.nodeOutlet.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(je){const Qt=this._getNodeOutlet();je&&(this._children=je),Qt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Qt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const je=this._getNodeOutlet();je&&(je.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const je=this.nodeOutlet;return je&&je.find(Qt=>!Qt._node||Qt._node===this)}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(P.SBq),P.Y36(Ut),P.Y36(P.ZZ4))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(je,Qt,Ue){if(1&je&&P.Suo(Ue,ct,5),2&je){let ie;P.iGM(ie=P.CRH())&&(Qt.nodeOutlet=ie)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[P._Bn([{provide:bt,useExisting:Fe},{provide:et,useExisting:Fe}]),P.qOj]}),Fe})();const kt=/([A-Za-z%]+)$/;let le=(()=>{class Fe{constructor(je,Qt,Ue,ie){this._treeNode=je,this._tree=Qt,this._element=Ue,this._dir=ie,this._destroyed=new v.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ie&&ie.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),je._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(je){this._setLevelInput(je)}get indent(){return this._indent}set indent(je){this._setIndentInput(je)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const je=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Qt=this._level??je;return"number"==typeof Qt?`${Qt*this._indent}${this.indentUnits}`:null}_setPadding(je=!1){const Qt=this._paddingIndent();if(Qt!==this._currentPadding||je){const Ue=this._element.nativeElement,ie=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Wt="paddingLeft"===ie?"paddingRight":"paddingLeft";Ue.style[ie]=Qt||"",Ue.style[Wt]="",this._currentPadding=Qt}}_setLevelInput(je){this._level=(0,O.su)(je,null),this._setPadding()}_setIndentInput(je){let Qt=je,Ue="px";if("string"==typeof je){const ie=je.split(kt);Qt=ie[0],Ue=ie[1]||Ue}this.indentUnits=Ue,this._indent=(0,O.su)(Qt),this._setPadding()}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(bt),P.Y36(Ut),P.Y36(P.SBq),P.Y36(L.Is,8))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Fe})(),Vt=(()=>{class Fe{constructor(je,Qt){this._tree=je,this._treeNode=Qt,this._recursive=!1}get recursive(){return this._recursive}set recursive(je){this._recursive=(0,O.Ig)(je)}_toggle(je){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),je.stopPropagation()}}return Fe.\u0275fac=function(je){return new(je||Fe)(P.Y36(Ut),P.Y36(bt))},Fe.\u0275dir=P.lG2({type:Fe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(je,Qt){1&je&&P.NdJ("click",function(ie){return Qt._toggle(ie)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Fe})(),ge=(()=>{class Fe{}return Fe.\u0275fac=function(je){return new(je||Fe)},Fe.\u0275mod=P.oAB({type:Fe}),Fe.\u0275inj=P.cJS({}),Fe})()},36895:(tt,W,f)=>{"use strict";f.d(W,{Do:()=>Zt,ED:()=>Js,EM:()=>wr,H9:()=>zl,HT:()=>t,JF:()=>ds,JJ:()=>wl,K0:()=>U,Mx:()=>Vn,NF:()=>Vl,Nd:()=>Jc,O5:()=>nr,Ov:()=>uc,PC:()=>us,PM:()=>Pr,RF:()=>Oc,S$:()=>lt,V_:()=>O,Ye:()=>Rt,b0:()=>Dt,bD:()=>Ia,ez:()=>Ku,i8:()=>Bc,mk:()=>Xi,n9:()=>Al,q:()=>v,qS:()=>ze,rS:()=>js,sg:()=>Ja,tP:()=>Hs,uU:()=>sl,w_:()=>T});var u=f(94650);let d=null;function v(){return d}function t(Pt){d||(d=Pt)}class T{}const U=new u.OlP("DocumentToken");let w=(()=>{class Pt{historyGo(Yt){throw new Error("Not implemented")}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function P(){return(0,u.LFG)(L)}()},providedIn:"platform"}),Pt})();const O=new u.OlP("Location Initialized");let L=(()=>{class Pt extends w{constructor(Yt){super(),this._doc=Yt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(Yt){const Ge=v().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("popstate",Yt,!1),()=>Ge.removeEventListener("popstate",Yt)}onHashChange(Yt){const Ge=v().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("hashchange",Yt,!1),()=>Ge.removeEventListener("hashchange",Yt)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Yt){this.location.pathname=Yt}pushState(Yt,Ge,En){N()?this._history.pushState(Yt,Ge,En):this.location.hash=En}replaceState(Yt,Ge,En){N()?this._history.replaceState(Yt,Ge,En):this.location.hash=En}forward(){this._history.forward()}back(){this._history.back()}historyGo(Yt=0){this._history.go(Yt)}getState(){return this._history.state}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(U))},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function B(){return new L((0,u.LFG)(U))}()},providedIn:"platform"}),Pt})();function N(){return!!window.history.pushState}function K(Pt,me){if(0==Pt.length)return me;if(0==me.length)return Pt;let Yt=0;return Pt.endsWith("/")&&Yt++,me.startsWith("/")&&Yt++,2==Yt?Pt+me.substring(1):1==Yt?Pt+me:Pt+"/"+me}function et(Pt){const me=Pt.match(/#|\?|$/),Yt=me&&me.index||Pt.length;return Pt.slice(0,Yt-("/"===Pt[Yt-1]?1:0))+Pt.slice(Yt)}function ct(Pt){return Pt&&"?"!==Pt[0]?"?"+Pt:Pt}let lt=(()=>{class Pt{historyGo(Yt){throw new Error("Not implemented")}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return(0,u.f3M)(Dt)},providedIn:"root"}),Pt})();const Ct=new u.OlP("appBaseHref");let Dt=(()=>{class Pt extends lt{constructor(Yt,Ge){super(),this._platformLocation=Yt,this._removeListenerFns=[],this._baseHref=Ge??this._platformLocation.getBaseHrefFromDOM()??(0,u.f3M)(U).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Yt){this._removeListenerFns.push(this._platformLocation.onPopState(Yt),this._platformLocation.onHashChange(Yt))}getBaseHref(){return this._baseHref}prepareExternalUrl(Yt){return K(this._baseHref,Yt)}path(Yt=!1){const Ge=this._platformLocation.pathname+ct(this._platformLocation.search),En=this._platformLocation.hash;return En&&Yt?`${Ge}${En}`:Ge}pushState(Yt,Ge,En,St){const pe=this.prepareExternalUrl(En+ct(St));this._platformLocation.pushState(Yt,Ge,pe)}replaceState(Yt,Ge,En,St){const pe=this.prepareExternalUrl(En+ct(St));this._platformLocation.replaceState(Yt,Ge,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Yt=0){this._platformLocation.historyGo?.(Yt)}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(w),u.LFG(Ct,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),Zt=(()=>{class Pt extends lt{constructor(Yt,Ge){super(),this._platformLocation=Yt,this._baseHref="",this._removeListenerFns=[],null!=Ge&&(this._baseHref=Ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Yt){this._removeListenerFns.push(this._platformLocation.onPopState(Yt),this._platformLocation.onHashChange(Yt))}getBaseHref(){return this._baseHref}path(Yt=!1){let Ge=this._platformLocation.hash;return null==Ge&&(Ge="#"),Ge.length>0?Ge.substring(1):Ge}prepareExternalUrl(Yt){const Ge=K(this._baseHref,Yt);return Ge.length>0?"#"+Ge:Ge}pushState(Yt,Ge,En,St){let pe=this.prepareExternalUrl(En+ct(St));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(Yt,Ge,pe)}replaceState(Yt,Ge,En,St){let pe=this.prepareExternalUrl(En+ct(St));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(Yt,Ge,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Yt=0){this._platformLocation.historyGo?.(Yt)}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(w),u.LFG(Ct,8))},Pt.\u0275prov=u.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})(),Rt=(()=>{class Pt{constructor(Yt){this._subject=new u.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Yt;const Ge=this._locationStrategy.getBaseHref();this._baseHref=et(Ut(Ge)),this._locationStrategy.onPopState(En=>{this._subject.emit({url:this.path(!0),pop:!0,state:En.state,type:En.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Yt=!1){return this.normalize(this._locationStrategy.path(Yt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Yt,Ge=""){return this.path()==this.normalize(Yt+ct(Ge))}normalize(Yt){return Pt.stripTrailingSlash(function Tt(Pt,me){return Pt&&me.startsWith(Pt)?me.substring(Pt.length):me}(this._baseHref,Ut(Yt)))}prepareExternalUrl(Yt){return Yt&&"/"!==Yt[0]&&(Yt="/"+Yt),this._locationStrategy.prepareExternalUrl(Yt)}go(Yt,Ge="",En=null){this._locationStrategy.pushState(En,"",Yt,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+ct(Ge)),En)}replaceState(Yt,Ge="",En=null){this._locationStrategy.replaceState(En,"",Yt,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Yt+ct(Ge)),En)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Yt=0){this._locationStrategy.historyGo?.(Yt)}onUrlChange(Yt){return this._urlChangeListeners.push(Yt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ge=>{this._notifyUrlChangeListeners(Ge.url,Ge.state)})),()=>{const Ge=this._urlChangeListeners.indexOf(Yt);this._urlChangeListeners.splice(Ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Yt="",Ge){this._urlChangeListeners.forEach(En=>En(Yt,Ge))}subscribe(Yt,Ge,En){return this._subject.subscribe({next:Yt,error:Ge,complete:En})}}return Pt.normalizeQueryParams=ct,Pt.joinWithSlash=K,Pt.stripTrailingSlash=et,Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.LFG(lt))},Pt.\u0275prov=u.Yz7({token:Pt,factory:function(){return function Gt(){return new Rt((0,u.LFG)(lt))}()},providedIn:"root"}),Pt})();function Ut(Pt){return Pt.replace(/\/index.html$/,"")}const bt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Percent=1]="Percent",mt[mt.Currency=2]="Currency",mt[mt.Scientific=3]="Scientific",mt))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),kt=(()=>((kt=kt||{})[kt.Narrow=0]="Narrow",kt[kt.Abbreviated=1]="Abbreviated",kt[kt.Wide=2]="Wide",kt[kt.Short=3]="Short",kt))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),Vt=(()=>((Vt=Vt||{})[Vt.Decimal=0]="Decimal",Vt[Vt.Group=1]="Group",Vt[Vt.List=2]="List",Vt[Vt.PercentSign=3]="PercentSign",Vt[Vt.PlusSign=4]="PlusSign",Vt[Vt.MinusSign=5]="MinusSign",Vt[Vt.Exponential=6]="Exponential",Vt[Vt.SuperscriptingExponent=7]="SuperscriptingExponent",Vt[Vt.PerMille=8]="PerMille",Vt[Vt.Infinity=9]="Infinity",Vt[Vt.NaN=10]="NaN",Vt[Vt.TimeSeparator=11]="TimeSeparator",Vt[Vt.CurrencyDecimal=12]="CurrencyDecimal",Vt[Vt.CurrencyGroup=13]="CurrencyGroup",Vt))();function Wt(Pt,me){return oi((0,u.cg1)(Pt)[u.wAp.DateFormat],me)}function se(Pt,me){return oi((0,u.cg1)(Pt)[u.wAp.TimeFormat],me)}function Xt(Pt,me){return oi((0,u.cg1)(Pt)[u.wAp.DateTimeFormat],me)}function ae(Pt,me){const Yt=(0,u.cg1)(Pt),Ge=Yt[u.wAp.NumberSymbols][me];if(typeof Ge>"u"){if(me===Vt.CurrencyDecimal)return Yt[u.wAp.NumberSymbols][Vt.Decimal];if(me===Vt.CurrencyGroup)return Yt[u.wAp.NumberSymbols][Vt.Group]}return Ge}function De(Pt,me){return(0,u.cg1)(Pt)[u.wAp.NumberFormats][me]}function dn(Pt){if(!Pt[u.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Pt[u.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function oi(Pt,me){for(let Yt=me;Yt>-1;Yt--)if(typeof Pt[Yt]<"u")return Pt[Yt];throw new Error("Locale data API: locale data undefined")}function We(Pt){const[me,Yt]=Pt.split(":");return{hours:+me,minutes:+Yt}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ht={},ue=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ye=(()=>((ye=ye||{})[ye.Short=0]="Short",ye[ye.ShortGMT=1]="ShortGMT",ye[ye.Long=2]="Long",ye[ye.Extended=3]="Extended",ye))(),Se=(()=>((Se=Se||{})[Se.FullYear=0]="FullYear",Se[Se.Month=1]="Month",Se[Se.Date=2]="Date",Se[Se.Hours=3]="Hours",Se[Se.Minutes=4]="Minutes",Se[Se.Seconds=5]="Seconds",Se[Se.FractionalSeconds=6]="FractionalSeconds",Se[Se.Day=7]="Day",Se))(),vn=(()=>((vn=vn||{})[vn.DayPeriods=0]="DayPeriods",vn[vn.Days=1]="Days",vn[vn.Months=2]="Months",vn[vn.Eras=3]="Eras",vn))();function qn(Pt,me,Yt,Ge){let En=function we(Pt){if(kn(Pt))return Pt;if("number"==typeof Pt&&!isNaN(Pt))return new Date(Pt);if("string"==typeof Pt){if(Pt=Pt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Pt)){const[En,St=1,pe=1]=Pt.split("-").map(Te=>+Te);return mi(En,St-1,pe)}const Yt=parseFloat(Pt);if(!isNaN(Pt-Yt))return new Date(Yt);let Ge;if(Ge=Pt.match(At))return function He(Pt){const me=new Date(0);let Yt=0,Ge=0;const En=Pt[8]?me.setUTCFullYear:me.setFullYear,St=Pt[8]?me.setUTCHours:me.setHours;Pt[9]&&(Yt=Number(Pt[9]+Pt[10]),Ge=Number(Pt[9]+Pt[11])),En.call(me,Number(Pt[1]),Number(Pt[2])-1,Number(Pt[3]));const pe=Number(Pt[4]||0)-Yt,Te=Number(Pt[5]||0)-Ge,Xe=Number(Pt[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(Pt[7]||0)));return St.call(me,pe,Te,Xe,Tn),me}(Ge)}const me=new Date(Pt);if(!kn(me))throw new Error(`Unable to convert "${Pt}" into a date`);return me}(Pt);me=Di(Yt,me)||me;let Te,pe=[];for(;me;){if(Te=ue.exec(me),!Te){pe.push(me);break}{pe=pe.concat(Te.slice(1));const Xn=pe.pop();if(!Xn)break;me=Xn}}let Xe=En.getTimezoneOffset();Ge&&(Xe=It(Ge,Xe),En=function zt(Pt,me,Yt){const Ge=Yt?-1:1,En=Pt.getTimezoneOffset();return function Le(Pt,me){return(Pt=new Date(Pt.getTime())).setMinutes(Pt.getMinutes()+me),Pt}(Pt,Ge*(It(me,En)-En))}(En,Ge,!0));let Tn="";return pe.forEach(Xn=>{const ei=function xe(Pt){if(cn[Pt])return cn[Pt];let me;switch(Pt){case"G":case"GG":case"GGG":me=xn(vn.Eras,kt.Abbreviated);break;case"GGGG":me=xn(vn.Eras,kt.Wide);break;case"GGGGG":me=xn(vn.Eras,kt.Narrow);break;case"y":me=Bn(Se.FullYear,1,0,!1,!0);break;case"yy":me=Bn(Se.FullYear,2,0,!0,!0);break;case"yyy":me=Bn(Se.FullYear,3,0,!1,!0);break;case"yyyy":me=Bn(Se.FullYear,4,0,!1,!0);break;case"Y":me=gn(1);break;case"YY":me=gn(2,!0);break;case"YYY":me=gn(3);break;case"YYYY":me=gn(4);break;case"M":case"L":me=Bn(Se.Month,1,1);break;case"MM":case"LL":me=Bn(Se.Month,2,1);break;case"MMM":me=xn(vn.Months,kt.Abbreviated);break;case"MMMM":me=xn(vn.Months,kt.Wide);break;case"MMMMM":me=xn(vn.Months,kt.Narrow);break;case"LLL":me=xn(vn.Months,kt.Abbreviated,Bt.Standalone);break;case"LLLL":me=xn(vn.Months,kt.Wide,Bt.Standalone);break;case"LLLLL":me=xn(vn.Months,kt.Narrow,Bt.Standalone);break;case"w":me=rn(1);break;case"ww":me=rn(2);break;case"W":me=rn(1,!0);break;case"d":me=Bn(Se.Date,1);break;case"dd":me=Bn(Se.Date,2);break;case"c":case"cc":me=Bn(Se.Day,1);break;case"ccc":me=xn(vn.Days,kt.Abbreviated,Bt.Standalone);break;case"cccc":me=xn(vn.Days,kt.Wide,Bt.Standalone);break;case"ccccc":me=xn(vn.Days,kt.Narrow,Bt.Standalone);break;case"cccccc":me=xn(vn.Days,kt.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":me=xn(vn.Days,kt.Abbreviated);break;case"EEEE":me=xn(vn.Days,kt.Wide);break;case"EEEEE":me=xn(vn.Days,kt.Narrow);break;case"EEEEEE":me=xn(vn.Days,kt.Short);break;case"a":case"aa":case"aaa":me=xn(vn.DayPeriods,kt.Abbreviated);break;case"aaaa":me=xn(vn.DayPeriods,kt.Wide);break;case"aaaaa":me=xn(vn.DayPeriods,kt.Narrow);break;case"b":case"bb":case"bbb":me=xn(vn.DayPeriods,kt.Abbreviated,Bt.Standalone,!0);break;case"bbbb":me=xn(vn.DayPeriods,kt.Wide,Bt.Standalone,!0);break;case"bbbbb":me=xn(vn.DayPeriods,kt.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":me=xn(vn.DayPeriods,kt.Abbreviated,Bt.Format,!0);break;case"BBBB":me=xn(vn.DayPeriods,kt.Wide,Bt.Format,!0);break;case"BBBBB":me=xn(vn.DayPeriods,kt.Narrow,Bt.Format,!0);break;case"h":me=Bn(Se.Hours,1,-12);break;case"hh":me=Bn(Se.Hours,2,-12);break;case"H":me=Bn(Se.Hours,1);break;case"HH":me=Bn(Se.Hours,2);break;case"m":me=Bn(Se.Minutes,1);break;case"mm":me=Bn(Se.Minutes,2);break;case"s":me=Bn(Se.Seconds,1);break;case"ss":me=Bn(Se.Seconds,2);break;case"S":me=Bn(Se.FractionalSeconds,1);break;case"SS":me=Bn(Se.FractionalSeconds,2);break;case"SSS":me=Bn(Se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=Ne(ye.Short);break;case"ZZZZZ":me=Ne(ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=Ne(ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=Ne(ye.Long);break;default:return null}return cn[Pt]=me,me}(Xn);Tn+=ei?ei(En,Yt,Xe):"''"===Xn?"'":Xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function mi(Pt,me,Yt){const Ge=new Date(0);return Ge.setFullYear(Pt,me,Yt),Ge.setHours(0,0,0),Ge}function Di(Pt,me){const Yt=function ge(Pt){return(0,u.cg1)(Pt)[u.wAp.LocaleId]}(Pt);if(Ht[Yt]=Ht[Yt]||{},Ht[Yt][me])return Ht[Yt][me];let Ge="";switch(me){case"shortDate":Ge=Wt(Pt,le.Short);break;case"mediumDate":Ge=Wt(Pt,le.Medium);break;case"longDate":Ge=Wt(Pt,le.Long);break;case"fullDate":Ge=Wt(Pt,le.Full);break;case"shortTime":Ge=se(Pt,le.Short);break;case"mediumTime":Ge=se(Pt,le.Medium);break;case"longTime":Ge=se(Pt,le.Long);break;case"fullTime":Ge=se(Pt,le.Full);break;case"short":const En=Di(Pt,"shortTime"),St=Di(Pt,"shortDate");Ge=bo(Xt(Pt,le.Short),[En,St]);break;case"medium":const pe=Di(Pt,"mediumTime"),Te=Di(Pt,"mediumDate");Ge=bo(Xt(Pt,le.Medium),[pe,Te]);break;case"long":const Xe=Di(Pt,"longTime"),Tn=Di(Pt,"longDate");Ge=bo(Xt(Pt,le.Long),[Xe,Tn]);break;case"full":const Xn=Di(Pt,"fullTime"),ei=Di(Pt,"fullDate");Ge=bo(Xt(Pt,le.Full),[Xn,ei])}return Ge&&(Ht[Yt][me]=Ge),Ge}function bo(Pt,me){return me&&(Pt=Pt.replace(/\{([^}]+)}/g,function(Yt,Ge){return null!=me&&Ge in me?me[Ge]:Yt})),Pt}function hi(Pt,me,Yt="-",Ge,En){let St="";(Pt<0||En&&Pt<=0)&&(En?Pt=1-Pt:(Pt=-Pt,St=Yt));let pe=String(Pt);for(;pe.length0||Te>-Yt)&&(Te+=Yt),Pt===Se.Hours)0===Te&&-12===Yt&&(Te=12);else if(Pt===Se.FractionalSeconds)return function zn(Pt,me){return hi(Pt,3).substring(0,me)}(Te,me);const Xe=ae(pe,Vt.MinusSign);return hi(Te,me,Xe,Ge,En)}}function xn(Pt,me,Yt=Bt.Format,Ge=!1){return function(En,St){return function Ve(Pt,me,Yt,Ge,En,St){switch(Yt){case vn.Months:return function je(Pt,me,Yt){const Ge=(0,u.cg1)(Pt),St=oi([Ge[u.wAp.MonthsFormat],Ge[u.wAp.MonthsStandalone]],me);return oi(St,Yt)}(me,En,Ge)[Pt.getMonth()];case vn.Days:return function qe(Pt,me,Yt){const Ge=(0,u.cg1)(Pt),St=oi([Ge[u.wAp.DaysFormat],Ge[u.wAp.DaysStandalone]],me);return oi(St,Yt)}(me,En,Ge)[Pt.getDay()];case vn.DayPeriods:const pe=Pt.getHours(),Te=Pt.getMinutes();if(St){const Tn=function Pn(Pt){const me=(0,u.cg1)(Pt);return dn(me),(me[u.wAp.ExtraData][2]||[]).map(Ge=>"string"==typeof Ge?We(Ge):[We(Ge[0]),We(Ge[1])])}(me),Xn=function ii(Pt,me,Yt){const Ge=(0,u.cg1)(Pt);dn(Ge);const St=oi([Ge[u.wAp.ExtraData][0],Ge[u.wAp.ExtraData][1]],me)||[];return oi(St,Yt)||[]}(me,En,Ge),ei=Tn.findIndex(yi=>{if(Array.isArray(yi)){const[Ui,xo]=yi,vi=pe>=Ui.hours&&Te>=Ui.minutes,zi=pe0?Math.floor(En/60):Math.ceil(En/60);switch(Pt){case ye.Short:return(En>=0?"+":"")+hi(pe,2,St)+hi(Math.abs(En%60),2,St);case ye.ShortGMT:return"GMT"+(En>=0?"+":"")+hi(pe,1,St);case ye.Long:return"GMT"+(En>=0?"+":"")+hi(pe,2,St)+":"+hi(Math.abs(En%60),2,St);case ye.Extended:return 0===Ge?"Z":(En>=0?"+":"")+hi(pe,2,St)+":"+hi(Math.abs(En%60),2,St);default:throw new Error(`Unknown zone width "${Pt}"`)}}}function oe(Pt){return mi(Pt.getFullYear(),Pt.getMonth(),Pt.getDate()+(4-Pt.getDay()))}function rn(Pt,me=!1){return function(Yt,Ge){let En;if(me){const St=new Date(Yt.getFullYear(),Yt.getMonth(),1).getDay()-1,pe=Yt.getDate();En=1+Math.floor((pe+St)/7)}else{const St=oe(Yt),pe=function Be(Pt){const me=mi(Pt,0,1).getDay();return mi(Pt,0,1+(me<=4?4:11)-me)}(St.getFullYear()),Te=St.getTime()-pe.getTime();En=1+Math.round(Te/6048e5)}return hi(En,Pt,ae(Ge,Vt.MinusSign))}}function gn(Pt,me=!1){return function(Yt,Ge){return hi(oe(Yt).getFullYear(),Pt,ae(Ge,Vt.MinusSign),me)}}const cn={};function It(Pt,me){Pt=Pt.replace(/:/g,"");const Yt=Date.parse("Jan 01, 1970 00:00:00 "+Pt)/6e4;return isNaN(Yt)?me:Yt}function kn(Pt){return Pt instanceof Date&&!isNaN(Pt.valueOf())}const Ei=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function So(Pt,me,Yt,Ge,En,St,pe=!1){let Te="",Xe=!1;if(isFinite(Pt)){let Tn=function Me(Pt){let Ge,En,St,pe,Te,me=Math.abs(Pt)+"",Yt=0;for((En=me.indexOf("."))>-1&&(me=me.replace(".","")),(St=me.search(/e/i))>0?(En<0&&(En=St),En+=+me.slice(St+1),me=me.substring(0,St)):En<0&&(En=me.length),St=0;"0"===me.charAt(St);St++);if(St===(Te=me.length))Ge=[0],En=1;else{for(Te--;"0"===me.charAt(Te);)Te--;for(En-=St,Ge=[],pe=0;St<=Te;St++,pe++)Ge[pe]=Number(me.charAt(St))}return En>22&&(Ge=Ge.splice(0,21),Yt=En-1,En=1),{digits:Ge,exponent:Yt,integerLen:En}}(Pt);pe&&(Tn=function Ye(Pt){if(0===Pt.digits[0])return Pt;const me=Pt.digits.length-Pt.integerLen;return Pt.exponent?Pt.exponent+=2:(0===me?Pt.digits.push(0,0):1===me&&Pt.digits.push(0),Pt.integerLen+=2),Pt}(Tn));let Xn=me.minInt,ei=me.minFrac,yi=me.maxFrac;if(St){const ea=St.match(Ei);if(null===ea)throw new Error(`${St} is not a valid digit info`);const ga=ea[1],$r=ea[3],fs=ea[5];null!=ga&&(Xn=j(ga)),null!=$r&&(ei=j($r)),null!=fs?yi=j(fs):null!=$r&&ei>yi&&(yi=ei)}!function an(Pt,me,Yt){if(me>Yt)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${Yt}).`);let Ge=Pt.digits,En=Ge.length-Pt.integerLen;const St=Math.min(Math.max(me,En),Yt);let pe=St+Pt.integerLen,Te=Ge[pe];if(pe>0){Ge.splice(Math.max(Pt.integerLen,pe));for(let ei=pe;ei=5)if(pe-1<0){for(let ei=0;ei>pe;ei--)Ge.unshift(0),Pt.integerLen++;Ge.unshift(1),Pt.integerLen++}else Ge[pe-1]++;for(;En=Tn?xo.pop():Xe=!1),yi>=10?1:0},0);Xn&&(Ge.unshift(Xn),Pt.integerLen++)}(Tn,ei,yi);let Ui=Tn.digits,xo=Tn.integerLen;const vi=Tn.exponent;let zi=[];for(Xe=Ui.every(ea=>!ea);xo0?zi=Ui.splice(xo,Ui.length):(zi=Ui,Ui=[0]);const ua=[];for(Ui.length>=me.lgSize&&ua.unshift(Ui.splice(-me.lgSize,Ui.length).join(""));Ui.length>me.gSize;)ua.unshift(Ui.splice(-me.gSize,Ui.length).join(""));Ui.length&&ua.unshift(Ui.join("")),Te=ua.join(ae(Yt,Ge)),zi.length&&(Te+=ae(Yt,En)+zi.join("")),vi&&(Te+=ae(Yt,Vt.Exponential)+"+"+vi)}else Te=ae(Yt,Vt.Infinity);return Te=Pt<0&&!Xe?me.negPre+Te+me.negSuf:me.posPre+Te+me.posSuf,Te}function Rn(Pt,me="-"){const Yt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ge=Pt.split(";"),En=Ge[0],St=Ge[1],pe=-1!==En.indexOf(".")?En.split("."):[En.substring(0,En.lastIndexOf("0")+1),En.substring(En.lastIndexOf("0")+1)],Te=pe[0],Xe=pe[1]||"";Yt.posPre=Te.substring(0,Te.indexOf("#"));for(let Xn=0;Xn{class Pt{constructor(Yt,Ge,En,St){this._iterableDiffers=Yt,this._keyValueDiffers=Ge,this._ngEl=En,this._renderer=St,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Yt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Yt?Yt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Yt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Yt?Yt.split(/\s+/):Yt,this._rawClass&&((0,u.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Yt=this._iterableDiffer.diff(this._rawClass);Yt&&this._applyIterableChanges(Yt)}else if(this._keyValueDiffer){const Yt=this._keyValueDiffer.diff(this._rawClass);Yt&&this._applyKeyValueChanges(Yt)}}_applyKeyValueChanges(Yt){Yt.forEachAddedItem(Ge=>this._toggleClass(Ge.key,Ge.currentValue)),Yt.forEachChangedItem(Ge=>this._toggleClass(Ge.key,Ge.currentValue)),Yt.forEachRemovedItem(Ge=>{Ge.previousValue&&this._toggleClass(Ge.key,!1)})}_applyIterableChanges(Yt){Yt.forEachAddedItem(Ge=>{if("string"!=typeof Ge.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,u.AaK)(Ge.item)}`);this._toggleClass(Ge.item,!0)}),Yt.forEachRemovedItem(Ge=>this._toggleClass(Ge.item,!1))}_applyClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ge=>this._toggleClass(Ge,!0)):Object.keys(Yt).forEach(Ge=>this._toggleClass(Ge,!!Yt[Ge])))}_removeClasses(Yt){Yt&&(Array.isArray(Yt)||Yt instanceof Set?Yt.forEach(Ge=>this._toggleClass(Ge,!1)):Object.keys(Yt).forEach(Ge=>this._toggleClass(Ge,!1)))}_toggleClass(Yt,Ge){(Yt=Yt.trim())&&Yt.split(/\s+/g).forEach(En=>{Ge?this._renderer.addClass(this._ngEl.nativeElement,En):this._renderer.removeClass(this._ngEl.nativeElement,En)})}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.ZZ4),u.Y36(u.aQg),u.Y36(u.SBq),u.Y36(u.Qsj))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Pt})();class jr{constructor(me,Yt,Ge,En){this.$implicit=me,this.ngForOf=Yt,this.index=Ge,this.count=En}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ja=(()=>{class Pt{constructor(Yt,Ge,En){this._viewContainer=Yt,this._template=Ge,this._differs=En,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Yt){this._ngForOf=Yt,this._ngForOfDirty=!0}set ngForTrackBy(Yt){this._trackByFn=Yt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Yt){Yt&&(this._template=Yt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Yt=this._ngForOf;!this._differ&&Yt&&(this._differ=this._differs.find(Yt).create(this.ngForTrackBy))}if(this._differ){const Yt=this._differ.diff(this._ngForOf);Yt&&this._applyChanges(Yt)}}_applyChanges(Yt){const Ge=this._viewContainer;Yt.forEachOperation((En,St,pe)=>{if(null==En.previousIndex)Ge.createEmbeddedView(this._template,new jr(En.item,this._ngForOf,-1,-1),null===pe?void 0:pe);else if(null==pe)Ge.remove(null===St?void 0:St);else if(null!==St){const Te=Ge.get(St);Ge.move(Te,pe),Or(Te,En)}});for(let En=0,St=Ge.length;En{Or(Ge.get(En.currentIndex),En)})}static ngTemplateContextGuard(Yt,Ge){return!0}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(u.ZZ4))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Pt})();function Or(Pt,me){Pt.context.$implicit=me.item}let nr=(()=>{class Pt{constructor(Yt,Ge){this._viewContainer=Yt,this._context=new ls,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}set ngIf(Yt){this._context.$implicit=this._context.ngIf=Yt,this._updateView()}set ngIfThen(Yt){Ar("ngIfThen",Yt),this._thenTemplateRef=Yt,this._thenViewRef=null,this._updateView()}set ngIfElse(Yt){Ar("ngIfElse",Yt),this._elseTemplateRef=Yt,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Yt,Ge){return!0}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Pt})();class ls{constructor(){this.$implicit=null,this.ngIf=null}}function Ar(Pt,me){if(me&&!me.createEmbeddedView)throw new Error(`${Pt} must be a TemplateRef, but received '${(0,u.AaK)(me)}'.`)}class Ur{constructor(me,Yt){this._viewContainerRef=me,this._templateRef=Yt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Oc=(()=>{class Pt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Yt){this._ngSwitch=Yt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Yt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Yt)}_matchCase(Yt){const Ge=Yt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ge}_updateDefaultCases(Yt){if(this._defaultViews&&Yt!==this._defaultUsed){this._defaultUsed=Yt;for(let Ge=0;Ge{class Pt{constructor(Yt,Ge,En){this.ngSwitch=En,En._addCase(),this._view=new Ur(Yt,Ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(Oc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Pt})(),Js=(()=>{class Pt{constructor(Yt,Ge,En){En._addDefault(new Ur(Yt,Ge))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(Oc,9))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Pt})(),us=(()=>{class Pt{constructor(Yt,Ge,En){this._ngEl=Yt,this._differs=Ge,this._renderer=En,this._ngStyle=null,this._differ=null}set ngStyle(Yt){this._ngStyle=Yt,!this._differ&&Yt&&(this._differ=this._differs.find(Yt).create())}ngDoCheck(){if(this._differ){const Yt=this._differ.diff(this._ngStyle);Yt&&this._applyChanges(Yt)}}_setStyle(Yt,Ge){const[En,St]=Yt.split("."),pe=-1===En.indexOf("-")?void 0:u.JOm.DashCase;null!=Ge?this._renderer.setStyle(this._ngEl.nativeElement,En,St?`${Ge}${St}`:Ge,pe):this._renderer.removeStyle(this._ngEl.nativeElement,En,pe)}_applyChanges(Yt){Yt.forEachRemovedItem(Ge=>this._setStyle(Ge.key,null)),Yt.forEachAddedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue)),Yt.forEachChangedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue))}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.SBq),u.Y36(u.aQg),u.Y36(u.Qsj))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Pt})(),Hs=(()=>{class Pt{constructor(Yt){this._viewContainerRef=Yt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Yt){if(Yt.ngTemplateOutlet||Yt.ngTemplateOutletInjector){const Ge=this._viewContainerRef;if(this._viewRef&&Ge.remove(Ge.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:En,ngTemplateOutletContext:St,ngTemplateOutletInjector:pe}=this;this._viewRef=Ge.createEmbeddedView(En,St,pe?{injector:pe}:void 0)}else this._viewRef=null}else this._viewRef&&Yt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.s_b))},Pt.\u0275dir=u.lG2({type:Pt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.TTD]}),Pt})();function Lr(Pt,me){return new u.vHH(2100,!1)}class Ad{createSubscription(me,Yt){return me.subscribe({next:Yt,error:Ge=>{throw Ge}})}dispose(me){me.unsubscribe()}}class e1{createSubscription(me,Yt){return me.then(Yt,Ge=>{throw Ge})}dispose(me){}}const Vc=new e1,lc=new Ad;let uc=(()=>{class Pt{constructor(Yt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Yt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Yt){return this._obj?Yt!==this._obj?(this._dispose(),this.transform(Yt)):this._latestValue:(Yt&&this._subscribe(Yt),this._latestValue)}_subscribe(Yt){this._obj=Yt,this._strategy=this._selectStrategy(Yt),this._subscription=this._strategy.createSubscription(Yt,Ge=>this._updateLatestValue(Yt,Ge))}_selectStrategy(Yt){if((0,u.QGY)(Yt))return Vc;if((0,u.F4k)(Yt))return lc;throw Lr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Yt,Ge){Yt===this._obj&&(this._latestValue=Ge,this._ref.markForCheck())}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.sBO,16))},Pt.\u0275pipe=u.Yjl({name:"async",type:Pt,pure:!1,standalone:!0}),Pt})(),Bc=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Lr();return Yt.toLowerCase()}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275pipe=u.Yjl({name:"lowercase",type:Pt,pure:!0,standalone:!0}),Pt})();const Gc=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let js=(()=>{class Pt{transform(Yt){if(null==Yt)return null;if("string"!=typeof Yt)throw Lr();return Yt.replace(Gc,Ge=>Ge[0].toUpperCase()+Ge.slice(1).toLowerCase())}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275pipe=u.Yjl({name:"titlecase",type:Pt,pure:!0,standalone:!0}),Pt})();const Ws=new u.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let sl=(()=>{class Pt{constructor(Yt,Ge){this.locale=Yt,this.defaultTimezone=Ge}transform(Yt,Ge="mediumDate",En,St){if(null==Yt||""===Yt||Yt!=Yt)return null;try{return qn(Yt,Ge,St||this.locale,En??this.defaultTimezone??void 0)}catch(pe){throw Lr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16),u.Y36(Ws,24))},Pt.\u0275pipe=u.Yjl({name:"date",type:Pt,pure:!0,standalone:!0}),Pt})(),Jc=(()=>{class Pt{constructor(Yt){this.differs=Yt,this.keyValues=[],this.compareFn=$s}transform(Yt,Ge=$s){if(!Yt||!(Yt instanceof Map)&&"object"!=typeof Yt)return null;this.differ||(this.differ=this.differs.find(Yt).create());const En=this.differ.diff(Yt),St=Ge!==this.compareFn;return En&&(this.keyValues=[],En.forEachItem(pe=>{this.keyValues.push(function Ys(Pt,me){return{key:Pt,value:me}}(pe.key,pe.currentValue))})),(En||St)&&(this.keyValues.sort(Ge),this.compareFn=Ge),this.keyValues}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.aQg,16))},Pt.\u0275pipe=u.Yjl({name:"keyvalue",type:Pt,pure:!1,standalone:!0}),Pt})();function $s(Pt,me){const Yt=Pt.key,Ge=me.key;if(Yt===Ge)return 0;if(void 0===Yt)return 1;if(void 0===Ge)return-1;if(null===Yt)return 1;if(null===Ge)return-1;if("string"==typeof Yt&&"string"==typeof Ge)return Yt{class Pt{constructor(Yt){this._locale=Yt}transform(Yt,Ge,En){if(!xa(Yt))return null;En=En||this._locale;try{return function Re(Pt,me,Yt){return So(Pt,Rn(De(me,mt.Decimal),ae(me,Vt.MinusSign)),me,Vt.Group,Vt.Decimal,Yt)}(ir(Yt),En,Ge)}catch(St){throw Lr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16))},Pt.\u0275pipe=u.Yjl({name:"number",type:Pt,pure:!0,standalone:!0}),Pt})(),zl=(()=>{class Pt{constructor(Yt,Ge="USD"){this._locale=Yt,this._defaultCurrencyCode=Ge}transform(Yt,Ge=this._defaultCurrencyCode,En="symbol",St,pe){if(!xa(Yt))return null;pe=pe||this._locale,"boolean"==typeof En&&(En=En?"symbol":"code");let Te=Ge||this._defaultCurrencyCode;"code"!==En&&(Te="symbol"===En||"symbol-narrow"===En?function ee(Pt,me,Yt="en"){const Ge=function bn(Pt){return(0,u.cg1)(Pt)[u.wAp.Currencies]}(Yt)[Pt]||bt[Pt]||[],En=Ge[1];return"narrow"===me&&"string"==typeof En?En:Ge[0]||Pt}(Te,"symbol"===En?"wide":"narrow",pe):En);try{return function ma(Pt,me,Yt,Ge,En){const pe=Rn(De(me,mt.Currency),ae(me,Vt.MinusSign));return pe.minFrac=function X(Pt){let me;const Yt=bt[Pt];return Yt&&(me=Yt[2]),"number"==typeof me?me:2}(Ge),pe.maxFrac=pe.minFrac,So(Pt,pe,me,Vt.CurrencyGroup,Vt.CurrencyDecimal,En).replace("\xa4",Yt).replace("\xa4","").trim()}(ir(Yt),pe,Te,Ge,St)}catch(Xe){throw Lr()}}}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)(u.Y36(u.soG,16),u.Y36(u.EJc,16))},Pt.\u0275pipe=u.Yjl({name:"currency",type:Pt,pure:!0,standalone:!0}),Pt})();function xa(Pt){return!(null==Pt||""===Pt||Pt!=Pt)}function ir(Pt){if("string"==typeof Pt&&!isNaN(Number(Pt)-parseFloat(Pt)))return Number(Pt);if("number"!=typeof Pt)throw new Error(`${Pt} is not a number`);return Pt}let Ku=(()=>{class Pt{}return Pt.\u0275fac=function(Yt){return new(Yt||Pt)},Pt.\u0275mod=u.oAB({type:Pt}),Pt.\u0275inj=u.cJS({}),Pt})();const Ia="browser";function Vl(Pt){return Pt===Ia}function Pr(Pt){return"server"===Pt}let wr=(()=>{class Pt{}return Pt.\u0275prov=(0,u.Yz7)({token:Pt,providedIn:"root",factory:()=>new xr((0,u.LFG)(U),window)}),Pt})();class xr{constructor(me,Yt){this.document=me,this.window=Yt,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const Yt=function jn(Pt,me){const Yt=Pt.getElementById(me)||Pt.getElementsByName(me)[0];if(Yt)return Yt;if("function"==typeof Pt.createTreeWalker&&Pt.body&&(Pt.body.createShadowRoot||Pt.body.attachShadow)){const Ge=Pt.createTreeWalker(Pt.body,NodeFilter.SHOW_ELEMENT);let En=Ge.currentNode;for(;En;){const St=En.shadowRoot;if(St){const pe=St.getElementById(me)||St.querySelector(`[name="${me}"]`);if(pe)return pe}En=Ge.nextNode()}}return null}(this.document,me);Yt&&(this.scrollToElement(Yt),Yt.focus())}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const Yt=this.window.history;Yt&&Yt.scrollRestoration&&(Yt.scrollRestoration=me)}}scrollToElement(me){const Yt=me.getBoundingClientRect(),Ge=Yt.left+this.window.pageXOffset,En=Yt.top+this.window.pageYOffset,St=this.offset();this.window.scrollTo(Ge-St[0],En-St[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=ns(this.window.history)||ns(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ns(Pt){return Object.getOwnPropertyDescriptor(Pt,"scrollRestoration")}class ds{}},80529:(tt,W,f)=>{"use strict";f.d(W,{JF:()=>X,LE:()=>Ct,PG:()=>w,TP:()=>qe,Zn:()=>le,eN:()=>ge});var u=f(36895),d=f(94650),v=f(21086),g=f(56498),t=f(21406),T=f(92198),U=f(24850);class w{}class P{}class O{constructor(ye){this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?()=>{this.headers=new Map,ye.split("\n").forEach(Se=>{const vn=Se.indexOf(":");if(vn>0){const qn=Se.slice(0,vn),mi=qn.toLowerCase(),Di=Se.slice(vn+1).trim();this.maybeSetNormalizedName(qn,mi),this.headers.has(mi)?this.headers.get(mi).push(Di):this.headers.set(mi,[Di])}})}:()=>{this.headers=new Map,Object.keys(ye).forEach(Se=>{let vn=ye[Se];const qn=Se.toLowerCase();"string"==typeof vn&&(vn=[vn]),vn.length>0&&(this.headers.set(qn,vn),this.maybeSetNormalizedName(Se,qn))})}:this.headers=new Map}has(ye){return this.init(),this.headers.has(ye.toLowerCase())}get(ye){this.init();const Se=this.headers.get(ye.toLowerCase());return Se&&Se.length>0?Se[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}append(ye,Se){return this.clone({name:ye,value:Se,op:"a"})}set(ye,Se){return this.clone({name:ye,value:Se,op:"s"})}delete(ye,Se){return this.clone({name:ye,value:Se,op:"d"})}maybeSetNormalizedName(ye,Se){this.normalizedNames.has(Se)||this.normalizedNames.set(Se,ye)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ye=>this.applyUpdate(ye)),this.lazyUpdate=null))}copyFrom(ye){ye.init(),Array.from(ye.headers.keys()).forEach(Se=>{this.headers.set(Se,ye.headers.get(Se)),this.normalizedNames.set(Se,ye.normalizedNames.get(Se))})}clone(ye){const Se=new O;return Se.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,Se.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),Se}applyUpdate(ye){const Se=ye.name.toLowerCase();switch(ye.op){case"a":case"s":let vn=ye.value;if("string"==typeof vn&&(vn=[vn]),0===vn.length)return;this.maybeSetNormalizedName(ye.name,Se);const qn=("a"===ye.op?this.headers.get(Se):void 0)||[];qn.push(...vn),this.headers.set(Se,qn);break;case"d":const mi=ye.value;if(mi){let Di=this.headers.get(Se);if(!Di)return;Di=Di.filter(bo=>-1===mi.indexOf(bo)),0===Di.length?(this.headers.delete(Se),this.normalizedNames.delete(Se)):this.headers.set(Se,Di)}else this.headers.delete(Se),this.normalizedNames.delete(Se)}}forEach(ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(Se=>ye(this.normalizedNames.get(Se),this.headers.get(Se)))}}class N{encodeKey(ye){return ct(ye)}encodeValue(ye){return ct(ye)}decodeKey(ye){return decodeURIComponent(ye)}decodeValue(ye){return decodeURIComponent(ye)}}const K=/%(\d[a-f0-9])/gi,et={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ct(ue){return encodeURIComponent(ue).replace(K,(ye,Se)=>et[Se]??ye)}function lt(ue){return`${ue}`}class Ct{constructor(ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new N,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function B(ue,ye){const Se=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(qn=>{const mi=qn.indexOf("="),[Di,bo]=-1==mi?[ye.decodeKey(qn),""]:[ye.decodeKey(qn.slice(0,mi)),ye.decodeValue(qn.slice(mi+1))],hi=Se.get(Di)||[];hi.push(bo),Se.set(Di,hi)}),Se}(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(Se=>{const vn=ye.fromObject[Se],qn=Array.isArray(vn)?vn.map(lt):[lt(vn)];this.map.set(Se,qn)})):this.map=null}has(ye){return this.init(),this.map.has(ye)}get(ye){this.init();const Se=this.map.get(ye);return Se?Se[0]:null}getAll(ye){return this.init(),this.map.get(ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ye,Se){return this.clone({param:ye,value:Se,op:"a"})}appendAll(ye){const Se=[];return Object.keys(ye).forEach(vn=>{const qn=ye[vn];Array.isArray(qn)?qn.forEach(mi=>{Se.push({param:vn,value:mi,op:"a"})}):Se.push({param:vn,value:qn,op:"a"})}),this.clone(Se)}set(ye,Se){return this.clone({param:ye,value:Se,op:"s"})}delete(ye,Se){return this.clone({param:ye,value:Se,op:"d"})}toString(){return this.init(),this.keys().map(ye=>{const Se=this.encoder.encodeKey(ye);return this.map.get(ye).map(vn=>Se+"="+this.encoder.encodeValue(vn)).join("&")}).filter(ye=>""!==ye).join("&")}clone(ye){const Se=new Ct({encoder:this.encoder});return Se.cloneFrom=this.cloneFrom||this,Se.updates=(this.updates||[]).concat(ye),Se}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ye=>this.map.set(ye,this.cloneFrom.map.get(ye))),this.updates.forEach(ye=>{switch(ye.op){case"a":case"s":const Se=("a"===ye.op?this.map.get(ye.param):void 0)||[];Se.push(lt(ye.value)),this.map.set(ye.param,Se);break;case"d":if(void 0===ye.value){this.map.delete(ye.param);break}{let vn=this.map.get(ye.param)||[];const qn=vn.indexOf(lt(ye.value));-1!==qn&&vn.splice(qn,1),vn.length>0?this.map.set(ye.param,vn):this.map.delete(ye.param)}}}),this.cloneFrom=this.updates=null)}}class Zt{constructor(){this.map=new Map}set(ye,Se){return this.map.set(ye,Se),this}get(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}delete(ye){return this.map.delete(ye),this}has(ye){return this.map.has(ye)}keys(){return this.map.keys()}}function Gt(ue){return typeof ArrayBuffer<"u"&&ue instanceof ArrayBuffer}function Tt(ue){return typeof Blob<"u"&&ue instanceof Blob}function Ut(ue){return typeof FormData<"u"&&ue instanceof FormData}class mt{constructor(ye,Se,vn,qn){let mi;if(this.url=Se,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function Rt(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qn?(this.body=void 0!==vn?vn:null,mi=qn):mi=vn,mi&&(this.reportProgress=!!mi.reportProgress,this.withCredentials=!!mi.withCredentials,mi.responseType&&(this.responseType=mi.responseType),mi.headers&&(this.headers=mi.headers),mi.context&&(this.context=mi.context),mi.params&&(this.params=mi.params)),this.headers||(this.headers=new O),this.context||(this.context=new Zt),this.params){const Di=this.params.toString();if(0===Di.length)this.urlWithParams=Se;else{const bo=Se.indexOf("?");this.urlWithParams=Se+(-1===bo?"?":boQe.set(xn,ye.setHeaders[xn]),hi)),ye.setParams&&(zn=Object.keys(ye.setParams).reduce((Qe,xn)=>Qe.set(xn,ye.setParams[xn]),zn)),new mt(Se,vn,mi,{params:zn,headers:hi,context:Bn,reportProgress:bo,responseType:qn,withCredentials:Di})}}var Lt=(()=>((Lt=Lt||{})[Lt.Sent=0]="Sent",Lt[Lt.UploadProgress=1]="UploadProgress",Lt[Lt.ResponseHeader=2]="ResponseHeader",Lt[Lt.DownloadProgress=3]="DownloadProgress",Lt[Lt.Response=4]="Response",Lt[Lt.User=5]="User",Lt))();class Bt{constructor(ye,Se=200,vn="OK"){this.headers=ye.headers||new O,this.status=void 0!==ye.status?ye.status:Se,this.statusText=ye.statusText||vn,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}}class kt extends Bt{constructor(ye={}){super(ye),this.type=Lt.ResponseHeader}clone(ye={}){return new kt({headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class le extends Bt{constructor(ye={}){super(ye),this.type=Lt.Response,this.body=void 0!==ye.body?ye.body:null}clone(ye={}){return new le({body:void 0!==ye.body?ye.body:this.body,headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class Vt extends Bt{constructor(ye){super(ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ye.url||"(unknown url)"}`:`Http failure response for ${ye.url||"(unknown url)"}: ${ye.status} ${ye.statusText}`,this.error=ye.error||null}}function be(ue,ye){return{body:ye,headers:ue.headers,context:ue.context,observe:ue.observe,params:ue.params,reportProgress:ue.reportProgress,responseType:ue.responseType,withCredentials:ue.withCredentials}}let ge=(()=>{class ue{constructor(Se){this.handler=Se}request(Se,vn,qn={}){let mi;if(Se instanceof mt)mi=Se;else{let hi,zn;hi=qn.headers instanceof O?qn.headers:new O(qn.headers),qn.params&&(zn=qn.params instanceof Ct?qn.params:new Ct({fromObject:qn.params})),mi=new mt(Se,vn,void 0!==qn.body?qn.body:null,{headers:hi,context:qn.context,params:zn,reportProgress:qn.reportProgress,responseType:qn.responseType||"json",withCredentials:qn.withCredentials})}const Di=(0,v.of)(mi).pipe((0,t.b)(hi=>this.handler.handle(hi)));if(Se instanceof mt||"events"===qn.observe)return Di;const bo=Di.pipe((0,T.h)(hi=>hi instanceof le));switch(qn.observe||"body"){case"body":switch(mi.responseType){case"arraybuffer":return bo.pipe((0,U.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return hi.body}));case"blob":return bo.pipe((0,U.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof Blob))throw new Error("Response is not a Blob.");return hi.body}));case"text":return bo.pipe((0,U.U)(hi=>{if(null!==hi.body&&"string"!=typeof hi.body)throw new Error("Response is not a string.");return hi.body}));default:return bo.pipe((0,U.U)(hi=>hi.body))}case"response":return bo;default:throw new Error(`Unreachable: unhandled observe type ${qn.observe}}`)}}delete(Se,vn={}){return this.request("DELETE",Se,vn)}get(Se,vn={}){return this.request("GET",Se,vn)}head(Se,vn={}){return this.request("HEAD",Se,vn)}jsonp(Se,vn){return this.request("JSONP",Se,{params:(new Ct).append(vn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Se,vn={}){return this.request("OPTIONS",Se,vn)}patch(Se,vn,qn={}){return this.request("PATCH",Se,be(qn,vn))}post(Se,vn,qn={}){return this.request("POST",Se,be(qn,vn))}put(Se,vn,qn={}){return this.request("PUT",Se,be(qn,vn))}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(w))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class Fe{constructor(ye,Se){this.next=ye,this.interceptor=Se}handle(ye){return this.interceptor.intercept(ye,this.next)}}const qe=new d.OlP("HTTP_INTERCEPTORS");let je=(()=>{class ue{intercept(Se,vn){return vn.handle(Se)}}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const hn=/^\)\]\}',?\n/;let bn=(()=>{class ue{constructor(Se){this.xhrFactory=Se}handle(Se){if("JSONP"===Se.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new g.y(vn=>{const qn=this.xhrFactory.build();if(qn.open(Se.method,Se.urlWithParams),Se.withCredentials&&(qn.withCredentials=!0),Se.headers.forEach((Ve,Ne)=>qn.setRequestHeader(Ve,Ne.join(","))),Se.headers.has("Accept")||qn.setRequestHeader("Accept","application/json, text/plain, */*"),!Se.headers.has("Content-Type")){const Ve=Se.detectContentTypeHeader();null!==Ve&&qn.setRequestHeader("Content-Type",Ve)}if(Se.responseType){const Ve=Se.responseType.toLowerCase();qn.responseType="json"!==Ve?Ve:"text"}const mi=Se.serializeBody();let Di=null;const bo=()=>{if(null!==Di)return Di;const Ve=qn.statusText||"OK",Ne=new O(qn.getAllResponseHeaders()),tn=function Ce(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(qn)||Se.url;return Di=new kt({headers:Ne,status:qn.status,statusText:Ve,url:tn}),Di},hi=()=>{let{headers:Ve,status:Ne,statusText:tn,url:ce}=bo(),Be=null;204!==Ne&&(Be=typeof qn.response>"u"?qn.responseText:qn.response),0===Ne&&(Ne=Be?200:0);let oe=Ne>=200&&Ne<300;if("json"===Se.responseType&&"string"==typeof Be){const rn=Be;Be=Be.replace(hn,"");try{Be=""!==Be?JSON.parse(Be):null}catch(gn){Be=rn,oe&&(oe=!1,Be={error:gn,text:Be})}}oe?(vn.next(new le({body:Be,headers:Ve,status:Ne,statusText:tn,url:ce||void 0})),vn.complete()):vn.error(new Vt({error:Be,headers:Ve,status:Ne,statusText:tn,url:ce||void 0}))},zn=Ve=>{const{url:Ne}=bo(),tn=new Vt({error:Ve,status:qn.status||0,statusText:qn.statusText||"Unknown Error",url:Ne||void 0});vn.error(tn)};let Bn=!1;const Qe=Ve=>{Bn||(vn.next(bo()),Bn=!0);let Ne={type:Lt.DownloadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(Ne.total=Ve.total),"text"===Se.responseType&&!!qn.responseText&&(Ne.partialText=qn.responseText),vn.next(Ne)},xn=Ve=>{let Ne={type:Lt.UploadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(Ne.total=Ve.total),vn.next(Ne)};return qn.addEventListener("load",hi),qn.addEventListener("error",zn),qn.addEventListener("timeout",zn),qn.addEventListener("abort",zn),Se.reportProgress&&(qn.addEventListener("progress",Qe),null!==mi&&qn.upload&&qn.upload.addEventListener("progress",xn)),qn.send(mi),vn.next({type:Lt.Sent}),()=>{qn.removeEventListener("error",zn),qn.removeEventListener("abort",zn),qn.removeEventListener("load",hi),qn.removeEventListener("timeout",zn),Se.reportProgress&&(qn.removeEventListener("progress",Qe),null!==mi&&qn.upload&&qn.upload.removeEventListener("progress",xn)),qn.readyState!==qn.DONE&&qn.abort()}})}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(u.JF))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const Oe=new d.OlP("XSRF_COOKIE_NAME"),dn=new d.OlP("XSRF_HEADER_NAME");class Pn{}let ii=(()=>{class ue{constructor(Se,vn,qn){this.doc=Se,this.platform=vn,this.cookieName=qn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Se=this.doc.cookie||"";return Se!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,u.Mx)(Se,this.cookieName),this.lastCookieString=Se),this.lastToken}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(u.K0),d.LFG(d.Lbi),d.LFG(Oe))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),_i=(()=>{class ue{constructor(Se,vn){this.tokenService=Se,this.headerName=vn}intercept(Se,vn){const qn=Se.url.toLowerCase();if("GET"===Se.method||"HEAD"===Se.method||qn.startsWith("http://")||qn.startsWith("https://"))return vn.handle(Se);const mi=this.tokenService.getToken();return null!==mi&&!Se.headers.has(this.headerName)&&(Se=Se.clone({headers:Se.headers.set(this.headerName,mi)})),vn.handle(Se)}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(Pn),d.LFG(dn))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),oi=(()=>{class ue{constructor(Se,vn){this.backend=Se,this.injector=vn,this.chain=null}handle(Se){if(null===this.chain){const vn=this.injector.get(qe,[]);this.chain=vn.reduceRight((qn,mi)=>new Fe(qn,mi),this.backend)}return this.chain.handle(Se)}}return ue.\u0275fac=function(Se){return new(Se||ue)(d.LFG(P),d.LFG(d.zs3))},ue.\u0275prov=d.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),ot=(()=>{class ue{static disable(){return{ngModule:ue,providers:[{provide:_i,useClass:je}]}}static withOptions(Se={}){return{ngModule:ue,providers:[Se.cookieName?{provide:Oe,useValue:Se.cookieName}:[],Se.headerName?{provide:dn,useValue:Se.headerName}:[]]}}}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({providers:[_i,{provide:qe,useExisting:_i,multi:!0},{provide:Pn,useClass:ii},{provide:Oe,useValue:"XSRF-TOKEN"},{provide:dn,useValue:"X-XSRF-TOKEN"}]}),ue})(),X=(()=>{class ue{}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({providers:[ge,{provide:w,useClass:oi},bn,{provide:P,useExisting:bn}],imports:[ot.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ue})()},94650:(tt,W,f)=>{"use strict";f.d(W,{$8M:()=>Au,$Z:()=>J1,AFp:()=>Rx,ALo:()=>px,AaK:()=>w,AsE:()=>A4,B6R:()=>Be,BQk:()=>G2,CHM:()=>or,CRH:()=>Ax,CZH:()=>q4,CqO:()=>e_,D6c:()=>fy,DdM:()=>ax,Dn7:()=>fx,EJc:()=>R7,EiD:()=>Ff,EpF:()=>i4,F$t:()=>Bg,F4k:()=>rc,FYo:()=>x1,FiY:()=>ic,G48:()=>X7,Gf:()=>uv,GfV:()=>_g,GkF:()=>J2,Gpc:()=>L,Gre:()=>_0,HOy:()=>m0,Hsn:()=>l0,Ikx:()=>Z,JOm:()=>Du,JVY:()=>_2,Jf7:()=>Xp,KtG:()=>Wr,L6k:()=>Pf,LAX:()=>F0,LFG:()=>nc,LSH:()=>Is,Lbi:()=>E7,Lck:()=>zC,MAs:()=>$1,MGl:()=>U1,MMx:()=>W5,NdJ:()=>n_,O4$:()=>ki,OlP:()=>io,Oqu:()=>T4,PXZ:()=>nb,Q6J:()=>wp,QGY:()=>o4,QP$:()=>kn,QbO:()=>N7,Qsj:()=>pg,R0b:()=>dm,RDi:()=>tl,Rgc:()=>N4,SBq:()=>oo,Sil:()=>Vx,Suo:()=>Tx,TTD:()=>iu,TgZ:()=>Hg,Tol:()=>h6,Udp:()=>jg,VKq:()=>rx,W1O:()=>wx,WFA:()=>Vg,WLB:()=>sx,XFs:()=>oi,Xpm:()=>ce,Xts:()=>Nf,Y36:()=>C1,YKP:()=>P6,YNc:()=>Rg,Yjl:()=>Le,Yz7:()=>se,Z0I:()=>nn,ZZ4:()=>Ov,_Bn:()=>Q5,_UZ:()=>c0,_Vd:()=>Im,_c5:()=>bb,_uU:()=>L5,aQg:()=>H4,c2e:()=>I7,cJS:()=>ae,cg1:()=>he,d8E:()=>k,dDg:()=>tb,dqk:()=>qn,dwT:()=>Mt,eBb:()=>Od,eFA:()=>ob,ekj:()=>h4,eoX:()=>eb,evT:()=>T2,f3M:()=>Lp,g9A:()=>Yx,gM2:()=>O6,h0i:()=>x0,hGG:()=>_y,hij:()=>$g,iGM:()=>lv,ifc:()=>vn,ip1:()=>qx,jDz:()=>K8,kL8:()=>fn,kYT:()=>cn,kcU:()=>vo,lG2:()=>It,lcZ:()=>mx,lnq:()=>W2,lqb:()=>V1,lri:()=>Kx,mCW:()=>Ld,n5z:()=>cp,n_E:()=>L6,oAB:()=>gn,oJD:()=>Jp,oxw:()=>r4,pB0:()=>w_,q3G:()=>Ns,qLn:()=>Cp,qOj:()=>Uh,qZA:()=>Yg,qzn:()=>kd,rWj:()=>Xx,s9C:()=>Gg,sBO:()=>pb,sIi:()=>fi,s_b:()=>E6,soG:()=>G6,tb:()=>zx,tp0:()=>Ep,uIk:()=>tu,uOi:()=>h2,vHH:()=>et,vpe:()=>X1,wAp:()=>Qn,xDo:()=>U4,xi3:()=>_x,xp6:()=>Bf,ynx:()=>zg,z2F:()=>t5,z3N:()=>h1,zSh:()=>$p,zs3:()=>mu});var u=f(8929),d=f(42654),v=f(56498),g=f(36787),t=f(12474);function T(_){for(let h in _)if(_[h]===T)return h;throw Error("Could not find renamed property on target object.")}function U(_,h){for(const y in h)h.hasOwnProperty(y)&&!_.hasOwnProperty(y)&&(_[y]=h[y])}function w(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(w).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const h=_.toString();if(null==h)return""+h;const y=h.indexOf("\n");return-1===y?h:h.substring(0,y)}function P(_,h){return null==_||""===_?null===h?"":h:null==h||""===h?_:_+" "+h}const O=T({__forward_ref__:T});function L(_){return _.__forward_ref__=L,_.toString=function(){return w(this())},_}function N(_){return B(_)?_():_}function B(_){return"function"==typeof _&&_.hasOwnProperty(O)&&_.__forward_ref__===L}class et extends Error{constructor(h,y){super(function ct(_,h){return`NG0${Math.abs(_)}${h?": "+h.trim():""}`}(h,y)),this.code=h}}function lt(_){return"string"==typeof _?_:null==_?"":String(_)}function Gt(_,h){throw new et(-201,!1)}function je(_,h){null==_&&function Qt(_,h,y,S){throw new Error(`ASSERTION ERROR: ${_}`+(null==S?"":` [Expected=> ${y} ${S} ${h} <=Actual]`))}(h,_,null,"!=")}function se(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function ae(_){return{providers:_.providers||[],imports:_.imports||[]}}function De(_){return hn(_,dn)||hn(_,ii)}function nn(_){return null!==De(_)}function hn(_,h){return _.hasOwnProperty(h)?_[h]:null}function Oe(_){return _&&(_.hasOwnProperty(Pn)||_.hasOwnProperty(_i))?_[Pn]:null}const dn=T({\u0275prov:T}),Pn=T({\u0275inj:T}),ii=T({ngInjectableDef:T}),_i=T({ngInjectorDef:T});var oi=(()=>((oi=oi||{})[oi.Default=0]="Default",oi[oi.Host=1]="Host",oi[oi.Self=2]="Self",oi[oi.SkipSelf=4]="SkipSelf",oi[oi.Optional=8]="Optional",oi))();let We;function ot(_){const h=We;return We=_,h}function X(_,h,y){const S=De(_);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:y&oi.Optional?null:void 0!==h?h:void Gt(w(_))}function Ht(_){return{toString:_}.toString()}var ue=(()=>((ue=ue||{})[ue.OnPush=0]="OnPush",ue[ue.Default=1]="Default",ue))(),vn=(()=>{return(_=vn||(vn={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",vn;var _})();const qn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bo={},hi=[],zn=T({\u0275cmp:T}),Bn=T({\u0275dir:T}),Qe=T({\u0275pipe:T}),xn=T({\u0275mod:T}),Ve=T({\u0275fac:T}),Ne=T({__NG_ELEMENT_ID__:T});let tn=0;function ce(_){return Ht(()=>{const y=!0===_.standalone,S={},F={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:S,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===ue.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||hi,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||vn.Emulated,id:"c"+tn++,styles:_.styles||hi,_:null,setInput:null,schemas:_.schemas||null,tView:null},z=_.dependencies,at=_.features;return F.inputs=xe(_.inputs,S),F.outputs=xe(_.outputs),at&&at.forEach(yt=>yt(F)),F.directiveDefs=z?()=>("function"==typeof z?z():z).map(oe).filter(rn):null,F.pipeDefs=z?()=>("function"==typeof z?z():z).map(He).filter(rn):null,F})}function Be(_,h,y){const S=_.\u0275cmp;S.directiveDefs=()=>("function"==typeof h?h():h).map(oe),S.pipeDefs=()=>("function"==typeof y?y():y).map(He)}function oe(_){return zt(_)||we(_)}function rn(_){return null!==_}function gn(_){return Ht(()=>({type:_.type,bootstrap:_.bootstrap||hi,declarations:_.declarations||hi,imports:_.imports||hi,exports:_.exports||hi,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function cn(_,h){return Ht(()=>{const y=Ei(_,!0);y.declarations=h.declarations||hi,y.imports=h.imports||hi,y.exports=h.exports||hi})}function xe(_,h){if(null==_)return bo;const y={};for(const S in _)if(_.hasOwnProperty(S)){let F=_[S],z=F;Array.isArray(F)&&(z=F[1],F=F[0]),y[F]=S,h&&(h[F]=z)}return y}const It=ce;function Le(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function zt(_){return _[zn]||null}function we(_){return _[Bn]||null}function He(_){return _[Qe]||null}function kn(_){const h=zt(_)||we(_)||He(_);return null!==h&&h.standalone}function Ei(_,h){const y=_[xn]||null;if(!y&&!0===h)throw new Error(`Type ${w(_)} does not have '\u0275mod' property.`);return y}const j=16,J=18;function Ar(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ur(_){return Array.isArray(_)&&!0===_[1]}function Oc(_){return 0!=(8&_.flags)}function Al(_){return 2==(2&_.flags)}function Js(_){return 1==(1&_.flags)}function Ps(_){return null!==_.template}function Qs(_){return 0!=(256&_[2])}function $s(_,h){return _.hasOwnProperty(Ve)?_[Ve]:null}class wl{constructor(h,y,S){this.previousValue=h,this.currentValue=y,this.firstChange=S}isFirstChange(){return this.firstChange}}function iu(){return zl}function zl(_){return _.type.prototype.ngOnChanges&&(_.setInput=ir),xa}function xa(){const _=vu(this),h=_?.current;if(h){const y=_.previous;if(y===bo)_.previous=h;else for(let S in h)y[S]=h[S];_.current=null,this.ngOnChanges(h)}}function ir(_,h,y,S){const F=vu(_)||function Ku(_,h){return _[bc]=h}(_,{previous:bo,current:null}),z=F.current||(F.current={}),at=F.previous,yt=this.declaredInputs[y],qt=at[yt];z[yt]=new wl(qt&&qt.currentValue,h,at===bo),_[S]=h}iu.ngInherit=!0;const bc="__ngSimpleChanges__";function vu(_){return _[bc]||null}function Ya(_){for(;Array.isArray(_);)_=_[0];return _}function ns(_,h){return Ya(h[_])}function jn(_,h){return Ya(h[_.index])}function ds(_,h){return _.data[h]}function wa(_,h){return _[h]}function is(_,h){const y=h[_];return Ar(y)?y:y[0]}function As(_){return 64==(64&_[2])}function Ks(_,h){return null==h?null:_[h]}function Os(_){_[J]=0}function za(_,h){_[5]+=h;let y=_,S=_[3];for(;null!==S&&(1===h&&1===y[5]||-1===h&&0===y[5]);)S[5]+=h,y=S,S=S[3]}const ao={lFrame:dt(null),bindingsEnabled:!0};function Cc(){return ao.bindingsEnabled}function Qi(){return ao.lFrame.lView}function la(){return ao.lFrame.tView}function or(_){return ao.lFrame.contextLView=_,_[8]}function Wr(_){return ao.lFrame.contextLView=null,_}function Qa(){let _=re();for(;null!==_&&64===_.type;)_=_.parent;return _}function re(){return ao.lFrame.currentTNode}function Nt(_,h){const y=ao.lFrame;y.currentTNode=_,y.isParent=h}function nt(){return ao.lFrame.isParent}function wi(){ao.lFrame.isParent=!1}function Fr(){const _=ao.lFrame;let h=_.bindingRootIndex;return-1===h&&(h=_.bindingRootIndex=_.tView.bindingStartIndex),h}function Nr(){return ao.lFrame.bindingIndex}function Va(){return ao.lFrame.bindingIndex++}function jc(_){const h=ao.lFrame,y=h.bindingIndex;return h.bindingIndex=h.bindingIndex+_,y}function O1(_,h){const y=ao.lFrame;y.bindingIndex=y.bindingRootIndex=_,au(h)}function au(_){ao.lFrame.currentDirectiveIndex=_}function Nc(_){const h=ao.lFrame.currentDirectiveIndex;return-1===h?null:_[h]}function Ic(){return ao.lFrame.currentQueryIndex}function ll(_){ao.lFrame.currentQueryIndex=_}function rp(_){const h=_[1];return 2===h.type?h.declTNode:1===h.type?_[6]:null}function Zl(_,h,y){if(y&oi.SkipSelf){let F=h,z=_;for(;!(F=F.parent,null!==F||y&oi.Host||(F=rp(z),null===F||(z=z[15],10&F.type))););if(null===F)return!1;h=F,_=z}const S=ao.lFrame=Gi();return S.currentTNode=h,S.lView=_,!0}function yc(_){const h=Gi(),y=_[1];ao.lFrame=h,h.currentTNode=y.firstChild,h.lView=_,h.tView=y,h.contextLView=_,h.bindingIndex=y.bindingStartIndex,h.inI18n=!1}function Gi(){const _=ao.lFrame,h=null===_?null:_.child;return null===h?dt(_):h}function dt(_){const h={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=h),h}function ru(){const _=ao.lFrame;return ao.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Bl=ru;function Ua(){const _=ru();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ir(){return ao.lFrame.selectedIndex}function _s(_){ao.lFrame.selectedIndex=_}function Da(){const _=ao.lFrame;return ds(_.tView,_.selectedIndex)}function ki(){ao.lFrame.currentNamespace="svg"}function vo(){!function mn(){ao.lFrame.currentNamespace=null}()}function Mi(_,h){for(let y=h.directiveStart,S=h.directiveEnd;y=S)break}else h[qt]<0&&(_[J]+=65536),(yt>11<_[J]>>16&&(3&_[2])===h){_[2]+=2048;try{z.call(yt)}finally{}}}else try{z.call(yt)}finally{}}class bu{constructor(h,y,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=S}}function Ge(_,h,y){let S=0;for(;Sh){at=z-1;break}}}for(;z<_.length;){const yt=_[z];if("number"==typeof yt)break;if(yt===y){if(null===S)return void(null!==F&&(_[z+1]=F));if(S===_[z+1])return void(_[z+2]=F)}z++,null!==S&&z++,null!==F&&z++}-1!==at&&(_.splice(at,0,h),z=at+1),_.splice(z++,0,y),null!==S&&_.splice(z++,0,S),null!==F&&_.splice(z++,0,F)}function Xe(_){return-1!==_}function Tn(_){return 32767&_}function ei(_,h){let y=function Xn(_){return _>>16}(_),S=h;for(;y>0;)S=S[15],y--;return S}let yi=!0;function Ui(_){const h=yi;return yi=_,h}let ua=0;const ea={};function $r(_,h){const y=Us(_,h);if(-1!==y)return y;const S=h[1];S.firstCreatePass&&(_.injectorIndex=h.length,fs(S.data,_),fs(h,null),fs(S.blueprint,null));const F=Kr(_,h),z=_.injectorIndex;if(Xe(F)){const at=Tn(F),yt=ei(F,h),qt=yt[1].data;for(let ve=0;ve<8;ve++)h[z+ve]=yt[at+ve]|qt[at+ve]}return h[z+8]=F,z}function fs(_,h){_.push(0,0,0,0,0,0,0,0,h)}function Us(_,h){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===h[_.injectorIndex+8]?-1:_.injectorIndex}function Kr(_,h){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let y=0,S=null,F=h;for(;null!==F;){if(S=lp(F),null===S)return-1;if(y++,F=F[15],-1!==S.injectorIndex)return S.injectorIndex|y<<16}return-1}function Vr(_,h,y){!function ga(_,h,y){let S;"string"==typeof y?S=y.charCodeAt(0)||0:y.hasOwnProperty(Ne)&&(S=y[Ne]),null==S&&(S=y[Ne]=ua++);const F=255&S;h.data[_+(F>>5)]|=1<=0?255&h:a1:h}(y);if("function"==typeof z){if(!Zl(h,_,S))return S&oi.Host?tc(F,0,S):ec(h,y,S,F);try{const at=z(S);if(null!=at||S&oi.Optional)return at;Gt()}finally{Bl()}}else if("number"==typeof z){let at=null,yt=Us(_,h),qt=-1,ve=S&oi.Host?h[j][6]:null;for((-1===yt||S&oi.SkipSelf)&&(qt=-1===yt?Kr(_,h):h[yt+8],-1!==qt&&ed(S,!1)?(at=h[1],yt=Tn(qt),h=ei(qt,h)):yt=-1);-1!==yt;){const $e=h[1];if(L1(z,yt,$e.data)){const Un=rr(yt,h,y,at,S,ve);if(Un!==ea)return Un}qt=h[yt+8],-1!==qt&&ed(S,h[1].data[yt+8]===ve)&&L1(z,yt,h)?(at=$e,yt=Tn(qt),h=ei(qt,h)):yt=-1}}return F}function rr(_,h,y,S,F,z){const at=h[1],yt=at.data[_+8],$e=na(yt,at,y,null==S?Al(yt)&&yi:S!=at&&0!=(3&yt.type),F&oi.Host&&z===yt);return null!==$e?Ba(h,at,$e,yt):ea}function na(_,h,y,S,F){const z=_.providerIndexes,at=h.data,yt=1048575&z,qt=_.directiveStart,$e=z>>20,ri=F?yt+$e:_.directiveEnd;for(let Ci=S?yt:yt+$e;Ci=qt&&ji.type===y)return Ci}if(F){const Ci=at[qt];if(Ci&&Ps(Ci)&&Ci.type===y)return qt}return null}function Ba(_,h,y,S){let F=_[y];const z=h.data;if(function Xa(_){return _ instanceof bu}(F)){const at=F;at.resolving&&function Dt(_,h){const y=h?`. Dependency path: ${h.join(" > ")} > ${_}`:"";throw new et(-200,`Circular dependency in DI detected for ${_}${y}`)}(function Ct(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():lt(_)}(z[y]));const yt=Ui(at.canSeeViewProviders);at.resolving=!0;const qt=at.injectImpl?ot(at.injectImpl):null;Zl(_,S,oi.Default);try{F=_[y]=at.factory(void 0,z,_,S),h.firstCreatePass&&y>=S.directiveStart&&function Si(_,h,y){const{ngOnChanges:S,ngOnInit:F,ngDoCheck:z}=h.type.prototype;if(S){const at=zl(h);(y.preOrderHooks||(y.preOrderHooks=[])).push(_,at),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,at)}F&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-_,F),z&&((y.preOrderHooks||(y.preOrderHooks=[])).push(_,z),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,z))}(y,z[y],h)}finally{null!==qt&&ot(qt),Ui(yt),at.resolving=!1,Bl()}}return F}function L1(_,h,y){return!!(y[h+(_>>5)]&1<<_)}function ed(_,h){return!(_&oi.Self||_&oi.Host&&h)}class Wc{constructor(h,y){this._tNode=h,this._lView=y}get(h,y,S){return ws(this._tNode,this._lView,h,S,y)}}function a1(){return new Wc(Qa(),Qi())}function cp(_){return Ht(()=>{const h=_.prototype.constructor,y=h[Ve]||yu(h),S=Object.prototype;let F=Object.getPrototypeOf(_.prototype).constructor;for(;F&&F!==S;){const z=F[Ve]||yu(F);if(z&&z!==y)return z;F=Object.getPrototypeOf(F)}return z=>new z})}function yu(_){return B(_)?()=>{const h=yu(N(_));return h&&h()}:$s(_)}function lp(_){const h=_[1],y=h.type;return 2===y?h.declTNode:1===y?_[6]:null}function Au(_){return function os(_,h){if("class"===h)return _.classes;if("style"===h)return _.styles;const y=_.attrs;if(y){const S=y.length;let F=0;for(;F{const S=function Br(_){return function(...y){if(_){const S=_(...y);for(const F in S)this[F]=S[F]}}}(h);function F(...z){if(this instanceof F)return S.apply(this,z),this;const at=new F(...z);return yt.annotation=at,yt;function yt(qt,ve,$e){const Un=qt.hasOwnProperty(Gl)?qt[Gl]:Object.defineProperty(qt,Gl,{value:[]})[Gl];for(;Un.length<=$e;)Un.push(null);return(Un[$e]=Un[$e]||[]).push(at),qt}}return y&&(F.prototype=Object.create(y.prototype)),F.prototype.ngMetadataName=_,F.annotationCls=F,F})}class io{constructor(h,y){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=se({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function mc(_,h){void 0===h&&(h=_);for(let y=0;y<_.length;y++){let S=_[y];Array.isArray(S)?(h===_&&(h=_.slice(0,y)),mc(S,h)):h!==_&&h.push(S)}return h}function Tc(_,h){_.forEach(y=>Array.isArray(y)?Tc(y,h):h(y))}function cu(_,h,y){h>=_.length?_.push(y):_.splice(h,0,y)}function id(_,h){return h>=_.length-1?_.pop():_.splice(h,1)[0]}function od(_,h){const y=[];for(let S=0;S<_;S++)y.push(h);return y}function ne(_,h,y){let S=de(_,h);return S>=0?_[1|S]=y:(S=~S,function ht(_,h,y,S){let F=_.length;if(F==h)_.push(y,S);else if(1===F)_.push(S,_[0]),_[0]=y;else{for(F--,_.push(_[F-1],_[F]);F>h;)_[F]=_[F-2],F--;_[h]=y,_[h+1]=S}}(_,S,h,y)),S}function fe(_,h){const y=de(_,h);if(y>=0)return _[1|y]}function de(_,h){return function Cn(_,h,y){let S=0,F=_.length>>y;for(;F!==S;){const z=S+(F-S>>1),at=_[z<h?F=z:S=z+1}return~(F<((Du=Du||{})[Du.Important=1]="Important",Du[Du.DashCase=2]="DashCase",Du))();const Fp=new Map;let ff=0;const Bs="__ngContext__";function Zs(_,h){Ar(h)?(_[Bs]=h[20],function Np(_){Fp.set(_[20],_)}(h)):_[Bs]=h}function c2(_,h){return undefined(_,h)}function Rp(_){const h=_[3];return Ur(h)?h[3]:h}function jh(_){return Wh(_[13])}function Af(_){return Wh(_[4])}function Wh(_){for(;null!==_&&!Ur(_);)_=_[4];return _}function du(_,h,y,S,F){if(null!=S){let z,at=!1;Ur(S)?z=S:Ar(S)&&(at=!0,S=S[0]);const yt=Ya(S);0===_&&null!==y?null==F?R1(h,y,yt):d1(h,y,yt,F||null,!0):1===_&&null!==y?d1(h,y,yt,F||null,!0):2===_?function gp(_,h,y){const S=fc(_,h);S&&function _c(_,h,y,S){_.removeChild(h,y,S)}(_,S,h,y)}(h,yt,at):3===_&&h.destroyNode(yt),null!=z&&function f1(_,h,y,S,F){const z=y[7];z!==Ya(y)&&du(h,_,S,z,F);for(let yt=10;yt0&&(_[y-1][4]=S[4]);const z=id(_,10+h);!function Uc(_,h){H1(_,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const at=z[19];null!==at&&at.detachView(z[1]),S[3]=null,S[4]=null,S[2]&=-65}return S}function Su(_,h){if(!(128&h[2])){const y=h[11];y.destroyNode&&H1(_,h,y,3,null,null),function Uf(_){let h=_[13];if(!h)return ku(_[1],_);for(;h;){let y=null;if(Ar(h))y=h[13];else{const S=h[10];S&&(y=S)}if(!y){for(;h&&!h[4]&&h!==_;)Ar(h)&&ku(h[1],h),h=h[3];null===h&&(h=_),Ar(h)&&ku(h[1],h),y=h&&h[4]}h=y}}(h)}}function ku(_,h){if(!(128&h[2])){h[2]&=-65,h[2]|=128,function oc(_,h){let y;if(null!=_&&null!=(y=_.destroyHooks))for(let S=0;S=0?S[F=ve]():S[F=-ve].unsubscribe(),z+=2}else{const at=S[F=y[z+1]];y[z].call(at)}if(null!==S){for(let z=F+1;z_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Pd}()?.createHTML(_)||_}function tl(_){wc=_}function ud(){if(void 0===m2&&(m2=null,qn.trustedTypes))try{m2=qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return m2}function jl(_){return ud()?.createHTML(_)||_}function Bp(_){return ud()?.createScriptURL(_)||_}class Y1{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class g3 extends Y1{getTypeName(){return"HTML"}}class Dl extends Y1{getTypeName(){return"Style"}}class vp extends Y1{getTypeName(){return"Script"}}class Mf extends Y1{getTypeName(){return"URL"}}class Df extends Y1{getTypeName(){return"ResourceURL"}}function h1(_){return _ instanceof Y1?_.changingThisBreaksApplicationSecurity:_}function kd(_,h){const y=function Gp(_){return _ instanceof Y1&&_.getTypeName()||null}(_);if(null!=y&&y!==h){if("ResourceURL"===y&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===h}function _2(_){return new g3(_)}function Pf(_){return new Dl(_)}function Od(_){return new vp(_)}function F0(_){return new Mf(_)}function w_(_){return new Df(_)}class Sm{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const y=(new window.DOMParser).parseFromString(hs(h),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(h):(y.removeChild(y.firstChild),y)}catch{return null}}}class Sf{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const S=this.inertDocument.createElement("body");y.appendChild(S)}}getInertBodyElement(h){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=hs(h),y;const S=this.inertDocument.createElement("body");return S.innerHTML=hs(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const y=h.attributes;for(let F=y.length-1;0"),!0}endElement(h){const y=h.nodeName.toLowerCase();Lf.hasOwnProperty(y)&&!Ed.hasOwnProperty(y)&&(this.buf.push(""))}chars(h){this.buf.push(og(h))}checkClobberedElement(h,y){if(y&&(h.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return y}}const ng=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ig=/([^\#-~ |!])/g;function og(_){return _.replace(/&/g,"&").replace(ng,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(ig,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let xp;function Ff(_,h){let y=null;try{xp=xp||function Lu(_){const h=new Sf(_);return function kf(){try{return!!(new window.DOMParser).parseFromString(hs(""),"text/html")}catch{return!1}}()?new Sm(h):h}(_);let S=h?String(h):"";y=xp.getInertBodyElement(S);let F=5,z=S;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,S=z,z=y.innerHTML,y=xp.getInertBodyElement(S)}while(S!==z);return hs((new Z_).sanitizeChildren(jo(y)||y))}finally{if(y){const S=jo(y)||y;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function jo(_){return"content"in _&&function x3(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Ns=(()=>((Ns=Ns||{})[Ns.NONE=0]="NONE",Ns[Ns.HTML=1]="HTML",Ns[Ns.STYLE=2]="STYLE",Ns[Ns.SCRIPT=3]="SCRIPT",Ns[Ns.URL=4]="URL",Ns[Ns.RESOURCE_URL=5]="RESOURCE_URL",Ns))();function Jp(_){const h=Om();return h?jl(h.sanitize(Ns.HTML,_)||""):kd(_,"HTML")?jl(h1(_)):Ff(function p2(){return void 0!==wc?wc:typeof document<"u"?document:void 0}(),lt(_))}function Is(_){const h=Om();return h?h.sanitize(Ns.URL,_)||"":kd(_,"URL")?h1(_):Ld(lt(_))}function h2(_){const h=Om();if(h)return Bp(h.sanitize(Ns.RESOURCE_URL,_)||"");if(kd(_,"ResourceURL"))return Bp(h1(_));throw new et(904,!1)}function Om(){const _=Qi();return _&&_[12]}const Nf=new io("ENVIRONMENT_INITIALIZER"),C3=new io("INJECTOR",-1),Lm=new io("INJECTOR_DEF_TYPES");class z1{get(h,y=Fs){if(y===Fs){const S=new Error(`NullInjectorError: No provider for ${w(h)}!`);throw S.name="NullInjectorError",S}return y}}function I0(..._){return{\u0275providers:Qp(0,_)}}function Qp(_,...h){const y=[],S=new Set;let F;return Tc(h,z=>{const at=z;Em(at,y,[],S)&&(F||(F=[]),F.push(at))}),void 0!==F&&jp(F,y),y}function jp(_,h){for(let y=0;y<_.length;y++){const{providers:F}=_[y];Tc(F,z=>{h.push(z)})}}function Em(_,h,y,S){if(!(_=N(_)))return!1;let F=null,z=Oe(_);const at=!z&&zt(_);if(z||at){if(at&&!at.standalone)return!1;F=_}else{const qt=_.ngModule;if(z=Oe(qt),!z)return!1;F=qt}const yt=S.has(F);if(at){if(yt)return!1;if(S.add(F),at.dependencies){const qt="function"==typeof at.dependencies?at.dependencies():at.dependencies;for(const ve of qt)Em(ve,h,y,S)}}else{if(!z)return!1;{if(null!=z.imports&&!yt){let ve;S.add(F);try{Tc(z.imports,$e=>{Em($e,h,y,S)&&(ve||(ve=[]),ve.push($e))})}finally{}void 0!==ve&&jp(ve,h)}if(!yt){const ve=$s(F)||(()=>new F);h.push({provide:F,useFactory:ve,deps:hi},{provide:Lm,useValue:F,multi:!0},{provide:Nf,useValue:()=>nc(F),multi:!0})}const qt=z.providers;null==qt||yt||Tc(qt,$e=>{h.push($e)})}}return F!==_&&void 0!==_.providers}const Fm=T({provide:String,useValue:T});function g2(_){return null!==_&&"object"==typeof _&&Fm in _}function Wp(_){return"function"==typeof _}const $p=new io("Set Injector scope."),Kp={},y3={};let qs;function Nm(){return void 0===qs&&(qs=new z1),qs}class V1{}class Rf extends V1{constructor(h,y,S,F){super(),this.parent=y,this.source=S,this.scopes=F,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ug(h,at=>this.processProvider(at)),this.records.set(C3,v1(void 0,this)),F.has("environment")&&this.records.set(V1,v1(void 0,this));const z=this.records.get($p);null!=z&&"string"==typeof z.value&&this.scopes.add(z.value),this.injectorDefTypes=new Set(this.get(Lm.multi,hi,oi.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const h of this._ngOnDestroyHooks)h.ngOnDestroy();for(const h of this._onDestroyHooks)h()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(h){this._onDestroyHooks.push(h)}runInContext(h){this.assertNotDestroyed();const y=Ac(this),S=ot(void 0);try{return h()}finally{Ac(y),ot(S)}}get(h,y=Fs,S=oi.Default){this.assertNotDestroyed();const F=Ac(this),z=ot(void 0);try{if(!(S&oi.SkipSelf)){let yt=this.records.get(h);if(void 0===yt){const qt=function R0(_){return"function"==typeof _||"object"==typeof _&&_ instanceof io}(h)&&De(h);yt=qt&&this.injectableDefInScope(qt)?v1(lg(h),Kp):null,this.records.set(h,yt)}if(null!=yt)return this.hydrate(h,yt)}return(S&oi.Self?Nm():this.parent).get(h,y=S&oi.Optional&&y===Fs?null:y)}catch(at){if("NullInjectorError"===at.name){if((at[Op]=at[Op]||[]).unshift(w(h)),F)throw at;return function up(_,h,y,S){const F=_[Op];throw h[g_]&&F.unshift(h[g_]),_.message=function n2(_,h,y,S=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let F=w(h);if(Array.isArray(h))F=h.map(w).join(" -> ");else if("object"==typeof h){let z=[];for(let at in h)if(h.hasOwnProperty(at)){let yt=h[at];z.push(at+":"+("string"==typeof yt?JSON.stringify(yt):w(yt)))}F=`{${z.join(", ")}}`}return`${y}${S?"("+S+")":""}[${F}]: ${_.replace(df,"\n ")}`}("\n"+_.message,F,y,S),_.ngTokenPath=F,_[Op]=null,_}(at,h,"R3InjectorError",this.source)}throw at}finally{ot(z),Ac(F)}}resolveInjectorInitializers(){const h=Ac(this),y=ot(void 0);try{const S=this.get(Nf.multi,hi,oi.Self);for(const F of S)F()}finally{Ac(h),ot(y)}}toString(){const h=[],y=this.records;for(const S of y.keys())h.push(w(S));return`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new et(205,!1)}processProvider(h){let y=Wp(h=N(h))?h:N(h&&h.provide);const S=function M_(_){return g2(_)?v1(void 0,_.useValue):v1(v2(_),Kp)}(h);if(Wp(h)||!0!==h.multi)this.records.get(y);else{let F=this.records.get(y);F||(F=v1(void 0,Kp,!0),F.factory=()=>ad(F.multi),this.records.set(y,F)),y=h,F.multi.push(h)}this.records.set(y,S)}hydrate(h,y){return y.value===Kp&&(y.value=y3,y.value=y.factory()),"object"==typeof y.value&&y.value&&function x2(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(h){if(!h.providedIn)return!1;const y=N(h.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function lg(_){const h=De(_),y=null!==h?h.factory:$s(_);if(null!==y)return y;if(_ instanceof io)throw new et(204,!1);if(_ instanceof Function)return function q0(_){const h=_.length;if(h>0)throw od(h,"?"),new et(204,!1);const y=function Ce(_){const h=_&&(_[dn]||_[ii]);if(h){const y=function bn(_){if(_.hasOwnProperty("name"))return _.name;const h=(""+_).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),h}return null}(_);return null!==y?()=>y.factory(_):()=>new _}(_);throw new et(204,!1)}function v2(_,h,y){let S;if(Wp(_)){const F=N(_);return $s(F)||lg(F)}if(g2(_))S=()=>N(_.useValue);else if(function qf(_){return!(!_||!_.useFactory)}(_))S=()=>_.useFactory(...ad(_.deps||[]));else if(function If(_){return!(!_||!_.useExisting)}(_))S=()=>nc(N(_.useExisting));else{const F=N(_&&(_.useClass||_.provide));if(!function T3(_){return!!_.deps}(_))return $s(F)||lg(F);S=()=>new F(...ad(_.deps))}return S}function v1(_,h,y=!1){return{factory:_,value:h,multi:y?[]:void 0}}function b2(_){return!!_.\u0275providers}function ug(_,h){for(const y of _)Array.isArray(y)?ug(y,h):b2(y)?ug(y.\u0275providers,h):h(y)}class C2{}class A3{resolveComponentFactory(h){throw function ko(_){const h=Error(`No component factory found for ${w(_)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=_,h}(h)}}let Im=(()=>{class _{}return _.NULL=new A3,_})();function qm(){return tr(Qa(),Qi())}function tr(_,h){return new oo(jn(_,h))}let oo=(()=>{class _{constructor(y){this.nativeElement=y}}return _.__NG_ELEMENT_ID__=qm,_})();function U3(_){return _ instanceof oo?_.nativeElement:_}class x1{}let pg=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Y0(){const _=Qi(),y=is(Qa().index,_);return(Ar(y)?y:_)[11]}(),_})(),mg=(()=>{class _{}return _.\u0275prov=se({token:_,providedIn:"root",factory:()=>null}),_})();class _g{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const y2=new _g("14.3.0"),Yf={};function bp(_){return _.ngOriginalError}class Cp{constructor(){this._console=console}handleError(h){const y=this._findOriginalError(h);this._console.error("ERROR",h),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(h){let y=h&&bp(h);for(;y&&bp(y);)y=bp(y);return y||null}}function Xp(_){return _.ownerDocument.defaultView}function T2(_){return _.ownerDocument}function B1(_){return _ instanceof Function?_():_}function Fd(_,h,y){let S=_.length;for(;;){const F=_.indexOf(h,y);if(-1===F)return F;if(0===F||_.charCodeAt(F-1)<=32){const z=h.length;if(F+z===S||_.charCodeAt(F+z)<=32)return F}y=F+1}}const Mr="ng-template";function k3(_,h,y){let S=0;for(;S<_.length;){let F=_[S++];if(y&&"class"===F){if(F=_[S],-1!==Fd(F.toLowerCase(),h,0))return!0}else if(1===F){for(;S<_.length&&"string"==typeof(F=_[S++]);)if(F.toLowerCase()===h)return!0;return!1}}return!1}function U2(_){return 4===_.type&&_.value!==Mr}function P_(_,h,y){return h===(4!==_.type||y?_.value:Mr)}function tm(_,h,y){let S=4;const F=_.attrs||[],z=function S_(_){for(let h=0;h<_.length;h++)if(En(_[h]))return h;return _.length}(F);let at=!1;for(let yt=0;ytz?"":F[Un+1].toLowerCase();const Ci=8&S?ri:null;if(Ci&&-1!==Fd(Ci,ve,0)||2&S&&ve!==ri){if(dd(S))return!1;at=!0}}}}else{if(!at&&!dd(S)&&!dd(qt))return!1;if(at&&dd(qt))continue;at=!1,S=qt|1&S}}return dd(S)||at}function dd(_){return 0==(1&_)}function gg(_,h,y,S){if(null===h)return-1;let F=0;if(S||!y){let z=!1;for(;F-1)for(y++;y<_.length;){const S=_[y];if("number"==typeof S)return-1;if(S===h)return y;y++}return-1}(h,_)}function Hm(_,h,y=!1){for(let S=0;S0?'="'+yt+'"':"")+"]"}else 8&S?F+="."+at:4&S&&(F+=" "+at);else""!==F&&!dd(at)&&(h+=k_(z,F),F=""),S=at,z=z||!dd(S);y++}return""!==F&&(h+=k_(z,F)),h}const Ea={};function Bf(_){L3(la(),Qi(),Ir()+_,!1)}function L3(_,h,y,S){if(!S)if(3==(3&h[2])){const z=_.preOrderCheckHooks;null!==z&&Lo(h,z,y)}else{const z=_.preOrderHooks;null!==z&&$o(h,z,0,y)}_s(y)}function Wl(_,h=null,y=null,S){const F=Pl(_,h,y,S);return F.resolveInjectorInitializers(),F}function Pl(_,h=null,y=null,S,F=new Set){const z=[y||hi,I0(_)];return S=S||("object"==typeof _?void 0:w(_)),new Rf(z,h||Nm(),S||null,F)}let mu=(()=>{class _{static create(y,S){if(Array.isArray(y))return Wl({name:""},S,y,"");{const F=y.name??"";return Wl({name:F},y.parent,y.providers,F)}}}return _.THROW_IF_NOT_FOUND=Fs,_.NULL=new z1,_.\u0275prov=se({token:_,providedIn:"any",factory:()=>nc(C3)}),_.__NG_ELEMENT_ID__=-1,_})();function C1(_,h=oi.Default){const y=Qi();return null===y?nc(_,h):ws(Qa(),y,N(_),h)}function J1(){throw new Error("invalid")}function qu(_,h){return _<<17|h<<2}function md(_){return _>>17&32767}function zm(_){return 2|_}function Kl(_){return(131068&_)>>2}function S2(_,h){return-131069&_|h<<2}function Ra(_){return 1|_}function oh(_,h){const y=_.contentQueries;if(null!==y)for(let S=0;S22&&L3(_,h,22,!1),y(S,F)}finally{_s(z)}}function sh(_,h,y){if(Oc(h)){const F=h.directiveEnd;for(let z=h.directiveStart;z0;){const y=_[--h];if("number"==typeof y&&y<0)return y}return 0})(yt)!=qt&&yt.push(qt),yt.push(S,F,at)}}function ph(_,h){null!==_.hostBindings&&_.hostBindings(1,h)}function mh(_,h){h.flags|=2,(_.components||(_.components=[])).push(h.index)}function fh(_,h,y){if(y){if(h.exportAs)for(let S=0;S0&&Wm(y)}}function Wm(_){for(let S=jh(_);null!==S;S=Af(S))for(let F=10;F0&&Wm(z)}const y=_[1].components;if(null!==y)for(let S=0;S0&&Wm(F)}}function e0(_,h){const y=is(h,_),S=y[1];(function q2(_,h){for(let y=h.length;y<_.blueprint.length;y++)h.push(_.blueprint[y])})(S,y),ah(S,y,y[8])}function $m(_,h){return _[13]?_[14][4]=h:_[13]=h,_[14]=h,h}function q_(_){for(;_;){_[2]|=32;const h=Rp(_);if(Qs(_)&&!h)return _;_=h}return null}function R_(_,h,y,S=!0){const F=h[10];F.begin&&F.begin();try{Up(_,h,_.template,y)}catch(at){throw S&&Y_(h,at),at}finally{F.end&&F.end()}}function Km(_,h,y){ll(0),h(_,y)}function H_(_){return _[7]||(_[7]=[])}function xh(_){return _.cleanup||(_.cleanup=[])}function Eg(_,h,y){return(null===_||Ps(_))&&(y=function wr(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(y[h.index])),y[11]}function Y_(_,h){const y=_[9],S=y?y.get(Cp,null):null;S&&S.handleError(h)}function z_(_,h,y,S,F){for(let z=0;z-1&&(Dm(h,S),id(y,S))}this._attachedToViewContainer=!1}Su(this._lView[1],this._lView)}onDestroy(h){E2(this._lView[1],this._lView,null,h)}markForCheck(){q_(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){R_(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new et(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function h3(_,h){H1(_,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new et(902,!1);this._appRef=h}}class n0 extends B_{constructor(h){super(h),this._view=h}detectChanges(){const h=this._view;R_(h[1],h,h[8],!1)}checkNoChanges(){}get context(){return null}}class Xm extends Im{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const y=zt(h);return new z2(y,this.ngModule)}}function H2(_){const h=[];for(let y in _)_.hasOwnProperty(y)&&h.push({propName:_[y],templateName:y});return h}class bh{constructor(h,y){this.injector=h,this.parentInjector=y}get(h,y,S){const F=this.injector.get(h,Yf,S);return F!==Yf||y===Yf?F:this.parentInjector.get(h,y,S)}}class z2 extends C2{constructor(h,y){super(),this.componentDef=h,this.ngModule=y,this.componentType=h.type,this.selector=function B0(_){return _.map(O3).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return H2(this.componentDef.inputs)}get outputs(){return H2(this.componentDef.outputs)}create(h,y,S,F){let z=(F=F||this.ngModule)instanceof V1?F:F?.injector;z&&null!==this.componentDef.getStandaloneInjector&&(z=this.componentDef.getStandaloneInjector(z)||z);const at=z?new bh(h,z):h,yt=at.get(x1,null);if(null===yt)throw new et(407,!1);const qt=at.get(mg,null),ve=yt.createRenderer(null,this.componentDef),$e=this.componentDef.selectors[0][0]||"div",Un=S?function kg(_,h,y){return _.selectRootElement(h,y===vn.ShadowDom)}(ve,S,this.componentDef.encapsulation):Dd(ve,$e,function Y2(_){const h=_.toLowerCase();return"svg"===h?"svg":"math"===h?"math":null}($e)),ri=this.componentDef.onPush?288:272,Ci=Xr(0,null,null,1,0,null,null,null,null,null),ji=zd(null,Ci,null,ri,null,null,yt,ve,qt,at,null);let Ao,Io;yc(ji);try{const oa=function Fg(_,h,y,S,F,z){const at=y[1];y[22]=_;const qt=Gm(at,22,2,"#host",null),ve=qt.mergedAttrs=h.hostAttrs;null!==ve&&(R2(qt,ve,!0),null!==_&&(Ge(F,_,ve),null!==qt.classes&&A_(F,_,qt.classes),null!==qt.styles&&zp(F,_,qt.styles)));const $e=S.createRenderer(_,h),Un=zd(y,W3(h),null,h.onPush?32:16,y[22],qt,S,$e,z||null,null,null);return at.firstCreatePass&&(Vr($r(qt,y),at,h.type),mh(at,qt),sm(qt,y.length,1)),$m(y,Un),y[22]=Un}(Un,this.componentDef,ji,yt,ve);if(Un)if(S)Ge(ve,Un,["ng-version",y2.full]);else{const{attrs:ya,classes:ln}=function Vf(_){const h=[],y=[];let S=1,F=2;for(;S<_.length;){let z=_[S];if("string"==typeof z)2===F?""!==z&&h.push(z,_[++S]):8===F&&y.push(z);else{if(!dd(F))break;F=z}S++}return{attrs:h,classes:y}}(this.componentDef.selectors[0]);ya&&Ge(ve,Un,ya),ln&&ln.length>0&&A_(ve,Un,ln.join(" "))}if(Io=ds(Ci,22),void 0!==y){const ya=Io.projection=[];for(let ln=0;ln=0;S--){const F=_[S];F.hostVars=h+=F.hostVars,F.hostAttrs=pe(F.hostAttrs,y=pe(y,F.hostAttrs))}}(S)}function V2(_){return _===bo?{}:_===hi?[]:_}function $0(_,h){const y=_.viewQuery;_.viewQuery=y?(S,F)=>{h(S,F),y(S,F)}:h}function D(_,h){const y=_.contentQueries;_.contentQueries=y?(S,F,z)=>{h(S,F,z),y(S,F,z)}:h}function I(_,h){const y=_.hostBindings;_.hostBindings=y?(S,F)=>{h(S,F),y(S,F)}:h}let pn=null;function Yn(){if(!pn){const _=qn.Symbol;if(_&&_.iterator)pn=_.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yyt(Ya(ts[S.index])):S.index;let Na=null;if(!yt&&qt&&(Na=function u6(_,h,y,S){const F=_.cleanup;if(null!=F)for(let z=0;zqt?yt[qt]:null}"string"==typeof at&&(z+=2)}return null}(_,h,F,S.index)),null!==Na)(Na.__ngLastListenerFn__||Na).__ngNextListenerFn__=z,Na.__ngLastListenerFn__=z,Ci=!1;else{z=d6(S,h,Un,z,!1);const ts=y.listen(oa,F,z);ri.push(z,ts),$e&&$e.push(F,ln,ya,ya+1)}}else z=d6(S,h,Un,z,!1);const ji=S.outputs;let Ao;if(Ci&&null!==ji&&(Ao=ji[F])){const Io=Ao.length;if(Io)for(let oa=0;oa0;)h=h[15],_--;return h}(_,ao.lFrame.contextLView))[8]}(_)}function M5(_,h){let y=null;const S=function vg(_){const h=_.attrs;if(null!=h){const y=h.indexOf(5);if(0==(1&y))return h[y+1]}return null}(_);for(let F=0;F=0}const xl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function u4(_){return _.substring(xl.key,xl.keyEnd)}function d4(_,h){const y=xl.textEnd;return y===h?-1:(h=xl.keyEnd=function u0(_,h,y){for(;h32;)h++;return h}(_,xl.key=h,y),j2(_,h,y))}function j2(_,h,y){for(;h=0;y=d4(h,y))ne(_,u4(h),!0)}function w1(_,h,y,S){const F=Qi(),z=la(),at=jc(2);z.firstUpdatePass&&Mc(z,_,at,S),h!==Ea&&fa(F,at,h)&&b4(z,z.data[Ir()],F,F[11],_,F[at+1]=function C4(_,h){return null==_||("string"==typeof h?_+=h:"object"==typeof _&&(_=w(h1(_)))),_}(h,y),S,at)}function Hu(_,h,y,S){const F=la(),z=jc(2);F.firstUpdatePass&&Mc(F,null,z,S);const at=Qi();if(y!==Ea&&fa(at,z,y)){const yt=F.data[Ir()];if(y4(yt,S)&&!g4(F,z)){let qt=S?yt.classesWithoutHost:yt.stylesWithoutHost;null!==qt&&(y=P(qt,y||"")),e4(F,yt,at,y,S)}else!function O5(_,h,y,S,F,z,at,yt){F===Ea&&(F=hi);let qt=0,ve=0,$e=0=_.expandoStartIndex}function Mc(_,h,y,S){const F=_.data;if(null===F[y+1]){const z=F[Ir()],at=g4(_,y);y4(z,S)&&null===h&&!at&&(h=!1),h=function P5(_,h,y,S){const F=Nc(_);let z=S?h.residualClasses:h.residualStyles;if(null===F)0===(S?h.classBindings:h.styleBindings)&&(y=Wg(y=v4(null,_,h,y,S),h.attrs,S),z=null);else{const at=h.directiveStylingLast;if(-1===at||_[at]!==F)if(y=v4(F,_,h,y,S),null===z){let qt=function g6(_,h,y){const S=y?h.classBindings:h.styleBindings;if(0!==Kl(S))return _[md(S)]}(_,h,S);void 0!==qt&&Array.isArray(qt)&&(qt=v4(null,_,h,qt[1],S),qt=Wg(qt,h.attrs,S),function v6(_,h,y,S){_[md(y?h.classBindings:h.styleBindings)]=S}(_,h,S,qt))}else z=function S5(_,h,y){let S;const F=h.directiveEnd;for(let z=1+h.directiveStylingLast;z0)&&(ve=!0)}else $e=y;if(F)if(0!==qt){const ri=md(_[yt+1]);_[S+1]=qu(ri,yt),0!==ri&&(_[ri+1]=S2(_[ri+1],S)),_[yt+1]=function Zg(_,h){return 131071&_|h<<17}(_[yt+1],S)}else _[S+1]=qu(yt,0),0!==yt&&(_[yt+1]=S2(_[yt+1],S)),yt=S;else _[S+1]=qu(qt,0),0===yt?yt=S:_[qt+1]=S2(_[qt+1],S),qt=S;ve&&(_[S+1]=zm(_[S+1])),Gd(_,$e,S,!0),Gd(_,$e,S,!1),function c4(_,h,y,S,F){const z=F?_.residualClasses:_.residualStyles;null!=z&&"string"==typeof h&&de(z,h)>=0&&(y[S+1]=Ra(y[S+1]))}(h,$e,_,S,z),at=qu(yt,qt),z?h.classBindings=at:h.styleBindings=at}(F,z,h,y,at,S)}}function v4(_,h,y,S,F){let z=null;const at=y.directiveEnd;let yt=y.directiveStylingLast;for(-1===yt?yt=y.directiveStart:yt++;yt0;){const qt=_[F],ve=Array.isArray(qt),$e=ve?qt[1]:qt,Un=null===$e;let ri=y[F+1];ri===Ea&&(ri=Un?hi:void 0);let Ci=Un?fe(ri,S):$e===S?ri:void 0;if(ve&&!Mh(Ci)&&(Ci=fe(qt,S)),Mh(Ci)&&(yt=Ci,at))return yt;const ji=_[F+1];F=at?md(ji):Kl(ji)}if(null!==h){let qt=z?h.residualClasses:h.residualStyles;null!=qt&&(yt=fe(qt,S))}return yt}function Mh(_){return void 0!==_}function y4(_,h){return 0!=(_.flags&(h?16:32))}function L5(_,h=""){const y=Qi(),S=la(),F=_+22,z=S.firstCreatePass?Gm(S,F,1,h,null):S.data[F],at=y[F]=function $h(_,h){return _.createText(h)}(y[11],h);Jr(S,y,at,z),Nt(z,!1)}function T4(_){return $g("",_,""),T4}function $g(_,h,y){const S=Qi(),F=hl(S,_,h,y);return F!==Ea&&Vd(S,Ir(),F),$g}function A4(_,h,y,S,F){const z=Qi(),at=function xs(_,h,y,S,F,z){const yt=ca(_,Nr(),y,F);return jc(2),yt?h+lt(y)+S+lt(F)+z:Ea}(z,_,h,y,S,F);return at!==Ea&&Vd(z,Ir(),at),A4}function W2(_,h,y,S,F,z,at){const yt=Qi(),qt=function gl(_,h,y,S,F,z,at,yt){const ve=Wa(_,Nr(),y,F,at);return jc(3),ve?h+lt(y)+S+lt(F)+z+lt(at)+yt:Ea}(yt,_,h,y,S,F,z,at);return qt!==Ea&&Vd(yt,Ir(),qt),W2}function m0(_,h,y,S,F,z,at,yt,qt){const ve=Qi(),$e=function vl(_,h,y,S,F,z,at,yt,qt,ve){const Un=Fa(_,Nr(),y,F,at,qt);return jc(4),Un?h+lt(y)+S+lt(F)+z+lt(at)+yt+lt(qt)+ve:Ea}(ve,_,h,y,S,F,z,at,yt,qt);return $e!==Ea&&Vd(ve,Ir(),$e),m0}function U4(_,h,y,S,F,z,at,yt,qt,ve,$e){const Un=Qi(),ri=function cm(_,h,y,S,F,z,at,yt,qt,ve,$e,Un){const ri=Nr();let Ci=Fa(_,ri,y,F,at,qt);return Ci=fa(_,ri+4,$e)||Ci,jc(5),Ci?h+lt(y)+S+lt(F)+z+lt(at)+yt+lt(qt)+ve+lt($e)+Un:Ea}(Un,_,h,y,S,F,z,at,yt,qt,ve,$e);return ri!==Ea&&Vd(Un,Ir(),ri),U4}function _0(_,h,y){Hu(ne,Ru,hl(Qi(),_,h,y),!0)}function Z(_,h,y){const S=Qi();return fa(S,Va(),h)&&Xl(la(),Da(),S,_,h,S[11],y,!0),Z}function k(_,h,y){const S=Qi();if(fa(S,Va(),h)){const z=la(),at=Da();Xl(z,at,S,_,h,Eg(Nc(z.data),at,S),y,!0)}return k}const H=void 0;var rt=["en",[["a","p"],["AM","PM"],H],[["AM","PM"],H,H],[["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"]],H,[["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"]],H,[["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}",H,"{1} 'at' {0}",H],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function G(_){const y=Math.floor(Math.abs(_)),S=_.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===S?1:5}];let ft={};function Mt(_,h,y){"string"!=typeof h&&(y=h,h=_[Qn.LocaleId]),h=h.toLowerCase().replace(/_/g,"-"),ft[h]=_,y&&(ft[h][Qn.ExtraData]=y)}function he(_){const h=function Fi(_){return _.toLowerCase().replace(/_/g,"-")}(_);let y=Mn(h);if(y)return y;const S=h.split("-")[0];if(y=Mn(S),y)return y;if("en"===S)return rt;throw new et(701,!1)}function fn(_){return he(_)[Qn.PluralCase]}function Mn(_){return _ in ft||(ft[_]=qn.ng&&qn.ng.common&&qn.ng.common.locales&&qn.ng.common.locales[_]),ft[_]}var Qn=(()=>((Qn=Qn||{})[Qn.LocaleId=0]="LocaleId",Qn[Qn.DayPeriodsFormat=1]="DayPeriodsFormat",Qn[Qn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qn[Qn.DaysFormat=3]="DaysFormat",Qn[Qn.DaysStandalone=4]="DaysStandalone",Qn[Qn.MonthsFormat=5]="MonthsFormat",Qn[Qn.MonthsStandalone=6]="MonthsStandalone",Qn[Qn.Eras=7]="Eras",Qn[Qn.FirstDayOfWeek=8]="FirstDayOfWeek",Qn[Qn.WeekendRange=9]="WeekendRange",Qn[Qn.DateFormat=10]="DateFormat",Qn[Qn.TimeFormat=11]="TimeFormat",Qn[Qn.DateTimeFormat=12]="DateTimeFormat",Qn[Qn.NumberSymbols=13]="NumberSymbols",Qn[Qn.NumberFormats=14]="NumberFormats",Qn[Qn.CurrencyCode=15]="CurrencyCode",Qn[Qn.CurrencySymbol=16]="CurrencySymbol",Qn[Qn.CurrencyName=17]="CurrencyName",Qn[Qn.Currencies=18]="Currencies",Qn[Qn.Directionality=19]="Directionality",Qn[Qn.PluralCase=20]="PluralCase",Qn[Qn.ExtraData=21]="ExtraData",Qn))();const va="en-US";let Yu=va;function D6(_,h,y,S,F){if(_=N(_),Array.isArray(_))for(let z=0;z<_.length;z++)D6(_[z],h,y,S,F);else{const z=la(),at=Qi();let yt=Wp(_)?_:N(_.provide),qt=v2(_);const ve=Qa(),$e=1048575&ve.providerIndexes,Un=ve.directiveStart,ri=ve.providerIndexes>>20;if(Wp(_)||!_.multi){const Ci=new bu(qt,F,C1),ji=gi(yt,h,F?$e:$e+ri,Un);-1===ji?(Vr($r(ve,at),z,yt),G5(z,_,h.length),h.push(yt),ve.directiveStart++,ve.directiveEnd++,F&&(ve.providerIndexes+=1048576),y.push(Ci),at.push(Ci)):(y[ji]=Ci,at[ji]=Ci)}else{const Ci=gi(yt,h,$e+ri,Un),ji=gi(yt,h,$e,$e+ri),Ao=Ci>=0&&y[Ci],Io=ji>=0&&y[ji];if(F&&!Io||!F&&!Ao){Vr($r(ve,at),z,yt);const oa=function YC(_,h,y,S,F){const z=new bu(_,y,C1);return z.multi=[],z.index=h,z.componentProviders=0,ha(z,F,S&&!y),z}(F?HC:RC,y.length,F,S,qt);!F&&Io&&(y[ji].providerFactory=oa),G5(z,_,h.length,0),h.push(yt),ve.directiveStart++,ve.directiveEnd++,F&&(ve.providerIndexes+=1048576),y.push(oa),at.push(oa)}else G5(z,_,Ci>-1?Ci:ji,ha(y[F?ji:Ci],qt,!F&&S));!F&&S&&Io&&y[ji].componentProviders++}}}function G5(_,h,y,S){const F=Wp(h),z=function cg(_){return!!_.useClass}(h);if(F||z){const qt=(z?N(h.useClass):h).prototype.ngOnDestroy;if(qt){const ve=_.destroyHooks||(_.destroyHooks=[]);if(!F&&h.multi){const $e=ve.indexOf(y);-1===$e?ve.push(y,[S,qt]):ve[$e+1].push(S,qt)}else ve.push(y,qt)}}}function ha(_,h,y){return y&&_.componentProviders++,_.multi.push(h)-1}function gi(_,h,y,S){for(let F=y;F{y.providersResolver=(S,F)=>function qC(_,h,y){const S=la();if(S.firstCreatePass){const F=Ps(_);D6(y,S.data,S.blueprint,F,!0),D6(h,S.data,S.blueprint,F,!1)}}(S,F?F(_):_,h)}}class x0{}class P6{}function zC(_,h){return new j5(_,h??null)}class j5 extends x0{constructor(h,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xm(this);const S=Ei(h);this._bootstrapComponents=B1(S.bootstrap),this._r3Injector=Pl(h,y,[{provide:x0,useValue:this},{provide:Im,useValue:this.componentFactoryResolver}],w(h),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(h)}get injector(){return this._r3Injector}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class S6 extends P6{constructor(h){super(),this.moduleType=h}create(h){return new j5(this.moduleType,h)}}class VC extends x0{constructor(h,y,S){super(),this.componentFactoryResolver=new Xm(this),this.instance=null;const F=new Rf([...h,{provide:x0,useValue:this},{provide:Im,useValue:this.componentFactoryResolver}],y||Nm(),S,new Set(["environment"]));this.injector=F,F.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(h){this.injector.onDestroy(h)}}function W5(_,h,y=null){return new VC(_,h,y).injector}let BC=(()=>{class _{constructor(y){this._injector=y,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(y){if(!y.standalone)return null;if(!this.cachedInjectors.has(y.id)){const S=Qp(0,y.type),F=S.length>0?W5([S],this._injector,`Standalone[${y.type.name}]`):null;this.cachedInjectors.set(y.id,F)}return this.cachedInjectors.get(y.id)}ngOnDestroy(){try{for(const y of this.cachedInjectors.values())null!==y&&y.destroy()}finally{this.cachedInjectors.clear()}}}return _.\u0275prov=se({token:_,providedIn:"environment",factory:()=>new _(nc(V1))}),_})();function K8(_){_.getStandaloneInjector=h=>h.get(BC).getOrCreateStandaloneInjector(_)}function ax(_,h,y){const S=Fr()+_,F=Qi();return F[S]===Ea?Go(F,S,y?h.call(y):h()):function da(_,h){return _[h]}(F,S)}function rx(_,h,y,S){return tv(Qi(),Fr(),_,h,y,S)}function sx(_,h,y,S,F){return lx(Qi(),Fr(),_,h,y,S,F)}function E4(_,h){const y=_[h];return y===Ea?void 0:y}function tv(_,h,y,S,F,z){const at=h+y;return fa(_,at,F)?Go(_,at+1,z?S.call(z,F):S(F)):E4(_,at+1)}function lx(_,h,y,S,F,z,at){const yt=h+y;return ca(_,yt,F,z)?Go(_,yt+2,at?S.call(at,F,z):S(F,z)):E4(_,yt+2)}function px(_,h){const y=la();let S;const F=_+22;y.firstCreatePass?(S=function o7(_,h){if(h)for(let y=h.length-1;y>=0;y--){const S=h[y];if(_===S.name)return S}}(h,y.pipeRegistry),y.data[F]=S,S.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(F,S.onDestroy)):S=y.data[F];const z=S.factory||(S.factory=$s(S.type)),at=ot(C1);try{const yt=Ui(!1),qt=z();return Ui(yt),function s0(_,h,y,S){y>=_.data.length&&(_.data[y]=null,_.blueprint[y]=null),h[y]=S}(y,Qi(),F,qt),qt}finally{ot(at)}}function mx(_,h,y){const S=_+22,F=Qi(),z=wa(F,S);return F4(F,S)?tv(F,Fr(),h,z.transform,y,z):z.transform(y)}function _x(_,h,y,S){const F=_+22,z=Qi(),at=wa(z,F);return F4(z,F)?lx(z,Fr(),h,at.transform,y,S,at):at.transform(y,S)}function fx(_,h,y,S,F){const z=_+22,at=Qi(),yt=wa(at,z);return F4(at,z)?function k6(_,h,y,S,F,z,at,yt){const qt=h+y;return Wa(_,qt,F,z,at)?Go(_,qt+3,yt?S.call(yt,F,z,at):S(F,z,at)):E4(_,qt+3)}(at,Fr(),h,yt.transform,y,S,F,yt):yt.transform(y,S,F)}function O6(_,h,y,S,F,z){const at=_+22,yt=Qi(),qt=wa(yt,at);return F4(yt,at)?function ux(_,h,y,S,F,z,at,yt,qt){const ve=h+y;return Fa(_,ve,F,z,at,yt)?Go(_,ve+4,qt?S.call(qt,F,z,at,yt):S(F,z,at,yt)):E4(_,ve+4)}(yt,Fr(),h,qt.transform,y,S,F,z,qt):qt.transform(y,S,F,z)}function F4(_,h){return _[1].data[h].pure}function ev(_){return h=>{setTimeout(_,void 0,h)}}const X1=class r7 extends u.xQ{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,y,S){let F=h,z=y||(()=>null),at=S;if(h&&"object"==typeof h){const qt=h;F=qt.next?.bind(qt),z=qt.error?.bind(qt),at=qt.complete?.bind(qt)}this.__isAsync&&(z=ev(z),F&&(F=ev(F)),at&&(at=ev(at)));const yt=super.subscribe({next:F,error:z,complete:at});return h instanceof d.w&&h.add(yt),yt}};function s7(){return this._results[Yn()]()}class L6{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Yn(),S=L6.prototype;S[y]||(S[y]=s7)}get changes(){return this._changes||(this._changes=new X1)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,y){return this._results.reduce(h,y)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,y){const S=this;S.dirty=!1;const F=mc(h);(this._changesDetected=!function qc(_,h,y){if(_.length!==h.length)return!1;for(let S=0;S<_.length;S++){let F=_[S],z=h[S];if(y&&(F=y(F),z=y(z)),z!==F)return!1}return!0}(S._results,F,y))&&(S._results=F,S.length=F.length,S.last=F[this.length-1],S.first=F[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let N4=(()=>{class _{}return _.__NG_ELEMENT_ID__=c7,_})();const hx=N4,gx=class extends hx{constructor(h,y,S){super(),this._declarationLView=h,this._declarationTContainer=y,this.elementRef=S}createEmbeddedView(h,y){const S=this._declarationTContainer.tViews,F=zd(this._declarationLView,S,h,16,null,S.declTNode,null,null,null,null,y||null);F[17]=this._declarationLView[this._declarationTContainer.index];const at=this._declarationLView[19];return null!==at&&(F[19]=at.createEmbeddedView(S)),ah(S,F,h),new B_(F)}};function c7(){return I4(Qa(),Qi())}function I4(_,h){return 4&_.type?new gx(h,_,tr(_,h)):null}let E6=(()=>{class _{}return _.__NG_ELEMENT_ID__=l7,_})();function l7(){return iv(Qa(),Qi())}const vx=E6,xx=class extends vx{constructor(h,y,S){super(),this._lContainer=h,this._hostTNode=y,this._hostLView=S}get element(){return tr(this._hostTNode,this._hostLView)}get injector(){return new Wc(this._hostTNode,this._hostLView)}get parentInjector(){const h=Kr(this._hostTNode,this._hostLView);if(Xe(h)){const y=ei(h,this._hostLView),S=Tn(h);return new Wc(y[1].data[S+8],y)}return new Wc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const y=bx(this._lContainer);return null!==y&&y[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,y,S){let F,z;"number"==typeof S?F=S:null!=S&&(F=S.index,z=S.injector);const at=h.createEmbeddedView(y||{},z);return this.insert(at,F),at}createComponent(h,y,S,F,z){const at=h&&!function E1(_){return"function"==typeof _}(h);let yt;if(at)yt=y;else{const Un=y||{};yt=Un.index,S=Un.injector,F=Un.projectableNodes,z=Un.environmentInjector||Un.ngModuleRef}const qt=at?h:new z2(zt(h)),ve=S||this.parentInjector;if(!z&&null==qt.ngModule){const ri=(at?ve:this.parentInjector).get(V1,null);ri&&(z=ri)}const $e=qt.create(ve,F,void 0,z);return this.insert($e.hostView,yt),$e}insert(h,y){const S=h._lView,F=S[1];if(function ks(_){return Ur(_[3])}(S)){const $e=this.indexOf(h);if(-1!==$e)this.detach($e);else{const Un=S[3],ri=new xx(Un,Un[6],Un[3]);ri.detach(ri.indexOf(h))}}const z=this._adjustIndex(y),at=this._lContainer;!function y_(_,h,y,S){const F=10+S,z=y.length;S>0&&(y[F-1][4]=h),S0)S.push(at[yt/2]);else{const ve=z[yt+1],$e=h[-qt];for(let Un=10;Un<$e.length;Un++){const ri=$e[Un];ri[17]===ri[3]&&N6(ri[1],ri,ve,S)}if(null!==$e[9]){const Un=$e[9];for(let ri=0;ri{class _{constructor(y){this.appInits=y,this.resolve=V6,this.reject=V6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,F)=>{this.resolve=S,this.reject=F})}runInitializers(){if(this.initialized)return;const y=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{z.subscribe({complete:yt,error:qt})});y.push(at)}}Promise.all(y).then(()=>{S()}).catch(F=>{this.reject(F)}),0===y.length&&S(),this.initialized=!0}}return _.\u0275fac=function(y){return new(y||_)(nc(qx,8))},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Rx=new io("AppId",{providedIn:"root",factory:function Hx(){return`${B6()}${B6()}${B6()}`}});function B6(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yx=new io("Platform Initializer"),E7=new io("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),zx=new io("appBootstrapListener"),N7=new io("AnimationModuleType");let I7=(()=>{class _{log(y){console.log(y)}warn(y){console.warn(y)}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const G6=new io("LocaleId",{providedIn:"root",factory:()=>Lp(G6,oi.Optional|oi.SkipSelf)||function q7(){return typeof $localize<"u"&&$localize.locale||va}()}),R7=new io("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Y7{constructor(h,y){this.ngModuleFactory=h,this.componentFactories=y}}let Vx=(()=>{class _{compileModuleSync(y){return new S6(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const S=this.compileModuleSync(y),z=B1(Ei(y).declarations).reduce((at,yt)=>{const qt=zt(yt);return qt&&at.push(new z2(qt)),at},[]);return new Y7(S,z)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const V7=(()=>Promise.resolve(0))();function J6(_){typeof Zone>"u"?V7.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class dm{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X1(!1),this.onMicrotaskEmpty=new X1(!1),this.onStable=new X1(!1),this.onError=new X1(!1),typeof Zone>"u")throw new et(908,!1);Zone.assertZonePatched();const F=this;if(F._nesting=0,F._outer=F._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const z=Zone.AsyncStackTaggingZoneSpec;F._inner=F._inner.fork(new z("Angular"))}Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!S&&y,F.shouldCoalesceRunChangeDetection=S,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function Qx(){let _=qn.requestAnimationFrame,h=qn.cancelAnimationFrame;if(typeof Zone<"u"&&_&&h){const y=_[Zone.__symbol__("OriginalDelegate")];y&&(_=y);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function B7(_){const h=()=>{!function Q6(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(qn,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,yv(_),_.isCheckStableRunning=!0,Cv(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),yv(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,S,F,z,at,yt)=>{try{return Wx(_),y.invokeTask(F,z,at,yt)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===z.type||_.shouldCoalesceRunChangeDetection)&&h(),$x(_)}},onInvoke:(y,S,F,z,at,yt,qt)=>{try{return Wx(_),y.invoke(F,z,at,yt,qt)}finally{_.shouldCoalesceRunChangeDetection&&h(),$x(_)}},onHasTask:(y,S,F,z)=>{y.hasTask(F,z),S===F&&("microTask"==z.change?(_._hasPendingMicrotasks=z.microTask,yv(_),Cv(_)):"macroTask"==z.change&&(_.hasPendingMacrotasks=z.macroTask))},onHandleError:(y,S,F,z)=>(y.handleError(F,z),_.runOutsideAngular(()=>_.onError.emit(z)),!1)})}(F)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dm.isInAngularZone())throw new et(909,!1)}static assertNotInAngularZone(){if(dm.isInAngularZone())throw new et(909,!1)}run(h,y,S){return this._inner.run(h,y,S)}runTask(h,y,S,F){const z=this._inner,at=z.scheduleEventTask("NgZoneEvent: "+F,h,jx,V6,V6);try{return z.runTask(at,y,S)}finally{z.cancelTask(at)}}runGuarded(h,y,S){return this._inner.runGuarded(h,y,S)}runOutsideAngular(h){return this._outer.run(h)}}const jx={};function Cv(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function yv(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Wx(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function $x(_){_._nesting--,Cv(_)}class Tv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X1,this.onMicrotaskEmpty=new X1,this.onStable=new X1,this.onError=new X1}run(h,y,S){return h.apply(y,S)}runGuarded(h,y,S){return h.apply(y,S)}runOutsideAngular(h){return h()}runTask(h,y,S,F){return h.apply(y,S)}}const Kx=new io(""),Xx=new io("");let j6,tb=(()=>{class _{constructor(y,S,F){this._ngZone=y,this.registry=S,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,j6||(function G7(_){j6=_}(F),F.addToWindow(S)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{dm.assertNotInAngularZone(),J6(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())J6(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(y)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,S,F){let z=-1;S&&S>0&&(z=setTimeout(()=>{this._callbacks=this._callbacks.filter(at=>at.timeoutId!==z),y(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:y,timeoutId:z,updateCb:F})}whenStable(y,S,F){if(F&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,S,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,S,F){return[]}}return _.\u0275fac=function(y){return new(y||_)(nc(dm),nc(eb),nc(Xx))},_.\u0275prov=se({token:_,factory:_.\u0275fac}),_})(),eb=(()=>{class _{constructor(){this._applications=new Map}registerApplication(y,S){this._applications.set(y,S)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,S=!0){return j6?.findTestabilityInTree(this,y,S)??null}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Dh=null;const Av=new io("AllowMultipleToken"),Uv=new io("PlatformDestroyListeners");class nb{constructor(h,y){this.name=h,this.token=y}}function ob(_,h,y=[]){const S=`Platform: ${h}`,F=new io(S);return(z=[])=>{let at=$6();if(!at||at.injector.get(Av,!1)){const yt=[...y,...z,{provide:F,useValue:!0}];_?_(yt):function Q7(_){if(Dh&&!Dh.get(Av,!1))throw new et(400,!1);Dh=_;const h=_.get(K6);(function ib(_){const h=_.get(Yx,null);h&&h.forEach(y=>y())})(_)}(function ab(_=[],h){return mu.create({name:h,providers:[{provide:$p,useValue:"platform"},{provide:Uv,useValue:new Set([()=>Dh=null])},..._]})}(yt,S))}return function W7(_){const h=$6();if(!h)throw new et(401,!1);return h}()}}function $6(){return Dh?.get(K6)??null}let K6=(()=>{class _{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,S){const F=function rb(_,h){let y;return y="noop"===_?new Tv:("zone.js"===_?void 0:_)||new dm(h),y}(S?.ngZone,function X6(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(S)),z=[{provide:dm,useValue:F}];return F.run(()=>{const at=mu.create({providers:z,parent:this.injector,name:y.moduleType.name}),yt=y.create(at),qt=yt.injector.get(Cp,null);if(!qt)throw new et(402,!1);return F.runOutsideAngular(()=>{const ve=F.onError.subscribe({next:$e=>{qt.handleError($e)}});yt.onDestroy(()=>{R4(this._modules,yt),ve.unsubscribe()})}),function sb(_,h,y){try{const S=y();return o4(S)?S.catch(F=>{throw h.runOutsideAngular(()=>_.handleError(F)),F}):S}catch(S){throw h.runOutsideAngular(()=>_.handleError(S)),S}}(qt,F,()=>{const ve=yt.injector.get(q4);return ve.runInitializers(),ve.donePromise.then(()=>(function nl(_){je(_,"Expected localeId to be defined"),"string"==typeof _&&(Yu=_.toLowerCase().replace(/_/g,"-"))}(yt.injector.get(G6,va)||va),this._moduleDoBootstrap(yt),yt))})})}bootstrapModule(y,S=[]){const F=wv({},S);return function J7(_,h,y){const S=new S6(y);return Promise.resolve(S)}(0,0,y).then(z=>this.bootstrapModuleFactory(z,F))}_moduleDoBootstrap(y){const S=y.injector.get(t5);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(F=>S.bootstrap(F));else{if(!y.instance.ngDoBootstrap)throw new et(403,!1);y.instance.ngDoBootstrap(S)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new et(404,!1);this._modules.slice().forEach(S=>S.destroy()),this._destroyListeners.forEach(S=>S());const y=this._injector.get(Uv,null);y&&(y.forEach(S=>S()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(y){return new(y||_)(nc(mu))},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function wv(_,h){return Array.isArray(h)?h.reduce(wv,_):{..._,...h}}let t5=(()=>{class _{constructor(y,S,F){this._zone=y,this._injector=S,this._exceptionHandler=F,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const z=new v.y(yt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{yt.next(this._stable),yt.complete()})}),at=new v.y(yt=>{let qt;this._zone.runOutsideAngular(()=>{qt=this._zone.onStable.subscribe(()=>{dm.assertNotInAngularZone(),J6(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,yt.next(!0))})})});const ve=this._zone.onUnstable.subscribe(()=>{dm.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{yt.next(!1)}))});return()=>{qt.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,g.T)(z,at.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,S){const F=y instanceof C2;if(!this._injector.get(q4).done)throw!F&&kn(y),new et(405,false);let at;at=F?y:this._injector.get(Im).resolveComponentFactory(y),this.componentTypes.push(at.componentType);const yt=function W6(_){return _.isBoundToModule}(at)?void 0:this._injector.get(x0),ve=at.create(mu.NULL,[],S||at.selector,yt),$e=ve.location.nativeElement,Un=ve.injector.get(Kx,null);return Un?.registerApplication($e),ve.onDestroy(()=>{this.detachView(ve.hostView),R4(this.components,ve),Un?.unregisterApplication($e)}),this._loadComponent(ve),ve}tick(){if(this._runningTick)throw new et(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const S=y;this._views.push(S),S.attachToAppRef(this)}detachView(y){const S=y;R4(this._views,S),S.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(zx,[]).concat(this._bootstrapListeners).forEach(F=>F(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>R4(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new et(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(y){return new(y||_)(nc(dm),nc(V1),nc(Cp))},_.\u0275prov=se({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function R4(_,h){const y=_.indexOf(h);y>-1&&_.splice(y,1)}let lb=!0;function X7(){lb=!1}let pb=(()=>{class _{}return _.__NG_ELEMENT_ID__=ey,_})();function ey(_){return function mb(_,h,y){if(Al(_)&&!y){const S=is(_.index,h);return new B_(S,S)}return 47&_.type?new B_(h[j],h):null}(Qa(),Qi(),16==(16&_))}class hb{constructor(){}supports(h){return fi(h)}create(h){return new sy(h)}}const ry=(_,h)=>h;class sy{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||ry}forEachItem(h){let y;for(y=this._itHead;null!==y;y=y._next)h(y)}forEachOperation(h){let y=this._itHead,S=this._removalsHead,F=0,z=null;for(;y||S;){const at=!S||y&&y.currentIndex{at=this._trackByFn(F,yt),null!==y&&Object.is(y.trackById,at)?(S&&(y=this._verifyReinsertion(y,yt,at,F)),Object.is(y.item,yt)||this._addIdentityChange(y,yt)):(y=this._mismatch(y,yt,at,F),S=!0),y=y._next,F++}),this.length=F;return this._truncate(y),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,y,S,F){let z;return null===h?z=this._itTail:(z=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,y)||this._addIdentityChange(h,y),this._reinsertAfter(h,z,F)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,F))?(Object.is(h.item,y)||this._addIdentityChange(h,y),this._moveAfter(h,z,F)):h=this._addAfter(new cy(y,S),z,F),h}_verifyReinsertion(h,y,S,F){let z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==z?h=this._reinsertAfter(z,h._prev,F):h.currentIndex!=F&&(h.currentIndex=F,this._addToMoves(h,F)),h}_truncate(h){for(;null!==h;){const y=h._next;this._addToRemovals(this._unlink(h)),h=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(h,y,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const F=h._prevRemoved,z=h._nextRemoved;return null===F?this._removalsHead=z:F._nextRemoved=z,null===z?this._removalsTail=F:z._prevRemoved=F,this._insertAfter(h,y,S),this._addToMoves(h,S),h}_moveAfter(h,y,S){return this._unlink(h),this._insertAfter(h,y,S),this._addToMoves(h,S),h}_addAfter(h,y,S){return this._insertAfter(h,y,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,y,S){const F=null===y?this._itHead:y._next;return h._next=F,h._prev=y,null===F?this._itTail=h:F._prev=h,null===y?this._itHead=h:y._next=h,null===this._linkedRecords&&(this._linkedRecords=new Sv),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const y=h._prev,S=h._next;return null===y?this._itHead=S:y._next=S,null===S?this._itTail=y:S._prev=y,h}_addToMoves(h,y){return h.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sv),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,y){return h.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class cy{constructor(h,y){this.item=h,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ly{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,y){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===y||y<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const y=h._prevDup,S=h._nextDup;return null===y?this._head=S:y._nextDup=S,null===S?this._tail=y:S._prevDup=y,null===this._head}}class Sv{constructor(){this.map=new Map}put(h){const y=h.trackById;let S=this.map.get(y);S||(S=new ly,this.map.set(y,S)),S.add(h)}get(h,y){const F=this.map.get(h);return F?F.get(h,y):null}remove(h){const y=h.trackById;return this.map.get(y).remove(h)&&this.map.delete(y),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gb(_,h,y){const S=_.previousIndex;if(null===S)return S;let F=0;return y&&S{if(y&&y.key===F)this._maybeAddToChanges(y,S),this._appendAfter=y,y=y._next;else{const z=this._getOrCreateRecordForKey(F,S);y=this._insertBeforeOrAppend(y,z)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let S=y;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,y){if(h){const S=h._prev;return y._next=h,y._prev=S,h._prev=y,S&&(S._next=y),h===this._mapHead&&(this._mapHead=y),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(h,y){if(this._records.has(h)){const F=this._records.get(h);this._maybeAddToChanges(F,y);const z=F._prev,at=F._next;return z&&(z._next=at),at&&(at._prev=z),F._next=null,F._prev=null,F}const S=new dy(h);return this._records.set(h,S),S.currentValue=y,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,y){Object.is(y,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=y,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,y){h instanceof Map?h.forEach(y):Object.keys(h).forEach(S=>y(h[S],S))}}class dy{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kv(){return new Ov([new hb])}let Ov=(()=>{class _{constructor(y){this.factories=y}static create(y,S){if(null!=S){const F=S.factories.slice();y=y.concat(F)}return new _(y)}static extend(y){return{provide:_,useFactory:S=>_.create(y,S||kv()),deps:[[_,new Ep,new ic]]}}find(y){const S=this.factories.find(F=>F.supports(y));if(null!=S)return S;throw new et(901,!1)}}return _.\u0275prov=se({token:_,providedIn:"root",factory:kv}),_})();function xb(){return new H4([new vb])}let H4=(()=>{class _{constructor(y){this.factories=y}static create(y,S){if(S){const F=S.factories.slice();y=y.concat(F)}return new _(y)}static extend(y){return{provide:_,useFactory:S=>_.create(y,S||xb()),deps:[[_,new Ep,new ic]]}}find(y){const S=this.factories.find(F=>F.supports(y));if(S)return S;throw new et(901,!1)}}return _.\u0275prov=se({token:_,providedIn:"root",factory:xb}),_})();const bb=ob(null,"core",[]);let _y=(()=>{class _{constructor(y){}}return _.\u0275fac=function(y){return new(y||_)(nc(t5))},_.\u0275mod=gn({type:_}),_.\u0275inj=ae({}),_})();function fy(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},85863:(tt,W,f)=>{"use strict";function u(O){for(let L in O){let N=O[L]??"";switch(L){case"display":O.display="flex"===N?["-webkit-flex","flex"]:"inline-flex"===N?["-webkit-inline-flex","inline-flex"]:N;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":O["-webkit-"+L]=N;break;case"flex-direction":O["-webkit-flex-direction"]=N,O["flex-direction"]=N;break;case"order":O.order=O["-webkit-"+L]=isNaN(+N)?"0":N}}return O}f.d(W,{Ar:()=>g,GK:()=>u,iQ:()=>v,kt:()=>P,tj:()=>T});const d="inline",v=["row","column","row-reverse","column-reverse"];function g(O){let[L,N,B]=t(O);return function w(O,L=null,N=!1){return{display:N?"inline-flex":"flex","box-sizing":"border-box","flex-direction":O,"flex-wrap":L||null}}(L,N,B)}function t(O){O=O?.toLowerCase()??"";let[L,N,B]=O.split(" ");return v.find(K=>K===L)||(L=v[0]),N===d&&(N=B!==d?B:"",B=d),[L,U(N),!!B]}function T(O){let[L]=t(O);return L.indexOf("row")>-1}function U(O){if(O)switch(O.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":O="wrap-reverse";break;case"no":case"none":case"nowrap":O="nowrap";break;default:O="wrap"}return O}function P(O,...L){if(null==O)throw TypeError("Cannot convert undefined or null to object");for(let N of L)if(null!=N)for(let B in N)N.hasOwnProperty(B)&&(O[B]=N[B]);return O}},32233:(tt,W,f)=>{"use strict";f.d(W,{Bs:()=>Dt,FL:()=>hi,IR:()=>B,Ot:()=>mi,QI:()=>Rt,RK:()=>Gt,WU:()=>lt,g5:()=>ct,iR:()=>ot,wY:()=>Ct,yB:()=>We});var u=f(94650),d=f(36895),v=f(591),g=f(56498),t=f(36787),T=f(8929),U=f(85863),w=f(92198),P=f(22868);const L={provide:u.tb,useFactory:function O(zn,Bn){return()=>{if((0,d.NF)(Bn)){const Qe=Array.from(zn.querySelectorAll(`[class*=${N}]`)),xn=/\bflex-layout-.+?\b/g;Qe.forEach(Ve=>{Ve.classList.contains(`${N}ssr`)&&Ve.parentNode?Ve.parentNode.removeChild(Ve):Ve.className.replace(xn,"")})}}},deps:[d.K0,u.Lbi],multi:!0},N="flex-layout-";let B=(()=>{class zn{}return zn.\u0275fac=function(Qe){return new(Qe||zn)},zn.\u0275mod=u.oAB({type:zn}),zn.\u0275inj=u.cJS({providers:[L]}),zn})();class K{constructor(Bn=!1,Qe="all",xn="",Ve="",Ne=0){this.matches=Bn,this.mediaQuery=Qe,this.mqAlias=xn,this.suffix=Ve,this.priority=Ne,this.property=""}clone(){return new K(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let et=(()=>{class zn{constructor(){this.stylesheet=new Map}addStyleToElement(Qe,xn,Ve){const Ne=this.stylesheet.get(Qe);Ne?Ne.set(xn,Ve):this.stylesheet.set(Qe,new Map([[xn,Ve]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Qe,xn){const Ve=this.stylesheet.get(Qe);let Ne="";if(Ve){const tn=Ve.get(xn);("number"==typeof tn||"string"==typeof tn)&&(Ne=tn+"")}return Ne}}return zn.\u0275fac=function(Qe){return new(Qe||zn)},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();const ct={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},lt=new u.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ct}),Ct=new u.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Dt=new u.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Zt(zn,Bn){return zn=zn?.clone()??new K,Bn&&(zn.mqAlias=Bn.alias,zn.mediaQuery=Bn.mediaQuery,zn.suffix=Bn.suffix,zn.priority=Bn.priority),zn}class Rt{constructor(){this.shouldCache=!0}sideEffect(Bn,Qe,xn){}}let Gt=(()=>{class zn{constructor(Qe,xn,Ve,Ne){this._serverStylesheet=Qe,this._serverModuleLoaded=xn,this._platformId=Ve,this.layoutConfig=Ne}applyStyleToElement(Qe,xn,Ve=null){let Ne={};"string"==typeof xn&&(Ne[xn]=Ve,xn=Ne),Ne=this.layoutConfig.disableVendorPrefixes?xn:(0,U.GK)(xn),this._applyMultiValueStyleToElement(Ne,Qe)}applyStyleToElements(Qe,xn=[]){const Ve=this.layoutConfig.disableVendorPrefixes?Qe:(0,U.GK)(Qe);xn.forEach(Ne=>{this._applyMultiValueStyleToElement(Ve,Ne)})}getFlowDirection(Qe){const xn="flex-direction";let Ve=this.lookupStyle(Qe,xn);return[Ve||"row",this.lookupInlineStyle(Qe,xn)||(0,d.PM)(this._platformId)&&this._serverModuleLoaded?Ve:""]}hasWrap(Qe){return"wrap"===this.lookupStyle(Qe,"flex-wrap")}lookupAttributeValue(Qe,xn){return Qe.getAttribute(xn)??""}lookupInlineStyle(Qe,xn){return(0,d.NF)(this._platformId)?Qe.style.getPropertyValue(xn):function Tt(zn,Bn){return mt(zn)[Bn]??""}(Qe,xn)}lookupStyle(Qe,xn,Ve=!1){let Ne="";return Qe&&((Ne=this.lookupInlineStyle(Qe,xn))||((0,d.NF)(this._platformId)?Ve||(Ne=getComputedStyle(Qe).getPropertyValue(xn)):this._serverModuleLoaded&&(Ne=this._serverStylesheet.getStyleForElement(Qe,xn)))),Ne?Ne.trim():""}_applyMultiValueStyleToElement(Qe,xn){Object.keys(Qe).sort().forEach(Ve=>{const Ne=Qe[Ve],tn=Array.isArray(Ne)?Ne:[Ne];tn.sort();for(let ce of tn)ce=ce?ce+"":"",(0,d.NF)(this._platformId)||!this._serverModuleLoaded?(0,d.NF)(this._platformId)?xn.style.setProperty(Ve,ce):Ut(xn,Ve,ce):this._serverStylesheet.addStyleToElement(xn,Ve,ce)})}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(et),u.LFG(Ct),u.LFG(u.Lbi),u.LFG(lt))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();function Ut(zn,Bn,Qe){Bn=Bn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const xn=mt(zn);xn[Bn]=Qe??"",function bt(zn,Bn){let Qe="";for(const xn in Bn)Bn[xn]&&(Qe+=`${xn}:${Bn[xn]};`);zn.setAttribute("style",Qe)}(zn,xn)}function mt(zn){const Bn={},Qe=zn.getAttribute("style");if(Qe){const xn=Qe.split(/;+/g);for(let Ve=0;Ve0){const tn=Ne.indexOf(":");if(-1===tn)throw new Error(`Invalid CSS style: ${Ne}`);Bn[Ne.substr(0,tn).trim()]=Ne.substr(tn+1).trim()}}}return Bn}function Lt(zn,Bn){return(Bn&&Bn.priority||0)-(zn&&zn.priority||0)}function Bt(zn,Bn){return(zn.priority||0)-(Bn.priority||0)}let kt=(()=>{class zn{constructor(Qe,xn,Ve){this._zone=Qe,this._platformId=xn,this._document=Ve,this.source=new v.X(new K(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Qe=[];return this.registry.forEach((xn,Ve)=>{xn.matches&&Qe.push(Ve)}),Qe}isActive(Qe){return this.registry.get(Qe)?.matches??this.registerQuery(Qe).some(Ve=>Ve.matches)}observe(Qe,xn=!1){if(Qe&&Qe.length){const Ve=this._observable$.pipe((0,w.h)(tn=>!xn||Qe.indexOf(tn.mediaQuery)>-1)),Ne=new g.y(tn=>{const ce=this.registerQuery(Qe);if(ce.length){const Be=ce.pop();ce.forEach(oe=>{tn.next(oe)}),this.source.next(Be)}tn.complete()});return(0,t.T)(Ne,Ve)}return this._observable$}registerQuery(Qe){const xn=Array.isArray(Qe)?Qe:[Qe],Ve=[];return function Vt(zn,Bn){const Qe=zn.filter(xn=>!le[xn]);if(Qe.length>0){const xn=Qe.join(", ");try{const Ve=Bn.createElement("style");Ve.setAttribute("type","text/css"),Ve.styleSheet||Ve.appendChild(Bn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${xn} {.fx-query-test{ }}\n`)),Bn.head.appendChild(Ve),Qe.forEach(Ne=>le[Ne]=Ve)}catch(Ve){console.error(Ve)}}}(xn,this._document),xn.forEach(Ne=>{const tn=Be=>{this._zone.run(()=>this.source.next(new K(Be.matches,Ne)))};let ce=this.registry.get(Ne);ce||(ce=this.buildMQL(Ne),ce.addListener(tn),this.pendingRemoveListenerFns.push(()=>ce.removeListener(tn)),this.registry.set(Ne,ce)),ce.matches&&Ve.push(new K(!0,Ne))}),Ve}ngOnDestroy(){let Qe;for(;Qe=this.pendingRemoveListenerFns.pop();)Qe()}buildMQL(Qe){return function ge(zn,Bn){return Bn&&window.matchMedia("all").addListener?window.matchMedia(zn):function be(zn){const Bn=new EventTarget;return Bn.matches="all"===zn||""===zn,Bn.media=zn,Bn.addListener=()=>{},Bn.removeListener=()=>{},Bn.addEventListener=()=>{},Bn.dispatchEvent=()=>!1,Bn.onchange=null,Bn}(zn)}(Qe,(0,d.NF)(this._platformId))}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(u.R0b),u.LFG(u.Lbi),u.LFG(d.K0))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();const le={},Fe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],qe="(orientation: portrait) and (max-width: 599.98px)",je="(orientation: landscape) and (max-width: 959.98px)",Qt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Ue="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ie="(orientation: portrait) and (min-width: 840px)",Wt="(orientation: landscape) and (min-width: 1280px)",se={HANDSET:`${qe}, ${je}`,TABLET:`${Qt} , ${Ue}`,WEB:`${ie}, ${Wt} `,HANDSET_PORTRAIT:`${qe}`,TABLET_PORTRAIT:`${Qt} `,WEB_PORTRAIT:`${ie}`,HANDSET_LANDSCAPE:`${je}`,TABLET_LANDSCAPE:`${Ue}`,WEB_LANDSCAPE:`${Wt}`},Xt=[{alias:"handset",priority:2e3,mediaQuery:se.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:se.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:se.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:se.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:se.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:se.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:se.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:se.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:se.WEB_PORTRAIT,overlapping:!0}],ae=/(\.|-|_)/g;function De(zn){let Bn=zn.length>0?zn.charAt(0):"",Qe=zn.length>1?zn.slice(1):"";return Bn.toUpperCase()+Qe}const bn=new u.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const zn=(0,u.f3M)(Dt),Bn=(0,u.f3M)(lt),Qe=[].concat.apply([],(zn||[]).map(Ve=>Array.isArray(Ve)?Ve:[Ve]));return function Ce(zn,Bn=[]){const Qe={};return zn.forEach(xn=>{Qe[xn.alias]=xn}),Bn.forEach(xn=>{Qe[xn.alias]?(0,U.kt)(Qe[xn.alias],xn):Qe[xn.alias]=xn}),function hn(zn){return zn.forEach(Bn=>{Bn.suffix||(Bn.suffix=function nn(zn){return zn.replace(ae,"|").split("|").map(De).join("")}(Bn.alias),Bn.overlapping=!!Bn.overlapping)}),zn}(Object.keys(Qe).map(xn=>Qe[xn]))}((Bn.disableDefaultBps?[]:Fe).concat(Bn.addOrientationBps?Xt:[]),Qe)}});let Oe=(()=>{class zn{constructor(Qe){this.findByMap=new Map,this.items=[...Qe].sort(Bt)}findByAlias(Qe){return Qe?this.findWithPredicate(Qe,xn=>xn.alias===Qe):null}findByQuery(Qe){return this.findWithPredicate(Qe,xn=>xn.mediaQuery===Qe)}get overlappings(){return this.items.filter(Qe=>Qe.overlapping)}get aliases(){return this.items.map(Qe=>Qe.alias)}get suffixes(){return this.items.map(Qe=>Qe?.suffix??"")}findWithPredicate(Qe,xn){let Ve=this.findByMap.get(Qe);return Ve||(Ve=this.items.find(xn)??null,this.findByMap.set(Qe,Ve)),Ve??null}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(bn))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();const dn="print",Pn={alias:dn,mediaQuery:dn,priority:1e3};let ii=(()=>{class zn{constructor(Qe,xn,Ve){this.breakpoints=Qe,this.layoutConfig=xn,this._document=Ve,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new _i,this.deactivations=[]}withPrintQuery(Qe){return[...Qe,dn]}isPrintEvent(Qe){return Qe.mediaQuery.startsWith(dn)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Qe=>this.breakpoints.findByAlias(Qe)).filter(Qe=>null!==Qe)}getEventBreakpoints({mediaQuery:Qe}){const xn=this.breakpoints.findByQuery(Qe);return(xn?[...this.printBreakPoints,xn]:this.printBreakPoints).sort(Lt)}updateEvent(Qe){let xn=this.breakpoints.findByQuery(Qe.mediaQuery);return this.isPrintEvent(Qe)&&(xn=this.getEventBreakpoints(Qe)[0],Qe.mediaQuery=xn?.mediaQuery??""),Zt(Qe,xn)}registerBeforeAfterPrintHooks(Qe){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const xn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Qe,this.getEventBreakpoints(new K(!0,dn))),Qe.updateStyles())},Ve=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Qe),Qe.updateStyles())};this._document.defaultView.addEventListener("beforeprint",xn),this._document.defaultView.addEventListener("afterprint",Ve),this.beforePrintEventListeners.push(xn),this.afterPrintEventListeners.push(Ve)}interceptEvents(Qe){return xn=>{this.isPrintEvent(xn)?xn.matches&&!this.isPrinting?(this.startPrinting(Qe,this.getEventBreakpoints(xn)),Qe.updateStyles()):!xn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Qe),Qe.updateStyles()):this.collectActivations(Qe,xn)}}blockPropagation(){return Qe=>!(this.isPrinting||this.isPrintEvent(Qe))}startPrinting(Qe,xn){this.isPrinting=!0,this.formerActivations=Qe.activatedBreakpoints,Qe.activatedBreakpoints=this.queue.addPrintBreakpoints(xn)}stopPrinting(Qe){Qe.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Qe,xn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!xn.matches){const Ve=this.breakpoints.findByQuery(xn.mediaQuery);if(Ve){const Ne=this.formerActivations&&this.formerActivations.includes(Ve),tn=!this.formerActivations&&Qe.activatedBreakpoints.includes(Ve);(Ne||tn)&&(this.deactivations.push(Ve),this.deactivations.sort(Lt))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Qe=>this._document.defaultView.removeEventListener("beforeprint",Qe)),this.afterPrintEventListeners.forEach(Qe=>this._document.defaultView.removeEventListener("afterprint",Qe)))}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(Oe),u.LFG(lt),u.LFG(d.K0))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();class _i{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Bn){return Bn.push(Pn),Bn.sort(Lt),Bn.forEach(Qe=>this.addBreakpoint(Qe)),this.printBreakpoints}addBreakpoint(Bn){Bn&&void 0===this.printBreakpoints.find(xn=>xn.mediaQuery===Bn.mediaQuery)&&(this.printBreakpoints=function oi(zn){return zn?.mediaQuery.startsWith(dn)??!1}(Bn)?[Bn,...this.printBreakpoints]:[...this.printBreakpoints,Bn])}clear(){this.printBreakpoints=[]}}let We=(()=>{class zn{constructor(Qe,xn,Ve){this.matchMedia=Qe,this.breakpoints=xn,this.hook=Ve,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new T.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Qe){this._activatedBreakpoints=[...Qe]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Qe){this._useFallbacks=Qe}onMediaChange(Qe){const xn=this.findByQuery(Qe.mediaQuery);if(xn){Qe=Zt(Qe,xn);const Ve=this.activatedBreakpoints.indexOf(xn);Qe.matches&&-1===Ve?(this._activatedBreakpoints.push(xn),this._activatedBreakpoints.sort(Lt),this.updateStyles()):!Qe.matches&&-1!==Ve&&(this._activatedBreakpoints.splice(Ve,1),this._activatedBreakpoints.sort(Lt),this.updateStyles())}}init(Qe,xn,Ve,Ne,tn=[]){ee(this.updateMap,Qe,xn,Ve),ee(this.clearMap,Qe,xn,Ne),this.buildElementKeyMap(Qe,xn),this.watchExtraTriggers(Qe,xn,tn)}getValue(Qe,xn,Ve){const Ne=this.elementMap.get(Qe);if(Ne){const tn=void 0!==Ve?Ne.get(Ve):this.getActivatedValues(Ne,xn);if(tn)return tn.get(xn)}}hasValue(Qe,xn){const Ve=this.elementMap.get(Qe);if(Ve){const Ne=this.getActivatedValues(Ve,xn);if(Ne)return void 0!==Ne.get(xn)||!1}return!1}setValue(Qe,xn,Ve,Ne){let tn=this.elementMap.get(Qe);if(tn){const Be=(tn.get(Ne)??new Map).set(xn,Ve);tn.set(Ne,Be),this.elementMap.set(Qe,tn)}else tn=(new Map).set(Ne,(new Map).set(xn,Ve)),this.elementMap.set(Qe,tn);const ce=this.getValue(Qe,xn);void 0!==ce&&this.updateElement(Qe,xn,ce)}trackValue(Qe,xn){return this.subject.asObservable().pipe((0,w.h)(Ve=>Ve.element===Qe&&Ve.key===xn))}updateStyles(){this.elementMap.forEach((Qe,xn)=>{const Ve=new Set(this.elementKeyMap.get(xn));let Ne=this.getActivatedValues(Qe);Ne&&Ne.forEach((tn,ce)=>{this.updateElement(xn,ce,tn),Ve.delete(ce)}),Ve.forEach(tn=>{if(Ne=this.getActivatedValues(Qe,tn),Ne){const ce=Ne.get(tn);this.updateElement(xn,tn,ce)}else this.clearElement(xn,tn)})})}clearElement(Qe,xn){const Ve=this.clearMap.get(Qe);if(Ve){const Ne=Ve.get(xn);Ne&&(Ne(),this.subject.next({element:Qe,key:xn,value:""}))}}updateElement(Qe,xn,Ve){const Ne=this.updateMap.get(Qe);if(Ne){const tn=Ne.get(xn);tn&&(tn(Ve),this.subject.next({element:Qe,key:xn,value:Ve}))}}releaseElement(Qe){const xn=this.watcherMap.get(Qe);xn&&(xn.forEach(Ne=>Ne.unsubscribe()),this.watcherMap.delete(Qe));const Ve=this.elementMap.get(Qe);Ve&&(Ve.forEach((Ne,tn)=>Ve.delete(tn)),this.elementMap.delete(Qe))}triggerUpdate(Qe,xn){const Ve=this.elementMap.get(Qe);if(Ve){const Ne=this.getActivatedValues(Ve,xn);Ne&&(xn?this.updateElement(Qe,xn,Ne.get(xn)):Ne.forEach((tn,ce)=>this.updateElement(Qe,ce,tn)))}}buildElementKeyMap(Qe,xn){let Ve=this.elementKeyMap.get(Qe);Ve||(Ve=new Set,this.elementKeyMap.set(Qe,Ve)),Ve.add(xn)}watchExtraTriggers(Qe,xn,Ve){if(Ve&&Ve.length){let Ne=this.watcherMap.get(Qe);if(Ne||(Ne=new Map,this.watcherMap.set(Qe,Ne)),!Ne.get(xn)){const ce=(0,t.T)(...Ve).subscribe(()=>{const Be=this.getValue(Qe,xn);this.updateElement(Qe,xn,Be)});Ne.set(xn,ce)}}}findByQuery(Qe){return this.breakpoints.findByQuery(Qe)}getActivatedValues(Qe,xn){for(let Ne=0;Nexn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Qe)).pipe((0,P.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.LFG(kt),u.LFG(Oe),u.LFG(ii))},zn.\u0275prov=u.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"}),zn})();function ee(zn,Bn,Qe,xn){if(void 0!==xn){const Ve=zn.get(Bn)??new Map;Ve.set(Qe,xn),zn.set(Bn,Ve)}}let ot=(()=>{class zn{constructor(Qe,xn,Ve,Ne){this.elementRef=Qe,this.styleBuilder=xn,this.styler=Ve,this.marshal=Ne,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new T.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(Qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Qe,this.marshal.activatedAlias)}ngOnChanges(Qe){Object.keys(Qe).forEach(xn=>{if(-1!==this.inputs.indexOf(xn)){const Ve=xn.split(".").slice(1).join(".");this.setValue(Qe[xn].currentValue,Ve)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Qe=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Qe)}addStyles(Qe,xn){const Ve=this.styleBuilder,Ne=Ve.shouldCache;let tn=this.styleCache.get(Qe);(!tn||!Ne)&&(tn=Ve.buildStyles(Qe,xn),Ne&&this.styleCache.set(Qe,tn)),this.mru={...tn},this.applyStyleToElement(tn),Ve.sideEffect(Qe,tn,xn)}clearStyles(){Object.keys(this.mru).forEach(Qe=>{this.mru[Qe]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Qe,xn=!1){if(Qe){const[Ve,Ne]=this.styler.getFlowDirection(Qe);if(!Ne&&xn){const tn=(0,U.Ar)(Ve);this.styler.applyStyleToElements(tn,[Qe])}return Ve.trim()}return"row"}hasWrap(Qe){return this.styler.hasWrap(Qe)}applyStyleToElement(Qe,xn,Ve=this.nativeElement){this.styler.applyStyleToElement(Ve,Qe,xn)}setValue(Qe,xn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Qe,xn)}updateWithValue(Qe){this.currentValue!==Qe&&(this.addStyles(Qe),this.currentValue=Qe)}}return zn.\u0275fac=function(Qe){return new(Qe||zn)(u.Y36(u.SBq),u.Y36(Rt),u.Y36(Gt),u.Y36(We))},zn.\u0275dir=u.lG2({type:zn,features:[u.TTD]}),zn})();function mi(zn,Bn="1",Qe="1"){let xn=[Bn,Qe,zn],Ve=zn.indexOf("calc");if(Ve>0){xn[2]=Di(zn.substring(Ve).trim());let Ne=zn.substr(0,Ve).trim().split(" ");2==Ne.length&&(xn[0]=Ne[0],xn[1]=Ne[1])}else if(0==Ve)xn[2]=Di(zn.trim());else{let Ne=zn.split(" ");xn=3===Ne.length?Ne:[Bn,Qe,zn]}return xn}function Di(zn){return zn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(zn,Bn){if(void 0===Bn)return zn;const Qe=xn=>{const Ve=+xn.slice(0,-"x".length);return zn.endsWith("x")&&!isNaN(Ve)?`${Ve*Bn.value}${Bn.unit}`:zn};return zn.includes(" ")?zn.split(" ").map(Qe).join(" "):Qe(zn)}EventTarget},55829:(tt,W,f)=>{"use strict";f.d(W,{Zl:()=>ge,aT:()=>je,b8:()=>Gt,oO:()=>ct});var u=f(94650),d=f(32233),v=f(36895),g=f(21281),t=f(7625),T=f(11481);let B=(()=>{class Qt extends d.iR{constructor(ie,Wt,se,Xt,ae,De,nn){super(ie,null,Wt,se),this.ngClassInstance=nn,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(Xt,ae,ie,De)),this.init(),this.setValue("","")}set klass(ie){this.ngClassInstance.klass=ie,this.setValue(ie,"")}updateWithValue(ie){this.ngClassInstance.ngClass=ie,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(u.Y36(u.SBq),u.Y36(d.RK),u.Y36(d.yB),u.Y36(u.ZZ4),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(v.mk,10))},Qt.\u0275dir=u.lG2({type:Qt,inputs:{klass:["class","klass"]},features:[u.qOj]}),Qt})();const K=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ct=(()=>{class Qt extends B{constructor(){super(...arguments),this.inputs=K}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275dir=u.lG2({type:Qt,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[u.qOj]}),Qt})(),lt=(()=>{class Qt extends d.QI{buildStyles(ie,Wt){return{display:"true"===ie?Wt.display||(Wt.isServer?"initial":""):"none"}}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275prov=u.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"}),Qt})(),Ct=(()=>{class Qt extends d.iR{constructor(ie,Wt,se,Xt,ae,De,nn){super(ie,Wt,se,Xt),this.layoutConfig=ae,this.platformId=De,this.serverModuleLoaded=nn,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ie=Array.from(this.nativeElement.children);for(let se=0;se{if(-1!==this.inputs.indexOf(Wt)){const se=Wt.split("."),Xt=se.slice(1).join("."),ae=ie[Wt].currentValue;let De=""===ae||0!==ae&&(0,g.Ig)(ae);"fxHide"===se[0]&&(De=!De),this.setValue(De,Xt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ie=>{this.marshal.trackValue(this.nativeElement,ie).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(ie=!0){if(""===ie)return;const Wt=(0,v.PM)(this.platformId);this.addStyles(ie?"true":"false",{display:this.display,isServer:Wt}),Wt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(u.Y36(u.SBq),u.Y36(lt),u.Y36(d.RK),u.Y36(d.yB),u.Y36(d.WU),u.Y36(u.Lbi),u.Y36(d.wY))},Qt.\u0275dir=u.lG2({type:Qt,features:[u.qOj,u.TTD]}),Qt})();const Dt=new WeakMap,Zt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Gt=(()=>{class Qt extends Ct{constructor(){super(...arguments),this.inputs=Zt}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275dir=u.lG2({type:Qt,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[u.qOj]}),Qt})();class Tt{constructor(Ue,ie,Wt=!0){this.key=Ue,this.value=ie,this.key=Wt?Ue.replace(/['"]/g,"").trim():Ue.trim(),this.value=Wt?ie.replace(/['"]/g,"").trim():ie.trim(),this.value=this.value.replace(/;/,"")}}function Ut(Qt){let Ue=typeof Qt;return"object"===Ue?Qt.constructor===Array?"array":Qt.constructor===Set?"set":"object":Ue}function Bt(Qt){const[Ue,...ie]=Qt.split(":");return new Tt(Ue,ie.join(":"))}function kt(Qt,Ue){return Ue.key&&(Qt[Ue.key]=Ue.value),Qt}let le=(()=>{class Qt extends d.iR{constructor(ie,Wt,se,Xt,ae,De,nn,hn,Ce){super(ie,null,Wt,se),this.sanitizer=Xt,this.ngStyleInstance=nn,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(ie,ae,De)),this.init();const bn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(bn),this.isServer=hn&&(0,v.PM)(Ce)}updateWithValue(ie){const Wt=this.buildStyleMap(ie);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Wt},this.isServer&&this.applyStyleToElement(Wt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ie){const Wt=se=>this.sanitizer.sanitize(u.q3G.STYLE,se)??"";if(ie)switch(Ut(ie)){case"string":return Fe(function bt(Qt,Ue=";"){return String(Qt).trim().split(Ue).map(ie=>ie.trim()).filter(ie=>""!==ie)}(ie),Wt);case"array":return Fe(ie,Wt);default:return function Lt(Qt,Ue){let ie=[];return"set"===Ut(Qt)?Qt.forEach(Wt=>ie.push(Wt)):Object.keys(Qt).forEach(Wt=>{ie.push(`${Wt}:${Qt[Wt]}`)}),function mt(Qt,Ue){return Qt.map(Bt).filter(Wt=>!!Wt).map(Wt=>(Ue&&(Wt.value=Ue(Wt.value)),Wt)).reduce(kt,{})}(ie,Ue)}(ie,Wt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Qt.\u0275fac=function(ie){return new(ie||Qt)(u.Y36(u.SBq),u.Y36(d.RK),u.Y36(d.yB),u.Y36(T.H7),u.Y36(u.aQg),u.Y36(u.Qsj),u.Y36(v.PC,10),u.Y36(d.wY),u.Y36(u.Lbi))},Qt.\u0275dir=u.lG2({type:Qt,features:[u.qOj]}),Qt})();const Vt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let ge=(()=>{class Qt extends le{constructor(){super(...arguments),this.inputs=Vt}}return Qt.\u0275fac=function(){let Ue;return function(Wt){return(Ue||(Ue=u.n5z(Qt)))(Wt||Qt)}}(),Qt.\u0275dir=u.lG2({type:Qt,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[u.qOj]}),Qt})();function Fe(Qt,Ue){return Qt.map(Bt).filter(Wt=>!!Wt).map(Wt=>(Ue&&(Wt.value=Ue(Wt.value)),Wt)).reduce(kt,{})}let je=(()=>{class Qt{}return Qt.\u0275fac=function(ie){return new(ie||Qt)},Qt.\u0275mod=u.oAB({type:Qt}),Qt.\u0275inj=u.cJS({imports:[d.IR]}),Qt})()},1576:(tt,W,f)=>{"use strict";f.d(W,{SQ:()=>Ct,Wh:()=>mi,XD:()=>ot,ae:()=>tn,s9:()=>Ht,xw:()=>L,yH:()=>be});var u=f(94650),d=f(40445),v=f(32233),g=f(85863),t=f(8929),T=f(7625);let U=(()=>{class ce extends v.QI{buildStyles(oe,{display:rn}){const gn=(0,g.Ar)(oe);return{...gn,display:"none"===rn?rn:gn.display}}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let O=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn,xe){super(oe,gn,rn,cn),this._config=xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(oe){const gn=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=N.get(gn)??new Map,N.set(gn,this.styleCache),this.currentValue!==oe&&(this.addStyles(oe,{display:gn}),this.currentValue=oe)}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(U),u.Y36(v.yB),u.Y36(v.WU))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})(),L=(()=>{class ce extends O{constructor(){super(...arguments),this.inputs=w}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[u.qOj]}),ce})();const N=new Map,B={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let K=(()=>{class ce extends v.QI{constructor(oe,rn){super(),this._styler=oe,this._config=rn}buildStyles(oe,rn){return oe.endsWith(Tt)?(oe=oe.slice(0,oe.indexOf(Tt)),function bt(ce,Be){const[oe,rn]=ce.split(" "),cn=zt=>`-${zt}`;let xe="0px",It=cn(rn??oe),Le="0px";return"rtl"===Be?Le=cn(oe):xe=cn(oe),{margin:`0px ${xe} ${It} ${Le}`}}(oe=(0,v.FL)(oe,this._config.multiplier),rn.directionality)):{}}sideEffect(oe,rn,gn){const cn=gn.items;if(oe.endsWith(Tt)){oe=oe.slice(0,oe.indexOf(Tt));const xe=function Ut(ce,Be){const[oe,rn]=ce.split(" ");let cn="0px",It="0px";return"rtl"===Be?It=oe:cn=oe,{padding:`0px ${cn} ${rn??oe} ${It}`}}(oe=(0,v.FL)(oe,this._config.multiplier),gn.directionality);this._styler.applyStyleToElements(xe,gn.items)}else{oe=(0,v.FL)(oe,this._config.multiplier),oe=this.addFallbackUnit(oe);const xe=cn.pop(),It=function Lt(ce,Be){const oe=mt(Be.directionality,Be.layout),rn={...B};return rn[oe]=ce,rn}(oe,gn);this._styler.applyStyleToElements(It,cn),this._styler.applyStyleToElements(B,[xe])}}addFallbackUnit(oe){return isNaN(+oe)?oe:`${oe}${this._config.defaultUnit}`}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.LFG(v.RK),u.LFG(v.WU))},ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const et=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let lt=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn,xe,It){super(oe,xe,cn,It),this.zone=rn,this.directionality=gn,this.styleUtils=cn,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Le=[this.directionality.change,this.observerSubject.asObservable()];this.init(Le),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const oe=this.nativeElement.children,rn=[];for(let gn=oe.length;gn--;)rn[gn]=oe[gn];return rn}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(oe){const gn=oe.value.split(" ");this.layout=gn[0],g.iQ.find(cn=>cn===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(oe){const rn=this.childrenNodes.filter(gn=>1===gn.nodeType&&this.willDisplay(gn)).sort((gn,cn)=>{const xe=+this.styler.lookupStyle(gn,"order"),It=+this.styler.lookupStyle(cn,"order");return isNaN(xe)||isNaN(It)||xe===It?0:xe>It?1:-1});if(rn.length>0){const gn=this.directionality.value,cn=this.layout;"row"===cn&&"rtl"===gn?this.styleCache=Dt:"row"===cn&&"rtl"!==gn?this.styleCache=Rt:"column"===cn&&"rtl"===gn?this.styleCache=Zt:"column"===cn&&"rtl"!==gn&&(this.styleCache=Gt),this.addStyles(oe,{directionality:gn,items:rn,layout:cn})}}clearStyles(){const oe=Object.keys(this.mru).length>0,rn=oe?"padding":mt(this.directionality.value,this.layout);oe&&super.clearStyles(),this.styleUtils.applyStyleToElements({[rn]:""},this.childrenNodes)}willDisplay(oe){const rn=this.marshal.getValue(oe,"show-hide");return!0===rn||void 0===rn&&"none"!==this.styleUtils.lookupStyle(oe,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(oe=>{oe.some(gn=>gn.addedNodes&&gn.addedNodes.length>0||gn.removedNodes&&gn.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(d.Is),u.Y36(v.RK),u.Y36(K),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})(),Ct=(()=>{class ce extends lt{constructor(){super(...arguments),this.inputs=et}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[u.qOj]}),ce})();const Dt=new Map,Zt=new Map,Rt=new Map,Gt=new Map,Tt=" grid";function mt(ce,Be){switch(Be){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===ce?"margin-left":"margin-right";case"row-reverse":return"rtl"===ce?"margin-right":"margin-left"}}let Bt=(()=>{class ce extends v.QI{constructor(oe){super(),this.layoutConfig=oe}buildStyles(oe,rn){let[gn,cn,...xe]=oe.split(" "),It=xe.join(" ");const Le=rn.direction.indexOf("column")>-1?"column":"row",zt=(0,g.tj)(Le)?"max-width":"max-height",we=(0,g.tj)(Le)?"min-width":"min-height",He=String(It).indexOf("calc")>-1,kn=He||"auto"===It,Ei=String(It).indexOf("%")>-1&&!He,Bi=String(It).indexOf("px")>-1||String(It).indexOf("rem")>-1||String(It).indexOf("em")>-1||String(It).indexOf("vw")>-1||String(It).indexOf("vh")>-1;let un=He||Bi;gn="0"==gn?0:gn,cn="0"==cn?0:cn;const _n=!gn&&!cn;let Ke={};const ai={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(It||""){case"":const xi=!1!==this.layoutConfig.useColumnBasisZero;It="row"===Le?"0%":xi?"0.000000001px":"auto";break;case"initial":case"nogrow":gn=0,It="auto";break;case"grow":It="100%";break;case"noshrink":cn=0,It="auto";break;case"auto":break;case"none":gn=0,cn=0,It="auto";break;default:!un&&!Ei&&!isNaN(It)&&(It+="%"),"0%"===It&&(un=!0),"0px"===It&&(It="0%"),Ke=(0,g.kt)(ai,He?{"flex-grow":gn,"flex-shrink":cn,"flex-basis":un?It:"100%"}:{flex:`${gn} ${cn} ${un?It:"100%"}`})}return Ke.flex||Ke["flex-grow"]||(Ke=(0,g.kt)(ai,He?{"flex-grow":gn,"flex-shrink":cn,"flex-basis":It}:{flex:`${gn} ${cn} ${It}`})),"0%"!==It&&"0px"!==It&&"0.000000001px"!==It&&"auto"!==It&&(Ke[we]=_n||un&&gn?It:null,Ke[zt]=_n||!kn&&cn?It:null),Ke[we]||Ke[zt]?rn.hasWrap&&(Ke[He?"flex-basis":"flex"]=Ke[zt]?He?Ke[zt]:`${gn} ${cn} ${Ke[zt]}`:He?Ke[we]:`${gn} ${cn} ${Ke[we]}`):Ke=(0,g.kt)(ai,He?{"flex-grow":gn,"flex-shrink":cn,"flex-basis":It}:{flex:`${gn} ${cn} ${It}`}),(0,g.kt)(Ke,{"box-sizing":"border-box"})}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.LFG(v.WU))},ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const kt=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Vt=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn,xe){super(oe,cn,rn,xe),this.layoutConfig=gn,this.marshal=xe,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(oe){this.flexShrink=oe||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(oe){this.flexGrow=oe||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,T.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(oe){const gn=oe.value.split(" ");this.direction=gn[0],this.wrap=void 0!==gn[1]&&"wrap"===gn[1],this.triggerUpdate()}updateWithValue(oe){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const gn=this.direction,cn=gn.startsWith("row"),xe=this.wrap;cn&&xe?this.styleCache=qe:cn&&!xe?this.styleCache=ge:!cn&&xe?this.styleCache=je:!cn&&!xe&&(this.styleCache=Fe);const It=String(oe).replace(";",""),Le=(0,v.Ot)(It,this.flexGrow,this.flexShrink);this.addStyles(Le.join(" "),{direction:gn,hasWrap:xe})}triggerReflow(){const oe=this.activatedValue;if(void 0!==oe){const rn=(0,v.Ot)(oe+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,rn.join(" "))}}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(v.WU),u.Y36(Bt),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[u.qOj]}),ce})(),be=(()=>{class ce extends Vt{constructor(){super(...arguments),this.inputs=kt}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[u.qOj]}),ce})();const ge=new Map,Fe=new Map,qe=new Map,je=new Map;let ii=(()=>{class ce extends v.QI{buildStyles(oe){const rn={};switch(oe=oe||"stretch"){case"start":rn["align-self"]="flex-start";break;case"end":rn["align-self"]="flex-end";break;default:rn["align-self"]=oe}return rn}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const _i=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let We=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn){super(oe,gn,rn,cn),this.DIRECTIVE_KEY="flex-align",this.styleCache=ee,this.init()}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(ii),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})();const ee=new Map;let ot=(()=>{class ce extends We{constructor(){super(...arguments),this.inputs=_i}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[u.qOj]}),ce})();const X={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let At=(()=>{class ce extends v.QI{buildStyles(oe){return X}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),Ht=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn){super(oe,gn,rn,cn),this.styleCache=ue,this.addStyles("")}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(At),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[u.qOj]}),ce})();const ue=new Map;let ye=(()=>{class ce extends v.QI{buildStyles(oe,rn){const gn={},[cn,xe]=oe.split(" ");switch(cn){case"center":gn["justify-content"]="center";break;case"space-around":gn["justify-content"]="space-around";break;case"space-between":gn["justify-content"]="space-between";break;case"space-evenly":gn["justify-content"]="space-evenly";break;case"end":case"flex-end":gn["justify-content"]="flex-end";break;default:gn["justify-content"]="flex-start"}switch(xe){case"start":case"flex-start":gn["align-items"]=gn["align-content"]="flex-start";break;case"center":gn["align-items"]=gn["align-content"]="center";break;case"end":case"flex-end":gn["align-items"]=gn["align-content"]="flex-end";break;case"space-between":gn["align-content"]="space-between",gn["align-items"]="stretch";break;case"space-around":gn["align-content"]="space-around",gn["align-items"]="stretch";break;case"baseline":gn["align-content"]="stretch",gn["align-items"]="baseline";break;default:gn["align-items"]=gn["align-content"]="stretch"}return(0,g.kt)(gn,{display:rn.inline?"inline-flex":"flex","flex-direction":rn.layout,"box-sizing":"border-box","max-width":"stretch"===xe?(0,g.tj)(rn.layout)?null:"100%":null,"max-height":"stretch"===xe&&(0,g.tj)(rn.layout)?"100%":null})}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275prov=u.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const Se=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let qn=(()=>{class ce extends v.iR{constructor(oe,rn,gn,cn){super(oe,gn,rn,cn),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,T.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(oe){const rn=this.layout||"row",gn=this.inline;"row"===rn&&gn?this.styleCache=Bn:"row"!==rn||gn?"row-reverse"===rn&&gn?this.styleCache=xn:"row-reverse"!==rn||gn?"column"===rn&&gn?this.styleCache=Qe:"column"!==rn||gn?"column-reverse"===rn&&gn?this.styleCache=Ve:"column-reverse"===rn&&!gn&&(this.styleCache=zn):this.styleCache=bo:this.styleCache=hi:this.styleCache=Di,this.addStyles(oe,{layout:rn,inline:gn})}onLayoutChange(oe){const rn=oe.value.split(" ");this.layout=rn[0],this.inline=oe.value.includes("inline"),g.iQ.find(gn=>gn===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ce.\u0275fac=function(oe){return new(oe||ce)(u.Y36(u.SBq),u.Y36(v.RK),u.Y36(ye),u.Y36(v.yB))},ce.\u0275dir=u.lG2({type:ce,features:[u.qOj]}),ce})(),mi=(()=>{class ce extends qn{constructor(){super(...arguments),this.inputs=Se}}return ce.\u0275fac=function(){let Be;return function(rn){return(Be||(Be=u.n5z(ce)))(rn||ce)}}(),ce.\u0275dir=u.lG2({type:ce,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[u.qOj]}),ce})();const Di=new Map,bo=new Map,hi=new Map,zn=new Map,Bn=new Map,Qe=new Map,xn=new Map,Ve=new Map;let tn=(()=>{class ce{}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=u.oAB({type:ce}),ce.\u0275inj=u.cJS({imports:[v.IR,d.vT]}),ce})()},24006:(tt,W,f)=>{"use strict";f.d(W,{CE:()=>Ys,Cf:()=>Ct,F:()=>fr,Fd:()=>Ya,Fj:()=>K,JJ:()=>oi,JL:()=>We,JU:()=>w,NI:()=>Or,On:()=>us,Q7:()=>zs,QS:()=>Wr,UX:()=>cl,Zs:()=>ds,_Y:()=>Hs,a5:()=>dn,kI:()=>Rt,nD:()=>Ks,nJ:()=>we,oH:()=>Ws,p4:()=>cc,qQ:()=>xr,qu:()=>la,sg:()=>$u,u:()=>wl,u5:()=>Ec,wV:()=>Lr,x0:()=>Ss});var u=f(94650),d=f(36895),v=f(5254),g=f(30567),t=f(24850);let T=(()=>{class re{constructor(Nt,nt){this._renderer=Nt,this._elementRef=nt,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Nt,nt){this._renderer.setProperty(this._elementRef.nativeElement,Nt,nt)}registerOnTouched(Nt){this.onTouched=Nt}registerOnChange(Nt){this.onChange=Nt}setDisabledState(Nt){this.setProperty("disabled",Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(u.Qsj),u.Y36(u.SBq))},re.\u0275dir=u.lG2({type:re}),re})(),U=(()=>{class re extends T{}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,features:[u.qOj]}),re})();const w=new u.OlP("NgValueAccessor"),L={provide:w,useExisting:(0,u.Gpc)(()=>K),multi:!0},B=new u.OlP("CompositionEventMode");let K=(()=>{class re extends T{constructor(Nt,nt,wi){super(Nt,nt),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const re=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(re.toLowerCase())}())}writeValue(Nt){this.setProperty("value",Nt??"")}_handleInput(Nt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Nt)}_compositionStart(){this._composing=!0}_compositionEnd(Nt){this._composing=!1,this._compositionMode&&this.onChange(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(B,8))},re.\u0275dir=u.lG2({type:re,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("input",function(zo){return nt._handleInput(zo.target.value)})("blur",function(){return nt.onTouched()})("compositionstart",function(){return nt._compositionStart()})("compositionend",function(zo){return nt._compositionEnd(zo.target.value)})},features:[u._Bn([L]),u.qOj]}),re})();function ct(re){return null==re||("string"==typeof re||Array.isArray(re))&&0===re.length}function lt(re){return null!=re&&"number"==typeof re.length}const Ct=new u.OlP("NgValidators"),Dt=new u.OlP("NgAsyncValidators"),Zt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rt{static min($t){return Gt($t)}static max($t){return Tt($t)}static required($t){return Ut($t)}static requiredTrue($t){return bt($t)}static email($t){return function mt(re){return ct(re.value)||Zt.test(re.value)?null:{email:!0}}($t)}static minLength($t){return function Lt(re){return $t=>ct($t.value)||!lt($t.value)?null:$t.value.length{if(ct(nt.value))return null;const wi=nt.value;return $t.test(wi)?null:{pattern:{requiredPattern:Nt,actualValue:wi}}}}($t)}static nullValidator($t){return null}static compose($t){return Qt($t)}static composeAsync($t){return ie($t)}}function Gt(re){return $t=>{if(ct($t.value)||ct(re))return null;const Nt=parseFloat($t.value);return!isNaN(Nt)&&Nt{if(ct($t.value)||ct(re))return null;const Nt=parseFloat($t.value);return!isNaN(Nt)&&Nt>re?{max:{max:re,actual:$t.value}}:null}}function Ut(re){return ct(re.value)?{required:!0}:null}function bt(re){return!0===re.value?null:{required:!0}}function Bt(re){return $t=>lt($t.value)&&$t.value.length>re?{maxlength:{requiredLength:re,actualLength:$t.value.length}}:null}function le(re){return null}function Vt(re){return null!=re}function be(re){return(0,u.QGY)(re)?(0,v.D)(re):re}function ge(re){let $t={};return re.forEach(Nt=>{$t=null!=Nt?{...$t,...Nt}:$t}),0===Object.keys($t).length?null:$t}function Fe(re,$t){return $t.map(Nt=>Nt(re))}function je(re){return re.map($t=>function qe(re){return!re.validate}($t)?$t:Nt=>$t.validate(Nt))}function Qt(re){if(!re)return null;const $t=re.filter(Vt);return 0==$t.length?null:function(Nt){return ge(Fe(Nt,$t))}}function Ue(re){return null!=re?Qt(je(re)):null}function ie(re){if(!re)return null;const $t=re.filter(Vt);return 0==$t.length?null:function(Nt){const nt=Fe(Nt,$t).map(be);return(0,g.D)(nt).pipe((0,t.U)(ge))}}function Wt(re){return null!=re?ie(je(re)):null}function se(re,$t){return null===re?[$t]:Array.isArray(re)?[...re,$t]:[re,$t]}function Xt(re){return re._rawValidators}function ae(re){return re._rawAsyncValidators}function De(re){return re?Array.isArray(re)?re:[re]:[]}function nn(re,$t){return Array.isArray(re)?re.includes($t):re===$t}function hn(re,$t){const Nt=De($t);return De(re).forEach(wi=>{nn(Nt,wi)||Nt.push(wi)}),Nt}function Ce(re,$t){return De($t).filter(Nt=>!nn(re,Nt))}class bn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators($t){this._rawValidators=$t||[],this._composedValidatorFn=Ue(this._rawValidators)}_setAsyncValidators($t){this._rawAsyncValidators=$t||[],this._composedAsyncValidatorFn=Wt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy($t){this._onDestroyCallbacks.push($t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach($t=>$t()),this._onDestroyCallbacks=[]}reset($t){this.control&&this.control.reset($t)}hasError($t,Nt){return!!this.control&&this.control.hasError($t,Nt)}getError($t,Nt){return this.control?this.control.getError($t,Nt):null}}class Oe extends bn{get formDirective(){return null}get path(){return null}}class dn extends bn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pn{constructor($t){this._cd=$t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let oi=(()=>{class re extends Pn{constructor(Nt){super(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(dn,2))},re.\u0275dir=u.lG2({type:re,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Nt,nt){2&Nt&&u.ekj("ng-untouched",nt.isUntouched)("ng-touched",nt.isTouched)("ng-pristine",nt.isPristine)("ng-dirty",nt.isDirty)("ng-valid",nt.isValid)("ng-invalid",nt.isInvalid)("ng-pending",nt.isPending)},features:[u.qOj]}),re})(),We=(()=>{class re extends Pn{constructor(Nt){super(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Nt,nt){2&Nt&&u.ekj("ng-untouched",nt.isUntouched)("ng-touched",nt.isTouched)("ng-pristine",nt.isPristine)("ng-dirty",nt.isDirty)("ng-valid",nt.isValid)("ng-invalid",nt.isInvalid)("ng-pending",nt.isPending)("ng-submitted",nt.isSubmitted)},features:[u.qOj]}),re})();const Ve="VALID",Ne="INVALID",tn="PENDING",ce="DISABLED";function Be(re){return(cn(re)?re.validators:re)||null}function oe(re){return Array.isArray(re)?Ue(re):re||null}function rn(re,$t){return(cn($t)?$t.asyncValidators:re)||null}function gn(re){return Array.isArray(re)?Wt(re):re||null}function cn(re){return null!=re&&!Array.isArray(re)&&"object"==typeof re}function xe(re,$t,Nt){const nt=re.controls;if(!($t?Object.keys(nt):nt).length)throw new u.vHH(1e3,"");if(!nt[Nt])throw new u.vHH(1001,"")}function It(re,$t,Nt){re._forEachChild((nt,wi)=>{if(void 0===Nt[wi])throw new u.vHH(1002,"")})}class Le{constructor($t,Nt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=$t,this._rawAsyncValidators=Nt,this._composedValidatorFn=oe(this._rawValidators),this._composedAsyncValidatorFn=gn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator($t){this._rawValidators=this._composedValidatorFn=$t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator($t){this._rawAsyncValidators=this._composedAsyncValidatorFn=$t}get parent(){return this._parent}get valid(){return this.status===Ve}get invalid(){return this.status===Ne}get pending(){return this.status==tn}get disabled(){return this.status===ce}get enabled(){return this.status!==ce}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators($t){this._rawValidators=$t,this._composedValidatorFn=oe($t)}setAsyncValidators($t){this._rawAsyncValidators=$t,this._composedAsyncValidatorFn=gn($t)}addValidators($t){this.setValidators(hn($t,this._rawValidators))}addAsyncValidators($t){this.setAsyncValidators(hn($t,this._rawAsyncValidators))}removeValidators($t){this.setValidators(Ce($t,this._rawValidators))}removeAsyncValidators($t){this.setAsyncValidators(Ce($t,this._rawAsyncValidators))}hasValidator($t){return nn(this._rawValidators,$t)}hasAsyncValidator($t){return nn(this._rawAsyncValidators,$t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched($t={}){this.touched=!0,this._parent&&!$t.onlySelf&&this._parent.markAsTouched($t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild($t=>$t.markAllAsTouched())}markAsUntouched($t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Nt=>{Nt.markAsUntouched({onlySelf:!0})}),this._parent&&!$t.onlySelf&&this._parent._updateTouched($t)}markAsDirty($t={}){this.pristine=!1,this._parent&&!$t.onlySelf&&this._parent.markAsDirty($t)}markAsPristine($t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Nt=>{Nt.markAsPristine({onlySelf:!0})}),this._parent&&!$t.onlySelf&&this._parent._updatePristine($t)}markAsPending($t={}){this.status=tn,!1!==$t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!$t.onlySelf&&this._parent.markAsPending($t)}disable($t={}){const Nt=this._parentMarkedDirty($t.onlySelf);this.status=ce,this.errors=null,this._forEachChild(nt=>{nt.disable({...$t,onlySelf:!0})}),this._updateValue(),!1!==$t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...$t,skipPristineCheck:Nt}),this._onDisabledChange.forEach(nt=>nt(!0))}enable($t={}){const Nt=this._parentMarkedDirty($t.onlySelf);this.status=Ve,this._forEachChild(nt=>{nt.enable({...$t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent}),this._updateAncestors({...$t,skipPristineCheck:Nt}),this._onDisabledChange.forEach(nt=>nt(!1))}_updateAncestors($t){this._parent&&!$t.onlySelf&&(this._parent.updateValueAndValidity($t),$t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent($t){this._parent=$t}getRawValue(){return this.value}updateValueAndValidity($t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ve||this.status===tn)&&this._runAsyncValidator($t.emitEvent)),!1!==$t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!$t.onlySelf&&this._parent.updateValueAndValidity($t)}_updateTreeValidity($t={emitEvent:!0}){this._forEachChild(Nt=>Nt._updateTreeValidity($t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:$t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ce:Ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator($t){if(this.asyncValidator){this.status=tn,this._hasOwnPendingAsyncValidator=!0;const Nt=be(this.asyncValidator(this));this._asyncValidationSubscription=Nt.subscribe(nt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(nt,{emitEvent:$t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors($t,Nt={}){this.errors=$t,this._updateControlsErrors(!1!==Nt.emitEvent)}get($t){let Nt=$t;return null==Nt||(Array.isArray(Nt)||(Nt=Nt.split(".")),0===Nt.length)?null:Nt.reduce((nt,wi)=>nt&&nt._find(wi),this)}getError($t,Nt){const nt=Nt?this.get(Nt):this;return nt&&nt.errors?nt.errors[$t]:null}hasError($t,Nt){return!!this.getError($t,Nt)}get root(){let $t=this;for(;$t._parent;)$t=$t._parent;return $t}_updateControlsErrors($t){this.status=this._calculateStatus(),$t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors($t)}_initObservables(){this.valueChanges=new u.vpe,this.statusChanges=new u.vpe}_calculateStatus(){return this._allControlsDisabled()?ce:this.errors?Ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tn)?tn:this._anyControlsHaveStatus(Ne)?Ne:Ve}_anyControlsHaveStatus($t){return this._anyControls(Nt=>Nt.status===$t)}_anyControlsDirty(){return this._anyControls($t=>$t.dirty)}_anyControlsTouched(){return this._anyControls($t=>$t.touched)}_updatePristine($t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!$t.onlySelf&&this._parent._updatePristine($t)}_updateTouched($t={}){this.touched=this._anyControlsTouched(),this._parent&&!$t.onlySelf&&this._parent._updateTouched($t)}_registerOnCollectionChange($t){this._onCollectionChange=$t}_setUpdateStrategy($t){cn($t)&&null!=$t.updateOn&&(this._updateOn=$t.updateOn)}_parentMarkedDirty($t){return!$t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find($t){return null}}class zt extends Le{constructor($t,Nt,nt){super(Be(Nt),rn(nt,Nt)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Nt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl($t,Nt){return this.controls[$t]?this.controls[$t]:(this.controls[$t]=Nt,Nt.setParent(this),Nt._registerOnCollectionChange(this._onCollectionChange),Nt)}addControl($t,Nt,nt={}){this.registerControl($t,Nt),this.updateValueAndValidity({emitEvent:nt.emitEvent}),this._onCollectionChange()}removeControl($t,Nt={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],this.updateValueAndValidity({emitEvent:Nt.emitEvent}),this._onCollectionChange()}setControl($t,Nt,nt={}){this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),delete this.controls[$t],Nt&&this.registerControl($t,Nt),this.updateValueAndValidity({emitEvent:nt.emitEvent}),this._onCollectionChange()}contains($t){return this.controls.hasOwnProperty($t)&&this.controls[$t].enabled}setValue($t,Nt={}){It(this,0,$t),Object.keys($t).forEach(nt=>{xe(this,!0,nt),this.controls[nt].setValue($t[nt],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt)}patchValue($t,Nt={}){null!=$t&&(Object.keys($t).forEach(nt=>{const wi=this.controls[nt];wi&&wi.patchValue($t[nt],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt))}reset($t={},Nt={}){this._forEachChild((nt,wi)=>{nt.reset($t[wi],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this._updatePristine(Nt),this._updateTouched(Nt),this.updateValueAndValidity(Nt)}getRawValue(){return this._reduceChildren({},($t,Nt,nt)=>($t[nt]=Nt.getRawValue(),$t))}_syncPendingControls(){let $t=this._reduceChildren(!1,(Nt,nt)=>!!nt._syncPendingControls()||Nt);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){Object.keys(this.controls).forEach(Nt=>{const nt=this.controls[Nt];nt&&$t(nt,Nt)})}_setUpControls(){this._forEachChild($t=>{$t.setParent(this),$t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls($t){for(const[Nt,nt]of Object.entries(this.controls))if(this.contains(Nt)&&$t(nt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Nt,nt,wi)=>((nt.enabled||this.disabled)&&(Nt[wi]=nt.value),Nt))}_reduceChildren($t,Nt){let nt=$t;return this._forEachChild((wi,zo)=>{nt=Nt(nt,wi,zo)}),nt}_allControlsDisabled(){for(const $t of Object.keys(this.controls))if(this.controls[$t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find($t){return this.controls.hasOwnProperty($t)?this.controls[$t]:null}}const we=zt;class kn extends zt{}function Bi(re,$t){return[...$t.path,re]}function un(re,$t){xi(re,$t),$t.valueAccessor.writeValue(re.value),re.disabled&&$t.valueAccessor.setDisabledState?.(!0),function Co(re,$t){$t.valueAccessor.registerOnChange(Nt=>{re._pendingValue=Nt,re._pendingChange=!0,re._pendingDirty=!0,"change"===re.updateOn&&ma(re,$t)})}(re,$t),function Ta(re,$t){const Nt=(nt,wi)=>{$t.valueAccessor.writeValue(nt),wi&&$t.viewToModelUpdate(nt)};re.registerOnChange(Nt),$t._registerOnDestroy(()=>{re._unregisterOnChange(Nt)})}(re,$t),function So(re,$t){$t.valueAccessor.registerOnTouched(()=>{re._pendingTouched=!0,"blur"===re.updateOn&&re._pendingChange&&ma(re,$t),"submit"!==re.updateOn&&re.markAsTouched()})}(re,$t),function ai(re,$t){if($t.valueAccessor.setDisabledState){const Nt=nt=>{$t.valueAccessor.setDisabledState(nt)};re.registerOnDisabledChange(Nt),$t._registerOnDestroy(()=>{re._unregisterOnDisabledChange(Nt)})}}(re,$t)}function _n(re,$t,Nt=!0){const nt=()=>{};$t.valueAccessor&&($t.valueAccessor.registerOnChange(nt),$t.valueAccessor.registerOnTouched(nt)),co(re,$t),re&&($t._invokeOnDestroyCallbacks(),re._registerOnCollectionChange(()=>{}))}function Ke(re,$t){re.forEach(Nt=>{Nt.registerOnValidatorChange&&Nt.registerOnValidatorChange($t)})}function xi(re,$t){const Nt=Xt(re);null!==$t.validator?re.setValidators(se(Nt,$t.validator)):"function"==typeof Nt&&re.setValidators([Nt]);const nt=ae(re);null!==$t.asyncValidator?re.setAsyncValidators(se(nt,$t.asyncValidator)):"function"==typeof nt&&re.setAsyncValidators([nt]);const wi=()=>re.updateValueAndValidity();Ke($t._rawValidators,wi),Ke($t._rawAsyncValidators,wi)}function co(re,$t){let Nt=!1;if(null!==re){if(null!==$t.validator){const wi=Xt(re);if(Array.isArray(wi)&&wi.length>0){const zo=wi.filter(Aa=>Aa!==$t.validator);zo.length!==wi.length&&(Nt=!0,re.setValidators(zo))}}if(null!==$t.asyncValidator){const wi=ae(re);if(Array.isArray(wi)&&wi.length>0){const zo=wi.filter(Aa=>Aa!==$t.asyncValidator);zo.length!==wi.length&&(Nt=!0,re.setAsyncValidators(zo))}}}const nt=()=>{};return Ke($t._rawValidators,nt),Ke($t._rawAsyncValidators,nt),Nt}function ma(re,$t){re._pendingDirty&&re.markAsDirty(),re.setValue(re._pendingValue,{emitModelToViewChange:!1}),$t.viewToModelUpdate(re._pendingValue),re._pendingChange=!1}function Re(re,$t){xi(re,$t)}function Ft(re,$t){if(!re.hasOwnProperty("model"))return!1;const Nt=re.model;return!!Nt.isFirstChange()||!Object.is($t,Nt.currentValue)}function Et(re,$t){re._syncPendingControls(),$t.forEach(Nt=>{const nt=Nt.control;"submit"===nt.updateOn&&nt._pendingChange&&(Nt.viewToModelUpdate(nt._pendingValue),nt._pendingChange=!1)})}function ze(re,$t){if(!$t)return null;let Nt,nt,wi;return Array.isArray($t),$t.forEach(zo=>{zo.constructor===K?Nt=zo:function J(re){return Object.getPrototypeOf(re.constructor)===U}(zo)?nt=zo:wi=zo}),wi||nt||Nt||null}const To={provide:Oe,useExisting:(0,u.Gpc)(()=>fr)},_r=(()=>Promise.resolve())();let fr=(()=>{class re extends Oe{constructor(Nt,nt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new zt({},Ue(Nt),Wt(nt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path);Nt.control=nt.registerControl(Nt.name,Nt.control),un(Nt.control,Nt),Nt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Nt)})}getControl(Nt){return this.form.get(Nt.path)}removeControl(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path);nt&&nt.removeControl(Nt.name),this._directives.delete(Nt)})}addFormGroup(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path),wi=new zt({});Re(wi,Nt),nt.registerControl(Nt.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Nt){_r.then(()=>{const nt=this._findContainer(Nt.path);nt&&nt.removeControl(Nt.name)})}getFormGroup(Nt){return this.form.get(Nt.path)}updateModel(Nt,nt){_r.then(()=>{this.form.get(Nt.path).setValue(nt)})}setValue(Nt){this.control.setValue(Nt)}onSubmit(Nt){return this.submitted=!0,Et(this.form,this._directives),this.ngSubmit.emit(Nt),"dialog"===Nt?.target?.method}onReset(){this.resetForm()}resetForm(Nt){this.form.reset(Nt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Nt){return Nt.pop(),Nt.length?this.form.get(Nt):this.form}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("submit",function(zo){return nt.onSubmit(zo)})("reset",function(){return nt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([To]),u.qOj]}),re})();function jr(re,$t){const Nt=re.indexOf($t);Nt>-1&&re.splice(Nt,1)}function Ja(re){return"object"==typeof re&&null!==re&&2===Object.keys(re).length&&"value"in re&&"disabled"in re}const Or=class extends Le{constructor($t=null,Nt,nt){super(Be(Nt),rn(nt,Nt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState($t),this._setUpdateStrategy(Nt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cn(Nt)&&(Nt.nonNullable||Nt.initialValueIsDefault)&&(this.defaultValue=Ja($t)?$t.value:$t)}setValue($t,Nt={}){this.value=this._pendingValue=$t,this._onChange.length&&!1!==Nt.emitModelToViewChange&&this._onChange.forEach(nt=>nt(this.value,!1!==Nt.emitViewToModelChange)),this.updateValueAndValidity(Nt)}patchValue($t,Nt={}){this.setValue($t,Nt)}reset($t=this.defaultValue,Nt={}){this._applyFormState($t),this.markAsPristine(Nt),this.markAsUntouched(Nt),this.setValue(this.value,Nt),this._pendingChange=!1}_updateValue(){}_anyControls($t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange($t){this._onChange.push($t)}_unregisterOnChange($t){jr(this._onChange,$t)}registerOnDisabledChange($t){this._onDisabledChange.push($t)}_unregisterOnDisabledChange($t){jr(this._onDisabledChange,$t)}_forEachChild($t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState($t){Ja($t)?(this.value=this._pendingValue=$t.value,$t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=$t}},cc=Or;let ls=(()=>{class re extends Oe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Bi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,features:[u.qOj]}),re})();const Qs={provide:dn,useExisting:(0,u.Gpc)(()=>us)},Lc=(()=>Promise.resolve())();let us=(()=>{class re extends dn{constructor(Nt,nt,wi,zo,Aa){super(),this._changeDetectorRef=Aa,this.control=new Or,this._registered=!1,this.update=new u.vpe,this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi),this.valueAccessor=ze(0,zo)}ngOnChanges(Nt){if(this._checkForErrors(),!this._registered||"name"in Nt){if(this._registered&&(this._checkName(),this.formDirective)){const nt=Nt.name.previousValue;this.formDirective.removeControl({name:nt,path:this._getPath(nt)})}this._setUpControl()}"isDisabled"in Nt&&this._updateDisabled(Nt),Ft(Nt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Nt){this.viewModel=Nt,this.update.emit(Nt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){un(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Nt){Lc.then(()=>{this.control.setValue(Nt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Nt){const nt=Nt.isDisabled.currentValue,wi=0!==nt&&(0,u.D6c)(nt);Lc.then(()=>{wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Nt){return this._parent?Bi(Nt,this._parent):[Nt]}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,9),u.Y36(Ct,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(u.sBO,8))},re.\u0275dir=u.lG2({type:re,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u._Bn([Qs]),u.qOj,u.TTD]}),re})(),Hs=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275dir=u.lG2({type:re,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),re})();const t1={provide:w,useExisting:(0,u.Gpc)(()=>Lr),multi:!0};let Lr=(()=>{class re extends U{writeValue(Nt){this.setProperty("value",Nt??"")}registerOnChange(Nt){this.onChange=nt=>{Nt(""==nt?null:parseFloat(nt))}}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("input",function(zo){return nt.onChange(zo.target.value)})("blur",function(){return nt.onTouched()})},features:[u._Bn([t1]),u.qOj]}),re})(),Vc=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({}),re})();const js=new u.OlP("NgModelWithFormControlWarning"),xc={provide:dn,useExisting:(0,u.Gpc)(()=>Ws)};let Ws=(()=>{class re extends dn{constructor(Nt,nt,wi,zo){super(),this._ngModelWarningConfig=zo,this.update=new u.vpe,this._ngModelWarningSent=!1,this._setValidators(Nt),this._setAsyncValidators(nt),this.valueAccessor=ze(0,wi)}set isDisabled(Nt){}ngOnChanges(Nt){if(this._isControlChanged(Nt)){const nt=Nt.form.previousValue;nt&&_n(nt,this,!1),un(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ft(Nt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_n(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Nt){this.viewModel=Nt,this.update.emit(Nt)}_isControlChanged(Nt){return Nt.hasOwnProperty("form")}}return re._ngModelWarningSentOnce=!1,re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Ct,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(js,8))},re.\u0275dir=u.lG2({type:re,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u._Bn([xc]),u.qOj,u.TTD]}),re})();const sl={provide:Oe,useExisting:(0,u.Gpc)(()=>$u)};let $u=(()=>{class re extends Oe{constructor(Nt,nt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.vpe,this._setValidators(Nt),this._setAsyncValidators(nt)}ngOnChanges(Nt){this._checkFormPresent(),Nt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(co(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Nt){const nt=this.form.get(Nt.path);return un(nt,Nt),nt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Nt),nt}getControl(Nt){return this.form.get(Nt.path)}removeControl(Nt){_n(Nt.control||null,Nt,!1),function Vn(re,$t){const Nt=re.indexOf($t);Nt>-1&&re.splice(Nt,1)}(this.directives,Nt)}addFormGroup(Nt){this._setUpFormContainer(Nt)}removeFormGroup(Nt){this._cleanUpFormContainer(Nt)}getFormGroup(Nt){return this.form.get(Nt.path)}addFormArray(Nt){this._setUpFormContainer(Nt)}removeFormArray(Nt){this._cleanUpFormContainer(Nt)}getFormArray(Nt){return this.form.get(Nt.path)}updateModel(Nt,nt){this.form.get(Nt.path).setValue(nt)}onSubmit(Nt){return this.submitted=!0,Et(this.form,this.directives),this.ngSubmit.emit(Nt),"dialog"===Nt?.target?.method}onReset(){this.resetForm()}resetForm(Nt){this.form.reset(Nt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Nt=>{const nt=Nt.control,wi=this.form.get(Nt.path);nt!==wi&&(_n(nt||null,Nt),(re=>re instanceof Or)(wi)&&(un(wi,Nt),Nt.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Nt){const nt=this.form.get(Nt.path);Re(nt,Nt),nt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Nt){if(this.form){const nt=this.form.get(Nt.path);nt&&function Rn(re,$t){return co(re,$t)}(nt,Nt)&&nt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xi(this.form,this),this._oldForm&&co(this._oldForm,this)}_checkFormPresent(){}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formGroup",""]],hostBindings:function(Nt,nt){1&Nt&&u.NdJ("submit",function(zo){return nt.onSubmit(zo)})("reset",function(){return nt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([sl]),u.qOj,u.TTD]}),re})();const Yl={provide:Oe,useExisting:(0,u.Gpc)(()=>Ss)};let Ss=(()=>{class re extends ls{constructor(Nt,nt,wi){super(),this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi)}_checkParentType(){Jc(this._parent)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,13),u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[u._Bn([Yl]),u.qOj]}),re})();const Ul={provide:Oe,useExisting:(0,u.Gpc)(()=>Ys)};let Ys=(()=>{class re extends Oe{constructor(Nt,nt,wi){super(),this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Bi(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Jc(this._parent)}}return re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,13),u.Y36(Ct,10),u.Y36(Dt,10))},re.\u0275dir=u.lG2({type:re,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[u._Bn([Ul]),u.qOj]}),re})();function Jc(re){return!(re instanceof Ss||re instanceof $u||re instanceof Ys)}const $s={provide:dn,useExisting:(0,u.Gpc)(()=>wl)};let wl=(()=>{class re extends dn{constructor(Nt,nt,wi,zo,Aa){super(),this._ngModelWarningConfig=Aa,this._added=!1,this.update=new u.vpe,this._ngModelWarningSent=!1,this._parent=Nt,this._setValidators(nt),this._setAsyncValidators(wi),this.valueAccessor=ze(0,zo)}set isDisabled(Nt){}ngOnChanges(Nt){this._added||this._setUpControl(),Ft(Nt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Nt){this.viewModel=Nt,this.update.emit(Nt)}get path(){return Bi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return re._ngModelWarningSentOnce=!1,re.\u0275fac=function(Nt){return new(Nt||re)(u.Y36(Oe,13),u.Y36(Ct,10),u.Y36(Dt,10),u.Y36(w,10),u.Y36(js,8))},re.\u0275dir=u.lG2({type:re,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[u._Bn([$s]),u.qOj,u.TTD]}),re})();function Pr(re){return"number"==typeof re?re:parseFloat(re)}let dc=(()=>{class re{constructor(){this._validator=le}ngOnChanges(Nt){if(this.inputName in Nt){const nt=this.normalizeInput(Nt[this.inputName].currentValue);this._enabled=this.enabled(nt),this._validator=this._enabled?this.createValidator(nt):le,this._onChange&&this._onChange()}}validate(Nt){return this._validator(Nt)}registerOnValidatorChange(Nt){this._onChange=Nt}enabled(Nt){return null!=Nt}}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275dir=u.lG2({type:re,features:[u.TTD]}),re})();const Ha={provide:Ct,useExisting:(0,u.Gpc)(()=>Ya),multi:!0};let Ya=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Nt=>Pr(Nt),this.createValidator=Nt=>Tt(Nt)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("max",nt._enabled?nt.max:null)},inputs:{max:"max"},features:[u._Bn([Ha]),u.qOj]}),re})();const wr={provide:Ct,useExisting:(0,u.Gpc)(()=>xr),multi:!0};let xr=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Nt=>Pr(Nt),this.createValidator=Nt=>Gt(Nt)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("min",nt._enabled?nt.min:null)},inputs:{min:"min"},features:[u._Bn([wr]),u.qOj]}),re})();const ns={provide:Ct,useExisting:(0,u.Gpc)(()=>zs),multi:!0},jn={provide:Ct,useExisting:(0,u.Gpc)(()=>ds),multi:!0};let zs=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=Nt=>Ut}enabled(Nt){return Nt}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("required",nt._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([ns]),u.qOj]}),re})(),ds=(()=>{class re extends zs{constructor(){super(...arguments),this.createValidator=Nt=>bt}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("required",nt._enabled?"":null)},features:[u._Bn([jn]),u.qOj]}),re})();const ks={provide:Ct,useExisting:(0,u.Gpc)(()=>Ks),multi:!0};let Ks=(()=>{class re extends dc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Nt=>function Vl(re){return"number"==typeof re?re:parseInt(re,10)}(Nt),this.createValidator=Nt=>Bt(Nt)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275dir=u.lG2({type:re,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Nt,nt){2&Nt&&u.uIk("maxlength",nt._enabled?nt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[u._Bn([ks]),u.qOj]}),re})(),zr=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[Vc]}),re})(),Ec=(()=>{class re{}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[zr]}),re})(),cl=(()=>{class re{static withConfig(Nt){return{ngModule:re,providers:[{provide:js,useValue:Nt.warnOnNgModelWithFormControl}]}}}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({imports:[zr]}),re})();class Cc extends Le{constructor($t,Nt,nt){super(Be(Nt),rn(nt,Nt)),this.controls=$t,this._initObservables(),this._setUpdateStrategy(Nt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at($t){return this.controls[this._adjustIndex($t)]}push($t,Nt={}){this.controls.push($t),this._registerControl($t),this.updateValueAndValidity({emitEvent:Nt.emitEvent}),this._onCollectionChange()}insert($t,Nt,nt={}){this.controls.splice($t,0,Nt),this._registerControl(Nt),this.updateValueAndValidity({emitEvent:nt.emitEvent})}removeAt($t,Nt={}){let nt=this._adjustIndex($t);nt<0&&(nt=0),this.controls[nt]&&this.controls[nt]._registerOnCollectionChange(()=>{}),this.controls.splice(nt,1),this.updateValueAndValidity({emitEvent:Nt.emitEvent})}setControl($t,Nt,nt={}){let wi=this._adjustIndex($t);wi<0&&(wi=0),this.controls[wi]&&this.controls[wi]._registerOnCollectionChange(()=>{}),this.controls.splice(wi,1),Nt&&(this.controls.splice(wi,0,Nt),this._registerControl(Nt)),this.updateValueAndValidity({emitEvent:nt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue($t,Nt={}){It(this,0,$t),$t.forEach((nt,wi)=>{xe(this,!1,wi),this.at(wi).setValue(nt,{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt)}patchValue($t,Nt={}){null!=$t&&($t.forEach((nt,wi)=>{this.at(wi)&&this.at(wi).patchValue(nt,{onlySelf:!0,emitEvent:Nt.emitEvent})}),this.updateValueAndValidity(Nt))}reset($t=[],Nt={}){this._forEachChild((nt,wi)=>{nt.reset($t[wi],{onlySelf:!0,emitEvent:Nt.emitEvent})}),this._updatePristine(Nt),this._updateTouched(Nt),this.updateValueAndValidity(Nt)}getRawValue(){return this.controls.map($t=>$t.getRawValue())}clear($t={}){this.controls.length<1||(this._forEachChild(Nt=>Nt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:$t.emitEvent}))}_adjustIndex($t){return $t<0?$t+this.length:$t}_syncPendingControls(){let $t=this.controls.reduce((Nt,nt)=>!!nt._syncPendingControls()||Nt,!1);return $t&&this.updateValueAndValidity({onlySelf:!0}),$t}_forEachChild($t){this.controls.forEach((Nt,nt)=>{$t(Nt,nt)})}_updateValue(){this.value=this.controls.filter($t=>$t.enabled||this.disabled).map($t=>$t.value)}_anyControls($t){return this.controls.some(Nt=>Nt.enabled&&$t(Nt))}_setUpControls(){this._forEachChild($t=>this._registerControl($t))}_allControlsDisabled(){for(const $t of this.controls)if($t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl($t){$t.setParent(this),$t._registerOnCollectionChange(this._onCollectionChange)}_find($t){return this.at($t)??null}}function Qi(re){return!!re&&(void 0!==re.asyncValidators||void 0!==re.validators||void 0!==re.updateOn)}let la=(()=>{class re{constructor(){this.useNonNullable=!1}get nonNullable(){const Nt=new re;return Nt.useNonNullable=!0,Nt}group(Nt,nt=null){const wi=this._reduceControls(Nt);let zo={};return Qi(nt)?zo=nt:null!==nt&&(zo.validators=nt.validator,zo.asyncValidators=nt.asyncValidator),new zt(wi,zo)}record(Nt,nt=null){const wi=this._reduceControls(Nt);return new kn(wi,nt)}control(Nt,nt,wi){let zo={};return this.useNonNullable?(Qi(nt)?zo=nt:(zo.validators=nt,zo.asyncValidators=wi),new Or(Nt,{...zo,nonNullable:!0})):new Or(Nt,nt,wi)}array(Nt,nt,wi){const zo=Nt.map(Aa=>this._createControl(Aa));return new Cc(zo,nt,wi)}_reduceControls(Nt){const nt={};return Object.keys(Nt).forEach(wi=>{nt[wi]=this._createControl(Nt[wi])}),nt}_createControl(Nt){return Nt instanceof Or||Nt instanceof Le?Nt:Array.isArray(Nt)?this.control(Nt[0],Nt.length>1?Nt[1]:null,Nt.length>2?Nt[2]:null):this.control(Nt)}}return re.\u0275fac=function(Nt){return new(Nt||re)},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac,providedIn:cl}),re})(),Wr=(()=>{class re extends la{group(Nt,nt=null){return super.group(Nt,nt)}control(Nt,nt,wi){return super.control(Nt,nt,wi)}array(Nt,nt,wi){return super.array(Nt,nt,wi)}}return re.\u0275fac=function(){let $t;return function(nt){return($t||($t=u.n5z(re)))(nt||re)}}(),re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac,providedIn:cl}),re})()},47957:(tt,W,f)=>{"use strict";f.d(W,{Bb:()=>hn,XC:()=>je,ZL:()=>nn});var u=f(12687),d=f(21281),v=f(83353),g=f(94650),t=f(3238),T=f(42654),U=f(8929),w=f(88514),P=f(36787),O=f(21086),L=f(23753),N=f(36895),B=f(98184),K=f(67376),et=f(40445),ct=f(29521),lt=f(84080),Ct=f(24006),Dt=f(59549),Zt=f(1059),Rt=f(87545),Gt=f(72986),Tt=f(92198),Ut=f(24850),bt=f(22868),mt=f(18583);const Lt=["panel"];function Bt(Ce,bn){if(1&Ce&&(g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA()),2&Ce){const Oe=bn.id,dn=g.oxw();g.Q6J("id",dn.id)("ngClass",dn._classList),g.uIk("aria-label",dn.ariaLabel||null)("aria-labelledby",dn._getPanelAriaLabelledby(Oe))}}const kt=["*"];let le=0;class Vt{constructor(bn,Oe){this.source=bn,this.option=Oe}}const be=(0,t.Kr)(class{}),ge=new g.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Fe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let qe=(()=>{class Ce extends be{constructor(Oe,dn,Pn,ii){super(),this._changeDetectorRef=Oe,this._elementRef=dn,this._activeOptionChanges=T.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new g.vpe,this.opened=new g.vpe,this.closed=new g.vpe,this.optionActivated=new g.vpe,this._classList={},this.id="mat-autocomplete-"+le++,this.inertGroups=ii?.SAFARI||!1,this._autoActiveFirstOption=!!Pn.autoActiveFirstOption,this._autoSelectActiveOption=!!Pn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Oe){this._autoActiveFirstOption=(0,d.Ig)(Oe)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Oe){this._autoSelectActiveOption=(0,d.Ig)(Oe)}set classList(Oe){this._classList=Oe&&Oe.length?(0,d.du)(Oe).reduce((dn,Pn)=>(dn[Pn]=!0,dn),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new u.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Oe=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Oe]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Oe){this.panel&&(this.panel.nativeElement.scrollTop=Oe)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Oe){const dn=new Vt(this,Oe);this.optionSelected.emit(dn)}_getPanelAriaLabelledby(Oe){return this.ariaLabel?null:this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_setVisibilityClasses(Oe){Oe[this._visibleClass]=this.showPanel,Oe[this._hiddenClass]=!this.showPanel}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(g.Y36(g.sBO),g.Y36(g.SBq),g.Y36(ge),g.Y36(v.t4))},Ce.\u0275dir=g.lG2({type:Ce,viewQuery:function(Oe,dn){if(1&Oe&&(g.Gf(g.Rgc,7),g.Gf(Lt,5)),2&Oe){let Pn;g.iGM(Pn=g.CRH())&&(dn.template=Pn.first),g.iGM(Pn=g.CRH())&&(dn.panel=Pn.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[g.qOj]}),Ce})(),je=(()=>{class Ce extends qe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ce.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=g.n5z(Ce)))(dn||Ce)}}(),Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-autocomplete"]],contentQueries:function(Oe,dn,Pn){if(1&Oe&&(g.Suo(Pn,t.K7,5),g.Suo(Pn,t.ey,5)),2&Oe){let ii;g.iGM(ii=g.CRH())&&(dn.optionGroups=ii),g.iGM(ii=g.CRH())&&(dn.options=ii)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[g._Bn([{provide:t.HF,useExisting:Ce}]),g.qOj],ngContentSelectors:kt,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Oe,dn){1&Oe&&(g.F$t(),g.YNc(0,Bt,3,4,"ng-template"))},dependencies:[N.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Ce})();const ie=new g.OlP("mat-autocomplete-scroll-strategy"),se={provide:ie,deps:[B.aV],useFactory:function Wt(Ce){return()=>Ce.scrollStrategies.reposition()}},Xt={provide:Ct.JU,useExisting:(0,g.Gpc)(()=>nn),multi:!0};let De=(()=>{class Ce{constructor(Oe,dn,Pn,ii,_i,oi,We,ee,ot,X,At){this._element=Oe,this._overlay=dn,this._viewContainerRef=Pn,this._zone=ii,this._changeDetectorRef=_i,this._dir=We,this._formField=ee,this._document=ot,this._viewportRuler=X,this._defaults=At,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=T.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,w.P)(()=>{const Ht=this.autocomplete?this.autocomplete.options:null;return Ht?Ht.changes.pipe((0,Zt.O)(Ht),(0,Rt.w)(()=>(0,P.T)(...Ht.map(ue=>ue.onSelectionChange)))):this._zone.onStable.pipe((0,Gt.q)(1),(0,Rt.w)(()=>this.optionSelections))}),this._scrollStrategy=oi}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Oe){this._autocompleteDisabled=(0,d.Ig)(Oe)}ngAfterViewInit(){const Oe=this._getWindow();typeof Oe<"u"&&this._zone.runOutsideAngular(()=>Oe.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Oe){Oe.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Oe=this._getWindow();typeof Oe<"u"&&Oe.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,P.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Tt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Tt.h)(()=>this._overlayAttached)):(0,O.of)()).pipe((0,Ut.U)(Oe=>Oe instanceof t.rN?Oe:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,Tt.h)(Oe=>{const dn=(0,v.sA)(Oe),Pn=this._formField?this._formField._elementRef.nativeElement:null,ii=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&dn!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Pn||!Pn.contains(dn))&&(!ii||!ii.contains(dn))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(dn)}))}writeValue(Oe){Promise.resolve(null).then(()=>this._assignOptionValue(Oe))}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this._element.nativeElement.disabled=Oe}_handleKeydown(Oe){const dn=Oe.keyCode,Pn=(0,ct.Vb)(Oe);if(dn===ct.hY&&!Pn&&Oe.preventDefault(),this.activeOption&&dn===ct.K5&&this.panelOpen&&!Pn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Oe.preventDefault();else if(this.autocomplete){const ii=this.autocomplete._keyManager.activeItem,_i=dn===ct.LH||dn===ct.JH;dn===ct.Mf||_i&&!Pn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Oe):_i&&this._canOpen()&&this.openPanel(),(_i||this.autocomplete._keyManager.activeItem!==ii)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Oe){let dn=Oe.target,Pn=dn.value;"number"===dn.type&&(Pn=""==Pn?null:parseFloat(Pn)),this._previousValue!==Pn&&(this._previousValue=Pn,this._pendingAutoselectedOption=null,this._onChange(Pn),this._canOpen()&&this._document.activeElement===Oe.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Oe=!1){this._formField&&"auto"===this._formField.floatLabel&&(Oe?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Oe=this._zone.onStable.pipe((0,Gt.q)(1)),dn=this.autocomplete.options.changes.pipe((0,bt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,mt.g)(0));return(0,P.T)(Oe,dn).pipe((0,Rt.w)(()=>(this._zone.run(()=>{const Pn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Pn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Gt.q)(1)).subscribe(Pn=>this._setValueAndClose(Pn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Oe){const dn=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Oe):Oe;this._updateNativeInputValue(dn??"")}_updateNativeInputValue(Oe){this._formField?this._formField._control.value=Oe:this._element.nativeElement.value=Oe,this._previousValue=Oe}_setValueAndClose(Oe){const dn=Oe?Oe.source:this._pendingAutoselectedOption;dn&&(this._clearPreviousSelectedOption(dn),this._assignOptionValue(dn.value),this._onChange(dn.value),this.autocomplete._emitSelectEvent(dn),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Oe){this.autocomplete.options.forEach(dn=>{dn!==Oe&&dn.selected&&dn.deselect()})}_attachOverlay(){let Oe=this._overlayRef;Oe?(this._positionStrategy.setOrigin(this._getConnectedElement()),Oe.updateSize({width:this._getPanelWidth()})):(this._portal=new lt.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Oe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Oe,this._handleOverlayEvents(Oe),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Oe&&Oe.updateSize({width:this._getPanelWidth()})})),Oe&&!Oe.hasAttached()&&(Oe.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const dn=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&dn!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new B.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Oe=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Oe),this._positionStrategy=Oe,Oe}_setStrategyPositions(Oe){const dn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Pn=this._aboveClass,ii=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Pn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Pn}];let _i;_i="above"===this.position?ii:"below"===this.position?dn:[...dn,...ii],Oe.withPositions(_i)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Oe=this.autocomplete;Oe.autoActiveFirstOption?Oe._keyManager.setFirstItemActive():Oe._keyManager.setActiveItem(-1)}_canOpen(){const Oe=this._element.nativeElement;return!Oe.readOnly&&!Oe.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Oe){const dn=this.autocomplete,Pn=(0,t.CB)(Oe,dn.options,dn.optionGroups);if(0===Oe&&1===Pn)dn._setScrollTop(0);else if(dn.panel){const ii=dn.options.toArray()[Oe];if(ii){const _i=ii._getHostElement(),oi=(0,t.jH)(_i.offsetTop,_i.offsetHeight,dn._getScrollTop(),dn.panel.nativeElement.offsetHeight);dn._setScrollTop(oi)}}}_handleOverlayEvents(Oe){Oe.keydownEvents().subscribe(dn=>{(dn.keyCode===ct.hY&&!(0,ct.Vb)(dn)||dn.keyCode===ct.LH&&(0,ct.Vb)(dn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),dn.stopPropagation(),dn.preventDefault())}),Oe.outsidePointerEvents().subscribe()}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(g.Y36(g.SBq),g.Y36(B.aV),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(g.sBO),g.Y36(ie),g.Y36(et.Is,8),g.Y36(Dt.G_,9),g.Y36(N.K0,8),g.Y36(K.rL),g.Y36(ge,8))},Ce.\u0275dir=g.lG2({type:Ce,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[g.TTD]}),Ce})(),nn=(()=>{class Ce extends De{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ce.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=g.n5z(Ce)))(dn||Ce)}}(),Ce.\u0275dir=g.lG2({type:Ce,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Oe,dn){1&Oe&&g.NdJ("focusin",function(){return dn._handleFocus()})("blur",function(){return dn._onTouched()})("input",function(ii){return dn._handleInput(ii)})("keydown",function(ii){return dn._handleKeydown(ii)})("click",function(){return dn._handleClick()}),2&Oe&&g.uIk("autocomplete",dn.autocompleteAttribute)("role",dn.autocompleteDisabled?null:"combobox")("aria-autocomplete",dn.autocompleteDisabled?null:"list")("aria-activedescendant",dn.panelOpen&&dn.activeOption?dn.activeOption.id:null)("aria-expanded",dn.autocompleteDisabled?null:dn.panelOpen.toString())("aria-owns",dn.autocompleteDisabled||!dn.panelOpen||null==dn.autocomplete?null:dn.autocomplete.id)("aria-haspopup",dn.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[g._Bn([Xt]),g.qOj]}),Ce})(),hn=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[se],imports:[B.U8,t.Ng,t.BQ,N.ez,K.ZD,t.Ng,t.BQ]}),Ce})()},42673:(tt,W,f)=>{"use strict";f.d(W,{g:()=>P,k:()=>w});var u=f(94650),d=f(3238),v=f(12687),g=f(21281);let t=0;const T=(0,d.Id)(class{}),U="mat-badge-content";let w=(()=>{class O extends T{constructor(N,B,K,et,ct){super(),this._ngZone=N,this._elementRef=B,this._ariaDescriber=K,this._renderer=et,this._animationMode=ct,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(N){this._setColor(N),this._color=N}get overlap(){return this._overlap}set overlap(N){this._overlap=(0,g.Ig)(N)}get content(){return this._content}set content(N){this._updateRenderedContent(N)}get description(){return this._description}set description(N){this._updateHostAriaDescription(N)}get hidden(){return this._hidden}set hidden(N){this._hidden=(0,g.Ig)(N)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const N=this._renderer.createElement("span"),B="mat-badge-active";return N.setAttribute("id",`mat-badge-content-${this._id}`),N.setAttribute("aria-hidden","true"),N.classList.add(U),"NoopAnimations"===this._animationMode&&N.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(N),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{N.classList.add(B)})}):N.classList.add(B),N}_updateRenderedContent(N){const B=`${N??""}`.trim();this._isInitialized&&B&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=B),this._content=B}_updateHostAriaDescription(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),N&&this._ariaDescriber.describe(this._elementRef.nativeElement,N),this._description=N}_setColor(N){const B=this._elementRef.nativeElement.classList;B.remove(`mat-badge-${this._color}`),N&&B.add(`mat-badge-${N}`)}_clearExistingBadges(){const N=this._elementRef.nativeElement.querySelectorAll(`:scope > .${U}`);for(const B of Array.from(N))B!==this._badgeElement&&B.remove()}}return O.\u0275fac=function(N){return new(N||O)(u.Y36(u.R0b),u.Y36(u.SBq),u.Y36(v.$s),u.Y36(u.Qsj),u.Y36(u.QbO,8))},O.\u0275dir=u.lG2({type:O,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(N,B){2&N&&u.ekj("mat-badge-overlap",B.overlap)("mat-badge-above",B.isAbove())("mat-badge-below",!B.isAbove())("mat-badge-before",!B.isAfter())("mat-badge-after",B.isAfter())("mat-badge-small","small"===B.size)("mat-badge-medium","medium"===B.size)("mat-badge-large","large"===B.size)("mat-badge-hidden",B.hidden||!B.content)("mat-badge-disabled",B.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[u.qOj]}),O})(),P=(()=>{class O{}return O.\u0275fac=function(N){return new(N||O)},O.\u0275mod=u.oAB({type:O}),O.\u0275inj=u.cJS({imports:[v.rt,d.BQ,d.BQ]}),O})()},90811:(tt,W,f)=>{"use strict";f.d(W,{A9:()=>K,Yi:()=>ct,vV:()=>lt});var u=f(12687),d=f(21281),v=f(95017),g=f(94650),t=f(24006),T=f(3238);const U=["button"],w=["*"],P=new g.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),O=new g.OlP("MatButtonToggleGroup"),L={provide:t.JU,useExisting:(0,g.Gpc)(()=>K),multi:!0};let N=0;class B{constructor(Dt,Zt){this.source=Dt,this.value=Zt}}let K=(()=>{class Ct{constructor(Zt,Rt){this._changeDetector=Zt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+N++,this.valueChange=new g.vpe,this.change=new g.vpe,this.appearance=Rt&&Rt.appearance?Rt.appearance:"standard"}get name(){return this._name}set name(Zt){this._name=Zt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Zt){this._vertical=(0,d.Ig)(Zt)}get value(){const Zt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Zt.map(Rt=>Rt.value):Zt[0]?Zt[0].value:void 0}set value(Zt){this._setSelectionByValue(Zt),this.valueChange.emit(this.value)}get selected(){const Zt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Zt:Zt[0]||null}get multiple(){return this._multiple}set multiple(Zt){this._multiple=(0,d.Ig)(Zt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Zt){this._disabled=(0,d.Ig)(Zt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new v.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Zt=>Zt.checked))}writeValue(Zt){this.value=Zt,this._changeDetector.markForCheck()}registerOnChange(Zt){this._controlValueAccessorChangeFn=Zt}registerOnTouched(Zt){this._onTouched=Zt}setDisabledState(Zt){this.disabled=Zt}_emitChangeEvent(Zt){const Rt=new B(Zt,this.value);this._controlValueAccessorChangeFn(Rt.value),this.change.emit(Rt)}_syncButtonToggle(Zt,Rt,Gt=!1,Tt=!1){!this.multiple&&this.selected&&!Zt.checked&&(this.selected.checked=!1),this._selectionModel?Rt?this._selectionModel.select(Zt):this._selectionModel.deselect(Zt):Tt=!0,Tt?Promise.resolve().then(()=>this._updateModelValue(Zt,Gt)):this._updateModelValue(Zt,Gt)}_isSelected(Zt){return this._selectionModel&&this._selectionModel.isSelected(Zt)}_isPrechecked(Zt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(Rt=>null!=Zt.value&&Rt===Zt.value):Zt.value===this._rawValue)}_setSelectionByValue(Zt){this._rawValue=Zt,this._buttonToggles&&(this.multiple&&Zt?(Array.isArray(Zt),this._clearSelection(),Zt.forEach(Rt=>this._selectValue(Rt))):(this._clearSelection(),this._selectValue(Zt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Zt=>Zt.checked=!1)}_selectValue(Zt){const Rt=this._buttonToggles.find(Gt=>null!=Gt.value&&Gt.value===Zt);Rt&&(Rt.checked=!0,this._selectionModel.select(Rt))}_updateModelValue(Zt,Rt){Rt&&this._emitChangeEvent(Zt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Zt=>Zt._markForCheck())}}return Ct.\u0275fac=function(Zt){return new(Zt||Ct)(g.Y36(g.sBO),g.Y36(P,8))},Ct.\u0275dir=g.lG2({type:Ct,selectors:[["mat-button-toggle-group"]],contentQueries:function(Zt,Rt,Gt){if(1&Zt&&g.Suo(Gt,ct,5),2&Zt){let Tt;g.iGM(Tt=g.CRH())&&(Rt._buttonToggles=Tt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Zt,Rt){2&Zt&&(g.uIk("aria-disabled",Rt.disabled),g.ekj("mat-button-toggle-vertical",Rt.vertical)("mat-button-toggle-group-appearance-standard","standard"===Rt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[g._Bn([L,{provide:O,useExisting:Ct}])]}),Ct})();const et=(0,T.Kr)(class{});let ct=(()=>{class Ct extends et{constructor(Zt,Rt,Gt,Tt,Ut,bt){super(),this._changeDetectorRef=Rt,this._elementRef=Gt,this._focusMonitor=Tt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new g.vpe;const mt=Number(Ut);this.tabIndex=mt||0===mt?mt:null,this.buttonToggleGroup=Zt,this.appearance=bt&&bt.appearance?bt.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Zt){this._appearance=Zt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Zt){const Rt=(0,d.Ig)(Zt);Rt!==this._checked&&(this._checked=Rt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Zt){this._disabled=(0,d.Ig)(Zt)}ngOnInit(){const Zt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+N++,Zt&&(Zt._isPrechecked(this)?this.checked=!0:Zt._isSelected(this)!==this._checked&&Zt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Zt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Zt&&Zt._isSelected(this)&&Zt._syncButtonToggle(this,!1,!1,!0)}focus(Zt){this._buttonElement.nativeElement.focus(Zt)}_onButtonClick(){const Zt=!!this._isSingleSelector()||!this._checked;Zt!==this._checked&&(this._checked=Zt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new B(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return Ct.\u0275fac=function(Zt){return new(Zt||Ct)(g.Y36(O,8),g.Y36(g.sBO),g.Y36(g.SBq),g.Y36(u.tE),g.$8M("tabindex"),g.Y36(P,8))},Ct.\u0275cmp=g.Xpm({type:Ct,selectors:[["mat-button-toggle"]],viewQuery:function(Zt,Rt){if(1&Zt&&g.Gf(U,5),2&Zt){let Gt;g.iGM(Gt=g.CRH())&&(Rt._buttonElement=Gt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Zt,Rt){1&Zt&&g.NdJ("focus",function(){return Rt.focus()}),2&Zt&&(g.uIk("aria-label",null)("aria-labelledby",null)("id",Rt.id)("name",null),g.ekj("mat-button-toggle-standalone",!Rt.buttonToggleGroup)("mat-button-toggle-checked",Rt.checked)("mat-button-toggle-disabled",Rt.disabled)("mat-button-toggle-appearance-standard","standard"===Rt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[g.qOj],ngContentSelectors:w,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(Zt,Rt){if(1&Zt&&(g.F$t(),g.TgZ(0,"button",0,1),g.NdJ("click",function(){return Rt._onButtonClick()}),g.TgZ(2,"span",2),g.Hsn(3),g.qZA()(),g._UZ(4,"span",3)(5,"span",4)),2&Zt){const Gt=g.MAs(1);g.Q6J("id",Rt.buttonId)("disabled",Rt.disabled||null),g.uIk("tabindex",Rt.disabled?-1:Rt.tabIndex)("aria-pressed",Rt.checked)("name",Rt._getButtonName())("aria-label",Rt.ariaLabel)("aria-labelledby",Rt.ariaLabelledby),g.xp6(5),g.Q6J("matRippleTrigger",Gt)("matRippleDisabled",Rt.disableRipple||Rt.disabled)}},dependencies:[T.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),Ct})(),lt=(()=>{class Ct{}return Ct.\u0275fac=function(Zt){return new(Zt||Ct)},Ct.\u0275mod=g.oAB({type:Ct}),Ct.\u0275inj=g.cJS({imports:[T.BQ,T.si,T.BQ]}),Ct})()},4859:(tt,W,f)=>{"use strict";f.d(W,{lW:()=>O,ot:()=>N});var u=f(94650),d=f(3238),v=f(12687);const g=["mat-button",""],t=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],P=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(B){this._elementRef=B}})));let O=(()=>{class B extends P{constructor(et,ct,lt){super(et),this._focusMonitor=ct,this._animationMode=lt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ct of w)this._hasHostAttributes(Ct)&&this._getHostElement().classList.add(Ct);et.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(et,ct){et?this._focusMonitor.focusVia(this._getHostElement(),et,ct):this._getHostElement().focus(ct)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...et){return et.some(ct=>this._getHostElement().hasAttribute(ct))}}return B.\u0275fac=function(et){return new(et||B)(u.Y36(u.SBq),u.Y36(v.tE),u.Y36(u.QbO,8))},B.\u0275cmp=u.Xpm({type:B,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(et,ct){if(1&et&&u.Gf(d.wG,5),2&et){let lt;u.iGM(lt=u.CRH())&&(ct.ripple=lt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(et,ct){2&et&&(u.uIk("disabled",ct.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===ct._animationMode)("mat-button-disabled",ct.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:g,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(et,ct){1&et&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&et&&(u.xp6(2),u.ekj("mat-button-ripple-round",ct.isRoundButton||ct.isIconButton),u.Q6J("matRippleDisabled",ct._isRippleDisabled())("matRippleCentered",ct.isIconButton)("matRippleTrigger",ct._getHostElement()))},dependencies:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),B})(),N=(()=>{class B{}return B.\u0275fac=function(et){return new(et||B)},B.\u0275mod=u.oAB({type:B}),B.\u0275inj=u.cJS({imports:[d.si,d.BQ,d.BQ]}),B})()},73546:(tt,W,f)=>{"use strict";f.d(W,{$j:()=>L,C1:()=>Gt,G2:()=>K,QW:()=>Tt,a8:()=>Zt,dk:()=>Rt,dn:()=>P,hq:()=>N,n5:()=>O,nc:()=>ct});var u=f(94650),d=f(3238);const v=["*",[["mat-card-footer"]]],g=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],T=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],U=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let P=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Ut})(),O=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Ut})(),L=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Ut})(),N=(()=>{class Ut{constructor(){this.align="start"}}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(mt,Lt){2&mt&&u.ekj("mat-card-actions-align-end","end"===Lt.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Ut})(),K=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ut})(),ct=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275dir=u.lG2({type:Ut,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Ut})(),Zt=(()=>{class Ut{constructor(mt){this._animationMode=mt}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(u.Y36(u.QbO,8))},Ut.\u0275cmp=u.Xpm({type:Ut,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(mt,Lt){2&mt&&u.ekj("_mat-animation-noopable","NoopAnimations"===Lt._animationMode)},exportAs:["matCard"],ngContentSelectors:g,decls:2,vars:0,template:function(mt,Lt){1&mt&&(u.F$t(v),u.Hsn(0),u.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Ut})(),Rt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275cmp=u.Xpm({type:Ut,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:T,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(mt,Lt){1&mt&&(u.F$t(t),u.Hsn(0),u.TgZ(1,"div",0),u.Hsn(2,1),u.qZA(),u.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ut})(),Gt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275cmp=u.Xpm({type:Ut,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(mt,Lt){1&mt&&(u.F$t(U),u.TgZ(0,"div"),u.Hsn(1),u.qZA(),u.Hsn(2,1),u.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ut})(),Tt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=u.oAB({type:Ut}),Ut.\u0275inj=u.cJS({imports:[d.BQ,d.BQ]}),Ut})()},56709:(tt,W,f)=>{"use strict";f.d(W,{e_:()=>Rt,oG:()=>Dt,p9:()=>Tt});var u=f(12687),d=f(21281),v=f(94650),g=f(24006),t=f(3238),T=f(49643);const U=["input"],w=["label"],P=function(Ut){return{enterDuration:Ut}},O=["*"],L=new v.OlP("mat-checkbox-default-options",{providedIn:"root",factory:N});function N(){return{color:"accent",clickAction:"check-indeterminate"}}let B=0;const K=N(),et={provide:g.JU,useExisting:(0,v.Gpc)(()=>Dt),multi:!0};class ct{}const lt=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Ut){this._elementRef=Ut}}))));let Ct=(()=>{class Ut extends lt{constructor(mt,Lt,Bt,kt,le,Vt,be){super(Lt),this._changeDetectorRef=Bt,this._ngZone=kt,this._animationMode=Vt,this._options=be,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new v.vpe,this.indeterminateChange=new v.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||K,this.color=this.defaultColor=this._options.color||K.color,this.tabIndex=parseInt(le)||0,this.id=this._uniqueId=`${mt}${++B}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(mt){this._required=(0,d.Ig)(mt)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(mt){const Lt=(0,d.Ig)(mt);Lt!=this.checked&&(this._checked=Lt,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(mt){const Lt=(0,d.Ig)(mt);Lt!==this.disabled&&(this._disabled=Lt,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(mt){const Lt=mt!=this._indeterminate;this._indeterminate=(0,d.Ig)(mt),Lt&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(mt){this.checked=!!mt}registerOnChange(mt){this._controlValueAccessorChangeFn=mt}registerOnTouched(mt){this._onTouched=mt}setDisabledState(mt){this.disabled=mt}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(mt){let Lt=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Lt!==mt&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Lt,mt),this._currentCheckState=mt,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const kt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(kt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const mt=this._options?.clickAction;this.disabled||"noop"===mt?!this.disabled&&"noop"===mt&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==mt&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(mt){mt.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(mt,Lt){if("NoopAnimations"===this._animationMode)return"";switch(mt){case 0:if(1===Lt)return this._animationClasses.uncheckedToChecked;if(3==Lt)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Lt?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Lt?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Lt?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(mt){const Lt=this._inputElement;Lt&&(Lt.nativeElement.indeterminate=mt)}}return Ut.\u0275fac=function(mt){v.$Z()},Ut.\u0275dir=v.lG2({type:Ut,viewQuery:function(mt,Lt){if(1&mt&&(v.Gf(U,5),v.Gf(w,5),v.Gf(t.wG,5)),2&mt){let Bt;v.iGM(Bt=v.CRH())&&(Lt._inputElement=Bt.first),v.iGM(Bt=v.CRH())&&(Lt._labelElement=Bt.first),v.iGM(Bt=v.CRH())&&(Lt.ripple=Bt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[v.qOj]}),Ut})(),Dt=(()=>{class Ut extends Ct{constructor(mt,Lt,Bt,kt,le,Vt,be){super("mat-checkbox-",mt,Lt,kt,le,Vt,be),this._focusMonitor=Bt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(mt){const Lt=new ct;return Lt.source=this,Lt.checked=mt,Lt}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(mt=>{mt||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(mt){mt.stopPropagation(),super._handleInputClick()}focus(mt,Lt){mt?this._focusMonitor.focusVia(this._inputElement,mt,Lt):this._inputElement.nativeElement.focus(Lt)}}return Ut.\u0275fac=function(mt){return new(mt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(u.tE),v.Y36(v.R0b),v.$8M("tabindex"),v.Y36(v.QbO,8),v.Y36(L,8))},Ut.\u0275cmp=v.Xpm({type:Ut,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(mt,Lt){2&mt&&(v.Ikx("id",Lt.id),v.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),v.ekj("mat-checkbox-indeterminate",Lt.indeterminate)("mat-checkbox-checked",Lt.checked)("mat-checkbox-disabled",Lt.disabled)("mat-checkbox-label-before","before"==Lt.labelPosition)("_mat-animation-noopable","NoopAnimations"===Lt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[v._Bn([et]),v.qOj],ngContentSelectors:O,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(mt,Lt){if(1&mt&&(v.F$t(),v.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),v.NdJ("change",function(kt){return Lt._onInteractionEvent(kt)})("click",function(kt){return Lt._onInputClick(kt)}),v.qZA(),v.TgZ(5,"span",5),v._UZ(6,"span",6),v.qZA(),v._UZ(7,"span",7),v.TgZ(8,"span",8),v.O4$(),v.TgZ(9,"svg",9),v._UZ(10,"path",10),v.qZA(),v.kcU(),v._UZ(11,"span",11),v.qZA()(),v.TgZ(12,"span",12,13),v.NdJ("cdkObserveContent",function(){return Lt._onLabelTextChange()}),v.TgZ(14,"span",14),v._uU(15,"\xa0"),v.qZA(),v.Hsn(16),v.qZA()()),2&mt){const Bt=v.MAs(1),kt=v.MAs(13);v.uIk("for",Lt.inputId),v.xp6(2),v.ekj("mat-checkbox-inner-container-no-side-margin",!kt.textContent||!kt.textContent.trim()),v.xp6(1),v.Q6J("id",Lt.inputId)("required",Lt.required)("checked",Lt.checked)("disabled",Lt.disabled)("tabIndex",Lt.tabIndex),v.uIk("value",Lt.value)("name",Lt.name)("aria-label",Lt.ariaLabel||null)("aria-labelledby",Lt.ariaLabelledby)("aria-checked",Lt._getAriaChecked())("aria-describedby",Lt.ariaDescribedby),v.xp6(2),v.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Lt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",v.VKq(19,P,"NoopAnimations"===Lt._animationMode?0:150))}},dependencies:[t.wG,T.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ut})();const Zt={provide:g.Cf,useExisting:(0,v.Gpc)(()=>Rt),multi:!0};let Rt=(()=>{class Ut extends g.Zs{}return Ut.\u0275fac=function(){let bt;return function(Lt){return(bt||(bt=v.n5z(Ut)))(Lt||Ut)}}(),Ut.\u0275dir=v.lG2({type:Ut,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[v._Bn([Zt]),v.qOj]}),Ut})(),Gt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=v.oAB({type:Ut}),Ut.\u0275inj=v.cJS({}),Ut})(),Tt=(()=>{class Ut{}return Ut.\u0275fac=function(mt){return new(mt||Ut)},Ut.\u0275mod=v.oAB({type:Ut}),Ut.\u0275inj=v.cJS({imports:[t.si,t.BQ,T.Q8,Gt,t.BQ,Gt]}),Ut})()},3238:(tt,W,f)=>{"use strict";f.d(W,{yN:()=>Ct,mZ:()=>Dt,_A:()=>Fe,rD:()=>ae,sG:()=>qe,Ad:()=>be,K7:()=>qn,HF:()=>ue,Y2:()=>ee,BQ:()=>Gt,X2:()=>De,uc:()=>Ce,XK:()=>se,ey:()=>zn,Ng:()=>xn,rN:()=>bo,nP:()=>At,us:()=>Ht,wG:()=>ot,si:()=>X,IR:()=>oi,CB:()=>Bn,jH:()=>Qe,pj:()=>Lt,Kr:()=>Bt,Id:()=>mt,FD:()=>le,dB:()=>Vt,sb:()=>kt,E0:()=>nn});var u=f(94650),d=f(12687),v=f(40445),t=f(36895),T=f(83353),U=f(21281),w=f(56498),P=f(8929),O=f(1059),L=f(29521);function K(Ve,Ne){if(1&Ve&&u._UZ(0,"mat-pseudo-checkbox",4),2&Ve){const tn=u.oxw();u.Q6J("state",tn.selected?"checked":"unchecked")("disabled",tn.disabled)}}function et(Ve,Ne){if(1&Ve&&(u.TgZ(0,"span",5),u._uU(1),u.qZA()),2&Ve){const tn=u.oxw();u.xp6(1),u.hij("(",tn.group.label,")")}}const ct=["*"];let Ct=(()=>{class Ve{}return Ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ve})(),Dt=(()=>{class Ve{}return Ve.COMPLEX="375ms",Ve.ENTERING="225ms",Ve.EXITING="195ms",Ve})();const Rt=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function Zt(){return!0}});let Gt=(()=>{class Ve{constructor(tn,ce,Be){this._sanityChecks=ce,this._document=Be,this._hasDoneGlobalChecks=!1,tn._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(tn){return!(0,T.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[tn])}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.LFG(d.qm),u.LFG(Rt,8),u.LFG(t.K0))},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[v.vT,v.vT]}),Ve})();function mt(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ne){this._disabled=(0,U.Ig)(Ne)}}}function Lt(Ve,Ne){return class extends Ve{constructor(...tn){super(...tn),this.defaultColor=Ne,this.color=Ne}get color(){return this._color}set color(tn){const ce=tn||this.defaultColor;ce!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ce&&this._elementRef.nativeElement.classList.add(`mat-${ce}`),this._color=ce)}}}function Bt(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ne){this._disableRipple=(0,U.Ig)(Ne)}}}function kt(Ve,Ne=0){return class extends Ve{constructor(...tn){super(...tn),this._tabIndex=Ne,this.defaultTabIndex=Ne}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(tn){this._tabIndex=null!=tn?(0,U.su)(tn):this.defaultTabIndex}}}function le(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this.errorState=!1}updateErrorState(){const Ne=this.errorState,oe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);oe!==Ne&&(this.errorState=oe,this.stateChanges.next())}}}function Vt(Ve){return class extends Ve{constructor(...Ne){super(...Ne),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(tn=>{this._isInitialized?this._notifySubscriber(tn):this._pendingSubscribers.push(tn)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ne){Ne.next(),Ne.complete()}}}const be=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function ge(){return(0,u.f3M)(u.soG)}});class Fe{constructor(){this._localeChanges=new P.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ne){return this.isDateInstance(Ne)&&this.isValid(Ne)?Ne:null}deserialize(Ne){return null==Ne||this.isDateInstance(Ne)&&this.isValid(Ne)?Ne:this.invalid()}setLocale(Ne){this.locale=Ne,this._localeChanges.next()}compareDate(Ne,tn){return this.getYear(Ne)-this.getYear(tn)||this.getMonth(Ne)-this.getMonth(tn)||this.getDate(Ne)-this.getDate(tn)}sameDate(Ne,tn){if(Ne&&tn){let ce=this.isValid(Ne),Be=this.isValid(tn);return ce&&Be?!this.compareDate(Ne,tn):ce==Be}return Ne==tn}clampDate(Ne,tn,ce){return tn&&this.compareDate(Ne,tn)<0?tn:ce&&this.compareDate(Ne,ce)>0?ce:Ne}}const qe=new u.OlP("mat-date-formats"),je=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Qt(Ve,Ne){const tn=Array(Ve);for(let ce=0;ce{class Ve extends Fe{constructor(tn,ce){super(),this.useUtcForDisplay=!1,super.setLocale(tn)}getYear(tn){return tn.getFullYear()}getMonth(tn){return tn.getMonth()}getDate(tn){return tn.getDate()}getDayOfWeek(tn){return tn.getDay()}getMonthNames(tn){const ce=new Intl.DateTimeFormat(this.locale,{month:tn,timeZone:"utc"});return Qt(12,Be=>this._format(ce,new Date(2017,Be,1)))}getDateNames(){const tn=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Qt(31,ce=>this._format(tn,new Date(2017,0,ce+1)))}getDayOfWeekNames(tn){const ce=new Intl.DateTimeFormat(this.locale,{weekday:tn,timeZone:"utc"});return Qt(7,Be=>this._format(ce,new Date(2017,0,Be+1)))}getYearName(tn){const ce=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ce,tn)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(tn){return this.getDate(this._createDateWithOverflow(this.getYear(tn),this.getMonth(tn)+1,0))}clone(tn){return new Date(tn.getTime())}createDate(tn,ce,Be){let oe=this._createDateWithOverflow(tn,ce,Be);return oe.getMonth(),oe}today(){return new Date}parse(tn,ce){return"number"==typeof tn?new Date(tn):tn?new Date(Date.parse(tn)):null}format(tn,ce){if(!this.isValid(tn))throw Error("NativeDateAdapter: Cannot format invalid date.");const Be=new Intl.DateTimeFormat(this.locale,{...ce,timeZone:"utc"});return this._format(Be,tn)}addCalendarYears(tn,ce){return this.addCalendarMonths(tn,12*ce)}addCalendarMonths(tn,ce){let Be=this._createDateWithOverflow(this.getYear(tn),this.getMonth(tn)+ce,this.getDate(tn));return this.getMonth(Be)!=((this.getMonth(tn)+ce)%12+12)%12&&(Be=this._createDateWithOverflow(this.getYear(Be),this.getMonth(Be),0)),Be}addCalendarDays(tn,ce){return this._createDateWithOverflow(this.getYear(tn),this.getMonth(tn),this.getDate(tn)+ce)}toIso8601(tn){return[tn.getUTCFullYear(),this._2digit(tn.getUTCMonth()+1),this._2digit(tn.getUTCDate())].join("-")}deserialize(tn){if("string"==typeof tn){if(!tn)return null;if(je.test(tn)){let ce=new Date(tn);if(this.isValid(ce))return ce}}return super.deserialize(tn)}isDateInstance(tn){return tn instanceof Date}isValid(tn){return!isNaN(tn.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(tn,ce,Be){const oe=new Date;return oe.setFullYear(tn,ce,Be),oe.setHours(0,0,0,0),oe}_2digit(tn){return("00"+tn).slice(-2)}_format(tn,ce){const Be=new Date;return Be.setUTCFullYear(ce.getFullYear(),ce.getMonth(),ce.getDate()),Be.setUTCHours(ce.getHours(),ce.getMinutes(),ce.getSeconds(),ce.getMilliseconds()),tn.format(Be)}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.LFG(be,8),u.LFG(T.t4))},Ve.\u0275prov=u.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ie={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Wt=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({providers:[{provide:Fe,useClass:Ue}]}),Ve})(),se=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({providers:[{provide:qe,useValue:ie}],imports:[Wt]}),Ve})(),ae=(()=>{class Ve{isErrorState(tn,ce){return!!(tn&&tn.invalid&&(tn.touched||ce&&ce.submitted))}}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275prov=u.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),De=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275dir=u.lG2({type:Ve,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ve})();function nn(Ve,Ne,tn="mat"){Ve.changes.pipe((0,O.O)(Ve)).subscribe(({length:ce})=>{hn(Ne,`${tn}-2-line`,!1),hn(Ne,`${tn}-3-line`,!1),hn(Ne,`${tn}-multi-line`,!1),2===ce||3===ce?hn(Ne,`${tn}-${ce}-line`,!0):ce>3&&hn(Ne,`${tn}-multi-line`,!0)})}function hn(Ve,Ne,tn){Ve.nativeElement.classList.toggle(Ne,tn)}let Ce=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[Gt,Gt]}),Ve})();class bn{constructor(Ne,tn,ce,Be=!1){this._renderer=Ne,this.element=tn,this.config=ce,this._animationForciblyDisabledThroughCss=Be,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Oe={enterDuration:225,exitDuration:150},Pn=(0,T.i$)({passive:!0}),ii=["mousedown","touchstart"],_i=["mouseup","mouseleave","touchend","touchcancel"];class oi{constructor(Ne,tn,ce,Be){this._target=Ne,this._ngZone=tn,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Be.isBrowser&&(this._containerElement=(0,U.fI)(ce))}fadeInRipple(Ne,tn,ce={}){const Be=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),oe={...Oe,...ce.animation};ce.centered&&(Ne=Be.left+Be.width/2,tn=Be.top+Be.height/2);const rn=ce.radius||function We(Ve,Ne,tn){const ce=Math.max(Math.abs(Ve-tn.left),Math.abs(Ve-tn.right)),Be=Math.max(Math.abs(Ne-tn.top),Math.abs(Ne-tn.bottom));return Math.sqrt(ce*ce+Be*Be)}(Ne,tn,Be),gn=Ne-Be.left,cn=tn-Be.top,xe=oe.enterDuration,It=document.createElement("div");It.classList.add("mat-ripple-element"),It.style.left=gn-rn+"px",It.style.top=cn-rn+"px",It.style.height=2*rn+"px",It.style.width=2*rn+"px",null!=ce.color&&(It.style.backgroundColor=ce.color),It.style.transitionDuration=`${xe}ms`,this._containerElement.appendChild(It);const Le=window.getComputedStyle(It),we=Le.transitionDuration,He="none"===Le.transitionProperty||"0s"===we||"0s, 0s"===we,kn=new bn(this,It,ce,He);It.style.transform="scale3d(1, 1, 1)",kn.state=0,ce.persistent||(this._mostRecentTransientRipple=kn);let Ei=null;return!He&&(xe||oe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Bi=()=>this._finishRippleTransition(kn),un=()=>this._destroyRipple(kn);It.addEventListener("transitionend",Bi),It.addEventListener("transitioncancel",un),Ei={onTransitionEnd:Bi,onTransitionCancel:un}}),this._activeRipples.set(kn,Ei),(He||!xe)&&this._finishRippleTransition(kn),kn}fadeOutRipple(Ne){if(2===Ne.state||3===Ne.state)return;const tn=Ne.element,ce={...Oe,...Ne.config.animation};tn.style.transitionDuration=`${ce.exitDuration}ms`,tn.style.opacity="0",Ne.state=2,(Ne._animationForciblyDisabledThroughCss||!ce.exitDuration)&&this._finishRippleTransition(Ne)}fadeOutAll(){this._getActiveRipples().forEach(Ne=>Ne.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ne=>{Ne.config.persistent||Ne.fadeOut()})}setupTriggerEvents(Ne){const tn=(0,U.fI)(Ne);!tn||tn===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=tn,this._registerEvents(ii))}handleEvent(Ne){"mousedown"===Ne.type?this._onMousedown(Ne):"touchstart"===Ne.type?this._onTouchStart(Ne):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_i),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ne){0===Ne.state?this._startFadeOutTransition(Ne):2===Ne.state&&this._destroyRipple(Ne)}_startFadeOutTransition(Ne){const tn=Ne===this._mostRecentTransientRipple,{persistent:ce}=Ne.config;Ne.state=1,!ce&&(!tn||!this._isPointerDown)&&Ne.fadeOut()}_destroyRipple(Ne){const tn=this._activeRipples.get(Ne)??null;this._activeRipples.delete(Ne),this._activeRipples.size||(this._containerRect=null),Ne===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ne.state=3,null!==tn&&(Ne.element.removeEventListener("transitionend",tn.onTransitionEnd),Ne.element.removeEventListener("transitioncancel",tn.onTransitionCancel)),Ne.element.remove()}_onMousedown(Ne){const tn=(0,d.X6)(Ne),ce=this._lastTouchStartEvent&&Date.now(){!Ne.config.persistent&&(1===Ne.state||Ne.config.terminateOnPointerUp&&0===Ne.state)&&Ne.fadeOut()}))}_registerEvents(Ne){this._ngZone.runOutsideAngular(()=>{Ne.forEach(tn=>{this._triggerElement.addEventListener(tn,this,Pn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ii.forEach(Ne=>{this._triggerElement.removeEventListener(Ne,this,Pn)}),this._pointerUpEventsRegistered&&_i.forEach(Ne=>{this._triggerElement.removeEventListener(Ne,this,Pn)}))}}const ee=new u.OlP("mat-ripple-global-options");let ot=(()=>{class Ve{constructor(tn,ce,Be,oe,rn){this._elementRef=tn,this._animationMode=rn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=oe||{},this._rippleRenderer=new oi(this,ce,tn,Be)}get disabled(){return this._disabled}set disabled(tn){tn&&this.fadeOutAllNonPersistent(),this._disabled=tn,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(tn){this._trigger=tn,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(tn,ce=0,Be){return"number"==typeof tn?this._rippleRenderer.fadeInRipple(tn,ce,{...this.rippleConfig,...Be}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...tn})}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(T.t4),u.Y36(ee,8),u.Y36(u.QbO,8))},Ve.\u0275dir=u.lG2({type:Ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(tn,ce){2&tn&&u.ekj("mat-ripple-unbounded",ce.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ve})(),X=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[Gt,Gt]}),Ve})(),At=(()=>{class Ve{constructor(tn){this._animationMode=tn,this.state="unchecked",this.disabled=!1}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.Y36(u.QbO,8))},Ve.\u0275cmp=u.Xpm({type:Ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(tn,ce){2&tn&&u.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ce.state)("mat-pseudo-checkbox-checked","checked"===ce.state)("mat-pseudo-checkbox-disabled",ce.disabled)("_mat-animation-noopable","NoopAnimations"===ce._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(tn,ce){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),Ve})(),Ht=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[Gt]}),Ve})();const ue=new u.OlP("MAT_OPTION_PARENT_COMPONENT"),qn=new u.OlP("MatOptgroup");let Di=0;class bo{constructor(Ne,tn=!1){this.source=Ne,this.isUserInput=tn}}let hi=(()=>{class Ve{constructor(tn,ce,Be,oe){this._element=tn,this._changeDetectorRef=ce,this._parent=Be,this.group=oe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Di++,this.onSelectionChange=new u.vpe,this._stateChanges=new P.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(tn){this._disabled=(0,U.Ig)(tn)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(tn,ce){const Be=this._getHostElement();"function"==typeof Be.focus&&Be.focus(ce)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(tn){(tn.keyCode===L.K5||tn.keyCode===L.L_)&&!(0,L.Vb)(tn)&&(this._selectViaInteraction(),tn.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const tn=this.viewValue;tn!==this._mostRecentViewValue&&(this._mostRecentViewValue=tn,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(tn=!1){this.onSelectionChange.emit(new bo(this,tn))}}return Ve.\u0275fac=function(tn){u.$Z()},Ve.\u0275dir=u.lG2({type:Ve,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ve})(),zn=(()=>{class Ve extends hi{constructor(tn,ce,Be,oe){super(tn,ce,Be,oe)}}return Ve.\u0275fac=function(tn){return new(tn||Ve)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(ue,8),u.Y36(qn,8))},Ve.\u0275cmp=u.Xpm({type:Ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(tn,ce){1&tn&&u.NdJ("click",function(){return ce._selectViaInteraction()})("keydown",function(oe){return ce._handleKeydown(oe)}),2&tn&&(u.Ikx("id",ce.id),u.uIk("tabindex",ce._getTabIndex())("aria-selected",ce._getAriaSelected())("aria-disabled",ce.disabled.toString()),u.ekj("mat-selected",ce.selected)("mat-option-multiple",ce.multiple)("mat-active",ce.active)("mat-option-disabled",ce.disabled))},exportAs:["matOption"],features:[u.qOj],ngContentSelectors:ct,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(tn,ce){1&tn&&(u.F$t(),u.YNc(0,K,1,2,"mat-pseudo-checkbox",0),u.TgZ(1,"span",1),u.Hsn(2),u.qZA(),u.YNc(3,et,2,1,"span",2),u._UZ(4,"div",3)),2&tn&&(u.Q6J("ngIf",ce.multiple),u.xp6(3),u.Q6J("ngIf",ce.group&&ce.group._inert),u.xp6(1),u.Q6J("matRippleTrigger",ce._getHostElement())("matRippleDisabled",ce.disabled||ce.disableRipple))},dependencies:[ot,t.O5,At],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),Ve})();function Bn(Ve,Ne,tn){if(tn.length){let ce=Ne.toArray(),Be=tn.toArray(),oe=0;for(let rn=0;rntn+ce?Math.max(0,Ve-ce+Ne):tn}let xn=(()=>{class Ve{}return Ve.\u0275fac=function(tn){return new(tn||Ve)},Ve.\u0275mod=u.oAB({type:Ve}),Ve.\u0275inj=u.cJS({imports:[X,t.ez,Gt,Ht]}),Ve})()},99602:(tt,W,f)=>{"use strict";f.d(W,{C0:()=>Pn,E2:()=>tn,FA:()=>Ye,Lv:()=>rn,Mq:()=>It,S8:()=>De,Uu:()=>Be,hl:()=>Ei,nW:()=>un});var u=f(12687),d=f(98184),v=f(84080),g=f(36895),t=f(94650),T=f(4859),U=f(67376),w=f(3238),P=f(8929),O=f(42654),L=f(36787),N=f(21086),B=f(29521),K=f(40445),et=f(72986),ct=f(1059),lt=f(92198),Ct=f(21281),Dt=f(83353),Zt=f(37340),Rt=f(24006),Gt=f(59549),Tt=f(284);const Ut=["mat-calendar-body",""];function bt(Me,an){if(1&Me&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Me){const j=t.oxw();t.xp6(1),t.Udp("padding-top",j._cellPadding)("padding-bottom",j._cellPadding),t.uIk("colspan",j.numCols),t.xp6(1),t.hij(" ",j.label," ")}}function mt(Me,an){if(1&Me&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Me){const j=t.oxw(2);t.Udp("padding-top",j._cellPadding)("padding-bottom",j._cellPadding),t.uIk("colspan",j._firstRowOffset),t.xp6(1),t.hij(" ",j._firstRowOffset>=j.labelMinRequiredCells?j.label:""," ")}}function Lt(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(J){const ze=t.CHM(j).$implicit,Vn=t.oxw(2);return t.KtG(Vn._cellClicked(ze,J))})("focus",function(J){const ze=t.CHM(j).$implicit,Vn=t.oxw(2);return t.KtG(Vn._emitActiveDateChange(ze,J))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Me){const j=an.$implicit,Ft=an.index,J=t.oxw().index,Et=t.oxw();t.Udp("width",Et._cellWidth)("padding-top",Et._cellPadding)("padding-bottom",Et._cellPadding),t.uIk("data-mat-row",J)("data-mat-col",Ft),t.xp6(1),t.ekj("mat-calendar-body-disabled",!j.enabled)("mat-calendar-body-active",Et._isActiveCell(J,Ft))("mat-calendar-body-range-start",Et._isRangeStart(j.compareValue))("mat-calendar-body-range-end",Et._isRangeEnd(j.compareValue))("mat-calendar-body-in-range",Et._isInRange(j.compareValue))("mat-calendar-body-comparison-bridge-start",Et._isComparisonBridgeStart(j.compareValue,J,Ft))("mat-calendar-body-comparison-bridge-end",Et._isComparisonBridgeEnd(j.compareValue,J,Ft))("mat-calendar-body-comparison-start",Et._isComparisonStart(j.compareValue))("mat-calendar-body-comparison-end",Et._isComparisonEnd(j.compareValue))("mat-calendar-body-in-comparison-range",Et._isInComparisonRange(j.compareValue))("mat-calendar-body-preview-start",Et._isPreviewStart(j.compareValue))("mat-calendar-body-preview-end",Et._isPreviewEnd(j.compareValue))("mat-calendar-body-in-preview",Et._isInPreview(j.compareValue)),t.Q6J("ngClass",j.cssClasses)("tabindex",Et._isActiveCell(J,Ft)?0:-1),t.uIk("aria-label",j.ariaLabel)("aria-disabled",!j.enabled||null)("aria-pressed",Et._isSelected(j.compareValue))("aria-current",Et.todayValue===j.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Et._isSelected(j.compareValue))("mat-calendar-body-comparison-identical",Et._isComparisonIdentical(j.compareValue))("mat-calendar-body-today",Et.todayValue===j.compareValue),t.xp6(1),t.hij(" ",j.displayValue," ")}}function Bt(Me,an){if(1&Me&&(t.TgZ(0,"tr",4),t.YNc(1,mt,2,6,"td",5),t.YNc(2,Lt,5,47,"td",6),t.qZA()),2&Me){const j=an.$implicit,Ft=an.index,J=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Ft&&J._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",j)}}function kt(Me,an){if(1&Me&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Me){const j=an.$implicit;t.xp6(2),t.Oqu(j.long),t.xp6(2),t.Oqu(j.narrow)}}const le=["*"];function Vt(Me,an){}function be(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et.activeDate=J)})("_userSelection",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._dateSelected(J))}),t.qZA()}if(2&Me){const j=t.oxw();t.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)("comparisonStart",j.comparisonStart)("comparisonEnd",j.comparisonEnd)}}function ge(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et.activeDate=J)})("monthSelected",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._monthSelectedInYearView(J))})("selectedChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._goToDateInView(J,"month"))}),t.qZA()}if(2&Me){const j=t.oxw();t.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)}}function Fe(Me,an){if(1&Me){const j=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et.activeDate=J)})("yearSelected",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._yearSelectedInMultiYearView(J))})("selectedChange",function(J){t.CHM(j);const Et=t.oxw();return t.KtG(Et._goToDateInView(J,"year"))}),t.qZA()}if(2&Me){const j=t.oxw();t.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)}}function qe(Me,an){}const je=["button"];function Qt(Me,an){1&Me&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Ue=[[["","matDatepickerToggleIcon",""]]],ie=["[matDatepickerToggleIcon]"];let De=(()=>{class Me{constructor(){this.changes=new P.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(j,Ft){return`${j} \u2013 ${Ft}`}formatYearRangeLabel(j,Ft){return`${j} to ${Ft}`}}return Me.\u0275fac=function(j){return new(j||Me)},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();class nn{constructor(an,j,Ft,J,Et={},ze=an,Vn){this.value=an,this.displayValue=j,this.ariaLabel=Ft,this.enabled=J,this.cssClasses=Et,this.compareValue=ze,this.rawValue=Vn}}let hn=(()=>{class Me{constructor(j,Ft){this._elementRef=j,this._ngZone=Ft,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=J=>{if(this._skipNextFocus&&"focus"===J.type)this._skipNextFocus=!1;else if(J.target&&this.isRange){const Et=this._getCellFromElement(J.target);Et&&this._ngZone.run(()=>this.previewChange.emit({value:Et.enabled?Et:null,event:J}))}},this._leaveHandler=J=>{null!==this.previewEnd&&this.isRange&&J.target&&this._getCellFromElement(J.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:J}))},Ft.runOutsideAngular(()=>{const J=j.nativeElement;J.addEventListener("mouseenter",this._enterHandler,!0),J.addEventListener("focus",this._enterHandler,!0),J.addEventListener("mouseleave",this._leaveHandler,!0),J.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(j,Ft){j.enabled&&this.selectedValueChange.emit({value:j.value,event:Ft})}_emitActiveDateChange(j,Ft){j.enabled&&this.activeDateChange.emit({value:j.value,event:Ft})}_isSelected(j){return this.startValue===j||this.endValue===j}ngOnChanges(j){const Ft=j.numCols,{rows:J,numCols:Et}=this;(j.rows||Ft)&&(this._firstRowOffset=J&&J.length&&J[0].length?Et-J[0].length:0),(j.cellAspectRatio||Ft||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Et+"%"),(Ft||!this._cellWidth)&&(this._cellWidth=100/Et+"%")}ngOnDestroy(){const j=this._elementRef.nativeElement;j.removeEventListener("mouseenter",this._enterHandler,!0),j.removeEventListener("focus",this._enterHandler,!0),j.removeEventListener("mouseleave",this._leaveHandler,!0),j.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(j,Ft){let J=j*this.numCols+Ft;return j&&(J-=this._firstRowOffset),J==this.activeCell}_focusActiveCell(j=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,et.q)(1)).subscribe(()=>{setTimeout(()=>{const Ft=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ft&&(j||(this._skipNextFocus=!0),Ft.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(j){return bn(j,this.startValue,this.endValue)}_isRangeEnd(j){return Oe(j,this.startValue,this.endValue)}_isInRange(j){return dn(j,this.startValue,this.endValue,this.isRange)}_isComparisonStart(j){return bn(j,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(j,Ft,J){if(!this._isComparisonStart(j)||this._isRangeStart(j)||!this._isInRange(j))return!1;let Et=this.rows[Ft][J-1];if(!Et){const ze=this.rows[Ft-1];Et=ze&&ze[ze.length-1]}return Et&&!this._isRangeEnd(Et.compareValue)}_isComparisonBridgeEnd(j,Ft,J){if(!this._isComparisonEnd(j)||this._isRangeEnd(j)||!this._isInRange(j))return!1;let Et=this.rows[Ft][J+1];if(!Et){const ze=this.rows[Ft+1];Et=ze&&ze[0]}return Et&&!this._isRangeStart(Et.compareValue)}_isComparisonEnd(j){return Oe(j,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(j){return dn(j,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(j){return this.comparisonStart===this.comparisonEnd&&j===this.comparisonStart}_isPreviewStart(j){return bn(j,this.previewStart,this.previewEnd)}_isPreviewEnd(j){return Oe(j,this.previewStart,this.previewEnd)}_isInPreview(j){return dn(j,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(j){let Ft;if(Ce(j)?Ft=j:Ce(j.parentNode)&&(Ft=j.parentNode),Ft){const J=Ft.getAttribute("data-mat-row"),Et=Ft.getAttribute("data-mat-col");if(J&&Et)return this.rows[parseInt(J)][parseInt(Et)]}return null}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(t.R0b))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:Ut,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(j,Ft){1&j&&(t.YNc(0,bt,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&j&&(t.Q6J("ngIf",Ft._firstRowOffset=an&&Me===j}function dn(Me,an,j,Ft){return Ft&&null!==an&&null!==j&&an!==j&&Me>=an&&Me<=j}class Pn{constructor(an,j){this.start=an,this.end=j}}let ii=(()=>{class Me{constructor(j,Ft){this.selection=j,this._adapter=Ft,this._selectionChanged=new P.xQ,this.selectionChanged=this._selectionChanged,this.selection=j}updateSelection(j,Ft){const J=this.selection;this.selection=j,this._selectionChanged.next({selection:j,source:Ft,oldValue:J})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(j){return this._adapter.isDateInstance(j)&&this._adapter.isValid(j)}}return Me.\u0275fac=function(j){t.$Z()},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),_i=(()=>{class Me extends ii{constructor(j){super(null,j)}add(j){super.updateSelection(j,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const j=new Me(this._adapter);return j.updateSelection(this.selection,this),j}}return Me.\u0275fac=function(j){return new(j||Me)(t.LFG(w._A))},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const ee={provide:ii,deps:[[new t.FiY,new t.tp0,ii],w._A],useFactory:function We(Me,an){return Me||new _i(an)}},At=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let vn=(()=>{class Me{constructor(j,Ft,J,Et,ze){this._changeDetectorRef=j,this._dateFormats=Ft,this._dateAdapter=J,this._dir=Et,this._rangeStrategy=ze,this._rerenderSubscription=O.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){const Ft=this._activeDate,J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ft,this._activeDate)||this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ct.O)(null)).subscribe(()=>this._init())}ngOnChanges(j){const Ft=j.comparisonStart||j.comparisonEnd;Ft&&!Ft.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(j){const Ft=j.value,J=this._getDateFromDayOfMonth(Ft);let Et,ze;this._selected instanceof Pn?(Et=this._getDateInCurrentMonth(this._selected.start),ze=this._getDateInCurrentMonth(this._selected.end)):Et=ze=this._getDateInCurrentMonth(this._selected),(Et!==Ft||ze!==Ft)&&this.selectedChange.emit(J),this._userSelection.emit({value:J,event:j.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(j){const J=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(j.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(j){const Ft=this._activeDate,J=this._isRtl();switch(j.keyCode){case B.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?1:-1);break;case B.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,J?-1:1);break;case B.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case B.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case B.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case B.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case B.Ku:this.activeDate=j.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case B.VM:this.activeDate=j.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case B.K5:case B.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&j.preventDefault());case B.hY:return void(null!=this._previewEnd&&!(0,B.Vb)(j)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:j}),j.preventDefault(),j.stopPropagation()));default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===B.L_||j.keyCode===B.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let j=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(j)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(j){this._matCalendarBody._focusActiveCell(j)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:j,value:Ft}){if(this._rangeStrategy){const Et=this._rangeStrategy.createPreview(Ft?Ft.rawValue:null,this.selected,j);this._previewStart=this._getCellCompareValue(Et.start),this._previewEnd=this._getCellCompareValue(Et.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(j){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),j)}_initWeekdays(){const j=this._dateAdapter.getFirstDayOfWeek(),Ft=this._dateAdapter.getDayOfWeekNames("narrow");let Et=this._dateAdapter.getDayOfWeekNames("long").map((ze,Vn)=>({long:ze,narrow:Ft[Vn]}));this._weekdays=Et.slice(j).concat(Et.slice(0,j))}_createWeekCells(){const j=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ft=this._dateAdapter.getDateNames();this._weeks=[[]];for(let J=0,Et=this._firstWeekOffset;J=0)&&(!this.maxDate||this._dateAdapter.compareDate(j,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(j))}_getDateInCurrentMonth(j){return j&&this._hasSameMonthAndYear(j,this.activeDate)?this._dateAdapter.getDate(j):null}_hasSameMonthAndYear(j,Ft){return!(!j||!Ft||this._dateAdapter.getMonth(j)!=this._dateAdapter.getMonth(Ft)||this._dateAdapter.getYear(j)!=this._dateAdapter.getYear(Ft))}_getCellCompareValue(j){if(j){const Ft=this._dateAdapter.getYear(j),J=this._dateAdapter.getMonth(j),Et=this._dateAdapter.getDate(j);return new Date(Ft,J,Et).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(j){j instanceof Pn?(this._rangeStart=this._getCellCompareValue(j.start),this._rangeEnd=this._getCellCompareValue(j.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(j),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(j){return!this.dateFilter||this.dateFilter(j)}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.sBO),t.Y36(w.sG,8),t.Y36(w._A,8),t.Y36(K.Is,8),t.Y36(At,8))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-month-view"]],viewQuery:function(j,Ft){if(1&j&&t.Gf(hn,5),2&j){let J;t.iGM(J=t.CRH())&&(Ft._matCalendarBody=J.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(j,Ft){1&j&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,kt,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(Et){return Ft._dateSelected(Et)})("activeDateChange",function(Et){return Ft._updateActiveDate(Et)})("previewChange",function(Et){return Ft._previewChanged(Et)})("keyup",function(Et){return Ft._handleCalendarBodyKeyup(Et)})("keydown",function(Et){return Ft._handleCalendarBodyKeydown(Et)}),t.qZA()()),2&j&&(t.xp6(3),t.Q6J("ngForOf",Ft._weekdays),t.xp6(3),t.Q6J("label",Ft._monthLabel)("rows",Ft._weeks)("todayValue",Ft._todayDate)("startValue",Ft._rangeStart)("endValue",Ft._rangeEnd)("comparisonStart",Ft._comparisonRangeStart)("comparisonEnd",Ft._comparisonRangeEnd)("previewStart",Ft._previewStart)("previewEnd",Ft._previewEnd)("isRange",Ft._isRange)("labelMinRequiredCells",3)("activeCell",Ft._dateAdapter.getDate(Ft.activeDate)-1))},dependencies:[g.sg,hn],encapsulation:2,changeDetection:0}),Me})(),Di=(()=>{class Me{constructor(j,Ft,J){this._changeDetectorRef=j,this._dateAdapter=Ft,this._dir=J,this._rerenderSubscription=O.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){let Ft=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),bo(this._dateAdapter,Ft,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setSelectedYear(j)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ct.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ft=this._dateAdapter.getYear(this._activeDate)-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let J=0,Et=[];J<24;J++)Et.push(Ft+J),4==Et.length&&(this._years.push(Et.map(ze=>this._createCellForYear(ze))),Et=[]);this._changeDetectorRef.markForCheck()}_yearSelected(j){const Ft=j.value,J=this._dateAdapter.createDate(Ft,0,1),Et=this._getDateFromYear(Ft);this.yearSelected.emit(J),this.selectedChange.emit(Et)}_updateActiveDate(j){const J=this._activeDate;this.activeDate=this._getDateFromYear(j.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(j){const Ft=this._activeDate,J=this._isRtl();switch(j.keyCode){case B.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?1:-1);break;case B.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,J?-1:1);break;case B.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case B.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case B.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case B.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case B.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?-240:-24);break;case B.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?240:24);break;case B.K5:case B.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===B.L_||j.keyCode===B.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_getActiveCell(){return hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(j){const Ft=this._dateAdapter.getMonth(this.activeDate),J=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(j,Ft,1));return this._dateAdapter.createDate(j,Ft,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForYear(j){const Ft=this._dateAdapter.createDate(j,0,1),J=this._dateAdapter.getYearName(Ft),Et=this.dateClass?this.dateClass(Ft,"multi-year"):void 0;return new nn(j,J,J,this._shouldEnableYear(j),Et)}_shouldEnableYear(j){if(null==j||this.maxDate&&j>this._dateAdapter.getYear(this.maxDate)||this.minDate&&j{class Me{constructor(j,Ft,J,Et){this._changeDetectorRef=j,this._dateFormats=Ft,this._dateAdapter=J,this._dir=Et,this._rerenderSubscription=O.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){let Ft=this._activeDate;const J=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(J,this.minDate,this.maxDate),this._dateAdapter.getYear(Ft)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setSelectedMonth(j)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ct.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(j){const Ft=j.value,J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,1);this.monthSelected.emit(J);const Et=this._getDateFromMonth(Ft);this.selectedChange.emit(Et)}_updateActiveDate(j){const J=this._activeDate;this.activeDate=this._getDateFromMonth(j.value),this._dateAdapter.compareDate(J,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(j){const Ft=this._activeDate,J=this._isRtl();switch(j.keyCode){case B.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?1:-1);break;case B.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,J?-1:1);break;case B.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case B.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case B.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case B.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case B.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?-10:-1);break;case B.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?10:1);break;case B.K5:case B.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===B.L_||j.keyCode===B.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let j=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ft=>Ft.map(J=>this._createCellForMonth(J,j[J]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(j){return j&&this._dateAdapter.getYear(j)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(j):null}_getDateFromMonth(j){const Ft=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1),J=this._dateAdapter.getNumDaysInMonth(Ft);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,Math.min(this._dateAdapter.getDate(this.activeDate),J))}_createCellForMonth(j,Ft){const J=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1),Et=this._dateAdapter.format(J,this._dateFormats.display.monthYearA11yLabel),ze=this.dateClass?this.dateClass(J,"year"):void 0;return new nn(j,Ft.toLocaleUpperCase(),Et,this._shouldEnableMonth(j),ze)}_shouldEnableMonth(j){const Ft=this._dateAdapter.getYear(this.activeDate);if(null==j||this._isYearAndMonthAfterMaxDate(Ft,j)||this._isYearAndMonthBeforeMinDate(Ft,j))return!1;if(!this.dateFilter)return!0;for(let Et=this._dateAdapter.createDate(Ft,j,1);this._dateAdapter.getMonth(Et)==j;Et=this._dateAdapter.addCalendarDays(Et,1))if(this.dateFilter(Et))return!0;return!1}_isYearAndMonthAfterMaxDate(j,Ft){if(this.maxDate){const J=this._dateAdapter.getYear(this.maxDate),Et=this._dateAdapter.getMonth(this.maxDate);return j>J||j===J&&Ft>Et}return!1}_isYearAndMonthBeforeMinDate(j,Ft){if(this.minDate){const J=this._dateAdapter.getYear(this.minDate),Et=this._dateAdapter.getMonth(this.minDate);return j{class Me{constructor(j,Ft,J,Et,ze){this._intl=j,this.calendar=Ft,this._dateAdapter=J,this._dateFormats=Et,this._buttonDescriptionId="mat-calendar-button-"+xn++,this.calendar.stateChanges.subscribe(()=>ze.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Ft=this._dateAdapter.getYear(this.calendar.activeDate)-hi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),J=Ft+24-1,Et=this._dateAdapter.getYearName(this._dateAdapter.createDate(Ft,0,1)),ze=this._dateAdapter.getYearName(this._dateAdapter.createDate(J,0,1));return this._intl.formatYearRange(Et,ze)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(j,Ft){return"month"==this.calendar.currentView?this._dateAdapter.getYear(j)==this._dateAdapter.getYear(Ft)&&this._dateAdapter.getMonth(j)==this._dateAdapter.getMonth(Ft):"year"==this.calendar.currentView?this._dateAdapter.getYear(j)==this._dateAdapter.getYear(Ft):bo(this._dateAdapter,j,Ft,this.calendar.minDate,this.calendar.maxDate)}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(De),t.Y36((0,t.Gpc)(()=>Ne)),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:le,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(j,Ft){1&j&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Ft.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Ft.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Ft.nextClicked()}),t.qZA()()()),2&j&&(t.xp6(2),t.uIk("aria-label",Ft.periodButtonLabel)("aria-describedby",Ft._buttonDescriptionId),t.xp6(1),t.uIk("id",Ft._buttonDescriptionId),t.xp6(1),t.Oqu(Ft.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Ft.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Ft.previousEnabled()),t.uIk("aria-label",Ft.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Ft.nextEnabled()),t.uIk("aria-label",Ft.nextButtonLabel))},dependencies:[T.lW],encapsulation:2,changeDetection:0}),Me})(),Ne=(()=>{class Me{constructor(j,Ft,J,Et){this._dateAdapter=Ft,this._dateFormats=J,this._changeDetectorRef=Et,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new P.xQ,this._intlChanges=j.changes.subscribe(()=>{Et.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(j){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get selected(){return this._selected}set selected(j){this._selected=j instanceof Pn?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get activeDate(){return this._clampedActiveDate}set activeDate(j){this._clampedActiveDate=this._dateAdapter.clampDate(j,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(j){const Ft=this._currentView!==j?j:null;this._currentView=j,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ft&&this.viewChanged.emit(Ft)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||Ve),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(j){const Ft=j.minDate&&!this._dateAdapter.sameDate(j.minDate.previousValue,j.minDate.currentValue)?j.minDate:void 0,J=j.maxDate&&!this._dateAdapter.sameDate(j.maxDate.previousValue,j.maxDate.currentValue)?j.maxDate:void 0,Et=Ft||J||j.dateFilter;if(Et&&!Et.firstChange){const ze=this._getCurrentViewComponent();ze&&(this._changeDetectorRef.detectChanges(),ze._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(j){const Ft=j.value;(this.selected instanceof Pn||Ft&&!this._dateAdapter.sameDate(Ft,this.selected))&&this.selectedChange.emit(Ft),this._userSelection.emit(j)}_yearSelectedInMultiYearView(j){this.yearSelected.emit(j)}_monthSelectedInYearView(j){this.monthSelected.emit(j)}_goToDateInView(j,Ft){this.activeDate=j,this.currentView=Ft}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(De),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar"]],viewQuery:function(j,Ft){if(1&j&&(t.Gf(vn,5),t.Gf(Qe,5),t.Gf(Di,5)),2&j){let J;t.iGM(J=t.CRH())&&(Ft.monthView=J.first),t.iGM(J=t.CRH())&&(Ft.yearView=J.first),t.iGM(J=t.CRH())&&(Ft.multiYearView=J.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([ee]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(j,Ft){1&j&&(t.YNc(0,Vt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,be,1,8,"mat-month-view",2),t.YNc(3,ge,1,6,"mat-year-view",3),t.YNc(4,Fe,1,6,"mat-multi-year-view",4),t.qZA()),2&j&&(t.Q6J("cdkPortalOutlet",Ft._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Ft.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[g.RF,g.n9,u.kH,v.Pl,vn,Qe,Di],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Me})();const tn={transformPanel:(0,Zt.X$)("transformPanel",[(0,Zt.eR)("void => enter-dropdown",(0,Zt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Zt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Zt.eR)("void => enter-dialog",(0,Zt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(0.7)"}),(0,Zt.oB)({transform:"none",opacity:1})]))),(0,Zt.eR)("* => void",(0,Zt.jt)("100ms linear",(0,Zt.oB)({opacity:0})))]),fadeInCalendar:(0,Zt.X$)("fadeInCalendar",[(0,Zt.SB)("void",(0,Zt.oB)({opacity:0})),(0,Zt.SB)("enter",(0,Zt.oB)({opacity:1})),(0,Zt.eR)("void => *",(0,Zt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ce=0;const Be=new t.OlP("mat-datepicker-scroll-strategy"),rn={provide:Be,deps:[d.aV],useFactory:function oe(Me){return()=>Me.scrollStrategies.reposition()}},gn=(0,w.pj)(class{constructor(Me){this._elementRef=Me}});let cn=(()=>{class Me extends gn{constructor(j,Ft,J,Et,ze,Vn){super(j),this._changeDetectorRef=Ft,this._globalModel=J,this._dateAdapter=Et,this._rangeSelectionStrategy=ze,this._subscriptions=new O.w,this._animationDone=new P.xQ,this._actionsPortal=null,this._closeButtonText=Vn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(j){const Ft=this._model.selection,J=j.value,Et=Ft instanceof Pn;if(Et&&this._rangeSelectionStrategy){const ze=this._rangeSelectionStrategy.selectionFinished(J,Ft,j.event);this._model.updateSelection(ze,this)}else J&&(Et||!this._dateAdapter.sameDate(J,Ft))&&this._model.add(J);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(j,Ft){this._model=j?this._globalModel.clone():this._globalModel,this._actionsPortal=j,Ft&&this._changeDetectorRef.detectChanges()}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ii),t.Y36(w._A),t.Y36(At,8),t.Y36(De))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-content"]],viewQuery:function(j,Ft){if(1&j&&t.Gf(Ne,5),2&j){let J;t.iGM(J=t.CRH())&&(Ft._calendar=J.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(j,Ft){1&j&&t.WFA("@transformPanel.done",function(){return Ft._animationDone.next()}),2&j&&(t.d8E("@transformPanel",Ft._animationState),t.ekj("mat-datepicker-content-touch",Ft.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(j,Ft){if(1&j&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Et){return Ft.datepicker._selectYear(Et)})("monthSelected",function(Et){return Ft.datepicker._selectMonth(Et)})("viewChanged",function(Et){return Ft.datepicker._viewChanged(Et)})("_userSelection",function(Et){return Ft._handleUserSelection(Et)}),t.qZA(),t.YNc(2,qe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Ft._closeButtonFocused=!0})("blur",function(){return Ft._closeButtonFocused=!1})("click",function(){return Ft.datepicker.close()}),t._uU(4),t.qZA()()),2&j){let J;t.ekj("mat-datepicker-content-container-with-custom-header",Ft.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ft._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(J=Ft._dialogLabelId)&&void 0!==J?J:void 0),t.xp6(1),t.Q6J("id",Ft.datepicker.id)("ngClass",Ft.datepicker.panelClass)("startAt",Ft.datepicker.startAt)("startView",Ft.datepicker.startView)("minDate",Ft.datepicker._getMinDate())("maxDate",Ft.datepicker._getMaxDate())("dateFilter",Ft.datepicker._getDateFilter())("headerComponent",Ft.datepicker.calendarHeaderComponent)("selected",Ft._getSelected())("dateClass",Ft.datepicker.dateClass)("comparisonStart",Ft.comparisonStart)("comparisonEnd",Ft.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Ft._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Ft._closeButtonFocused),t.Q6J("color",Ft.color||"primary"),t.xp6(1),t.Oqu(Ft._closeButtonText)}},dependencies:[g.mk,T.lW,u.mK,v.Pl,Ne],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[tn.transformPanel,tn.fadeInCalendar]},changeDetection:0}),Me})(),xe=(()=>{class Me{constructor(j,Ft,J,Et,ze,Vn,Xi){this._overlay=j,this._ngZone=Ft,this._viewContainerRef=J,this._dateAdapter=ze,this._dir=Vn,this._model=Xi,this._inputStateChanges=O.w.EMPTY,this._document=(0,t.f3M)(g.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+ce++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new P.xQ,this._scrollStrategy=Et}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(j){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(j){this._color=j}get touchUi(){return this._touchUi}set touchUi(j){this._touchUi=(0,Ct.Ig)(j)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(j){const Ft=(0,Ct.Ig)(j);Ft!==this._disabled&&(this._disabled=Ft,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(j){this._restoreFocus=(0,Ct.Ig)(j)}get panelClass(){return this._panelClass}set panelClass(j){this._panelClass=(0,Ct.du)(j)}get opened(){return this._opened}set opened(j){(0,Ct.Ig)(j)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(j){const Ft=j.xPosition||j.yPosition;if(Ft&&!Ft.firstChange&&this._overlayRef){const J=this._overlayRef.getConfig().positionStrategy;J instanceof d._G&&(this._setConnectedPositions(J),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(j){this._model.add(j)}_selectYear(j){this.yearSelected.emit(j)}_selectMonth(j){this.monthSelected.emit(j)}_viewChanged(j){this.viewChanged.emit(j)}registerInput(j){return this._inputStateChanges.unsubscribe(),this.datepickerInput=j,this._inputStateChanges=j.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(j){this._actionsPortal=j,this._componentRef?.instance._assignActions(j,!0)}removeActions(j){j===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Dt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const j=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Ft=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:J,location:Et}=this._componentRef;J._startExitAnimation(),J._animationDone.pipe((0,et.q)(1)).subscribe(()=>{const ze=this._document.activeElement;j&&(!ze||ze===this._document.activeElement||Et.nativeElement.contains(ze))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}j?setTimeout(Ft):Ft()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(j){j.datepicker=this,j.color=this.color,j._dialogLabelId=this.datepickerInput.getOverlayLabelId(),j._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const j=this.touchUi,Ft=new v.C5(cn,this._viewContainerRef),J=this._overlayRef=this._overlay.create(new d.X_({positionStrategy:j?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[j?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:j?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(j?"dialog":"popup")}));this._getCloseStream(J).subscribe(Et=>{Et&&Et.preventDefault(),this.close()}),J.keydownEvents().subscribe(Et=>{const ze=Et.keyCode;(ze===B.LH||ze===B.JH||ze===B.oh||ze===B.SV||ze===B.Ku||ze===B.VM)&&Et.preventDefault()}),this._componentRef=J.attach(Ft),this._forwardContentValues(this._componentRef.instance),j||this._ngZone.onStable.pipe((0,et.q)(1)).subscribe(()=>J.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const j=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(j)}_setConnectedPositions(j){const Ft="end"===this.xPosition?"end":"start",J="start"===Ft?"end":"start",Et="above"===this.yPosition?"bottom":"top",ze="top"===Et?"bottom":"top";return j.withPositions([{originX:Ft,originY:ze,overlayX:Ft,overlayY:Et},{originX:Ft,originY:Et,overlayX:Ft,overlayY:ze},{originX:J,originY:ze,overlayX:J,overlayY:Et},{originX:J,originY:Et,overlayX:J,overlayY:ze}])}_getCloseStream(j){return(0,L.T)(j.backdropClick(),j.detachments(),j.keydownEvents().pipe((0,lt.h)(Ft=>Ft.keyCode===B.hY&&!(0,B.Vb)(Ft)||this.datepickerInput&&(0,B.Vb)(Ft,"altKey")&&Ft.keyCode===B.LH)))}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(d.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Be),t.Y36(w._A,8),t.Y36(K.Is,8),t.Y36(ii))},Me.\u0275dir=t.lG2({type:Me,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Me})(),It=(()=>{class Me extends xe{}return Me.\u0275fac=function(){let an;return function(Ft){return(an||(an=t.n5z(Me)))(Ft||Me)}}(),Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ee,{provide:xe,useExisting:Me}]),t.qOj],decls:0,vars:0,template:function(j,Ft){},encapsulation:2,changeDetection:0}),Me})();class Le{constructor(an,j){this.target=an,this.targetElement=j,this.value=this.target.value}}let zt=(()=>{class Me{constructor(j,Ft,J){this._elementRef=j,this._dateAdapter=Ft,this._dateFormats=J,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new P.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=O.w.EMPTY,this._localeSubscription=O.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Et=>{const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Et.value));return!ze||this._matchesFilter(ze)?null:{matDatepickerFilter:!0}},this._minValidator=Et=>{const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Et.value)),Vn=this._getMinDate();return!Vn||!ze||this._dateAdapter.compareDate(Vn,ze)<=0?null:{matDatepickerMin:{min:Vn,actual:ze}}},this._maxValidator=Et=>{const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Et.value)),Vn=this._getMaxDate();return!Vn||!ze||this._dateAdapter.compareDate(Vn,ze)>=0?null:{matDatepickerMax:{max:Vn,actual:ze}}},this._lastValueValid=!1,this._localeSubscription=Ft.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(j){this._assignValueProgrammatically(j)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(j){const Ft=(0,Ct.Ig)(j),J=this._elementRef.nativeElement;this._disabled!==Ft&&(this._disabled=Ft,this.stateChanges.next(void 0)),Ft&&this._isInitialized&&J.blur&&J.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(j){this._model=j,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ft=>{if(this._shouldHandleChangeEvent(Ft)){const J=this._getValueFromModel(Ft.selection);this._lastValueValid=this._isValidValue(J),this._cvaOnChange(J),this._onTouched(),this._formatValue(J),this.dateInput.emit(new Le(this,this._elementRef.nativeElement)),this.dateChange.emit(new Le(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(j){(function we(Me,an){const j=Object.keys(Me);for(let Ft of j){const{previousValue:J,currentValue:Et}=Me[Ft];if(!an.isDateInstance(J)||!an.isDateInstance(Et))return!0;if(!an.sameDate(J,Et))return!0}return!1})(j,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(j){this._validatorOnChange=j}validate(j){return this._validator?this._validator(j):null}writeValue(j){this._assignValueProgrammatically(j)}registerOnChange(j){this._cvaOnChange=j}registerOnTouched(j){this._onTouched=j}setDisabledState(j){this.disabled=j}_onKeydown(j){j.altKey&&j.keyCode===B.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),j.preventDefault())}_onInput(j){const Ft=this._lastValueValid;let J=this._dateAdapter.parse(j,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(J),J=this._dateAdapter.getValidDateOrNull(J);const Et=!this._dateAdapter.sameDate(J,this.value);!J||Et?this._cvaOnChange(J):(j&&!this.value&&this._cvaOnChange(J),Ft!==this._lastValueValid&&this._validatorOnChange()),Et&&(this._assignValue(J),this.dateInput.emit(new Le(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Le(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(j){this._elementRef.nativeElement.value=null!=j?this._dateAdapter.format(j,this._dateFormats.display.dateInput):""}_assignValue(j){this._model?(this._assignValueToModel(j),this._pendingValue=null):this._pendingValue=j}_isValidValue(j){return!j||this._dateAdapter.isValid(j)}_parentDisabled(){return!1}_assignValueProgrammatically(j){j=this._dateAdapter.deserialize(j),this._lastValueValid=this._isValidValue(j),j=this._dateAdapter.getValidDateOrNull(j),this._assignValue(j),this._formatValue(j)}_matchesFilter(j){const Ft=this._getDateFilter();return!Ft||Ft(j)}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8))},Me.\u0275dir=t.lG2({type:Me,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Me})();const He={provide:Rt.JU,useExisting:(0,t.Gpc)(()=>Ei),multi:!0},kn={provide:Rt.Cf,useExisting:(0,t.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class Me extends zt{constructor(j,Ft,J,Et){super(j,Ft,J),this._formField=Et,this._closedSubscription=O.w.EMPTY,this._validator=Rt.kI.compose(super._getValidators())}set matDatepicker(j){j&&(this._datepicker=j,this._closedSubscription=j.closedStream.subscribe(()=>this._onTouched()),this._registerModel(j.registerInput(this)))}get min(){return this._min}set min(j){const Ft=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(Ft,this._min)||(this._min=Ft,this._validatorOnChange())}get max(){return this._max}set max(j){const Ft=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(Ft,this._max)||(this._max=Ft,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(j){const Ft=this._matchesFilter(this.value);this._dateFilter=j,this._matchesFilter(this.value)!==Ft&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(j){return j}_assignValueToModel(j){this._model&&this._model.updateSelection(j,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(j){return j.source!==this}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(Gt.G_,8))},Me.\u0275dir=t.lG2({type:Me,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(j,Ft){1&j&&t.NdJ("input",function(Et){return Ft._onInput(Et.target.value)})("change",function(){return Ft._onChange()})("blur",function(){return Ft._onBlur()})("keydown",function(Et){return Ft._onKeydown(Et)}),2&j&&(t.Ikx("disabled",Ft.disabled),t.uIk("aria-haspopup",Ft._datepicker?"dialog":null)("aria-owns",(null==Ft._datepicker?null:Ft._datepicker.opened)&&Ft._datepicker.id||null)("min",Ft.min?Ft._dateAdapter.toIso8601(Ft.min):null)("max",Ft.max?Ft._dateAdapter.toIso8601(Ft.max):null)("data-mat-calendar",Ft._datepicker?Ft._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([He,kn,{provide:Tt.Jk,useExisting:Me}]),t.qOj]}),Me})(),Bi=(()=>{class Me{}return Me.\u0275fac=function(j){return new(j||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["","matDatepickerToggleIcon",""]]}),Me})(),un=(()=>{class Me{constructor(j,Ft,J){this._intl=j,this._changeDetectorRef=Ft,this._stateChanges=O.w.EMPTY;const Et=Number(J);this.tabIndex=Et||0===Et?Et:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(j){this._disabled=(0,Ct.Ig)(j)}ngOnChanges(j){j.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(j){this.datepicker&&!this.disabled&&(this.datepicker.open(),j.stopPropagation())}_watchStateChanges(){const j=this.datepicker?this.datepicker.stateChanges:(0,N.of)(),Ft=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,N.of)(),J=this.datepicker?(0,L.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,N.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,L.T)(this._intl.changes,j,Ft,J).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Me.\u0275fac=function(j){return new(j||Me)(t.Y36(De),t.Y36(t.sBO),t.$8M("tabindex"))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-toggle"]],contentQueries:function(j,Ft,J){if(1&j&&t.Suo(J,Bi,5),2&j){let Et;t.iGM(Et=t.CRH())&&(Ft._customIcon=Et.first)}},viewQuery:function(j,Ft){if(1&j&&t.Gf(je,5),2&j){let J;t.iGM(J=t.CRH())&&(Ft._button=J.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(j,Ft){1&j&&t.NdJ("click",function(Et){return Ft._open(Et)}),2&j&&(t.uIk("tabindex",null)("data-mat-calendar",Ft.datepicker?Ft.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Ft.datepicker&&Ft.datepicker.opened)("mat-accent",Ft.datepicker&&"accent"===Ft.datepicker.color)("mat-warn",Ft.datepicker&&"warn"===Ft.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ie,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(j,Ft){1&j&&(t.F$t(Ue),t.TgZ(0,"button",0,1),t.YNc(2,Qt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&j&&(t.Q6J("disabled",Ft.disabled)("disableRipple",Ft.disableRipple),t.uIk("aria-haspopup",Ft.datepicker?"dialog":null)("aria-label",Ft.ariaLabel||Ft._intl.openCalendarLabel)("tabindex",Ft.disabled?-1:Ft.tabIndex),t.xp6(2),t.Q6J("ngIf",!Ft._customIcon))},dependencies:[g.O5,T.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Me})(),Ye=(()=>{class Me{}return Me.\u0275fac=function(j){return new(j||Me)},Me.\u0275mod=t.oAB({type:Me}),Me.\u0275inj=t.cJS({providers:[De,rn],imports:[g.ez,T.ot,d.U8,u.rt,v.eL,w.BQ,U.ZD]}),Me})()},65412:(tt,W,f)=>{"use strict";f.d(W,{WI:()=>Wt,uw:()=>bn,H8:()=>_i,ZT:()=>dn,xY:()=>ii,Is:()=>We,so:()=>Ue,uh:()=>Pn});var u=f(12687),d=f(98184),v=f(83353),g=f(84080),t=f(36895),T=f(94650),U=f(29521),w=f(8929),P=f(88514),O=f(21086),L=f(40445),N=f(1059);function B(ee,ot){}class K{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ct=(()=>{class ee extends g.en{constructor(X,At,Ht,ue,ye,Se,vn,qn){super(),this._elementRef=X,this._focusTrapFactory=At,this._config=ue,this._interactivityChecker=ye,this._ngZone=Se,this._overlayRef=vn,this._focusMonitor=qn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Di=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Di},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ht}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(X){this._portalOutlet.hasAttached();const At=this._portalOutlet.attachComponentPortal(X);return this._contentAttached(),At}attachTemplatePortal(X){this._portalOutlet.hasAttached();const At=this._portalOutlet.attachTemplatePortal(X);return this._contentAttached(),At}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(X,At){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ht=()=>{X.removeEventListener("blur",Ht),X.removeEventListener("mousedown",Ht),X.removeAttribute("tabindex")};X.addEventListener("blur",Ht),X.addEventListener("mousedown",Ht)})),X.focus(At)}_focusByCssSelector(X,At){let Ht=this._elementRef.nativeElement.querySelector(X);Ht&&this._forceFocus(Ht,At)}_trapFocus(){const X=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||X.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(At=>{At||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const X=this._config.restoreFocus;let At=null;if("string"==typeof X?At=this._document.querySelector(X):"boolean"==typeof X?At=X?this._elementFocusedBeforeDialogWasOpened:null:X&&(At=X),this._config.restoreFocus&&At&&"function"==typeof At.focus){const Ht=(0,v.ht)(),ue=this._elementRef.nativeElement;(!Ht||Ht===this._document.body||Ht===ue||ue.contains(Ht))&&(this._focusMonitor?(this._focusMonitor.focusVia(At,this._closeInteractionType),this._closeInteractionType=null):At.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const X=this._elementRef.nativeElement,At=(0,v.ht)();return X===At||X.contains(At)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(K),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(d.Iu),T.Y36(u.tE))},ee.\u0275cmp=T.Xpm({type:ee,selectors:[["cdk-dialog-container"]],viewQuery:function(X,At){if(1&X&&T.Gf(g.Pl,7),2&X){let Ht;T.iGM(Ht=T.CRH())&&(At._portalOutlet=Ht.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(X,At){2&X&&T.uIk("id",At._config.id||null)("role",At._config.role)("aria-modal",At._config.ariaModal)("aria-labelledby",At._config.ariaLabel?null:At._ariaLabelledBy)("aria-label",At._config.ariaLabel)("aria-describedby",At._config.ariaDescribedBy||null)},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,At){1&X&&T.YNc(0,B,0,0,"ng-template",0)},dependencies:[g.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ee})();class lt{constructor(ot,X){this.overlayRef=ot,this.config=X,this.closed=new w.xQ,this.disableClose=X.disableClose,this.backdropClick=ot.backdropClick(),this.keydownEvents=ot.keydownEvents(),this.outsidePointerEvents=ot.outsidePointerEvents(),this.id=X.id,this.keydownEvents.subscribe(At=>{At.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(At)&&(At.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(ot,X){if(this.containerInstance){const At=this.closed;this.containerInstance._closeInteractionType=X?.focusOrigin||"program",this.overlayRef.dispose(),At.next(ot),At.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ot="",X=""){return this.overlayRef.updateSize({width:ot,height:X}),this}addPanelClass(ot){return this.overlayRef.addPanelClass(ot),this}removePanelClass(ot){return this.overlayRef.removePanelClass(ot),this}}const Ct=new T.OlP("DialogScrollStrategy"),Dt=new T.OlP("DialogData"),Zt=new T.OlP("DefaultDialogConfig"),Gt={provide:Ct,deps:[d.aV],useFactory:function Rt(ee){return()=>ee.scrollStrategies.block()}};let Tt=0,Ut=(()=>{class ee{constructor(X,At,Ht,ue,ye,Se){this._overlay=X,this._injector=At,this._defaultOptions=Ht,this._parentDialog=ue,this._overlayContainer=ye,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,P.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,N.O)(void 0))),this._scrollStrategy=Se}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(X,At){(At={...this._defaultOptions||new K,...At}).id=At.id||"cdk-dialog-"+Tt++,At.id&&this.getDialogById(At.id);const ue=this._getOverlayConfig(At),ye=this._overlay.create(ue),Se=new lt(ye,At),vn=this._attachContainer(ye,Se,At);return Se.containerInstance=vn,this._attachDialogContent(X,Se,vn,At),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Se),Se.closed.subscribe(()=>this._removeOpenDialog(Se,!0)),this.afterOpened.next(Se),Se}closeAll(){bt(this.openDialogs,X=>X.close())}getDialogById(X){return this.openDialogs.find(At=>At.id===X)}ngOnDestroy(){bt(this._openDialogsAtThisLevel,X=>{!1===X.config.closeOnDestroy&&this._removeOpenDialog(X,!1)}),bt(this._openDialogsAtThisLevel,X=>X.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(X){const At=new d.X_({positionStrategy:X.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:X.scrollStrategy||this._scrollStrategy(),panelClass:X.panelClass,hasBackdrop:X.hasBackdrop,direction:X.direction,minWidth:X.minWidth,minHeight:X.minHeight,maxWidth:X.maxWidth,maxHeight:X.maxHeight,width:X.width,height:X.height,disposeOnNavigation:X.closeOnNavigation});return X.backdropClass&&(At.backdropClass=X.backdropClass),At}_attachContainer(X,At,Ht){const ue=Ht.injector||Ht.viewContainerRef?.injector,ye=[{provide:K,useValue:Ht},{provide:lt,useValue:At},{provide:d.Iu,useValue:X}];let Se;Ht.container?"function"==typeof Ht.container?Se=Ht.container:(Se=Ht.container.type,ye.push(...Ht.container.providers(Ht))):Se=ct;const vn=new g.C5(Se,Ht.viewContainerRef,T.zs3.create({parent:ue||this._injector,providers:ye}),Ht.componentFactoryResolver);return X.attach(vn).instance}_attachDialogContent(X,At,Ht,ue){if(X instanceof T.Rgc){const ye=this._createInjector(ue,At,Ht,void 0);let Se={$implicit:ue.data,dialogRef:At};ue.templateContext&&(Se={...Se,..."function"==typeof ue.templateContext?ue.templateContext():ue.templateContext}),Ht.attachTemplatePortal(new g.UE(X,null,Se,ye))}else{const ye=this._createInjector(ue,At,Ht,this._injector),Se=Ht.attachComponentPortal(new g.C5(X,ue.viewContainerRef,ye,ue.componentFactoryResolver));At.componentInstance=Se.instance}}_createInjector(X,At,Ht,ue){const ye=X.injector||X.viewContainerRef?.injector,Se=[{provide:Dt,useValue:X.data},{provide:lt,useValue:At}];return X.providers&&("function"==typeof X.providers?Se.push(...X.providers(At,X,Ht)):Se.push(...X.providers)),X.direction&&(!ye||!ye.get(L.Is,null,T.XFs.Optional))&&Se.push({provide:L.Is,useValue:{value:X.direction,change:(0,O.of)()}}),T.zs3.create({parent:ye||ue,providers:Se})}_removeOpenDialog(X,At){const Ht=this.openDialogs.indexOf(X);Ht>-1&&(this.openDialogs.splice(Ht,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ue,ye)=>{ue?ye.setAttribute("aria-hidden",ue):ye.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),At&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const X=this._overlayContainer.getContainerElement();if(X.parentElement){const At=X.parentElement.children;for(let Ht=At.length-1;Ht>-1;Ht--){const ue=At[Ht];ue!==X&&"SCRIPT"!==ue.nodeName&&"STYLE"!==ue.nodeName&&!ue.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ue,ue.getAttribute("aria-hidden")),ue.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ee.\u0275fac=function(X){return new(X||ee)(T.LFG(d.aV),T.LFG(T.zs3),T.LFG(Zt,8),T.LFG(ee,12),T.LFG(d.Xj),T.LFG(Ct))},ee.\u0275prov=T.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function bt(ee,ot){let X=ee.length;for(;X--;)ot(ee[X])}let mt=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=T.oAB({type:ee}),ee.\u0275inj=T.cJS({providers:[Ut,Gt],imports:[d.U8,g.eL,u.rt,g.eL]}),ee})();var Lt=f(3238),Bt=f(36787),kt=f(92198),le=f(72986),Vt=f(37340);function be(ee,ot){}const ge={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Fe={dialogContainer:(0,Vt.X$)("dialogContainer",[(0,Vt.SB)("void, exit",(0,Vt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Vt.SB)("enter",(0,Vt.oB)({transform:"none"})),(0,Vt.eR)("* => enter",(0,Vt.ru)([(0,Vt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Vt.oB)({transform:"none",opacity:1})),(0,Vt.IO)("@*",(0,Vt.pV)(),{optional:!0})]),ge),(0,Vt.eR)("* => void, * => exit",(0,Vt.ru)([(0,Vt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Vt.oB)({opacity:0})),(0,Vt.IO)("@*",(0,Vt.pV)(),{optional:!0})]),ge)])};class qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ge.params.enterAnimationDuration,this.exitAnimationDuration=ge.params.exitAnimationDuration}}let je=(()=>{class ee extends ct{constructor(X,At,Ht,ue,ye,Se,vn,qn){super(X,At,Ht,ue,ye,Se,vn,qn),this._animationStateChanged=new T.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(X){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:X})}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(qe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(d.Iu),T.Y36(u.tE))},ee.\u0275cmp=T.Xpm({type:ee,selectors:[["ng-component"]],features:[T.qOj],decls:0,vars:0,template:function(X,At){},encapsulation:2}),ee})(),Qt=(()=>{class ee extends je{constructor(X,At,Ht,ue,ye,Se,vn,qn,mi){super(X,At,Ht,ue,ye,Se,vn,mi),this._changeDetectorRef=qn,this._state="enter"}_onAnimationDone({toState:X,totalTime:At}){"enter"===X?this._openAnimationDone(At):"exit"===X&&this._animationStateChanged.next({state:"closed",totalTime:At})}_onAnimationStart({toState:X,totalTime:At}){"enter"===X?this._animationStateChanged.next({state:"opening",totalTime:At}):("exit"===X||"void"===X)&&this._animationStateChanged.next({state:"closing",totalTime:At})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ge.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ge.params.exitAnimationDuration}}}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(T.SBq),T.Y36(u.qV),T.Y36(t.K0,8),T.Y36(qe),T.Y36(u.ic),T.Y36(T.R0b),T.Y36(d.Iu),T.Y36(T.sBO),T.Y36(u.tE))},ee.\u0275cmp=T.Xpm({type:ee,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(X,At){1&X&&T.WFA("@dialogContainer.start",function(ue){return At._onAnimationStart(ue)})("@dialogContainer.done",function(ue){return At._onAnimationDone(ue)}),2&X&&(T.Ikx("id",At._config.id),T.uIk("aria-modal",At._config.ariaModal)("role",At._config.role)("aria-labelledby",At._config.ariaLabel?null:At._ariaLabelledBy)("aria-label",At._config.ariaLabel)("aria-describedby",At._config.ariaDescribedBy||null),T.d8E("@dialogContainer",At._getAnimationState()))},features:[T.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,At){1&X&&T.YNc(0,be,0,0,"ng-template",0)},dependencies:[g.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Fe.dialogContainer]}}),ee})();class Ue{constructor(ot,X,At){this._ref=ot,this._containerInstance=At,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=X.disableClose,this.id=ot.id,At._animationStateChanged.pipe((0,kt.h)(Ht=>"opened"===Ht.state),(0,le.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),At._animationStateChanged.pipe((0,kt.h)(Ht=>"closed"===Ht.state),(0,le.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ot.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,kt.h)(Ht=>Ht.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ht)))).subscribe(Ht=>{this.disableClose||(Ht.preventDefault(),ie(this,"keydown"===Ht.type?"keyboard":"mouse"))})}close(ot){this._result=ot,this._containerInstance._animationStateChanged.pipe((0,kt.h)(X=>"closing"===X.state),(0,le.q)(1)).subscribe(X=>{this._beforeClosed.next(ot),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),X.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(ot){let X=this._ref.config.positionStrategy;return ot&&(ot.left||ot.right)?ot.left?X.left(ot.left):X.right(ot.right):X.centerHorizontally(),ot&&(ot.top||ot.bottom)?ot.top?X.top(ot.top):X.bottom(ot.bottom):X.centerVertically(),this._ref.updatePosition(),this}updateSize(ot="",X=""){return this._ref.updateSize(ot,X),this}addPanelClass(ot){return this._ref.addPanelClass(ot),this}removePanelClass(ot){return this._ref.removePanelClass(ot),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ie(ee,ot,X){return ee._closeInteractionType=ot,ee.close(X)}const Wt=new T.OlP("MatDialogData"),se=new T.OlP("mat-dialog-default-options"),Xt=new T.OlP("mat-dialog-scroll-strategy"),nn={provide:Xt,deps:[d.aV],useFactory:function De(ee){return()=>ee.scrollStrategies.block()}};let hn=0,Ce=(()=>{class ee{constructor(X,At,Ht,ue,ye,Se,vn,qn,mi,Di){this._overlay=X,this._defaultOptions=Ht,this._parentDialog=ue,this._dialogRefConstructor=vn,this._dialogContainerType=qn,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,P.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,N.O)(void 0))),this._scrollStrategy=Se,this._dialog=At.get(Ut)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(X,At){let Ht;(At={...this._defaultOptions||new qe,...At}).id=At.id||`${this._idPrefix}${hn++}`,At.scrollStrategy=At.scrollStrategy||this._scrollStrategy();const ue=this._dialog.open(X,{...At,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:qe,useValue:At},{provide:K,useValue:At}]},templateContext:()=>({dialogRef:Ht}),providers:(ye,Se,vn)=>(Ht=new this._dialogRefConstructor(ye,At,vn),Ht.updatePosition(At?.position),[{provide:this._dialogContainerType,useValue:vn},{provide:this._dialogDataToken,useValue:Se.data},{provide:this._dialogRefConstructor,useValue:Ht}])});return Ht.componentInstance=ue.componentInstance,this.openDialogs.push(Ht),this.afterOpened.next(Ht),Ht.afterClosed().subscribe(()=>{const ye=this.openDialogs.indexOf(Ht);ye>-1&&(this.openDialogs.splice(ye,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ht}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(X){return this.openDialogs.find(At=>At.id===X)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(X){let At=X.length;for(;At--;)X[At].close()}}return ee.\u0275fac=function(X){T.$Z()},ee.\u0275prov=T.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),bn=(()=>{class ee extends Ce{constructor(X,At,Ht,ue,ye,Se,vn,qn){super(X,At,ue,Se,vn,ye,Ue,Qt,Wt,qn)}}return ee.\u0275fac=function(X){return new(X||ee)(T.LFG(d.aV),T.LFG(T.zs3),T.LFG(t.Ye,8),T.LFG(se,8),T.LFG(Xt),T.LFG(ee,12),T.LFG(d.Xj),T.LFG(T.QbO,8))},ee.\u0275prov=T.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),Oe=0,dn=(()=>{class ee{constructor(X,At,Ht){this.dialogRef=X,this._elementRef=At,this._dialog=Ht,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=oi(this._elementRef,this._dialog.openDialogs))}ngOnChanges(X){const At=X._matDialogClose||X._matDialogCloseResult;At&&(this.dialogResult=At.currentValue)}_onButtonClick(X){ie(this.dialogRef,0===X.screenX&&0===X.screenY?"keyboard":"mouse",this.dialogResult)}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(Ue,8),T.Y36(T.SBq),T.Y36(bn))},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(X,At){1&X&&T.NdJ("click",function(ue){return At._onButtonClick(ue)}),2&X&&T.uIk("aria-label",At.ariaLabel||null)("type",At.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[T.TTD]}),ee})(),Pn=(()=>{class ee{constructor(X,At,Ht){this._dialogRef=X,this._elementRef=At,this._dialog=Ht,this.id="mat-dialog-title-"+Oe++}ngOnInit(){this._dialogRef||(this._dialogRef=oi(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const X=this._dialogRef._containerInstance;X&&!X._ariaLabelledBy&&(X._ariaLabelledBy=this.id)})}}return ee.\u0275fac=function(X){return new(X||ee)(T.Y36(Ue,8),T.Y36(T.SBq),T.Y36(bn))},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(X,At){2&X&&T.Ikx("id",At.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ee})(),ii=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ee})(),_i=(()=>{class ee{constructor(){this.align="start"}}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=T.lG2({type:ee,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(X,At){2&X&&T.ekj("mat-dialog-actions-align-center","center"===At.align)("mat-dialog-actions-align-end","end"===At.align)},inputs:{align:"align"}}),ee})();function oi(ee,ot){let X=ee.nativeElement.parentElement;for(;X&&!X.classList.contains("mat-dialog-container");)X=X.parentElement;return X?ot.find(At=>At.id===X.id):null}let We=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=T.oAB({type:ee}),ee.\u0275inj=T.cJS({providers:[bn,nn],imports:[mt,d.U8,g.eL,Lt.BQ,Lt.BQ]}),ee})()},44850:(tt,W,f)=>{"use strict";f.d(W,{d:()=>g,t:()=>t});var u=f(94650),d=f(21281),v=f(3238);let g=(()=>{class T{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,d.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,d.Ig)(w)}}return T.\u0275fac=function(w){return new(w||T)},T.\u0275cmp=u.Xpm({type:T,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,P){2&w&&(u.uIk("aria-orientation",P.vertical?"vertical":"horizontal"),u.ekj("mat-divider-vertical",P.vertical)("mat-divider-horizontal",!P.vertical)("mat-divider-inset",P.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,P){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),T})(),t=(()=>{class T{}return T.\u0275fac=function(w){return new(w||T)},T.\u0275mod=u.oAB({type:T}),T.\u0275inj=u.cJS({imports:[v.BQ,v.BQ]}),T})()},37084:(tt,W,f)=>{"use strict";f.d(W,{pp:()=>nn,To:()=>hn,ib:()=>Ue,u4:()=>ae,yz:()=>Xt,yK:()=>De});var u=f(94650),d=f(95017),v=f(21281),g=f(8929),t=f(42654);let T=0;const U=new u.OlP("CdkAccordion");let w=(()=>{class Ce{constructor(){this._stateChanges=new g.xQ,this._openCloseAllActions=new g.xQ,this.id="cdk-accordion-"+T++,this._multi=!1}get multi(){return this._multi}set multi(Oe){this._multi=(0,v.Ig)(Oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Oe){this._stateChanges.next(Oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[u._Bn([{provide:U,useExisting:Ce}]),u.TTD]}),Ce})(),P=0,O=(()=>{class Ce{constructor(Oe,dn,Pn){this.accordion=Oe,this._changeDetectorRef=dn,this._expansionDispatcher=Pn,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new u.vpe,this.opened=new u.vpe,this.destroyed=new u.vpe,this.expandedChange=new u.vpe,this.id="cdk-accordion-child-"+P++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Pn.listen((ii,_i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===_i&&this.id!==ii&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Oe){Oe=(0,v.Ig)(Oe),this._expanded!==Oe&&(this._expanded=Oe,this.expandedChange.emit(Oe),Oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Oe){this._disabled=(0,v.Ig)(Oe)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Oe=>{this.disabled||(this.expanded=Oe)})}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(U,12),u.Y36(u.sBO),u.Y36(d.A8))},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[u._Bn([{provide:U,useValue:void 0}])]}),Ce})(),L=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({}),Ce})();var N=f(84080),B=f(36895),K=f(3238),et=f(12687),ct=f(75778),lt=f(1059),Ct=f(92198),Dt=f(72986),Zt=f(29521),Rt=f(68896),Gt=f(36787),Tt=f(37340);const Ut=["body"];function bt(Ce,bn){}const mt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Lt=["mat-expansion-panel-header","*","mat-action-row"];function Bt(Ce,bn){if(1&Ce&&u._UZ(0,"span",2),2&Ce){const Oe=u.oxw();u.Q6J("@indicatorRotate",Oe._getExpandedState())}}const kt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],le=["mat-panel-title","mat-panel-description","*"],Vt=new u.OlP("MAT_ACCORDION"),be="225ms cubic-bezier(0.4,0.0,0.2,1)",ge={indicatorRotate:(0,Tt.X$)("indicatorRotate",[(0,Tt.SB)("collapsed, void",(0,Tt.oB)({transform:"rotate(0deg)"})),(0,Tt.SB)("expanded",(0,Tt.oB)({transform:"rotate(180deg)"})),(0,Tt.eR)("expanded <=> collapsed, void => collapsed",(0,Tt.jt)(be))]),bodyExpansion:(0,Tt.X$)("bodyExpansion",[(0,Tt.SB)("collapsed, void",(0,Tt.oB)({height:"0px",visibility:"hidden"})),(0,Tt.SB)("expanded",(0,Tt.oB)({height:"*",visibility:"visible"})),(0,Tt.eR)("expanded <=> collapsed, void => collapsed",(0,Tt.jt)(be))])},Fe=new u.OlP("MAT_EXPANSION_PANEL");let qe=(()=>{class Ce{constructor(Oe,dn){this._template=Oe,this._expansionPanel=dn}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(u.Rgc),u.Y36(Fe,8))},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ce})(),je=0;const Qt=new u.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ue=(()=>{class Ce extends O{constructor(Oe,dn,Pn,ii,_i,oi,We){super(Oe,dn,Pn),this._viewContainerRef=ii,this._animationMode=oi,this._hideToggle=!1,this.afterExpand=new u.vpe,this.afterCollapse=new u.vpe,this._inputChanges=new g.xQ,this._headerId="mat-expansion-panel-header-"+je++,this._bodyAnimationDone=new g.xQ,this.accordion=Oe,this._document=_i,this._bodyAnimationDone.pipe((0,ct.x)((ee,ot)=>ee.fromState===ot.fromState&&ee.toState===ot.toState)).subscribe(ee=>{"void"!==ee.fromState&&("expanded"===ee.toState?this.afterExpand.emit():"collapsed"===ee.toState&&this.afterCollapse.emit())}),We&&(this.hideToggle=We.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Oe){this._hideToggle=(0,v.Ig)(Oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Oe){this._togglePosition=Oe}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,lt.O)(null),(0,Ct.h)(()=>this.expanded&&!this._portal),(0,Dt.q)(1)).subscribe(()=>{this._portal=new N.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Oe){this._inputChanges.next(Oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Oe=this._document.activeElement,dn=this._body.nativeElement;return Oe===dn||dn.contains(Oe)}return!1}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(Vt,12),u.Y36(u.sBO),u.Y36(d.A8),u.Y36(u.s_b),u.Y36(B.K0),u.Y36(u.QbO,8),u.Y36(Qt,8))},Ce.\u0275cmp=u.Xpm({type:Ce,selectors:[["mat-expansion-panel"]],contentQueries:function(Oe,dn,Pn){if(1&Oe&&u.Suo(Pn,qe,5),2&Oe){let ii;u.iGM(ii=u.CRH())&&(dn._lazyContent=ii.first)}},viewQuery:function(Oe,dn){if(1&Oe&&u.Gf(Ut,5),2&Oe){let Pn;u.iGM(Pn=u.CRH())&&(dn._body=Pn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Oe,dn){2&Oe&&u.ekj("mat-expanded",dn.expanded)("_mat-animation-noopable","NoopAnimations"===dn._animationMode)("mat-expansion-panel-spacing",dn._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[u._Bn([{provide:Vt,useValue:void 0},{provide:Fe,useExisting:Ce}]),u.qOj,u.TTD],ngContentSelectors:Lt,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Oe,dn){1&Oe&&(u.F$t(mt),u.Hsn(0),u.TgZ(1,"div",0,1),u.NdJ("@bodyExpansion.done",function(ii){return dn._bodyAnimationDone.next(ii)}),u.TgZ(3,"div",2),u.Hsn(4,1),u.YNc(5,bt,0,0,"ng-template",3),u.qZA(),u.Hsn(6,2),u.qZA()),2&Oe&&(u.xp6(1),u.Q6J("@bodyExpansion",dn._getExpandedState())("id",dn.id),u.uIk("aria-labelledby",dn._headerId),u.xp6(4),u.Q6J("cdkPortalOutlet",dn._portal))},dependencies:[N.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ge.bodyExpansion]},changeDetection:0}),Ce})();class Wt{}const se=(0,K.sb)(Wt);let Xt=(()=>{class Ce extends se{constructor(Oe,dn,Pn,ii,_i,oi,We){super(),this.panel=Oe,this._element=dn,this._focusMonitor=Pn,this._changeDetectorRef=ii,this._animationMode=oi,this._parentChangeSubscription=t.w.EMPTY;const ee=Oe.accordion?Oe.accordion._stateChanges.pipe((0,Ct.h)(ot=>!(!ot.hideToggle&&!ot.togglePosition))):Rt.E;this.tabIndex=parseInt(We||"")||0,this._parentChangeSubscription=(0,Gt.T)(Oe.opened,Oe.closed,ee,Oe._inputChanges.pipe((0,Ct.h)(ot=>!!(ot.hideToggle||ot.disabled||ot.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Oe.closed.pipe((0,Ct.h)(()=>Oe._containsFocus())).subscribe(()=>Pn.focusVia(dn,"program")),_i&&(this.expandedHeight=_i.expandedHeight,this.collapsedHeight=_i.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Oe=this._isExpanded();return Oe&&this.expandedHeight?this.expandedHeight:!Oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Oe){switch(Oe.keyCode){case Zt.L_:case Zt.K5:(0,Zt.Vb)(Oe)||(Oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Oe))}}focus(Oe,dn){Oe?this._focusMonitor.focusVia(this._element,Oe,dn):this._element.nativeElement.focus(dn)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Oe=>{Oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)(u.Y36(Ue,1),u.Y36(u.SBq),u.Y36(et.tE),u.Y36(u.sBO),u.Y36(Qt,8),u.Y36(u.QbO,8),u.$8M("tabindex"))},Ce.\u0275cmp=u.Xpm({type:Ce,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Oe,dn){1&Oe&&u.NdJ("click",function(){return dn._toggle()})("keydown",function(ii){return dn._keydown(ii)}),2&Oe&&(u.uIk("id",dn.panel._headerId)("tabindex",dn.tabIndex)("aria-controls",dn._getPanelId())("aria-expanded",dn._isExpanded())("aria-disabled",dn.panel.disabled),u.Udp("height",dn._getHeaderHeight()),u.ekj("mat-expanded",dn._isExpanded())("mat-expansion-toggle-indicator-after","after"===dn._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===dn._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===dn._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[u.qOj],ngContentSelectors:le,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Oe,dn){1&Oe&&(u.F$t(kt),u.TgZ(0,"span",0),u.Hsn(1),u.Hsn(2,1),u.Hsn(3,2),u.qZA(),u.YNc(4,Bt,1,1,"span",1)),2&Oe&&(u.ekj("mat-content-hide-toggle",!dn._showToggle()),u.xp6(4),u.Q6J("ngIf",dn._showToggle()))},dependencies:[B.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ge.indicatorRotate]},changeDetection:0}),Ce})(),ae=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ce})(),De=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275dir=u.lG2({type:Ce,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ce})(),nn=(()=>{class Ce extends w{constructor(){super(...arguments),this._ownHeaders=new u.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Oe){this._hideToggle=(0,v.Ig)(Oe)}ngAfterContentInit(){this._headers.changes.pipe((0,lt.O)(this._headers)).subscribe(Oe=>{this._ownHeaders.reset(Oe.filter(dn=>dn.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new et.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Oe){this._keyManager.onKeydown(Oe)}_handleHeaderFocus(Oe){this._keyManager.updateActiveItem(Oe)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ce.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=u.n5z(Ce)))(dn||Ce)}}(),Ce.\u0275dir=u.lG2({type:Ce,selectors:[["mat-accordion"]],contentQueries:function(Oe,dn,Pn){if(1&Oe&&u.Suo(Pn,Xt,5),2&Oe){let ii;u.iGM(ii=u.CRH())&&(dn._headers=ii)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Oe,dn){2&Oe&&u.ekj("mat-accordion-multi",dn.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[u._Bn([{provide:Vt,useExisting:Ce}]),u.qOj]}),Ce})(),hn=(()=>{class Ce{}return Ce.\u0275fac=function(Oe){return new(Oe||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({imports:[B.ez,K.BQ,L,N.eL]}),Ce})()},59549:(tt,W,f)=>{"use strict";f.d(W,{Eo:()=>qe,G_:()=>_i,KE:()=>oi,R9:()=>Ce,TO:()=>ge,bx:()=>se,hX:()=>Xt,lN:()=>We,o2:()=>ii,qo:()=>nn});var u=f(49643),d=f(36895),v=f(94650),g=f(3238),t=f(40445),T=f(21281),U=f(8929),w=f(36787),P=f(23753),O=f(1059),L=f(7625),N=f(72986),B=f(37340),K=f(83353);const et=["connectionContainer"],ct=["inputContainer"],lt=["label"];function Ct(ee,ot){1&ee&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15)(3,"div",16)(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15)(7,"div",16)(8,"div",17),v.qZA(),v.BQk())}function Dt(ee,ot){if(1&ee){const X=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){v.CHM(X);const Ht=v.oxw();return v.KtG(Ht.updateOutlineGap())}),v.Hsn(1,1),v.qZA()}if(2&ee){const X=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=X.appearance)}}function Zt(ee,ot){if(1&ee&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&ee){const X=v.oxw(2);v.xp6(3),v.Oqu(X._control.placeholder)}}function Rt(ee,ot){1&ee&&v.Hsn(0,3,["*ngSwitchCase","true"])}function Gt(ee,ot){1&ee&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function Tt(ee,ot){if(1&ee){const X=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){v.CHM(X);const Ht=v.oxw();return v.KtG(Ht.updateOutlineGap())}),v.YNc(2,Zt,4,1,"ng-container",12),v.YNc(3,Rt,1,0,"ng-content",12),v.YNc(4,Gt,2,0,"span",22),v.qZA()}if(2&ee){const X=v.oxw();v.ekj("mat-empty",X._control.empty&&!X._shouldAlwaysFloat())("mat-form-field-empty",X._control.empty&&!X._shouldAlwaysFloat())("mat-accent","accent"==X.color)("mat-warn","warn"==X.color),v.Q6J("cdkObserveContentDisabled","outline"!=X.appearance)("id",X._labelId)("ngSwitch",X._hasLabel()),v.uIk("for",X._control.id)("aria-owns",X._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!X.hideRequiredMarker&&X._control.required&&!X._control.disabled)}}function Ut(ee,ot){1&ee&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function bt(ee,ot){if(1&ee&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&ee){const X=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==X.color)("mat-warn","warn"==X.color)}}function mt(ee,ot){if(1&ee&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&ee){const X=v.oxw();v.Q6J("@transitionMessages",X._subscriptAnimationState)}}function Lt(ee,ot){if(1&ee&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&ee){const X=v.oxw(2);v.Q6J("id",X._hintLabelId),v.xp6(1),v.Oqu(X.hintLabel)}}function Bt(ee,ot){if(1&ee&&(v.TgZ(0,"div",27),v.YNc(1,Lt,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&ee){const X=v.oxw();v.Q6J("@transitionMessages",X._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",X.hintLabel)}}const kt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],le=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vt=0;const be=new v.OlP("MatError");let ge=(()=>{class ee{constructor(X,At){this.id="mat-error-"+Vt++,X||At.nativeElement.setAttribute("aria-live","polite")}}return ee.\u0275fac=function(X){return new(X||ee)(v.$8M("aria-live"),v.Y36(v.SBq))},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(X,At){2&X&&v.uIk("id",At.id)},inputs:{id:"id"},features:[v._Bn([{provide:be,useExisting:ee}])]}),ee})();const Fe={transitionMessages:(0,B.X$)("transitionMessages",[(0,B.SB)("enter",(0,B.oB)({opacity:1,transform:"translateY(0%)"})),(0,B.eR)("void => enter",[(0,B.oB)({opacity:0,transform:"translateY(-5px)"}),(0,B.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qe=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee}),ee})(),ie=0;const Wt=new v.OlP("MatHint");let se=(()=>{class ee{constructor(){this.align="start",this.id="mat-hint-"+ie++}}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(X,At){2&X&&(v.uIk("id",At.id)("align",null),v.ekj("mat-form-field-hint-end","end"===At.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:Wt,useExisting:ee}])]}),ee})(),Xt=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-label"]]}),ee})(),ae=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["mat-placeholder"]]}),ee})();const De=new v.OlP("MatPrefix");let nn=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["","matPrefix",""]],features:[v._Bn([{provide:De,useExisting:ee}])]}),ee})();const hn=new v.OlP("MatSuffix");let Ce=(()=>{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275dir=v.lG2({type:ee,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:hn,useExisting:ee}])]}),ee})(),bn=0;const Pn=(0,g.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),ii=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_i=new v.OlP("MatFormField");let oi=(()=>{class ee extends Pn{constructor(X,At,Ht,ue,ye,Se,vn){super(X),this._changeDetectorRef=At,this._dir=Ht,this._defaults=ue,this._platform=ye,this._ngZone=Se,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new U.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==vn,this.appearance=ue?.appearance||"legacy",ue&&(this._hideRequiredMarker=Boolean(ue.hideRequiredMarker),ue.color&&(this.color=this.defaultColor=ue.color))}get appearance(){return this._appearance}set appearance(X){const At=this._appearance;this._appearance=X||this._defaults?.appearance||"legacy","outline"===this._appearance&&At!==X&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(X){this._hideRequiredMarker=(0,T.Ig)(X)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(X){this._hintLabel=X,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(X){X!==this._floatLabel&&(this._floatLabel=X||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(X){this._explicitFormFieldControl=X}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const X=this._control;X.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${X.controlType}`),X.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),X.ngControl&&X.ngControl.valueChanges&&X.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(X){const At=this._control?this._control.ngControl:null;return At&&At[X]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,P.R)(this._label.nativeElement,"transitionend").pipe((0,N.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let X=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&X.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const At=this._hintChildren?this._hintChildren.find(ue=>"start"===ue.align):null,Ht=this._hintChildren?this._hintChildren.find(ue=>"end"===ue.align):null;At?X.push(At.id):this._hintLabel&&X.push(this._hintLabelId),Ht&&X.push(Ht.id)}else this._errorChildren&&X.push(...this._errorChildren.map(At=>At.id));this._control.setDescribedByIds(X)}}_validateControlChild(){}updateOutlineGap(){const X=this._label?this._label.nativeElement:null,At=this._connectionContainerRef.nativeElement,Ht=".mat-form-field-outline-start",ue=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!X||!X.children.length||!X.textContent.trim()){const mi=At.querySelectorAll(`${Ht}, ${ue}`);for(let Di=0;Di0?.75*zn+10:0}for(let mi=0;mi{class ee{}return ee.\u0275fac=function(X){return new(X||ee)},ee.\u0275mod=v.oAB({type:ee}),ee.\u0275inj=v.cJS({imports:[d.ez,g.BQ,u.Q8,g.BQ]}),ee})()},90782:(tt,W,f)=>{"use strict";f.d(W,{DX:()=>N,Il:()=>bt,N6:()=>mt});var u=f(94650),d=f(3238),v=f(21281),g=f(40445);const t=["*"];class P{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const kt=Math.max(...this.tracker);return kt>1?this.rowCount+kt-1:this.rowCount}update(kt,le){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(kt),this.tracker.fill(0,0,this.tracker.length),this.positions=le.map(Vt=>this._trackTile(Vt))}_trackTile(kt){const le=this._findMatchingGap(kt.colspan);return this._markTilePosition(le,kt),this.columnIndex=le+kt.colspan,new O(this.rowIndex,le)}_findMatchingGap(kt){let le=-1,Vt=-1;do{this.columnIndex+kt>this.tracker.length?(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(le)):(le=this.tracker.indexOf(0,this.columnIndex),-1!=le?(Vt=this._findGapEndIndex(le),this.columnIndex=le+1):(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Vt=this._findGapEndIndex(le)))}while(Vt-le{class Bt{constructor(le,Vt){this._element=le,this._gridList=Vt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(le){this._rowspan=Math.round((0,v.su)(le))}get colspan(){return this._colspan}set colspan(le){this._colspan=Math.round((0,v.su)(le))}_setStyle(le,Vt){this._element.nativeElement.style[le]=Vt}}return Bt.\u0275fac=function(le){return new(le||Bt)(u.Y36(u.SBq),u.Y36(L,8))},Bt.\u0275cmp=u.Xpm({type:Bt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(le,Vt){2&le&&u.uIk("rowspan",Vt.rowspan)("colspan",Vt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(le,Vt){1&le&&(u.F$t(),u.TgZ(0,"div",0),u.Hsn(1),u.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})();const lt=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Ct{constructor(){this._rows=0,this._rowspan=0}init(kt,le,Vt,be){this._gutterSize=Tt(kt),this._rows=le.rowCount,this._rowspan=le.rowspan,this._cols=Vt,this._direction=be}getBaseTileSize(kt,le){return`(${kt}% - (${this._gutterSize} * ${le}))`}getTilePosition(kt,le){return 0===le?"0":Gt(`(${kt} + ${this._gutterSize}) * ${le}`)}getTileSize(kt,le){return`(${kt} * ${le}) + (${le-1} * ${this._gutterSize})`}setStyle(kt,le,Vt){let be=100/this._cols,ge=(this._cols-1)/this._cols;this.setColStyles(kt,Vt,be,ge),this.setRowStyles(kt,le,be,ge)}setColStyles(kt,le,Vt,be){let ge=this.getBaseTileSize(Vt,be);kt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(ge,le)),kt._setStyle("width",Gt(this.getTileSize(ge,kt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(kt){return`${this._rowspan} * ${this.getTileSize(kt,1)}`}getComputedHeight(){return null}}class Dt extends Ct{constructor(kt){super(),this.fixedRowHeight=kt}init(kt,le,Vt,be){super.init(kt,le,Vt,be),this.fixedRowHeight=Tt(this.fixedRowHeight),lt.test(this.fixedRowHeight)}setRowStyles(kt,le){kt._setStyle("top",this.getTilePosition(this.fixedRowHeight,le)),kt._setStyle("height",Gt(this.getTileSize(this.fixedRowHeight,kt.rowspan)))}getComputedHeight(){return["height",Gt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(kt){kt._setListStyle(["height",null]),kt._tiles&&kt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}class Zt extends Ct{constructor(kt){super(),this._parseRatio(kt)}setRowStyles(kt,le,Vt,be){this.baseTileHeight=this.getBaseTileSize(Vt/this.rowHeightRatio,be),kt._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,le)),kt._setStyle("paddingTop",Gt(this.getTileSize(this.baseTileHeight,kt.rowspan)))}getComputedHeight(){return["paddingBottom",Gt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(kt){kt._setListStyle(["paddingBottom",null]),kt._tiles.forEach(le=>{le._setStyle("marginTop",null),le._setStyle("paddingTop",null)})}_parseRatio(kt){const le=kt.split(":");this.rowHeightRatio=parseFloat(le[0])/parseFloat(le[1])}}class Rt extends Ct{setRowStyles(kt,le){let ge=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);kt._setStyle("top",this.getTilePosition(ge,le)),kt._setStyle("height",Gt(this.getTileSize(ge,kt.rowspan)))}reset(kt){kt._tiles&&kt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}function Gt(Bt){return`calc(${Bt})`}function Tt(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let bt=(()=>{class Bt{constructor(le,Vt){this._element=le,this._dir=Vt,this._gutter="1px"}get cols(){return this._cols}set cols(le){this._cols=Math.max(1,Math.round((0,v.su)(le)))}get gutterSize(){return this._gutter}set gutterSize(le){this._gutter=`${le??""}`}get rowHeight(){return this._rowHeight}set rowHeight(le){const Vt=`${le??""}`;Vt!==this._rowHeight&&(this._rowHeight=Vt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(le){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===le?new Rt:le&&le.indexOf(":")>-1?new Zt(le):new Dt(le)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new P);const le=this._tileCoordinator,Vt=this._tiles.filter(ge=>!ge._gridList||ge._gridList===this),be=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Vt),this._tileStyler.init(this.gutterSize,le,this.cols,be),Vt.forEach((ge,Fe)=>{const qe=le.positions[Fe];this._tileStyler.setStyle(ge,qe.row,qe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(le){le&&(this._element.nativeElement.style[le[0]]=le[1])}}return Bt.\u0275fac=function(le){return new(le||Bt)(u.Y36(u.SBq),u.Y36(g.Is,8))},Bt.\u0275cmp=u.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(le,Vt,be){if(1&le&&u.Suo(be,N,5),2&le){let ge;u.iGM(ge=u.CRH())&&(Vt._tiles=ge)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(le,Vt){2&le&&u.uIk("cols",Vt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[u._Bn([{provide:L,useExisting:Bt}])],ngContentSelectors:t,decls:2,vars:0,template:function(le,Vt){1&le&&(u.F$t(),u.TgZ(0,"div"),u.Hsn(1),u.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})(),mt=(()=>{class Bt{}return Bt.\u0275fac=function(le){return new(le||Bt)},Bt.\u0275mod=u.oAB({type:Bt}),Bt.\u0275inj=u.cJS({imports:[d.uc,d.BQ,d.uc,d.BQ]}),Bt})()},97392:(tt,W,f)=>{"use strict";f.d(W,{Hw:()=>ie,Ps:()=>Wt});var u=f(94650),d=f(3238),v=f(21281),g=f(36895),t=f(21086),T=f(61737),U=f(30567),w=f(42654),P=f(22868),O=f(24850),L=f(27221),N=f(40537),B=f(12474),K=f(72986),et=f(80529),ct=f(11481);const lt=["*"];let Ct;function Zt(se){return function Dt(){if(void 0===Ct&&(Ct=null,typeof window<"u")){const se=window;void 0!==se.trustedTypes&&(Ct=se.trustedTypes.createPolicy("angular#components",{createHTML:Xt=>Xt}))}return Ct}()?.createHTML(se)||se}function Rt(se){return Error(`Unable to find icon with the name "${se}"`)}function Tt(se){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${se}".`)}function Ut(se){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${se}".`)}class bt{constructor(Xt,ae,De){this.url=Xt,this.svgText=ae,this.options=De}}let mt=(()=>{class se{constructor(ae,De,nn,hn){this._httpClient=ae,this._sanitizer=De,this._errorHandler=hn,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=nn}addSvgIcon(ae,De,nn){return this.addSvgIconInNamespace("",ae,De,nn)}addSvgIconLiteral(ae,De,nn){return this.addSvgIconLiteralInNamespace("",ae,De,nn)}addSvgIconInNamespace(ae,De,nn,hn){return this._addSvgIconConfig(ae,De,new bt(nn,null,hn))}addSvgIconResolver(ae){return this._resolvers.push(ae),this}addSvgIconLiteralInNamespace(ae,De,nn,hn){const Ce=this._sanitizer.sanitize(u.q3G.HTML,nn);if(!Ce)throw Ut(nn);const bn=Zt(Ce);return this._addSvgIconConfig(ae,De,new bt("",bn,hn))}addSvgIconSet(ae,De){return this.addSvgIconSetInNamespace("",ae,De)}addSvgIconSetLiteral(ae,De){return this.addSvgIconSetLiteralInNamespace("",ae,De)}addSvgIconSetInNamespace(ae,De,nn){return this._addSvgIconSetConfig(ae,new bt(De,null,nn))}addSvgIconSetLiteralInNamespace(ae,De,nn){const hn=this._sanitizer.sanitize(u.q3G.HTML,De);if(!hn)throw Ut(De);const Ce=Zt(hn);return this._addSvgIconSetConfig(ae,new bt("",Ce,nn))}registerFontClassAlias(ae,De=ae){return this._fontCssClassesByAlias.set(ae,De),this}classNameForFontAlias(ae){return this._fontCssClassesByAlias.get(ae)||ae}setDefaultFontSetClass(...ae){return this._defaultFontSetClass=ae,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ae){const De=this._sanitizer.sanitize(u.q3G.RESOURCE_URL,ae);if(!De)throw Tt(ae);const nn=this._cachedIconsByUrl.get(De);return nn?(0,t.of)(kt(nn)):this._loadSvgIconFromConfig(new bt(ae,null)).pipe((0,P.b)(hn=>this._cachedIconsByUrl.set(De,hn)),(0,O.U)(hn=>kt(hn)))}getNamedSvgIcon(ae,De=""){const nn=le(De,ae);let hn=this._svgIconConfigs.get(nn);if(hn)return this._getSvgFromConfig(hn);if(hn=this._getIconConfigFromResolvers(De,ae),hn)return this._svgIconConfigs.set(nn,hn),this._getSvgFromConfig(hn);const Ce=this._iconSetConfigs.get(De);return Ce?this._getSvgFromIconSetConfigs(ae,Ce):(0,T._)(Rt(nn))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ae){return ae.svgText?(0,t.of)(kt(this._svgElementFromConfig(ae))):this._loadSvgIconFromConfig(ae).pipe((0,O.U)(De=>kt(De)))}_getSvgFromIconSetConfigs(ae,De){const nn=this._extractIconWithNameFromAnySet(ae,De);if(nn)return(0,t.of)(nn);const hn=De.filter(Ce=>!Ce.svgText).map(Ce=>this._loadSvgIconSetFromConfig(Ce).pipe((0,L.K)(bn=>{const dn=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,Ce.url)} failed: ${bn.message}`;return this._errorHandler.handleError(new Error(dn)),(0,t.of)(null)})));return(0,U.D)(hn).pipe((0,O.U)(()=>{const Ce=this._extractIconWithNameFromAnySet(ae,De);if(!Ce)throw Rt(ae);return Ce}))}_extractIconWithNameFromAnySet(ae,De){for(let nn=De.length-1;nn>=0;nn--){const hn=De[nn];if(hn.svgText&&hn.svgText.toString().indexOf(ae)>-1){const Ce=this._svgElementFromConfig(hn),bn=this._extractSvgIconFromSet(Ce,ae,hn.options);if(bn)return bn}}return null}_loadSvgIconFromConfig(ae){return this._fetchIcon(ae).pipe((0,P.b)(De=>ae.svgText=De),(0,O.U)(()=>this._svgElementFromConfig(ae)))}_loadSvgIconSetFromConfig(ae){return ae.svgText?(0,t.of)(null):this._fetchIcon(ae).pipe((0,P.b)(De=>ae.svgText=De))}_extractSvgIconFromSet(ae,De,nn){const hn=ae.querySelector(`[id="${De}"]`);if(!hn)return null;const Ce=hn.cloneNode(!0);if(Ce.removeAttribute("id"),"svg"===Ce.nodeName.toLowerCase())return this._setSvgAttributes(Ce,nn);if("symbol"===Ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ce),nn);const bn=this._svgElementFromString(Zt(""));return bn.appendChild(Ce),this._setSvgAttributes(bn,nn)}_svgElementFromString(ae){const De=this._document.createElement("DIV");De.innerHTML=ae;const nn=De.querySelector("svg");if(!nn)throw Error(" tag not found");return nn}_toSvgElement(ae){const De=this._svgElementFromString(Zt("")),nn=ae.attributes;for(let hn=0;hnZt(dn)),(0,N.x)(()=>this._inProgressUrlFetches.delete(Ce)),(0,B.B)());return this._inProgressUrlFetches.set(Ce,Oe),Oe}_addSvgIconConfig(ae,De,nn){return this._svgIconConfigs.set(le(ae,De),nn),this}_addSvgIconSetConfig(ae,De){const nn=this._iconSetConfigs.get(ae);return nn?nn.push(De):this._iconSetConfigs.set(ae,[De]),this}_svgElementFromConfig(ae){if(!ae.svgElement){const De=this._svgElementFromString(ae.svgText);this._setSvgAttributes(De,ae.options),ae.svgElement=De}return ae.svgElement}_getIconConfigFromResolvers(ae,De){for(let nn=0;nnXt?Xt.pathname+Xt.search:""}}}),je=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Qt=je.map(se=>`[${se}]`).join(", "),Ue=/^url\(['"]?#(.*?)['"]?\)$/;let ie=(()=>{class se extends be{constructor(ae,De,nn,hn,Ce,bn){super(ae),this._iconRegistry=De,this._location=hn,this._errorHandler=Ce,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,bn&&(bn.color&&(this.color=this.defaultColor=bn.color),bn.fontSet&&(this.fontSet=bn.fontSet)),nn||ae.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ae){this._inline=(0,v.Ig)(ae)}get svgIcon(){return this._svgIcon}set svgIcon(ae){ae!==this._svgIcon&&(ae?this._updateSvgIcon(ae):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ae)}get fontSet(){return this._fontSet}set fontSet(ae){const De=this._cleanupFontValue(ae);De!==this._fontSet&&(this._fontSet=De,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ae){const De=this._cleanupFontValue(ae);De!==this._fontIcon&&(this._fontIcon=De,this._updateFontIconClasses())}_splitIconName(ae){if(!ae)return["",""];const De=ae.split(":");switch(De.length){case 1:return["",De[0]];case 2:return De;default:throw Error(`Invalid icon name: "${ae}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ae=this._elementsWithExternalReferences;if(ae&&ae.size){const De=this._location.getPathname();De!==this._previousPath&&(this._previousPath=De,this._prependPathToReferences(De))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ae){this._clearSvgElement();const De=this._location.getPathname();this._previousPath=De,this._cacheChildrenWithExternalReferences(ae),this._prependPathToReferences(De),this._elementRef.nativeElement.appendChild(ae)}_clearSvgElement(){const ae=this._elementRef.nativeElement;let De=ae.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();De--;){const nn=ae.childNodes[De];(1!==nn.nodeType||"svg"===nn.nodeName.toLowerCase())&&nn.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ae=this._elementRef.nativeElement,De=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(nn=>nn.length>0);this._previousFontSetClass.forEach(nn=>ae.classList.remove(nn)),De.forEach(nn=>ae.classList.add(nn)),this._previousFontSetClass=De,this.fontIcon!==this._previousFontIconClass&&!De.includes("mat-ligature-font")&&(this._previousFontIconClass&&ae.classList.remove(this._previousFontIconClass),this.fontIcon&&ae.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ae){return"string"==typeof ae?ae.trim().split(" ")[0]:ae}_prependPathToReferences(ae){const De=this._elementsWithExternalReferences;De&&De.forEach((nn,hn)=>{nn.forEach(Ce=>{hn.setAttribute(Ce.name,`url('${ae}#${Ce.value}')`)})})}_cacheChildrenWithExternalReferences(ae){const De=ae.querySelectorAll(Qt),nn=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let hn=0;hn{const bn=De[hn],Oe=bn.getAttribute(Ce),dn=Oe?Oe.match(Ue):null;if(dn){let Pn=nn.get(bn);Pn||(Pn=[],nn.set(bn,Pn)),Pn.push({name:Ce,value:dn[1]})}})}_updateSvgIcon(ae){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ae){const[De,nn]=this._splitIconName(ae);De&&(this._svgNamespace=De),nn&&(this._svgName=nn),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(nn,De).pipe((0,K.q)(1)).subscribe(hn=>this._setSvgElement(hn),hn=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${De}:${nn}! ${hn.message}`))})}}}return se.\u0275fac=function(ae){return new(ae||se)(u.Y36(u.SBq),u.Y36(mt),u.$8M("aria-hidden"),u.Y36(Fe),u.Y36(u.qLn),u.Y36(ge,8))},se.\u0275cmp=u.Xpm({type:se,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(ae,De){2&ae&&(u.uIk("data-mat-icon-type",De._usingFontIcon()?"font":"svg")("data-mat-icon-name",De._svgName||De.fontIcon)("data-mat-icon-namespace",De._svgNamespace||De.fontSet)("fontIcon",De._usingFontIcon()?De.fontIcon:null),u.ekj("mat-icon-inline",De.inline)("mat-icon-no-color","primary"!==De.color&&"accent"!==De.color&&"warn"!==De.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[u.qOj],ngContentSelectors:lt,decls:1,vars:0,template:function(ae,De){1&ae&&(u.F$t(),u.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),se})(),Wt=(()=>{class se{}return se.\u0275fac=function(ae){return new(ae||se)},se.\u0275mod=u.oAB({type:se}),se.\u0275inj=u.cJS({imports:[d.BQ,d.BQ]}),se})()},284:(tt,W,f)=>{"use strict";f.d(W,{Jk:()=>O,Nt:()=>K,c:()=>et});var u=f(21281),d=f(83353),v=f(39349),g=f(94650),t=f(24006),T=f(3238),U=f(59549),w=f(8929);const O=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),L=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let N=0;const B=(0,T.FD)(class{constructor(ct,lt,Ct,Dt){this._defaultErrorStateMatcher=ct,this._parentForm=lt,this._parentFormGroup=Ct,this.ngControl=Dt,this.stateChanges=new w.xQ}});let K=(()=>{class ct extends B{constructor(Ct,Dt,Zt,Rt,Gt,Tt,Ut,bt,mt,Lt){super(Tt,Rt,Gt,Zt),this._elementRef=Ct,this._platform=Dt,this._autofillMonitor=bt,this._formField=Lt,this._uid="mat-input-"+N++,this.focused=!1,this.stateChanges=new w.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(le=>(0,d.qK)().has(le)),this._iOSKeyupListener=le=>{const Vt=le.target;!Vt.value&&0===Vt.selectionStart&&0===Vt.selectionEnd&&(Vt.setSelectionRange(1,1),Vt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,kt=Bt.nodeName.toLowerCase();this._inputValueAccessor=Ut||Bt,this._previousNativeValue=this.value,this.id=this.id,Dt.IOS&&mt.runOutsideAngular(()=>{Ct.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===kt,this._isTextarea="textarea"===kt,this._isInFormField=!!Lt,this._isNativeSelect&&(this.controlType=Bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ct){this._disabled=(0,u.Ig)(Ct),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Ct){this._id=Ct||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(Ct){this._required=(0,u.Ig)(Ct)}get type(){return this._type}set type(Ct){this._type=Ct||"text",this._validateType(),!this._isTextarea&&(0,d.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Ct){Ct!==this.value&&(this._inputValueAccessor.value=Ct,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Ct){this._readonly=(0,u.Ig)(Ct)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Ct=>{this.autofilled=Ct.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Ct){this._elementRef.nativeElement.focus(Ct)}_focusChanged(Ct){Ct!==this.focused&&(this.focused=Ct,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const Ct=this._formField,Dt=Ct&&"legacy"===Ct.appearance&&!Ct._hasLabel?.()?null:this.placeholder;if(Dt!==this._previousPlaceholder){const Zt=this._elementRef.nativeElement;this._previousPlaceholder=Dt,Dt?Zt.setAttribute("placeholder",Dt):Zt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Ct=this._elementRef.nativeElement.value;this._previousNativeValue!==Ct&&(this._previousNativeValue=Ct,this.stateChanges.next())}_validateType(){L.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Ct=this._elementRef.nativeElement.validity;return Ct&&Ct.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Ct=this._elementRef.nativeElement,Dt=Ct.options[0];return this.focused||Ct.multiple||!this.empty||!!(Ct.selectedIndex>-1&&Dt&&Dt.label)}return this.focused||!this.empty}setDescribedByIds(Ct){Ct.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ct.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Ct=this._elementRef.nativeElement;return this._isNativeSelect&&(Ct.multiple||Ct.size>1)}}return ct.\u0275fac=function(Ct){return new(Ct||ct)(g.Y36(g.SBq),g.Y36(d.t4),g.Y36(t.a5,10),g.Y36(t.F,8),g.Y36(t.sg,8),g.Y36(T.rD),g.Y36(O,10),g.Y36(v.Lq),g.Y36(g.R0b),g.Y36(U.G_,8))},ct.\u0275dir=g.lG2({type:ct,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Ct,Dt){1&Ct&&g.NdJ("focus",function(){return Dt._focusChanged(!0)})("blur",function(){return Dt._focusChanged(!1)})("input",function(){return Dt._onInput()}),2&Ct&&(g.Ikx("disabled",Dt.disabled)("required",Dt.required),g.uIk("id",Dt.id)("data-placeholder",Dt.placeholder)("name",Dt.name||null)("readonly",Dt.readonly&&!Dt._isNativeSelect||null)("aria-invalid",Dt.empty&&Dt.required?null:Dt.errorState)("aria-required",Dt.required),g.ekj("mat-input-server",Dt._isServer)("mat-native-select-inline",Dt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[g._Bn([{provide:U.Eo,useExisting:ct}]),g.qOj,g.TTD]}),ct})(),et=(()=>{class ct{}return ct.\u0275fac=function(Ct){return new(Ct||ct)},ct.\u0275mod=g.oAB({type:ct}),ct.\u0275inj=g.cJS({providers:[T.rD],imports:[v.Ky,U.lN,T.BQ,v.Ky,U.lN]}),ct})()},96338:(tt,W,f)=>{"use strict";f.d(W,{Hk:()=>bt,Nh:()=>Bt,Tg:()=>le,gs:()=>kt,i$:()=>mt,ie:()=>Qt});var u=f(36895),d=f(94650),v=f(3238),g=f(21281),t=f(8929),T=f(7625),N=(f(1059),f(12687),f(95017),f(29521),f(24006),f(44850));const B=["*"],et=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ct=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Rt=(0,v.Id)((0,v.Kr)(class{})),Gt=(0,v.Kr)(class{}),Tt=new d.OlP("MatList"),Ut=new d.OlP("MatNavList");let bt=(()=>{class Ue extends Rt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(){let ie;return function(se){return(ie||(ie=d.n5z(Ue)))(se||Ue)}}(),Ue.\u0275cmp=d.Xpm({type:Ue,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[d._Bn([{provide:Ut,useExisting:Ue}]),d.qOj,d.TTD],ngContentSelectors:B,decls:1,vars:0,template:function(Wt,se){1&Wt&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ue})(),mt=(()=>{class Ue extends Rt{constructor(Wt){super(),this._elementRef=Wt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(Wt.nativeElement.classList.add("mat-action-list"),Wt.nativeElement.setAttribute("role","group"))}_getListType(){const Wt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Wt?"list":"mat-action-list"===Wt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)(d.Y36(d.SBq))},Ue.\u0275cmp=d.Xpm({type:Ue,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[d._Bn([{provide:Tt,useExisting:Ue}]),d.qOj,d.TTD],ngContentSelectors:B,decls:1,vars:0,template:function(Wt,se){1&Wt&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ue})(),Lt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275dir=d.lG2({type:Ue,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ue})(),Bt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275dir=d.lG2({type:Ue,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Ue})(),kt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275dir=d.lG2({type:Ue,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Ue})(),le=(()=>{class Ue extends Gt{constructor(Wt,se,Xt,ae){super(),this._element=Wt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Xt||ae&&"action-list"===ae._getListType()),this._list=Xt||ae;const De=this._getHostElement();"button"===De.nodeName.toLowerCase()&&!De.hasAttribute("type")&&De.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>{se.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Wt){this._disabled=(0,g.Ig)(Wt)}ngAfterContentInit(){(0,v.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Ut,8),d.Y36(Tt,8))},Ue.\u0275cmp=d.Xpm({type:Ue,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Wt,se,Xt){if(1&Wt&&(d.Suo(Xt,Lt,5),d.Suo(Xt,Bt,5),d.Suo(Xt,v.X2,5)),2&Wt){let ae;d.iGM(ae=d.CRH())&&(se._avatar=ae.first),d.iGM(ae=d.CRH())&&(se._icon=ae.first),d.iGM(ae=d.CRH())&&(se._lines=ae)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Wt,se){2&Wt&&d.ekj("mat-list-item-disabled",se.disabled)("mat-list-item-with-avatar",se._avatar||se._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[d.qOj],ngContentSelectors:ct,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(Wt,se){1&Wt&&(d.F$t(et),d.TgZ(0,"span",0),d._UZ(1,"span",1),d.Hsn(2),d.TgZ(3,"span",2),d.Hsn(4,1),d.qZA(),d.Hsn(5,2),d.qZA()),2&Wt&&(d.xp6(1),d.Q6J("matRippleTrigger",se._getHostElement())("matRippleDisabled",se._isRippleDisabled()))},dependencies:[v.wG],encapsulation:2,changeDetection:0}),Ue})(),Qt=(()=>{class Ue{}return Ue.\u0275fac=function(Wt){return new(Wt||Ue)},Ue.\u0275mod=d.oAB({type:Ue}),Ue.\u0275inj=d.cJS({imports:[v.uc,v.si,v.BQ,v.us,u.ez,v.uc,v.BQ,v.us,N.t]}),Ue})()},28255:(tt,W,f)=>{"use strict";f.d(W,{OP:()=>ie,Tx:()=>ii,VK:()=>De,p6:()=>Pn});var u=f(12687),d=f(21281),v=f(29521),g=f(94650),t=f(8929),T=f(42654),U=f(36787),w=f(21086),P=f(8139),O=f(1059),L=f(87545),N=f(72986),B=f(7625),K=f(92198),et=f(18583),ct=f(37340),lt=f(84080),Ct=f(36895),Dt=f(3238),Zt=f(40445),Rt=f(98184),Gt=f(83353),Tt=f(67376);const Ut=["mat-menu-item",""];function bt(_i,oi){1&_i&&(g.O4$(),g.TgZ(0,"svg",2),g._UZ(1,"polygon",3),g.qZA())}const mt=["*"];function Lt(_i,oi){if(1&_i){const We=g.EpF();g.TgZ(0,"div",0),g.NdJ("keydown",function(ot){g.CHM(We);const X=g.oxw();return g.KtG(X._handleKeydown(ot))})("click",function(){g.CHM(We);const ot=g.oxw();return g.KtG(ot.closed.emit("click"))})("@transformMenu.start",function(ot){g.CHM(We);const X=g.oxw();return g.KtG(X._onAnimationStart(ot))})("@transformMenu.done",function(ot){g.CHM(We);const X=g.oxw();return g.KtG(X._onAnimationDone(ot))}),g.TgZ(1,"div",1),g.Hsn(2),g.qZA()()}if(2&_i){const We=g.oxw();g.Q6J("id",We.panelId)("ngClass",We._classList)("@transformMenu",We._panelAnimationState),g.uIk("aria-label",We.ariaLabel||null)("aria-labelledby",We.ariaLabelledby||null)("aria-describedby",We.ariaDescribedby||null)}}const Bt={transformMenu:(0,ct.X$)("transformMenu",[(0,ct.SB)("void",(0,ct.oB)({opacity:0,transform:"scale(0.8)"})),(0,ct.eR)("void => enter",(0,ct.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ct.oB)({opacity:1,transform:"scale(1)"}))),(0,ct.eR)("* => void",(0,ct.jt)("100ms 25ms linear",(0,ct.oB)({opacity:0})))]),fadeInItems:(0,ct.X$)("fadeInItems",[(0,ct.SB)("showing",(0,ct.oB)({opacity:1})),(0,ct.eR)("void => *",[(0,ct.oB)({opacity:0}),(0,ct.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vt=new g.OlP("MatMenuContent"),Qt=new g.OlP("MAT_MENU_PANEL"),Ue=(0,Dt.Kr)((0,Dt.Id)(class{}));let ie=(()=>{class _i extends Ue{constructor(We,ee,ot,X,At){super(),this._elementRef=We,this._document=ee,this._focusMonitor=ot,this._parentMenu=X,this._changeDetectorRef=At,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,X?.addItem?.(this)}focus(We,ee){this._focusMonitor&&We?this._focusMonitor.focusVia(this._getHostElement(),We,ee):this._getHostElement().focus(ee),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(We){this.disabled&&(We.preventDefault(),We.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const We=this._elementRef.nativeElement.cloneNode(!0),ee=We.querySelectorAll("mat-icon, .material-icons");for(let ot=0;ot{class _i{constructor(We,ee,ot,X){this._elementRef=We,this._ngZone=ee,this._defaultOptions=ot,this._changeDetectorRef=X,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new g.n_E,this._tabSubscription=T.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new g.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Xt++}get xPosition(){return this._xPosition}set xPosition(We){this._xPosition=We,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(We){this._yPosition=We,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(We){this._overlapTrigger=(0,d.Ig)(We)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(We){this._hasBackdrop=(0,d.Ig)(We)}set panelClass(We){const ee=this._previousPanelClass;ee&&ee.length&&ee.split(" ").forEach(ot=>{this._classList[ot]=!1}),this._previousPanelClass=We,We&&We.length&&(We.split(" ").forEach(ot=>{this._classList[ot]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(We){this.panelClass=We}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new u.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,L.w)(We=>(0,U.T)(...We.map(ee=>ee._focused)))).subscribe(We=>this._keyManager.updateActiveItem(We)),this._directDescendantItems.changes.subscribe(We=>{const ee=this._keyManager;if("enter"===this._panelAnimationState&&ee.activeItem?._hasFocus()){const ot=We.toArray(),X=Math.max(0,Math.min(ot.length-1,ee.activeItemIndex||0));ot[X]&&!ot[X].disabled?ee.setActiveItem(X):ee.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,L.w)(ee=>(0,U.T)(...ee.map(ot=>ot._hovered))))}addItem(We){}removeItem(We){}_handleKeydown(We){const ee=We.keyCode,ot=this._keyManager;switch(ee){case v.hY:(0,v.Vb)(We)||(We.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ee===v.LH||ee===v.JH)&&ot.setFocusOrigin("keyboard"),void ot.onKeydown(We)}We.stopPropagation()}focusFirstItem(We="program"){this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{let ee=null;if(this._directDescendantItems.length&&(ee=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ee||!ee.contains(document.activeElement)){const ot=this._keyManager;ot.setFocusOrigin(We).setFirstItemActive(),!ot.activeItem&&ee&&ee.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(We){const ee=Math.min(this._baseElevation+We,24),ot=`${this._elevationPrefix}${ee}`,X=Object.keys(this._classList).find(At=>At.startsWith(this._elevationPrefix));(!X||X===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ot]=!0,this._previousElevation=ot)}setPositionClasses(We=this.xPosition,ee=this.yPosition){const ot=this._classList;ot["mat-menu-before"]="before"===We,ot["mat-menu-after"]="after"===We,ot["mat-menu-above"]="above"===ee,ot["mat-menu-below"]="below"===ee,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(We){this._animationDone.next(We),this._isAnimating=!1}_onAnimationStart(We){this._isAnimating=!0,"enter"===We.toState&&0===this._keyManager.activeItemIndex&&(We.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,O.O)(this._allItems)).subscribe(We=>{this._directDescendantItems.reset(We.filter(ee=>ee._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return _i.\u0275fac=function(We){return new(We||_i)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Wt),g.Y36(g.sBO))},_i.\u0275dir=g.lG2({type:_i,contentQueries:function(We,ee,ot){if(1&We&&(g.Suo(ot,Vt,5),g.Suo(ot,ie,5),g.Suo(ot,ie,4)),2&We){let X;g.iGM(X=g.CRH())&&(ee.lazyContent=X.first),g.iGM(X=g.CRH())&&(ee._allItems=X),g.iGM(X=g.CRH())&&(ee.items=X)}},viewQuery:function(We,ee){if(1&We&&g.Gf(g.Rgc,5),2&We){let ot;g.iGM(ot=g.CRH())&&(ee.templateRef=ot.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),_i})(),De=(()=>{class _i extends ae{constructor(We,ee,ot,X){super(We,ee,ot,X),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return _i.\u0275fac=function(We){return new(We||_i)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Wt),g.Y36(g.sBO))},_i.\u0275cmp=g.Xpm({type:_i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(We,ee){2&We&&g.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[g._Bn([{provide:Qt,useExisting:_i}]),g.qOj],ngContentSelectors:mt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(We,ee){1&We&&(g.F$t(),g.YNc(0,Lt,3,6,"ng-template"))},dependencies:[Ct.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bt.transformMenu,Bt.fadeInItems]},changeDetection:0}),_i})();const nn=new g.OlP("mat-menu-scroll-strategy"),Ce={provide:nn,deps:[Rt.aV],useFactory:function hn(_i){return()=>_i.scrollStrategies.reposition()}},Oe=(0,Gt.i$)({passive:!0});let dn=(()=>{class _i{constructor(We,ee,ot,X,At,Ht,ue,ye,Se){this._overlay=We,this._element=ee,this._viewContainerRef=ot,this._menuItemInstance=Ht,this._dir=ue,this._focusMonitor=ye,this._ngZone=Se,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=T.w.EMPTY,this._hoverSubscription=T.w.EMPTY,this._menuCloseSubscription=T.w.EMPTY,this._handleTouchStart=vn=>{(0,u.yG)(vn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new g.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new g.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=X,this._parentMaterialMenu=At instanceof ae?At:void 0,ee.nativeElement.addEventListener("touchstart",this._handleTouchStart,Oe),Ht&&(Ht._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(We){this.menu=We}get menu(){return this._menu}set menu(We){We!==this._menu&&(this._menu=We,this._menuCloseSubscription.unsubscribe(),We&&(this._menuCloseSubscription=We.close.subscribe(ee=>{this._destroyMenu(ee),("click"===ee||"tab"===ee)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ee)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const We=this.menu;if(this._menuOpen||!We)return;const ee=this._createOverlay(We),ot=ee.getConfig(),X=ot.positionStrategy;this._setPosition(We,X),ot.hasBackdrop=We.hasBackdrop??!this.triggersSubmenu(),ee.attach(this._getPortal(We)),We.lazyContent&&We.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(We),We instanceof ae&&(We._startAnimation(),We._directDescendantItems.changes.pipe((0,B.R)(We.close)).subscribe(()=>{X.withLockedPosition(!1).reapplyLastPosition(),X.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(We,ee){this._focusMonitor&&We?this._focusMonitor.focusVia(this._element,We,ee):this._element.nativeElement.focus(ee)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(We){if(!this._overlayRef||!this.menuOpen)return;const ee=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===We||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ee instanceof ae?(ee._resetAnimation(),ee.lazyContent?ee._animationDone.pipe((0,K.h)(ot=>"void"===ot.toState),(0,N.q)(1),(0,B.R)(ee.lazyContent._attached)).subscribe({next:()=>ee.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ee?.lazyContent?.detach())}_initMenu(We){We.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,We.direction=this.dir,this._setMenuElevation(We),We.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(We){if(We.setElevation){let ee=0,ot=We.parentMenu;for(;ot;)ee++,ot=ot.parentMenu;We.setElevation(ee)}}_setIsMenuOpen(We){this._menuOpen=We,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(We)}_createOverlay(We){if(!this._overlayRef){const ee=this._getOverlayConfig(We);this._subscribeToPositions(We,ee.positionStrategy),this._overlayRef=this._overlay.create(ee),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(We){return new Rt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:We.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:We.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(We,ee){We.setPositionClasses&&ee.positionChanges.subscribe(ot=>{const X="start"===ot.connectionPair.overlayX?"after":"before",At="top"===ot.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>We.setPositionClasses(X,At)):We.setPositionClasses(X,At)})}_setPosition(We,ee){let[ot,X]="before"===We.xPosition?["end","start"]:["start","end"],[At,Ht]="above"===We.yPosition?["bottom","top"]:["top","bottom"],[ue,ye]=[At,Ht],[Se,vn]=[ot,X],qn=0;if(this.triggersSubmenu()){if(vn=ot="before"===We.xPosition?"start":"end",X=Se="end"===ot?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}qn="bottom"===At?this._parentInnerPadding:-this._parentInnerPadding}}else We.overlapTrigger||(ue="top"===At?"bottom":"top",ye="top"===Ht?"bottom":"top");ee.withPositions([{originX:ot,originY:ue,overlayX:Se,overlayY:At,offsetY:qn},{originX:X,originY:ue,overlayX:vn,overlayY:At,offsetY:qn},{originX:ot,originY:ye,overlayX:Se,overlayY:Ht,offsetY:-qn},{originX:X,originY:ye,overlayX:vn,overlayY:Ht,offsetY:-qn}])}_menuClosingActions(){const We=this._overlayRef.backdropClick(),ee=this._overlayRef.detachments(),ot=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),X=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(At=>At!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,w.of)();return(0,U.T)(We,ot,X,ee)}_handleMousedown(We){(0,u.X6)(We)||(this._openedBy=0===We.button?"mouse":void 0,this.triggersSubmenu()&&We.preventDefault())}_handleKeydown(We){const ee=We.keyCode;(ee===v.K5||ee===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ee===v.SV&&"ltr"===this.dir||ee===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(We){this.triggersSubmenu()?(We.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(We=>We===this._menuItemInstance&&!We.disabled),(0,et.g)(0,P.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ae&&this.menu._isAnimating?this.menu._animationDone.pipe((0,N.q)(1),(0,et.g)(0,P.E),(0,B.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(We){return(!this._portal||this._portal.templateRef!==We.templateRef)&&(this._portal=new lt.UE(We.templateRef,this._viewContainerRef)),this._portal}}return _i.\u0275fac=function(We){return new(We||_i)(g.Y36(Rt.aV),g.Y36(g.SBq),g.Y36(g.s_b),g.Y36(nn),g.Y36(Qt,8),g.Y36(ie,10),g.Y36(Zt.Is,8),g.Y36(u.tE),g.Y36(g.R0b))},_i.\u0275dir=g.lG2({type:_i,hostVars:3,hostBindings:function(We,ee){1&We&&g.NdJ("click",function(X){return ee._handleClick(X)})("mousedown",function(X){return ee._handleMousedown(X)})("keydown",function(X){return ee._handleKeydown(X)}),2&We&&g.uIk("aria-haspopup",ee.menu?"menu":null)("aria-expanded",ee.menuOpen||null)("aria-controls",ee.menuOpen?ee.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),_i})(),Pn=(()=>{class _i extends dn{}return _i.\u0275fac=function(){let oi;return function(ee){return(oi||(oi=g.n5z(_i)))(ee||_i)}}(),_i.\u0275dir=g.lG2({type:_i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[g.qOj]}),_i})(),ii=(()=>{class _i{}return _i.\u0275fac=function(We){return new(We||_i)},_i.\u0275mod=g.oAB({type:_i}),_i.\u0275inj=g.cJS({providers:[Ce],imports:[Ct.ez,Dt.BQ,Dt.si,Rt.U8,Tt.ZD,Dt.BQ]}),_i})()},98739:(tt,W,f)=>{"use strict";f.d(W,{NW:()=>Ut,TU:()=>bt});var u=f(36895),d=f(94650),v=f(3238),g=f(4859),t=f(84385),T=f(10266),U=f(21281),w=f(8929),P=f(59549);function O(mt,Lt){if(1&mt&&(d.TgZ(0,"mat-option",19),d._uU(1),d.qZA()),2&mt){const Bt=Lt.$implicit;d.Q6J("value",Bt),d.xp6(1),d.hij(" ",Bt," ")}}function L(mt,Lt){if(1&mt){const Bt=d.EpF();d.TgZ(0,"mat-form-field",16)(1,"mat-select",17),d.NdJ("selectionChange",function(le){d.CHM(Bt);const Vt=d.oxw(2);return d.KtG(Vt._changePageSize(le.value))}),d.YNc(2,O,2,2,"mat-option",18),d.qZA()()}if(2&mt){const Bt=d.oxw(2);d.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),d.xp6(1),d.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),d.xp6(1),d.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function N(mt,Lt){if(1&mt&&(d.TgZ(0,"div",20),d._uU(1),d.qZA()),2&mt){const Bt=d.oxw(2);d.xp6(1),d.Oqu(Bt.pageSize)}}function B(mt,Lt){if(1&mt&&(d.TgZ(0,"div",12)(1,"div",13),d._uU(2),d.qZA(),d.YNc(3,L,3,8,"mat-form-field",14),d.YNc(4,N,2,1,"div",15),d.qZA()),2&mt){const Bt=d.oxw();d.xp6(2),d.hij(" ",Bt._intl.itemsPerPageLabel," "),d.xp6(1),d.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),d.xp6(1),d.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function K(mt,Lt){if(1&mt){const Bt=d.EpF();d.TgZ(0,"button",21),d.NdJ("click",function(){d.CHM(Bt);const le=d.oxw();return d.KtG(le.firstPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",22),d.qZA()()}if(2&mt){const Bt=d.oxw();d.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),d.uIk("aria-label",Bt._intl.firstPageLabel)}}function et(mt,Lt){if(1&mt){const Bt=d.EpF();d.O4$(),d.kcU(),d.TgZ(0,"button",23),d.NdJ("click",function(){d.CHM(Bt);const le=d.oxw();return d.KtG(le.lastPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",24),d.qZA()()}if(2&mt){const Bt=d.oxw();d.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),d.uIk("aria-label",Bt._intl.lastPageLabel)}}let ct=(()=>{class mt{constructor(){this.changes=new w.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Bt,kt,le)=>{if(0==le||0==kt)return`0 of ${le}`;const Vt=Bt*kt;return`${Vt+1} \u2013 ${Vt<(le=Math.max(le,0))?Math.min(Vt+kt,le):Vt+kt} of ${le}`}}}return mt.\u0275fac=function(Bt){return new(Bt||mt)},mt.\u0275prov=d.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const Ct={provide:ct,deps:[[new d.FiY,new d.tp0,ct]],useFactory:function lt(mt){return mt||new ct}},Rt=new d.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Gt=(0,v.Id)((0,v.dB)(class{}));let Tt=(()=>{class mt extends Gt{constructor(Bt,kt,le){if(super(),this._intl=Bt,this._changeDetectorRef=kt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new d.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),le){const{pageSize:Vt,pageSizeOptions:be,hidePageSize:ge,showFirstLastButtons:Fe}=le;null!=Vt&&(this._pageSize=Vt),null!=be&&(this._pageSizeOptions=be),null!=ge&&(this._hidePageSize=ge),null!=Fe&&(this._showFirstLastButtons=Fe)}}get pageIndex(){return this._pageIndex}set pageIndex(Bt){this._pageIndex=Math.max((0,U.su)(Bt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Bt){this._length=(0,U.su)(Bt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Bt){this._pageSize=Math.max((0,U.su)(Bt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Bt){this._pageSizeOptions=(Bt||[]).map(kt=>(0,U.su)(kt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Bt){this._hidePageSize=(0,U.Ig)(Bt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Bt){this._showFirstLastButtons=(0,U.Ig)(Bt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Bt)}previousPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Bt)}firstPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Bt)}lastPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Bt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Bt=this.getNumberOfPages()-1;return this.pageIndexBt-kt),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return mt.\u0275fac=function(Bt){d.$Z()},mt.\u0275dir=d.lG2({type:mt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[d.qOj]}),mt})(),Ut=(()=>{class mt extends Tt{constructor(Bt,kt,le){super(Bt,kt,le),le&&null!=le.formFieldAppearance&&(this._formFieldAppearance=le.formFieldAppearance)}}return mt.\u0275fac=function(Bt){return new(Bt||mt)(d.Y36(ct),d.Y36(d.sBO),d.Y36(Rt,8))},mt.\u0275cmp=d.Xpm({type:mt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[d.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Bt,kt){1&Bt&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,B,5,3,"div",2),d.TgZ(3,"div",3)(4,"div",4),d._uU(5),d.qZA(),d.YNc(6,K,3,5,"button",5),d.TgZ(7,"button",6),d.NdJ("click",function(){return kt.previousPage()}),d.O4$(),d.TgZ(8,"svg",7),d._UZ(9,"path",8),d.qZA()(),d.kcU(),d.TgZ(10,"button",9),d.NdJ("click",function(){return kt.nextPage()}),d.O4$(),d.TgZ(11,"svg",7),d._UZ(12,"path",10),d.qZA()(),d.YNc(13,et,3,5,"button",11),d.qZA()()()),2&Bt&&(d.xp6(2),d.Q6J("ngIf",!kt.hidePageSize),d.xp6(3),d.hij(" ",kt._intl.getRangeLabel(kt.pageIndex,kt.pageSize,kt.length)," "),d.xp6(1),d.Q6J("ngIf",kt.showFirstLastButtons),d.xp6(1),d.Q6J("matTooltip",kt._intl.previousPageLabel)("matTooltipDisabled",kt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",kt._previousButtonsDisabled()),d.uIk("aria-label",kt._intl.previousPageLabel),d.xp6(3),d.Q6J("matTooltip",kt._intl.nextPageLabel)("matTooltipDisabled",kt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",kt._nextButtonsDisabled()),d.uIk("aria-label",kt._intl.nextPageLabel),d.xp6(3),d.Q6J("ngIf",kt.showFirstLastButtons))},dependencies:[u.sg,u.O5,g.lW,P.KE,t.gD,v.ey,T.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),mt})(),bt=(()=>{class mt{}return mt.\u0275fac=function(Bt){return new(Bt||mt)},mt.\u0275mod=d.oAB({type:mt}),mt.\u0275inj=d.cJS({providers:[Ct],imports:[u.ez,g.ot,t.LD,T.AV,v.BQ]}),mt})()},73162:(tt,W,f)=>{"use strict";f.d(W,{Cv:()=>ct,pW:()=>K});var u=f(94650),d=f(36895),v=f(3238),g=f(21281),t=f(42654),T=f(23753),U=f(92198);const w=["primaryValueBar"],P=(0,v.pj)(class{constructor(lt){this._elementRef=lt}},"primary"),O=new u.OlP("mat-progress-bar-location",{providedIn:"root",factory:function L(){const lt=(0,u.f3M)(d.K0),Ct=lt?lt.location:null;return{getPathname:()=>Ct?Ct.pathname+Ct.search:""}}}),N=new u.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let B=0,K=(()=>{class lt extends P{constructor(Dt,Zt,Rt,Gt,Tt,Ut){super(Dt),this._ngZone=Zt,this._animationMode=Rt,this._changeDetectorRef=Ut,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new u.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+B++;const bt=Gt?Gt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${bt}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===Rt,Tt&&(Tt.color&&(this.color=this.defaultColor=Tt.color),this.mode=Tt.mode||this.mode)}get value(){return this._value}set value(Dt){this._value=et((0,g.su)(Dt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Dt){this._bufferValue=et(Dt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Dt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,T.R)(Dt,"transitionend").pipe((0,U.h)(Zt=>Zt.target===Dt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return lt.\u0275fac=function(Dt){return new(Dt||lt)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(u.QbO,8),u.Y36(O,8),u.Y36(N,8),u.Y36(u.sBO))},lt.\u0275cmp=u.Xpm({type:lt,selectors:[["mat-progress-bar"]],viewQuery:function(Dt,Zt){if(1&Dt&&u.Gf(w,5),2&Dt){let Rt;u.iGM(Rt=u.CRH())&&(Zt._primaryValueBar=Rt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Dt,Zt){2&Dt&&(u.uIk("aria-valuenow","indeterminate"===Zt.mode||"query"===Zt.mode?null:Zt.value)("mode",Zt.mode),u.ekj("_mat-animation-noopable",Zt._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[u.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Dt,Zt){1&Dt&&(u.TgZ(0,"div",0),u.O4$(),u.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),u._UZ(4,"circle",3),u.qZA()(),u._UZ(5,"rect",4),u.qZA(),u.kcU(),u._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),u.qZA()),2&Dt&&(u.xp6(3),u.Q6J("id",Zt.progressbarId),u.xp6(2),u.uIk("fill",Zt._rectangleFillValue),u.xp6(1),u.Q6J("ngStyle",Zt._bufferTransform()),u.xp6(1),u.Q6J("ngStyle",Zt._primaryTransform()))},dependencies:[d.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),lt})();function et(lt,Ct=0,Dt=100){return Math.max(Ct,Math.min(Dt,lt))}let ct=(()=>{class lt{}return lt.\u0275fac=function(Dt){return new(Dt||lt)},lt.\u0275mod=u.oAB({type:lt}),lt.\u0275inj=u.cJS({imports:[d.ez,v.BQ,v.BQ]}),lt})()},51572:(tt,W,f)=>{"use strict";f.d(W,{Cq:()=>lt,Ou:()=>ct});var u=f(21281),d=f(83353),v=f(67376),g=f(36895),t=f(94650),T=f(3238),U=f(42654);function w(Dt,Zt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const Rt=t.oxw(),Gt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+Rt._spinnerAnimationLabel)("stroke-dashoffset",Rt._getStrokeDashOffset(),"px")("stroke-dasharray",Rt._getStrokeCircumference(),"px")("stroke-width",Rt._getCircleStrokeWidth(),"%")("transform-origin",Rt._getCircleTransformOrigin(Gt)),t.uIk("r",Rt._getCircleRadius())}}function P(Dt,Zt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const Rt=t.oxw(),Gt=t.MAs(1);t.Udp("stroke-dashoffset",Rt._getStrokeDashOffset(),"px")("stroke-dasharray",Rt._getStrokeCircumference(),"px")("stroke-width",Rt._getCircleStrokeWidth(),"%")("transform-origin",Rt._getCircleTransformOrigin(Gt)),t.uIk("r",Rt._getCircleRadius())}}const N=(0,T.pj)(class{constructor(Dt){this._elementRef=Dt}},"primary"),B=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function K(){return{diameter:100}}});class ct extends N{constructor(Zt,Rt,Gt,Tt,Ut,bt,mt,Lt){super(Zt),this._document=Gt,this._diameter=100,this._value=0,this._resizeSubscription=U.w.EMPTY,this.mode="determinate";const Bt=ct._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Gt.head)||Bt.set(Gt.head,new Set([100])),this._noopAnimations="NoopAnimations"===Tt&&!!Ut&&!Ut._forceAnimations,"mat-spinner"===Zt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Ut&&(Ut.color&&(this.color=this.defaultColor=Ut.color),Ut.diameter&&(this.diameter=Ut.diameter),Ut.strokeWidth&&(this.strokeWidth=Ut.strokeWidth)),Rt.isBrowser&&Rt.SAFARI&&mt&&bt&&Lt&&(this._resizeSubscription=mt.change(150).subscribe(()=>{"indeterminate"===this.mode&&Lt.run(()=>bt.markForCheck())}))}get diameter(){return this._diameter}set diameter(Zt){this._diameter=(0,u.su)(Zt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Zt){this._strokeWidth=(0,u.su)(Zt)}get value(){return"determinate"===this.mode?this._value:0}set value(Zt){this._value=Math.max(0,Math.min(100,(0,u.su)(Zt)))}ngOnInit(){const Zt=this._elementRef.nativeElement;this._styleRoot=(0,d.kV)(Zt)||this._document.head,this._attachStyleNode(),Zt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Zt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Zt} ${Zt}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Zt){const Rt=50*(Zt.currentScale??1);return`${Rt}% ${Rt}%`}_attachStyleNode(){const Zt=this._styleRoot,Rt=this._diameter,Gt=ct._diameters;let Tt=Gt.get(Zt);if(!Tt||!Tt.has(Rt)){const Ut=this._document.createElement("style");Ut.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Ut.textContent=this._getAnimationText(),Zt.appendChild(Ut),Tt||(Tt=new Set,Gt.set(Zt,Tt)),Tt.add(Rt)}}_getAnimationText(){const Zt=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Zt).replace(/END_VALUE/g,""+.2*Zt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ct._diameters=new WeakMap,ct.\u0275fac=function(Zt){return new(Zt||ct)(t.Y36(t.SBq),t.Y36(d.t4),t.Y36(g.K0,8),t.Y36(t.QbO,8),t.Y36(B),t.Y36(t.sBO),t.Y36(v.rL),t.Y36(t.R0b))},ct.\u0275cmp=t.Xpm({type:ct,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Zt,Rt){2&Zt&&(t.uIk("aria-valuemin","determinate"===Rt.mode?0:null)("aria-valuemax","determinate"===Rt.mode?100:null)("aria-valuenow","determinate"===Rt.mode?Rt.value:null)("mode",Rt.mode),t.Udp("width",Rt.diameter,"px")("height",Rt.diameter,"px"),t.ekj("_mat-animation-noopable",Rt._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Zt,Rt){1&Zt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,w,1,11,"circle",2),t.YNc(3,P,1,9,"circle",3),t.qZA()),2&Zt&&(t.Udp("width",Rt.diameter,"px")("height",Rt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===Rt.mode),t.uIk("viewBox",Rt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[g.RF,g.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let lt=(()=>{class Dt{}return Dt.\u0275fac=function(Rt){return new(Rt||Dt)},Dt.\u0275mod=t.oAB({type:Dt}),Dt.\u0275inj=t.cJS({imports:[T.BQ,g.ez,T.BQ]}),Dt})()},71948:(tt,W,f)=>{"use strict";f.d(W,{Fk:()=>Gt,U0:()=>Rt,VQ:()=>lt});var u=f(94650),d=f(3238),v=f(12687),g=f(21281),t=f(95017),T=f(24006);const U=["input"],w=function(Tt){return{enterDuration:Tt}},P=["*"],O=new u.OlP("mat-radio-default-options",{providedIn:"root",factory:function L(){return{color:"accent"}}});let N=0;const B={provide:T.JU,useExisting:(0,u.Gpc)(()=>lt),multi:!0};class K{constructor(Ut,bt){this.source=Ut,this.value=bt}}const et=new u.OlP("MatRadioGroup");let ct=(()=>{class Tt{constructor(bt){this._changeDetector=bt,this._value=null,this._name="mat-radio-group-"+N++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new u.vpe}get name(){return this._name}set name(bt){this._name=bt,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(bt){this._labelPosition="before"===bt?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(bt){this._value!==bt&&(this._value=bt,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(bt){this._selected=bt,this.value=bt?bt.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(bt){this._disabled=(0,g.Ig)(bt),this._markRadiosForCheck()}get required(){return this._required}set required(bt){this._required=(0,g.Ig)(bt),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(bt=>{bt.name=this.name,bt._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(mt=>{mt.checked=this.value===mt.value,mt.checked&&(this._selected=mt)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new K(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(bt=>bt._markForCheck())}writeValue(bt){this.value=bt,this._changeDetector.markForCheck()}registerOnChange(bt){this._controlValueAccessorChangeFn=bt}registerOnTouched(bt){this.onTouched=bt}setDisabledState(bt){this.disabled=bt,this._changeDetector.markForCheck()}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(u.sBO))},Tt.\u0275dir=u.lG2({type:Tt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),Tt})(),lt=(()=>{class Tt extends ct{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=u.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=u.lG2({type:Tt,selectors:[["mat-radio-group"]],contentQueries:function(bt,mt,Lt){if(1&bt&&u.Suo(Lt,Rt,5),2&bt){let Bt;u.iGM(Bt=u.CRH())&&(mt._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[u._Bn([B,{provide:et,useExisting:Tt}]),u.qOj]}),Tt})();class Ct{constructor(Ut){this._elementRef=Ut}}const Dt=(0,d.Kr)((0,d.sb)(Ct));let Zt=(()=>{class Tt extends Dt{constructor(bt,mt,Lt,Bt,kt,le,Vt,be){super(mt),this._changeDetector=Lt,this._focusMonitor=Bt,this._radioDispatcher=kt,this._providerOverride=Vt,this._uniqueId="mat-radio-"+ ++N,this.id=this._uniqueId,this.change=new u.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=bt,this._noopAnimations="NoopAnimations"===le,be&&(this.tabIndex=(0,g.su)(be,0)),this._removeUniqueSelectionListener=kt.listen((ge,Fe)=>{ge!==this.id&&Fe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(bt){const mt=(0,g.Ig)(bt);this._checked!==mt&&(this._checked=mt,mt&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!mt&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),mt&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(bt){this._value!==bt&&(this._value=bt,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===bt),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(bt){this._labelPosition=bt}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(bt){this._setDisabled((0,g.Ig)(bt))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(bt){this._required=(0,g.Ig)(bt)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(bt){this._color=bt}get inputId(){return`${this.id||this._uniqueId}-input`}focus(bt,mt){mt?this._focusMonitor.focusVia(this._inputElement,mt,bt):this._inputElement.nativeElement.focus(bt)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(bt=>{!bt&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new K(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(bt){bt.stopPropagation()}_onInputInteraction(bt){if(bt.stopPropagation(),!this.checked&&!this.disabled){const mt=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),mt&&this.radioGroup._emitChangeEvent())}}_setDisabled(bt){this._disabled!==bt&&(this._disabled=bt,this._changeDetector.markForCheck())}_updateTabIndex(){const bt=this.radioGroup;let mt;if(mt=bt&&bt.selected&&!this.disabled?bt.selected===this?this.tabIndex:-1:this.tabIndex,mt!==this._previousTabIndex){const Lt=this._inputElement?.nativeElement;Lt&&(Lt.setAttribute("tabindex",mt+""),this._previousTabIndex=mt)}}}return Tt.\u0275fac=function(bt){u.$Z()},Tt.\u0275dir=u.lG2({type:Tt,viewQuery:function(bt,mt){if(1&bt&&u.Gf(U,5),2&bt){let Lt;u.iGM(Lt=u.CRH())&&(mt._inputElement=Lt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[u.qOj]}),Tt})(),Rt=(()=>{class Tt extends Zt{constructor(bt,mt,Lt,Bt,kt,le,Vt,be){super(bt,mt,Lt,Bt,kt,le,Vt,be)}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(u.Y36(et,8),u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(v.tE),u.Y36(t.A8),u.Y36(u.QbO,8),u.Y36(O,8),u.$8M("tabindex"))},Tt.\u0275cmp=u.Xpm({type:Tt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(bt,mt){1&bt&&u.NdJ("focus",function(){return mt._inputElement.nativeElement.focus()}),2&bt&&(u.uIk("tabindex",null)("id",mt.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),u.ekj("mat-radio-checked",mt.checked)("mat-radio-disabled",mt.disabled)("_mat-animation-noopable",mt._noopAnimations)("mat-primary","primary"===mt.color)("mat-accent","accent"===mt.color)("mat-warn","warn"===mt.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[u.qOj],ngContentSelectors:P,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(bt,mt){if(1&bt&&(u.F$t(),u.TgZ(0,"label",0,1)(2,"span",2),u._UZ(3,"span",3)(4,"span",4),u.TgZ(5,"input",5,6),u.NdJ("change",function(Bt){return mt._onInputInteraction(Bt)})("click",function(Bt){return mt._onInputClick(Bt)}),u.qZA(),u.TgZ(7,"span",7),u._UZ(8,"span",8),u.qZA()(),u.TgZ(9,"span",9)(10,"span",10),u._uU(11,"\xa0"),u.qZA(),u.Hsn(12),u.qZA()()),2&bt){const Lt=u.MAs(1);u.uIk("for",mt.inputId),u.xp6(5),u.Q6J("id",mt.inputId)("checked",mt.checked)("disabled",mt.disabled)("required",mt.required),u.uIk("name",mt.name)("value",mt.value)("aria-label",mt.ariaLabel)("aria-labelledby",mt.ariaLabelledby)("aria-describedby",mt.ariaDescribedby),u.xp6(2),u.Q6J("matRippleTrigger",Lt)("matRippleDisabled",mt._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",u.VKq(17,w,mt._noopAnimations?0:150)),u.xp6(2),u.ekj("mat-radio-label-before","before"==mt.labelPosition)}},dependencies:[d.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),Tt})(),Gt=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=u.oAB({type:Tt}),Tt.\u0275inj=u.cJS({imports:[d.si,d.BQ,d.BQ]}),Tt})()},84385:(tt,W,f)=>{"use strict";f.d(W,{LD:()=>oi,gD:()=>_i});var u=f(98184),d=f(36895),v=f(94650),g=f(3238),t=f(59549),T=f(67376),U=f(12687),w=f(40445),P=f(21281),O=f(95017),L=f(29521),N=f(24006),B=f(8929),K=f(88514),et=f(36787),ct=f(1059),lt=f(87545),Ct=f(72986),Dt=f(92198),Zt=f(24850),Rt=f(75778),Gt=f(7625),Tt=f(37340);const Ut=["trigger"],bt=["panel"];function mt(We,ee){if(1&We&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&We){const ot=v.oxw();v.xp6(1),v.Oqu(ot.placeholder)}}function Lt(We,ee){if(1&We&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&We){const ot=v.oxw(2);v.xp6(1),v.Oqu(ot.triggerValue)}}function Bt(We,ee){1&We&&v.Hsn(0,0,["*ngSwitchCase","true"])}function kt(We,ee){if(1&We&&(v.TgZ(0,"span",9),v.YNc(1,Lt,2,1,"span",10),v.YNc(2,Bt,1,0,"ng-content",11),v.qZA()),2&We){const ot=v.oxw();v.Q6J("ngSwitch",!!ot.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function le(We,ee){if(1&We){const ot=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(At){v.CHM(ot);const Ht=v.oxw();return v.KtG(Ht._panelDoneAnimatingStream.next(At.toState))})("keydown",function(At){v.CHM(ot);const Ht=v.oxw();return v.KtG(Ht._handleKeydown(At))}),v.Hsn(3,1),v.qZA()()}if(2&We){const ot=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",ot._getPanelTheme(),""),v.Udp("transform-origin",ot._transformOrigin)("font-size",ot._triggerFontSize,"px"),v.Q6J("ngClass",ot.panelClass)("@transformPanel",ot.multiple?"showing-multiple":"showing"),v.uIk("id",ot.id+"-panel")("aria-multiselectable",ot.multiple)("aria-label",ot.ariaLabel||null)("aria-labelledby",ot._getPanelAriaLabelledby())}}const Vt=[[["mat-select-trigger"]],"*"],be=["mat-select-trigger","*"],ge={transformPanelWrap:(0,Tt.X$)("transformPanelWrap",[(0,Tt.eR)("* => void",(0,Tt.IO)("@transformPanel",[(0,Tt.pV)()],{optional:!0}))]),transformPanel:(0,Tt.X$)("transformPanel",[(0,Tt.SB)("void",(0,Tt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,Tt.SB)("showing",(0,Tt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,Tt.SB)("showing-multiple",(0,Tt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,Tt.eR)("void => *",(0,Tt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,Tt.eR)("* => void",(0,Tt.jt)("100ms 25ms linear",(0,Tt.oB)({opacity:0})))])};let Qt=0;const De=new v.OlP("mat-select-scroll-strategy"),hn=new v.OlP("MAT_SELECT_CONFIG"),Ce={provide:De,deps:[u.aV],useFactory:function nn(We){return()=>We.scrollStrategies.reposition()}};class bn{constructor(ee,ot){this.source=ee,this.value=ot}}const Oe=(0,g.Kr)((0,g.sb)((0,g.Id)((0,g.FD)(class{constructor(We,ee,ot,X,At){this._elementRef=We,this._defaultErrorStateMatcher=ee,this._parentForm=ot,this._parentFormGroup=X,this.ngControl=At,this.stateChanges=new B.xQ}})))),dn=new v.OlP("MatSelectTrigger");let ii=(()=>{class We extends Oe{constructor(ot,X,At,Ht,ue,ye,Se,vn,qn,mi,Di,bo,hi,zn){super(ue,Ht,Se,vn,mi),this._viewportRuler=ot,this._changeDetectorRef=X,this._ngZone=At,this._dir=ye,this._parentFormField=qn,this._liveAnnouncer=hi,this._defaultOptions=zn,this._panelOpen=!1,this._compareWith=(Bn,Qe)=>Bn===Qe,this._uid="mat-select-"+Qt++,this._triggerAriaLabelledBy=null,this._destroy=new B.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Qt++,this._panelDoneAnimatingStream=new B.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,K.P)(()=>{const Bn=this.options;return Bn?Bn.changes.pipe((0,ct.O)(Bn),(0,lt.w)(()=>(0,et.T)(...Bn.map(Qe=>Qe.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ct.q)(1),(0,lt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,Dt.h)(Bn=>Bn),(0,Zt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Dt.h)(Bn=>!Bn),(0,Zt.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=zn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=zn.typeaheadDebounceInterval),this._scrollStrategyFactory=bo,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Di)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ot){this._placeholder=ot,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(N.kI.required)??!1}set required(ot){this._required=(0,P.Ig)(ot),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ot){this._multiple=(0,P.Ig)(ot)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ot){this._disableOptionCentering=(0,P.Ig)(ot)}get compareWith(){return this._compareWith}set compareWith(ot){this._compareWith=ot,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ot){this._assignValue(ot)&&this._onChange(ot)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ot){this._typeaheadDebounceInterval=(0,P.su)(ot)}get id(){return this._id}set id(ot){this._id=ot||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Rt.x)(),(0,Gt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Gt.R)(this._destroy)).subscribe(ot=>{ot.added.forEach(X=>X.select()),ot.removed.forEach(X=>X.deselect())}),this.options.changes.pipe((0,ct.O)(null),(0,Gt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ot=this._getTriggerAriaLabelledby(),X=this.ngControl;if(ot!==this._triggerAriaLabelledBy){const At=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ot,ot?At.setAttribute("aria-labelledby",ot):At.removeAttribute("aria-labelledby")}X&&(this._previousControl!==X.control&&(void 0!==this._previousControl&&null!==X.disabled&&X.disabled!==this.disabled&&(this.disabled=X.disabled),this._previousControl=X.control),this.updateErrorState())}ngOnChanges(ot){(ot.disabled||ot.userAriaDescribedBy)&&this.stateChanges.next(),ot.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(ot){this._assignValue(ot)}registerOnChange(ot){this._onChange=ot}registerOnTouched(ot){this._onTouched=ot}setDisabledState(ot){this.disabled=ot,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const ot=this._selectionModel.selected.map(X=>X.viewValue);return this._isRtl()&&ot.reverse(),ot.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ot){this.disabled||(this.panelOpen?this._handleOpenKeydown(ot):this._handleClosedKeydown(ot))}_handleClosedKeydown(ot){const X=ot.keyCode,At=X===L.JH||X===L.LH||X===L.oh||X===L.SV,Ht=X===L.K5||X===L.L_,ue=this._keyManager;if(!ue.isTyping()&&Ht&&!(0,L.Vb)(ot)||(this.multiple||ot.altKey)&&At)ot.preventDefault(),this.open();else if(!this.multiple){const ye=this.selected;ue.onKeydown(ot);const Se=this.selected;Se&&ye!==Se&&this._liveAnnouncer.announce(Se.viewValue,1e4)}}_handleOpenKeydown(ot){const X=this._keyManager,At=ot.keyCode,Ht=At===L.JH||At===L.LH,ue=X.isTyping();if(Ht&&ot.altKey)ot.preventDefault(),this.close();else if(ue||At!==L.K5&&At!==L.L_||!X.activeItem||(0,L.Vb)(ot))if(!ue&&this._multiple&&At===L.A&&ot.ctrlKey){ot.preventDefault();const ye=this.options.some(Se=>!Se.disabled&&!Se.selected);this.options.forEach(Se=>{Se.disabled||(ye?Se.select():Se.deselect())})}else{const ye=X.activeItemIndex;X.onKeydown(ot),this._multiple&&Ht&&ot.shiftKey&&X.activeItem&&X.activeItemIndex!==ye&&X.activeItem._selectViaInteraction()}else ot.preventDefault(),X.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Ct.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(ot){if(this._selectionModel.selected.forEach(X=>X.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ot)Array.isArray(ot),ot.forEach(X=>this._selectOptionByValue(X)),this._sortValues();else{const X=this._selectOptionByValue(ot);X?this._keyManager.updateActiveItem(X):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ot){const X=this.options.find(At=>{if(this._selectionModel.isSelected(At))return!1;try{return null!=At.value&&this._compareWith(At.value,ot)}catch{return!1}});return X&&this._selectionModel.select(X),X}_assignValue(ot){return!!(ot!==this._value||this._multiple&&Array.isArray(ot))&&(this.options&&this._setSelectionByValue(ot),this._value=ot,!0)}_initKeyManager(){this._keyManager=new U.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Gt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Gt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const ot=(0,et.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Gt.R)(ot)).subscribe(X=>{this._onSelect(X.source,X.isUserInput),X.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,et.T)(...this.options.map(X=>X._stateChanges)).pipe((0,Gt.R)(ot)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ot,X){const At=this._selectionModel.isSelected(ot);null!=ot.value||this._multiple?(At!==ot.selected&&(ot.selected?this._selectionModel.select(ot):this._selectionModel.deselect(ot)),X&&this._keyManager.setActiveItem(ot),this.multiple&&(this._sortValues(),X&&this.focus())):(ot.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ot.value)),At!==this._selectionModel.isSelected(ot)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ot=this.options.toArray();this._selectionModel.sort((X,At)=>this.sortComparator?this.sortComparator(X,At,ot):ot.indexOf(X)-ot.indexOf(At)),this.stateChanges.next()}}_propagateChanges(ot){let X=null;X=this.multiple?this.selected.map(At=>At.value):this.selected?this.selected.value:ot,this._value=X,this.valueChange.emit(X),this._onChange(X),this.selectionChange.emit(this._getChangeEvent(X)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(ot){this._elementRef.nativeElement.focus(ot)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ot=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ot?ot+" ":"")+this.ariaLabelledby:ot}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ot=this._parentFormField?.getLabelId();let X=(ot?ot+" ":"")+this._valueId;return this.ariaLabelledby&&(X+=" "+this.ariaLabelledby),X}_panelDoneAnimating(ot){this.openedChange.emit(ot)}setDescribedByIds(ot){ot.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ot.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return We.\u0275fac=function(ot){return new(ot||We)(v.Y36(T.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(g.rD),v.Y36(v.SBq),v.Y36(w.Is,8),v.Y36(N.F,8),v.Y36(N.sg,8),v.Y36(t.G_,8),v.Y36(N.a5,10),v.$8M("tabindex"),v.Y36(De),v.Y36(U.Kd),v.Y36(hn,8))},We.\u0275dir=v.lG2({type:We,viewQuery:function(ot,X){if(1&ot&&(v.Gf(Ut,5),v.Gf(bt,5),v.Gf(u.pI,5)),2&ot){let At;v.iGM(At=v.CRH())&&(X.trigger=At.first),v.iGM(At=v.CRH())&&(X.panel=At.first),v.iGM(At=v.CRH())&&(X._overlayDir=At.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]}),We})(),_i=(()=>{class We extends ii{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(ot,X,At){const Ht=this._getItemHeight();return Math.min(Math.max(0,Ht*ot-X+Ht/2),At)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Gt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Ct.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ot){const X=(0,g.CB)(ot,this.options,this.optionGroups),At=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ot&&1===X?0:(0,g.jH)((ot+X)*At,At,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ot){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ot)}_getChangeEvent(ot){return new bn(this,ot)}_calculateOverlayOffsetX(){const ot=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),X=this._viewportRuler.getViewportSize(),At=this._isRtl(),Ht=this.multiple?56:32;let ue;if(this.multiple)ue=40;else if(this.disableOptionCentering)ue=16;else{let vn=this._selectionModel.selected[0]||this.options.first;ue=vn&&vn.group?32:16}At||(ue*=-1);const ye=0-(ot.left+ue-(At?Ht:0)),Se=ot.right+ue-X.width+(At?0:Ht);ye>0?ue+=ye+8:Se>0&&(ue-=Se+8),this._overlayDir.offsetX=Math.round(ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ot,X,At){const Ht=this._getItemHeight(),ue=(Ht-this._triggerRect.height)/2,ye=Math.floor(256/Ht);let Se;return this.disableOptionCentering?0:(Se=0===this._scrollTop?ot*Ht:this._scrollTop===At?(ot-(this._getItemCount()-ye))*Ht+(Ht-(this._getItemCount()*Ht-256)%Ht):X-Ht/2,Math.round(-1*Se-ue))}_checkOverlayWithinViewport(ot){const X=this._getItemHeight(),At=this._viewportRuler.getViewportSize(),Ht=this._triggerRect.top-8,ue=At.height-this._triggerRect.bottom-8,ye=Math.abs(this._offsetY),vn=Math.min(this._getItemCount()*X,256)-ye-this._triggerRect.height;vn>ue?this._adjustPanelUp(vn,ue):ye>Ht?this._adjustPanelDown(ye,Ht,ot):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ot,X){const At=Math.round(ot-X);this._scrollTop-=At,this._offsetY-=At,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ot,X,At){const Ht=Math.round(ot-X);if(this._scrollTop+=Ht,this._offsetY+=Ht,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=At)return this._scrollTop=At,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ot=this._getItemHeight(),X=this._getItemCount(),At=Math.min(X*ot,256),ue=X*ot-At;let ye;ye=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ye+=(0,g.CB)(ye,this.options,this.optionGroups);const Se=At/2;this._scrollTop=this._calculateOverlayScroll(ye,Se,ue),this._offsetY=this._calculateOverlayOffsetY(ye,Se,ue),this._checkOverlayWithinViewport(ue)}_getOriginBasedOnOption(){const ot=this._getItemHeight(),X=(ot-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-X+ot/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return We.\u0275fac=function(){let ee;return function(X){return(ee||(ee=v.n5z(We)))(X||We)}}(),We.\u0275cmp=v.Xpm({type:We,selectors:[["mat-select"]],contentQueries:function(ot,X,At){if(1&ot&&(v.Suo(At,dn,5),v.Suo(At,g.ey,5),v.Suo(At,g.K7,5)),2&ot){let Ht;v.iGM(Ht=v.CRH())&&(X.customTrigger=Ht.first),v.iGM(Ht=v.CRH())&&(X.options=Ht),v.iGM(Ht=v.CRH())&&(X.optionGroups=Ht)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(ot,X){1&ot&&v.NdJ("keydown",function(Ht){return X._handleKeydown(Ht)})("focus",function(){return X._onFocus()})("blur",function(){return X._onBlur()}),2&ot&&(v.uIk("id",X.id)("tabindex",X.tabIndex)("aria-controls",X.panelOpen?X.id+"-panel":null)("aria-expanded",X.panelOpen)("aria-label",X.ariaLabel||null)("aria-required",X.required.toString())("aria-disabled",X.disabled.toString())("aria-invalid",X.errorState)("aria-activedescendant",X._getAriaActiveDescendant()),v.ekj("mat-select-disabled",X.disabled)("mat-select-invalid",X.errorState)("mat-select-required",X.required)("mat-select-empty",X.empty)("mat-select-multiple",X.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:t.Eo,useExisting:We},{provide:g.HF,useExisting:We}]),v.qOj],ngContentSelectors:be,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ot,X){if(1&ot&&(v.F$t(Vt),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return X.toggle()}),v.TgZ(3,"div",2),v.YNc(4,mt,2,1,"span",3),v.YNc(5,kt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,le,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return X.close()})("attach",function(){return X._onAttached()})("detach",function(){return X.close()})),2&ot){const At=v.MAs(1);v.uIk("aria-owns",X.panelOpen?X.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",X.empty),v.uIk("id",X._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",X._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",X._scrollStrategy)("cdkConnectedOverlayOrigin",At)("cdkConnectedOverlayOpen",X.panelOpen)("cdkConnectedOverlayPositions",X._positions)("cdkConnectedOverlayMinWidth",null==X._triggerRect?null:X._triggerRect.width)("cdkConnectedOverlayOffsetY",X._offsetY)}},dependencies:[d.mk,d.RF,d.n9,d.ED,u.pI,u.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ge.transformPanelWrap,ge.transformPanel]},changeDetection:0}),We})(),oi=(()=>{class We{}return We.\u0275fac=function(ot){return new(ot||We)},We.\u0275mod=v.oAB({type:We}),We.\u0275inj=v.cJS({providers:[Ce],imports:[d.ez,u.U8,g.Ng,g.BQ,T.ZD,t.lN,g.Ng,g.BQ]}),We})()},23267:(tt,W,f)=>{"use strict";f.d(W,{JX:()=>Xt,Rh:()=>se,SJ:()=>De,TM:()=>ae});var u=f(67376),d=f(36895),v=f(94650),g=f(3238),t=f(12687),T=f(40445),U=f(21281),w=f(29521),P=f(83353),O=f(8929),L=f(23753),N=f(36787),B=f(92198),K=f(24850),et=f(77604),ct=f(7625),lt=f(75778),Ct=f(72986),Dt=f(1059),Zt=f(80013),Rt=f(37340);const Gt=["*"],Tt=["content"];function Ut(nn,hn){if(1&nn){const Ce=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(Ce);const Oe=v.oxw();return v.KtG(Oe._onBackdropClicked())}),v.qZA()}if(2&nn){const Ce=v.oxw();v.ekj("mat-drawer-shown",Ce._isShowingBackdrop())}}function bt(nn,hn){1&nn&&(v.TgZ(0,"mat-drawer-content"),v.Hsn(1,2),v.qZA())}const mt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Lt=["mat-drawer","mat-drawer-content","*"];function Bt(nn,hn){if(1&nn){const Ce=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(Ce);const Oe=v.oxw();return v.KtG(Oe._onBackdropClicked())}),v.qZA()}if(2&nn){const Ce=v.oxw();v.ekj("mat-drawer-shown",Ce._isShowingBackdrop())}}function kt(nn,hn){1&nn&&(v.TgZ(0,"mat-sidenav-content"),v.Hsn(1,2),v.qZA())}const le=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vt=["mat-sidenav","mat-sidenav-content","*"],ge={transformDrawer:(0,Rt.X$)("transform",[(0,Rt.SB)("open, open-instant",(0,Rt.oB)({transform:"none",visibility:"visible"})),(0,Rt.SB)("void",(0,Rt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Rt.eR)("void => open-instant",(0,Rt.jt)("0ms")),(0,Rt.eR)("void <=> open, open-instant => void",(0,Rt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qe=new v.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qt(){return!1}}),je=new v.OlP("MAT_DRAWER_CONTAINER");let Ue=(()=>{class nn extends u.PQ{constructor(Ce,bn,Oe,dn,Pn){super(Oe,dn,Pn),this._changeDetectorRef=Ce,this._container=bn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>Wt)),v.Y36(v.SBq),v.Y36(u.mF),v.Y36(v.R0b))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Ce,bn){2&Ce&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:u.PQ,useExisting:nn}]),v.qOj],ngContentSelectors:Gt,decls:1,vars:0,template:function(Ce,bn){1&Ce&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),nn})(),ie=(()=>{class nn{constructor(Ce,bn,Oe,dn,Pn,ii,_i,oi){this._elementRef=Ce,this._focusTrapFactory=bn,this._focusMonitor=Oe,this._platform=dn,this._ngZone=Pn,this._interactivityChecker=ii,this._doc=_i,this._container=oi,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new O.xQ,this._animationEnd=new O.xQ,this._animationState="void",this.openedChange=new v.vpe(!0),this._openedStream=this.openedChange.pipe((0,B.h)(We=>We),(0,K.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,B.h)(We=>We.fromState!==We.toState&&0===We.toState.indexOf("open")),(0,et.h)(void 0)),this._closedStream=this.openedChange.pipe((0,B.h)(We=>!We),(0,K.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,B.h)(We=>We.fromState!==We.toState&&"void"===We.toState),(0,et.h)(void 0)),this._destroyed=new O.xQ,this.onPositionChanged=new v.vpe,this._modeChanged=new O.xQ,this.openedChange.subscribe(We=>{We?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,L.R)(this._elementRef.nativeElement,"keydown").pipe((0,B.h)(We=>We.keyCode===w.hY&&!this.disableClose&&!(0,w.Vb)(We)),(0,ct.R)(this._destroyed)).subscribe(We=>this._ngZone.run(()=>{this.close(),We.stopPropagation(),We.preventDefault()}))}),this._animationEnd.pipe((0,lt.x)((We,ee)=>We.fromState===ee.fromState&&We.toState===ee.toState)).subscribe(We=>{const{fromState:ee,toState:ot}=We;(0===ot.indexOf("open")&&"void"===ee||"void"===ot&&0===ee.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Ce){(Ce="end"===Ce?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Ce),this._position=Ce,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Ce){this._mode=Ce,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Ce){this._disableClose=(0,U.Ig)(Ce)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Ce){("true"===Ce||"false"===Ce||null==Ce)&&(Ce=(0,U.Ig)(Ce)),this._autoFocus=Ce}get opened(){return this._opened}set opened(Ce){this.toggle((0,U.Ig)(Ce))}_forceFocus(Ce,bn){this._interactivityChecker.isFocusable(Ce)||(Ce.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Oe=()=>{Ce.removeEventListener("blur",Oe),Ce.removeEventListener("mousedown",Oe),Ce.removeAttribute("tabindex")};Ce.addEventListener("blur",Oe),Ce.addEventListener("mousedown",Oe)})),Ce.focus(bn)}_focusByCssSelector(Ce,bn){let Oe=this._elementRef.nativeElement.querySelector(Ce);Oe&&this._forceFocus(Oe,bn)}_takeFocus(){if(!this._focusTrap)return;const Ce=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(bn=>{!bn&&"function"==typeof this._elementRef.nativeElement.focus&&Ce.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Ce){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Ce):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Ce=this._doc.activeElement;return!!Ce&&this._elementRef.nativeElement.contains(Ce)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Ce){return this.toggle(!0,Ce)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Ce=!this.opened,bn){Ce&&bn&&(this._openedVia=bn);const Oe=this._setOpen(Ce,!Ce&&this._isFocusWithinDrawer(),this._openedVia||"program");return Ce||(this._openedVia=null),Oe}_setOpen(Ce,bn,Oe){return this._opened=Ce,Ce?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",bn&&this._restoreFocus(Oe)),this._updateFocusTrapState(),new Promise(dn=>{this.openedChange.pipe((0,Ct.q)(1)).subscribe(Pn=>dn(Pn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Ce){const bn=this._elementRef.nativeElement,Oe=bn.parentNode;"end"===Ce?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Oe.insertBefore(this._anchor,bn)),Oe.appendChild(bn)):this._anchor&&this._anchor.parentNode.insertBefore(bn,this._anchor)}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(v.SBq),v.Y36(t.qV),v.Y36(t.tE),v.Y36(P.t4),v.Y36(v.R0b),v.Y36(t.ic),v.Y36(d.K0,8),v.Y36(je,8))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-drawer"]],viewQuery:function(Ce,bn){if(1&Ce&&v.Gf(Tt,5),2&Ce){let Oe;v.iGM(Oe=v.CRH())&&(bn._content=Oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ce,bn){1&Ce&&v.WFA("@transform.start",function(dn){return bn._animationStarted.next(dn)})("@transform.done",function(dn){return bn._animationEnd.next(dn)}),2&Ce&&(v.uIk("align",null),v.d8E("@transform",bn._animationState),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Gt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ce,bn){1&Ce&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[ge.transformDrawer]},changeDetection:0}),nn})(),Wt=(()=>{class nn{constructor(Ce,bn,Oe,dn,Pn,ii=!1,_i){this._dir=Ce,this._element=bn,this._ngZone=Oe,this._changeDetectorRef=dn,this._animationMode=_i,this._drawers=new v.n_E,this.backdropClick=new v.vpe,this._destroyed=new O.xQ,this._doCheckSubject=new O.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new O.xQ,Ce&&Ce.change.pipe((0,ct.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Pn.change().pipe((0,ct.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=ii}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Ce){this._autosize=(0,U.Ig)(Ce)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Ce){this._backdropOverride=null==Ce?null:(0,U.Ig)(Ce)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Dt.O)(this._allDrawers),(0,ct.R)(this._destroyed)).subscribe(Ce=>{this._drawers.reset(Ce.filter(bn=>!bn._container||bn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Dt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Ce=>{this._watchDrawerToggle(Ce),this._watchDrawerPosition(Ce),this._watchDrawerMode(Ce)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Zt.b)(10),(0,ct.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Ce=>Ce.open())}close(){this._drawers.forEach(Ce=>Ce.close())}updateContentMargins(){let Ce=0,bn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Ce+=this._left._getWidth();else if("push"==this._left.mode){const Oe=this._left._getWidth();Ce+=Oe,bn-=Oe}if(this._right&&this._right.opened)if("side"==this._right.mode)bn+=this._right._getWidth();else if("push"==this._right.mode){const Oe=this._right._getWidth();bn+=Oe,Ce-=Oe}Ce=Ce||null,bn=bn||null,(Ce!==this._contentMargins.left||bn!==this._contentMargins.right)&&(this._contentMargins={left:Ce,right:bn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Ce){Ce._animationStarted.pipe((0,B.h)(bn=>bn.fromState!==bn.toState),(0,ct.R)(this._drawers.changes)).subscribe(bn=>{"open-instant"!==bn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Ce.mode&&Ce.openedChange.pipe((0,ct.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Ce.opened))}_watchDrawerPosition(Ce){!Ce||Ce.onPositionChanged.pipe((0,ct.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ct.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Ce){Ce&&Ce._modeChanged.pipe((0,ct.R)((0,N.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Ce){const bn=this._element.nativeElement.classList,Oe="mat-drawer-container-has-open";Ce?bn.add(Oe):bn.remove(Oe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Ce=>{"end"==Ce.position?this._end=Ce:this._start=Ce}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Ce=>Ce&&!Ce.disableClose&&this._canHaveBackdrop(Ce)).forEach(Ce=>Ce._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Ce){return"side"!==Ce.mode||!!this._backdropOverride}_isDrawerOpen(Ce){return null!=Ce&&Ce.opened}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(T.Is,8),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(u.rL),v.Y36(qe),v.Y36(v.QbO,8))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-drawer-container"]],contentQueries:function(Ce,bn,Oe){if(1&Ce&&(v.Suo(Oe,Ue,5),v.Suo(Oe,ie,5)),2&Ce){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},viewQuery:function(Ce,bn){if(1&Ce&&v.Gf(Ue,5),2&Ce){let Oe;v.iGM(Oe=v.CRH())&&(bn._userContent=Oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ce,bn){2&Ce&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v._Bn([{provide:je,useExisting:nn}])],ngContentSelectors:Lt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ce,bn){1&Ce&&(v.F$t(mt),v.YNc(0,Ut,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,bt,2,0,"mat-drawer-content",1)),2&Ce&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[d.O5,Ue],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),nn})(),se=(()=>{class nn extends Ue{constructor(Ce,bn,Oe,dn,Pn){super(Ce,bn,Oe,dn,Pn)}}return nn.\u0275fac=function(Ce){return new(Ce||nn)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>ae)),v.Y36(v.SBq),v.Y36(u.mF),v.Y36(v.R0b))},nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Ce,bn){2&Ce&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:u.PQ,useExisting:nn}]),v.qOj],ngContentSelectors:Gt,decls:1,vars:0,template:function(Ce,bn){1&Ce&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),nn})(),Xt=(()=>{class nn extends ie{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Ce){this._fixedInViewport=(0,U.Ig)(Ce)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Ce){this._fixedTopGap=(0,U.su)(Ce)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Ce){this._fixedBottomGap=(0,U.su)(Ce)}}return nn.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(nn)))(bn||nn)}}(),nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Ce,bn){2&Ce&&(v.uIk("align",null),v.Udp("top",bn.fixedInViewport?bn.fixedTopGap:null,"px")("bottom",bn.fixedInViewport?bn.fixedBottomGap:null,"px"),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened)("mat-sidenav-fixed",bn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v.qOj],ngContentSelectors:Gt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ce,bn){1&Ce&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[u.PQ],encapsulation:2,data:{animation:[ge.transformDrawer]},changeDetection:0}),nn})(),ae=(()=>{class nn extends Wt{}return nn.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(nn)))(bn||nn)}}(),nn.\u0275cmp=v.Xpm({type:nn,selectors:[["mat-sidenav-container"]],contentQueries:function(Ce,bn,Oe){if(1&Ce&&(v.Suo(Oe,se,5),v.Suo(Oe,Xt,5)),2&Ce){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Ce,bn){2&Ce&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},exportAs:["matSidenavContainer"],features:[v._Bn([{provide:je,useExisting:nn}]),v.qOj],ngContentSelectors:Vt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ce,bn){1&Ce&&(v.F$t(le),v.YNc(0,Bt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,kt,2,0,"mat-sidenav-content",1)),2&Ce&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[d.O5,se],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),nn})(),De=(()=>{class nn{}return nn.\u0275fac=function(Ce){return new(Ce||nn)},nn.\u0275mod=v.oAB({type:nn}),nn.\u0275inj=v.cJS({imports:[d.ez,g.BQ,u.ZD,u.ZD,g.BQ]}),nn})()},90455:(tt,W,f)=>{"use strict";f.d(W,{Rr:()=>ct,rP:()=>Zt});var u=f(49643),d=f(94650),v=f(3238),g=f(12687),t=f(21281),T=f(24006);const U=["input"],w=function(Rt){return{enterDuration:Rt}},P=["*"],O=new d.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let L=0;const N={provide:T.JU,useExisting:(0,d.Gpc)(()=>ct),multi:!0};class B{constructor(Gt,Tt){this.source=Gt,this.checked=Tt}}const K=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(Rt){this._elementRef=Rt}}))));let et=(()=>{class Rt extends K{constructor(Tt,Ut,bt,mt,Lt,Bt,kt){super(Tt),this._focusMonitor=Ut,this._changeDetectorRef=bt,this.defaults=Lt,this._onChange=le=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new d.vpe,this.toggleChange=new d.vpe,this.tabIndex=parseInt(mt)||0,this.color=this.defaultColor=Lt.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${kt}${++L}`}get required(){return this._required}set required(Tt){this._required=(0,t.Ig)(Tt)}get checked(){return this._checked}set checked(Tt){this._checked=(0,t.Ig)(Tt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Tt=>{"keyboard"===Tt||"program"===Tt?this._focused=!0:Tt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(Tt){this.checked=!!Tt}registerOnChange(Tt){this._onChange=Tt}registerOnTouched(Tt){this._onTouched=Tt}setDisabledState(Tt){this.disabled=Tt,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return Rt.\u0275fac=function(Tt){d.$Z()},Rt.\u0275dir=d.lG2({type:Rt,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[d.qOj]}),Rt})(),ct=(()=>{class Rt extends et{constructor(Tt,Ut,bt,mt,Lt,Bt){super(Tt,Ut,bt,mt,Lt,Bt,"mat-slide-toggle-")}_createChangeEvent(Tt){return new B(this,Tt)}_onChangeEvent(Tt){Tt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(Tt){Tt.stopPropagation()}focus(Tt,Ut){Ut?this._focusMonitor.focusVia(this._inputElement,Ut,Tt):this._inputElement.nativeElement.focus(Tt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Rt.\u0275fac=function(Tt){return new(Tt||Rt)(d.Y36(d.SBq),d.Y36(g.tE),d.Y36(d.sBO),d.$8M("tabindex"),d.Y36(O),d.Y36(d.QbO,8))},Rt.\u0275cmp=d.Xpm({type:Rt,selectors:[["mat-slide-toggle"]],viewQuery:function(Tt,Ut){if(1&Tt&&d.Gf(U,5),2&Tt){let bt;d.iGM(bt=d.CRH())&&(Ut._inputElement=bt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(Tt,Ut){2&Tt&&(d.Ikx("id",Ut.id),d.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),d.ekj("mat-checked",Ut.checked)("mat-disabled",Ut.disabled)("mat-slide-toggle-label-before","before"==Ut.labelPosition)("_mat-animation-noopable",Ut._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[d._Bn([N]),d.qOj],ngContentSelectors:P,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(Tt,Ut){if(1&Tt&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),d.NdJ("change",function(mt){return Ut._onChangeEvent(mt)})("click",function(mt){return Ut._onInputClick(mt)}),d.qZA(),d.TgZ(5,"span",5),d._UZ(6,"span",6),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()()(),d.TgZ(9,"span",9,10),d.NdJ("cdkObserveContent",function(){return Ut._onLabelTextChange()}),d.TgZ(11,"span",11),d._uU(12,"\xa0"),d.qZA(),d.Hsn(13),d.qZA()()),2&Tt){const bt=d.MAs(1),mt=d.MAs(10);d.uIk("for",Ut.inputId),d.xp6(2),d.ekj("mat-slide-toggle-bar-no-side-margin",!mt.textContent||!mt.textContent.trim()),d.xp6(1),d.Q6J("id",Ut.inputId)("required",Ut.required)("tabIndex",Ut.tabIndex)("checked",Ut.checked)("disabled",Ut.disabled),d.uIk("name",Ut.name)("aria-checked",Ut.checked)("aria-label",Ut.ariaLabel)("aria-labelledby",Ut.ariaLabelledby)("aria-describedby",Ut.ariaDescribedby),d.xp6(4),d.Q6J("matRippleTrigger",bt)("matRippleDisabled",Ut.disableRipple||Ut.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(18,w,Ut._noopAnimations?0:150))}},dependencies:[v.wG,u.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),Rt})(),Dt=(()=>{class Rt{}return Rt.\u0275fac=function(Tt){return new(Tt||Rt)},Rt.\u0275mod=d.oAB({type:Rt}),Rt.\u0275inj=d.cJS({}),Rt})(),Zt=(()=>{class Rt{}return Rt.\u0275fac=function(Tt){return new(Tt||Rt)},Rt.\u0275mod=d.oAB({type:Rt}),Rt.\u0275inj=d.cJS({imports:[Dt,v.si,v.BQ,u.Q8,Dt,v.BQ]}),Rt})()},17009:(tt,W,f)=>{"use strict";f.d(W,{ZX:()=>Ut,ux:()=>Bt});var u=f(98184),d=f(84080),v=f(36895),g=f(94650),t=f(3238),T=f(4859),U=f(8929),w=f(83353),P=f(72986),O=f(7625),L=f(37340),N=f(12687),B=f(62289);function K(kt,le){if(1&kt){const Vt=g.EpF();g.TgZ(0,"div",2)(1,"button",3),g.NdJ("click",function(){g.CHM(Vt);const ge=g.oxw();return g.KtG(ge.action())}),g._uU(2),g.qZA()()}if(2&kt){const Vt=g.oxw();g.xp6(2),g.Oqu(Vt.data.action)}}function et(kt,le){}const ct=new g.OlP("MatSnackBarData");class lt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Ct=Math.pow(2,31)-1;class Dt{constructor(le,Vt){this._overlayRef=Vt,this._afterDismissed=new U.xQ,this._afterOpened=new U.xQ,this._onAction=new U.xQ,this._dismissedByAction=!1,this.containerInstance=le,le._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(le){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(le,Ct))}_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}}let Zt=(()=>{class kt{constructor(Vt,be){this.snackBarRef=Vt,this.data=be}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.Y36(Dt),g.Y36(ct))},kt.\u0275cmp=g.Xpm({type:kt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Vt,be){1&Vt&&(g.TgZ(0,"span",0),g._uU(1),g.qZA(),g.YNc(2,K,3,1,"div",1)),2&Vt&&(g.xp6(1),g.Oqu(be.data.message),g.xp6(1),g.Q6J("ngIf",be.hasAction))},dependencies:[v.O5,T.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),kt})();const Rt={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let Gt=(()=>{class kt extends d.en{constructor(Vt,be,ge,Fe,qe){super(),this._ngZone=Vt,this._elementRef=be,this._changeDetectorRef=ge,this._platform=Fe,this.snackBarConfig=qe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new U.xQ,this._onExit=new U.xQ,this._onEnter=new U.xQ,this._animationState="void",this.attachDomPortal=je=>{this._assertNotAttached();const Qt=this._portalOutlet.attachDomPortal(je);return this._afterPortalAttached(),Qt},this._live="assertive"!==qe.politeness||qe.announcementMessage?"off"===qe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Vt){this._assertNotAttached();const be=this._portalOutlet.attachComponentPortal(Vt);return this._afterPortalAttached(),be}attachTemplatePortal(Vt){this._assertNotAttached();const be=this._portalOutlet.attachTemplatePortal(Vt);return this._afterPortalAttached(),be}onAnimationEnd(Vt){const{fromState:be,toState:ge}=Vt;if(("void"===ge&&"void"!==be||"hidden"===ge)&&this._completeExit(),"visible"===ge){const Fe=this._onEnter;this._ngZone.run(()=>{Fe.next(),Fe.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Vt=this._elementRef.nativeElement,be=this.snackBarConfig.panelClass;be&&(Array.isArray(be)?be.forEach(ge=>Vt.classList.add(ge)):Vt.classList.add(be))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Vt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),be=this._elementRef.nativeElement.querySelector("[aria-live]");if(Vt&&be){let ge=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Vt.contains(document.activeElement)&&(ge=document.activeElement),Vt.removeAttribute("aria-hidden"),be.appendChild(Vt),ge?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.Y36(g.R0b),g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(w.t4),g.Y36(lt))},kt.\u0275dir=g.lG2({type:kt,viewQuery:function(Vt,be){if(1&Vt&&g.Gf(d.Pl,7),2&Vt){let ge;g.iGM(ge=g.CRH())&&(be._portalOutlet=ge.first)}},features:[g.qOj]}),kt})(),Tt=(()=>{class kt extends Gt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return kt.\u0275fac=function(){let le;return function(be){return(le||(le=g.n5z(kt)))(be||kt)}}(),kt.\u0275cmp=g.Xpm({type:kt,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Vt,be){1&Vt&&g.WFA("@state.done",function(Fe){return be.onAnimationEnd(Fe)}),2&Vt&&g.d8E("@state",be._animationState)},features:[g.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Vt,be){1&Vt&&(g.TgZ(0,"div",0),g.YNc(1,et,0,0,"ng-template",1),g.qZA(),g._UZ(2,"div")),2&Vt&&(g.xp6(2),g.uIk("aria-live",be._live)("role",be._role))},dependencies:[d.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Rt.snackBarState]}}),kt})(),Ut=(()=>{class kt{}return kt.\u0275fac=function(Vt){return new(Vt||kt)},kt.\u0275mod=g.oAB({type:kt}),kt.\u0275inj=g.cJS({imports:[u.U8,d.eL,v.ez,T.ot,t.BQ,t.BQ]}),kt})();const bt=new g.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function mt(){return new lt}});let Lt=(()=>{class kt{constructor(Vt,be,ge,Fe,qe,je){this._overlay=Vt,this._live=be,this._injector=ge,this._breakpointObserver=Fe,this._parentSnackBar=qe,this._defaultConfig=je,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Vt=this._parentSnackBar;return Vt?Vt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Vt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Vt:this._snackBarRefAtThisLevel=Vt}openFromComponent(Vt,be){return this._attach(Vt,be)}openFromTemplate(Vt,be){return this._attach(Vt,be)}open(Vt,be="",ge){const Fe={...this._defaultConfig,...ge};return Fe.data={message:Vt,action:be},Fe.announcementMessage===Vt&&(Fe.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Fe)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Vt,be){const Fe=g.zs3.create({parent:be&&be.viewContainerRef&&be.viewContainerRef.injector||this._injector,providers:[{provide:lt,useValue:be}]}),qe=new d.C5(this.snackBarContainerComponent,be.viewContainerRef,Fe),je=Vt.attach(qe);return je.instance.snackBarConfig=be,je.instance}_attach(Vt,be){const ge={...new lt,...this._defaultConfig,...be},Fe=this._createOverlay(ge),qe=this._attachSnackBarContainer(Fe,ge),je=new Dt(qe,Fe);if(Vt instanceof g.Rgc){const Qt=new d.UE(Vt,null,{$implicit:ge.data,snackBarRef:je});je.instance=qe.attachTemplatePortal(Qt)}else{const Qt=this._createInjector(ge,je),Ue=new d.C5(Vt,void 0,Qt),ie=qe.attachComponentPortal(Ue);je.instance=ie.instance}return this._breakpointObserver.observe(B.u3.HandsetPortrait).pipe((0,O.R)(Fe.detachments())).subscribe(Qt=>{Fe.overlayElement.classList.toggle(this.handsetCssClass,Qt.matches)}),ge.announcementMessage&&qe._onAnnounce.subscribe(()=>{this._live.announce(ge.announcementMessage,ge.politeness)}),this._animateSnackBar(je,ge),this._openedSnackBarRef=je,this._openedSnackBarRef}_animateSnackBar(Vt,be){Vt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Vt&&(this._openedSnackBarRef=null),be.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Vt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Vt.containerInstance.enter(),be.duration&&be.duration>0&&Vt.afterOpened().subscribe(()=>Vt._dismissAfter(be.duration))}_createOverlay(Vt){const be=new u.X_;be.direction=Vt.direction;let ge=this._overlay.position().global();const Fe="rtl"===Vt.direction,qe="left"===Vt.horizontalPosition||"start"===Vt.horizontalPosition&&!Fe||"end"===Vt.horizontalPosition&&Fe,je=!qe&&"center"!==Vt.horizontalPosition;return qe?ge.left("0"):je?ge.right("0"):ge.centerHorizontally(),"top"===Vt.verticalPosition?ge.top("0"):ge.bottom("0"),be.positionStrategy=ge,this._overlay.create(be)}_createInjector(Vt,be){return g.zs3.create({parent:Vt&&Vt.viewContainerRef&&Vt.viewContainerRef.injector||this._injector,providers:[{provide:Dt,useValue:be},{provide:ct,useValue:Vt.data}]})}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.LFG(u.aV),g.LFG(N.Kd),g.LFG(g.zs3),g.LFG(B.Yg),g.LFG(kt,12),g.LFG(bt))},kt.\u0275prov=g.Yz7({token:kt,factory:kt.\u0275fac}),kt})(),Bt=(()=>{class kt extends Lt{constructor(Vt,be,ge,Fe,qe,je){super(Vt,be,ge,Fe,qe,je),this.simpleSnackBarComponent=Zt,this.snackBarContainerComponent=Tt,this.handsetCssClass="mat-snack-bar-handset"}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(g.LFG(u.aV),g.LFG(N.Kd),g.LFG(g.zs3),g.LFG(B.Yg),g.LFG(kt,12),g.LFG(bt))},kt.\u0275prov=g.Yz7({token:kt,factory:kt.\u0275fac,providedIn:Ut}),kt})()},96308:(tt,W,f)=>{"use strict";f.d(W,{JX:()=>Bt,YE:()=>Dt,nU:()=>Lt});var u=f(94650),d=f(12687),v=f(21281),g=f(29521),t=f(3238),T=f(8929),U=f(36787),w=f(37340),P=f(36895);const O=["mat-sort-header",""];function L(kt,le){if(1&kt){const Vt=u.EpF();u.TgZ(0,"div",3),u.NdJ("@arrowPosition.start",function(){u.CHM(Vt);const ge=u.oxw();return u.KtG(ge._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){u.CHM(Vt);const ge=u.oxw();return u.KtG(ge._disableViewStateAnimation=!1)}),u._UZ(1,"div",4),u.TgZ(2,"div",5),u._UZ(3,"div",6)(4,"div",7)(5,"div",8),u.qZA()()}if(2&kt){const Vt=u.oxw();u.Q6J("@arrowOpacity",Vt._getArrowViewState())("@arrowPosition",Vt._getArrowViewState())("@allowChildren",Vt._getArrowDirectionState()),u.xp6(2),u.Q6J("@indicator",Vt._getArrowDirectionState()),u.xp6(1),u.Q6J("@leftPointer",Vt._getArrowDirectionState()),u.xp6(1),u.Q6J("@rightPointer",Vt._getArrowDirectionState())}}const N=["*"],lt=new u.OlP("MAT_SORT_DEFAULT_OPTIONS"),Ct=(0,t.dB)((0,t.Id)(class{}));let Dt=(()=>{class kt extends Ct{constructor(Vt){super(),this._defaultOptions=Vt,this.sortables=new Map,this._stateChanges=new T.xQ,this.start="asc",this._direction="",this.sortChange=new u.vpe}get direction(){return this._direction}set direction(Vt){this._direction=Vt}get disableClear(){return this._disableClear}set disableClear(Vt){this._disableClear=(0,v.Ig)(Vt)}register(Vt){this.sortables.set(Vt.id,Vt)}deregister(Vt){this.sortables.delete(Vt.id)}sort(Vt){this.active!=Vt.id?(this.active=Vt.id,this.direction=Vt.start?Vt.start:this.start):this.direction=this.getNextSortDirection(Vt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Vt){if(!Vt)return"";let ge=function Zt(kt,le){let Vt=["asc","desc"];return"desc"==kt&&Vt.reverse(),le||Vt.push(""),Vt}(Vt.start||this.start,Vt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Fe=ge.indexOf(this.direction)+1;return Fe>=ge.length&&(Fe=0),ge[Fe]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(u.Y36(lt,8))},kt.\u0275dir=u.lG2({type:kt,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[u.qOj,u.TTD]}),kt})();const Rt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Gt={indicator:(0,w.X$)("indicator",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"translateY(0px)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"translateY(10px)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Rt))]),leftPointer:(0,w.X$)("leftPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Rt))]),rightPointer:(0,w.X$)("rightPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Rt))]),arrowOpacity:(0,w.X$)("arrowOpacity",[(0,w.SB)("desc-to-active, asc-to-active, active",(0,w.oB)({opacity:1})),(0,w.SB)("desc-to-hint, asc-to-hint, hint",(0,w.oB)({opacity:.54})),(0,w.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,w.oB)({opacity:0})),(0,w.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,w.jt)("0ms")),(0,w.eR)("* <=> *",(0,w.jt)(Rt))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(-25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-desc, * => active-to-desc",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(25%)"})]))),(0,w.eR)("* => asc-to-hint, * => asc-to-active",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-asc, * => active-to-asc",(0,w.jt)(Rt,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(-25%)"})]))),(0,w.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,w.oB)({transform:"translateY(0)"})),(0,w.SB)("hint-to-desc, active-to-desc, desc",(0,w.oB)({transform:"translateY(-25%)"})),(0,w.SB)("hint-to-asc, active-to-asc, asc",(0,w.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,w.X$)("allowChildren",[(0,w.eR)("* <=> *",[(0,w.IO)("@*",(0,w.pV)(),{optional:!0})])])};let Tt=(()=>{class kt{constructor(){this.changes=new T.xQ}}return kt.\u0275fac=function(Vt){return new(Vt||kt)},kt.\u0275prov=u.Yz7({token:kt,factory:kt.\u0275fac,providedIn:"root"}),kt})();const bt={provide:Tt,deps:[[new u.FiY,new u.tp0,Tt]],useFactory:function Ut(kt){return kt||new Tt}},mt=(0,t.Id)(class{});let Lt=(()=>{class kt extends mt{constructor(Vt,be,ge,Fe,qe,je,Qt,Ue){super(),this._intl=Vt,this._changeDetectorRef=be,this._sort=ge,this._columnDef=Fe,this._focusMonitor=qe,this._elementRef=je,this._ariaDescriber=Qt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Ue?.arrowPosition&&(this.arrowPosition=Ue?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Vt){this._updateSortActionDescription(Vt)}get disableClear(){return this._disableClear}set disableClear(Vt){this._disableClear=(0,v.Ig)(Vt)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Vt=>{const be=!!Vt;be!==this._showIndicatorHint&&(this._setIndicatorHintVisible(be),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Vt){this._isDisabled()&&Vt||(this._showIndicatorHint=Vt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Vt){this._viewState=Vt||{},this._disableViewStateAnimation&&(this._viewState={toState:Vt.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Vt){!this._isDisabled()&&(Vt.keyCode===g.L_||Vt.keyCode===g.K5)&&(Vt.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Vt=this._viewState.fromState;return(Vt?`${Vt}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Vt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Vt)),this._sortActionDescription=Vt}_handleStateChanges(){this._rerenderSubscription=(0,U.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return kt.\u0275fac=function(Vt){return new(Vt||kt)(u.Y36(Tt),u.Y36(u.sBO),u.Y36(Dt,8),u.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),u.Y36(d.tE),u.Y36(u.SBq),u.Y36(d.$s,8),u.Y36(lt,8))},kt.\u0275cmp=u.Xpm({type:kt,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Vt,be){1&Vt&&u.NdJ("click",function(){return be._handleClick()})("keydown",function(Fe){return be._handleKeydown(Fe)})("mouseenter",function(){return be._setIndicatorHintVisible(!0)})("mouseleave",function(){return be._setIndicatorHintVisible(!1)}),2&Vt&&(u.uIk("aria-sort",be._getAriaSortAttribute()),u.ekj("mat-sort-header-disabled",be._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[u.qOj],attrs:O,ngContentSelectors:N,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Vt,be){1&Vt&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1),u.Hsn(2),u.qZA(),u.YNc(3,L,6,6,"div",2),u.qZA()),2&Vt&&(u.ekj("mat-sort-header-sorted",be._isSorted())("mat-sort-header-position-before","before"===be.arrowPosition),u.uIk("tabindex",be._isDisabled()?null:0)("role",be._isDisabled()?null:"button"),u.xp6(3),u.Q6J("ngIf",be._renderArrow()))},dependencies:[P.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Gt.indicator,Gt.leftPointer,Gt.rightPointer,Gt.arrowOpacity,Gt.arrowPosition,Gt.allowChildren]},changeDetection:0}),kt})(),Bt=(()=>{class kt{}return kt.\u0275fac=function(Vt){return new(Vt||kt)},kt.\u0275mod=u.oAB({type:kt}),kt.\u0275inj=u.cJS({providers:[bt],imports:[P.ez,t.BQ]}),kt})()},58425:(tt,W,f)=>{"use strict";f.d(W,{C0:()=>ii,Ic:()=>oi,T5:()=>ee,VY:()=>se,Vq:()=>_i,fd:()=>We,z9:()=>dn});var u=f(84080),d=f(12138),v=f(36895),g=f(94650),t=f(4859),T=f(3238),U=f(97392),w=f(12687),P=f(8929),O=f(42654),L=f(40445),N=f(87545),B=f(24850),K=f(1059),et=f(7625),ct=f(75778),lt=f(37340);function Ct(ot,X){if(1&ot&&g.GkF(0,8),2&ot){const At=g.oxw();g.Q6J("ngTemplateOutlet",At.iconOverrides[At.state])("ngTemplateOutletContext",At._getIconContext())}}function Dt(ot,X){if(1&ot&&(g.TgZ(0,"span",13),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._getDefaultTextForState(At.state))}}function Zt(ot,X){if(1&ot&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._intl.completedLabel)}}function Rt(ot,X){if(1&ot&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._intl.editableLabel)}}function Gt(ot,X){if(1&ot&&(g.TgZ(0,"mat-icon",13),g._uU(1),g.qZA()),2&ot){const At=g.oxw(2);g.xp6(1),g.Oqu(At._getDefaultTextForState(At.state))}}function Tt(ot,X){if(1&ot&&(g.ynx(0,9),g.YNc(1,Dt,2,1,"span",10),g.YNc(2,Zt,2,1,"span",11),g.YNc(3,Rt,2,1,"span",11),g.YNc(4,Gt,2,1,"mat-icon",12),g.BQk()),2&ot){const At=g.oxw();g.Q6J("ngSwitch",At.state),g.xp6(1),g.Q6J("ngSwitchCase","number"),g.xp6(1),g.Q6J("ngIf","done"===At.state),g.xp6(1),g.Q6J("ngIf","edit"===At.state)}}function Ut(ot,X){if(1&ot&&(g.TgZ(0,"div",15),g.GkF(1,16),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Q6J("ngTemplateOutlet",At._templateLabel().template)}}function bt(ot,X){if(1&ot&&(g.TgZ(0,"div",15),g._uU(1),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Oqu(At.label)}}function mt(ot,X){if(1&ot&&(g.TgZ(0,"div",17),g._uU(1),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Oqu(At._intl.optionalLabel)}}function Lt(ot,X){if(1&ot&&(g.TgZ(0,"div",18),g._uU(1),g.qZA()),2&ot){const At=g.oxw();g.xp6(1),g.Oqu(At.errorMessage)}}function Bt(ot,X){}function kt(ot,X){if(1&ot&&(g.Hsn(0),g.YNc(1,Bt,0,0,"ng-template",0)),2&ot){const At=g.oxw();g.xp6(1),g.Q6J("cdkPortalOutlet",At._portal)}}const le=["*"];function Vt(ot,X){1&ot&&g._UZ(0,"div",11)}const be=function(ot,X){return{step:ot,i:X}};function ge(ot,X){if(1&ot&&(g.ynx(0),g.GkF(1,9),g.YNc(2,Vt,1,0,"div",10),g.BQk()),2&ot){const At=X.$implicit,Ht=X.index,ue=X.last;g.oxw(2);const ye=g.MAs(4);g.xp6(1),g.Q6J("ngTemplateOutlet",ye)("ngTemplateOutletContext",g.WLB(3,be,At,Ht)),g.xp6(1),g.Q6J("ngIf",!ue)}}const Fe=function(ot){return{animationDuration:ot}},qe=function(ot,X){return{value:ot,params:X}};function je(ot,X){if(1&ot){const At=g.EpF();g.TgZ(0,"div",12),g.NdJ("@horizontalStepTransition.done",function(ue){g.CHM(At);const ye=g.oxw(2);return g.KtG(ye._animationDone.next(ue))}),g.GkF(1,13),g.qZA()}if(2&ot){const At=X.$implicit,Ht=X.index,ue=g.oxw(2);g.ekj("mat-horizontal-stepper-content-inactive",ue.selectedIndex!==Ht),g.Q6J("@horizontalStepTransition",g.WLB(8,qe,ue._getAnimationDirection(Ht),g.VKq(6,Fe,ue._getAnimationDuration())))("id",ue._getStepContentId(Ht)),g.uIk("aria-labelledby",ue._getStepLabelId(Ht)),g.xp6(1),g.Q6J("ngTemplateOutlet",At.content)}}function Qt(ot,X){if(1&ot&&(g.TgZ(0,"div",4)(1,"div",5),g.YNc(2,ge,3,6,"ng-container",6),g.qZA(),g.TgZ(3,"div",7),g.YNc(4,je,2,11,"div",8),g.qZA()()),2&ot){const At=g.oxw();g.xp6(2),g.Q6J("ngForOf",At.steps),g.xp6(2),g.Q6J("ngForOf",At.steps)}}function Ue(ot,X){if(1&ot){const At=g.EpF();g.TgZ(0,"div",15),g.GkF(1,9),g.TgZ(2,"div",16)(3,"div",17),g.NdJ("@verticalStepTransition.done",function(ue){g.CHM(At);const ye=g.oxw(2);return g.KtG(ye._animationDone.next(ue))}),g.TgZ(4,"div",18),g.GkF(5,13),g.qZA()()()()}if(2&ot){const At=X.$implicit,Ht=X.index,ue=X.last,ye=g.oxw(2),Se=g.MAs(4);g.xp6(1),g.Q6J("ngTemplateOutlet",Se)("ngTemplateOutletContext",g.WLB(10,be,At,Ht)),g.xp6(1),g.ekj("mat-stepper-vertical-line",!ue),g.xp6(1),g.ekj("mat-vertical-stepper-content-inactive",ye.selectedIndex!==Ht),g.Q6J("@verticalStepTransition",g.WLB(15,qe,ye._getAnimationDirection(Ht),g.VKq(13,Fe,ye._getAnimationDuration())))("id",ye._getStepContentId(Ht)),g.uIk("aria-labelledby",ye._getStepLabelId(Ht)),g.xp6(2),g.Q6J("ngTemplateOutlet",At.content)}}function ie(ot,X){if(1&ot&&(g.ynx(0),g.YNc(1,Ue,6,18,"div",14),g.BQk()),2&ot){const At=g.oxw();g.xp6(1),g.Q6J("ngForOf",At.steps)}}function Wt(ot,X){if(1&ot){const At=g.EpF();g.TgZ(0,"mat-step-header",19),g.NdJ("click",function(){const ye=g.CHM(At).step;return g.KtG(ye.select())})("keydown",function(ue){g.CHM(At);const ye=g.oxw();return g.KtG(ye._onKeydown(ue))}),g.qZA()}if(2&ot){const At=X.step,Ht=X.i,ue=g.oxw();g.ekj("mat-horizontal-stepper-header","horizontal"===ue.orientation)("mat-vertical-stepper-header","vertical"===ue.orientation),g.Q6J("tabIndex",ue._getFocusIndex()===Ht?0:-1)("id",ue._getStepLabelId(Ht))("index",Ht)("state",ue._getIndicatorType(Ht,At.state))("label",At.stepLabel||At.label)("selected",ue.selectedIndex===Ht)("active",ue._stepIsNavigable(Ht,At))("optional",At.optional)("errorMessage",At.errorMessage)("iconOverrides",ue._iconOverrides)("disableRipple",ue.disableRipple||!ue._stepIsNavigable(Ht,At))("color",At.color||ue.color),g.uIk("aria-posinset",Ht+1)("aria-setsize",ue.steps.length)("aria-controls",ue._getStepContentId(Ht))("aria-selected",ue.selectedIndex==Ht)("aria-label",At.ariaLabel||null)("aria-labelledby",!At.ariaLabel&&At.ariaLabelledby?At.ariaLabelledby:null)("aria-disabled",!ue._stepIsNavigable(Ht,At)||null)}}let se=(()=>{class ot extends d.u6{}return ot.\u0275fac=function(){let X;return function(Ht){return(X||(X=g.n5z(ot)))(Ht||ot)}}(),ot.\u0275dir=g.lG2({type:ot,selectors:[["","matStepLabel",""]],features:[g.qOj]}),ot})(),Xt=(()=>{class ot{constructor(){this.changes=new P.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ot.\u0275fac=function(At){return new(At||ot)},ot.\u0275prov=g.Yz7({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const De={provide:Xt,deps:[[new g.FiY,new g.tp0,Xt]],useFactory:function ae(ot){return ot||new Xt}},nn=(0,T.pj)(class extends d.KL{constructor(X){super(X)}},"primary");let hn=(()=>{class ot extends nn{constructor(At,Ht,ue,ye){super(ue),this._intl=At,this._focusMonitor=Ht,this._intlSubscription=At.changes.subscribe(()=>ye.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(At,Ht){At?this._focusMonitor.focusVia(this._elementRef,At,Ht):this._elementRef.nativeElement.focus(Ht)}_stringLabel(){return this.label instanceof se?null:this.label}_templateLabel(){return this.label instanceof se?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(At){return"number"==At?`${this.index+1}`:"edit"==At?"create":"error"==At?"warning":At}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(Xt),g.Y36(w.tE),g.Y36(g.SBq),g.Y36(g.sBO))},ot.\u0275cmp=g.Xpm({type:ot,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[g.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(At,Ht){1&At&&(g._UZ(0,"div",0),g.TgZ(1,"div")(2,"div",1),g.YNc(3,Ct,1,2,"ng-container",2),g.YNc(4,Tt,5,4,"ng-container",3),g.qZA()(),g.TgZ(5,"div",4),g.YNc(6,Ut,2,1,"div",5),g.YNc(7,bt,2,1,"div",5),g.YNc(8,mt,2,1,"div",6),g.YNc(9,Lt,2,1,"div",7),g.qZA()),2&At&&(g.Q6J("matRippleTrigger",Ht._getHostElement())("matRippleDisabled",Ht.disableRipple),g.xp6(1),g.Gre("mat-step-icon-state-",Ht.state," mat-step-icon"),g.ekj("mat-step-icon-selected",Ht.selected),g.xp6(1),g.Q6J("ngSwitch",!(!Ht.iconOverrides||!Ht.iconOverrides[Ht.state])),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(2),g.ekj("mat-step-label-active",Ht.active)("mat-step-label-selected",Ht.selected)("mat-step-label-error","error"==Ht.state),g.xp6(1),g.Q6J("ngIf",Ht._templateLabel()),g.xp6(1),g.Q6J("ngIf",Ht._stringLabel()),g.xp6(1),g.Q6J("ngIf",Ht.optional&&"error"!=Ht.state),g.xp6(1),g.Q6J("ngIf","error"==Ht.state))},dependencies:[v.O5,v.tP,v.RF,v.n9,v.ED,U.Hw,T.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),ot})();const Oe={horizontalStepTransition:(0,lt.X$)("horizontalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({transform:"none",visibility:"inherit"})),(0,lt.SB)("next",(0,lt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,lt.eR)("* => *",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,lt.X$)("verticalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("next",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({height:"*",visibility:"inherit"})),(0,lt.eR)("* <=> current",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let dn=(()=>{class ot{constructor(At){this.templateRef=At}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(g.Rgc))},ot.\u0275dir=g.lG2({type:ot,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ot})(),Pn=(()=>{class ot{constructor(At){this._template=At}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(g.Rgc))},ot.\u0275dir=g.lG2({type:ot,selectors:[["ng-template","matStepContent",""]]}),ot})(),ii=(()=>{class ot extends d.be{constructor(At,Ht,ue,ye){super(At,ye),this._errorStateMatcher=Ht,this._viewContainerRef=ue,this._isSelected=O.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,N.w)(()=>this._stepper.selectionChange.pipe((0,B.U)(At=>At.selectedStep===this),(0,K.O)(this._stepper.selected===this)))).subscribe(At=>{At&&this._lazyContent&&!this._portal&&(this._portal=new u.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(At,Ht){return this._errorStateMatcher.isErrorState(At,Ht)||!!(At&&At.invalid&&this.interacted)}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36((0,g.Gpc)(()=>_i)),g.Y36(T.rD,4),g.Y36(g.s_b),g.Y36(d.gx,8))},ot.\u0275cmp=g.Xpm({type:ot,selectors:[["mat-step"]],contentQueries:function(At,Ht,ue){if(1&At&&(g.Suo(ue,se,5),g.Suo(ue,Pn,5)),2&At){let ye;g.iGM(ye=g.CRH())&&(Ht.stepLabel=ye.first),g.iGM(ye=g.CRH())&&(Ht._lazyContent=ye.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[g._Bn([{provide:T.rD,useExisting:ot},{provide:d.be,useExisting:ot}]),g.qOj],ngContentSelectors:le,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(At,Ht){1&At&&(g.F$t(),g.YNc(0,kt,2,1,"ng-template"))},dependencies:[u.Pl],encapsulation:2,changeDetection:0}),ot})(),_i=(()=>{class ot extends d.B8{constructor(At,Ht,ue){super(At,Ht,ue),this.steps=new g.n_E,this.animationDone=new g.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.xQ,this._animationDuration="";const ye=ue.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ye?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(At){this._animationDuration=/^\d+$/.test(At)?At+"ms":At}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:At,templateRef:Ht})=>this._iconOverrides[At]=Ht),this.steps.changes.pipe((0,et.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ct.x)((At,Ht)=>At.fromState===Ht.fromState&&At.toState===Ht.toState),(0,et.R)(this._destroyed)).subscribe(At=>{"current"===At.toState&&this.animationDone.emit()})}_stepIsNavigable(At,Ht){return Ht.completed||this.selectedIndex===At||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return ot.\u0275fac=function(At){return new(At||ot)(g.Y36(L.Is,8),g.Y36(g.sBO),g.Y36(g.SBq))},ot.\u0275cmp=g.Xpm({type:ot,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(At,Ht,ue){if(1&At&&(g.Suo(ue,ii,5),g.Suo(ue,dn,5)),2&At){let ye;g.iGM(ye=g.CRH())&&(Ht._steps=ye),g.iGM(ye=g.CRH())&&(Ht._icons=ye)}},viewQuery:function(At,Ht){if(1&At&&g.Gf(hn,5),2&At){let ue;g.iGM(ue=g.CRH())&&(Ht._stepHeader=ue)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(At,Ht){2&At&&(g.uIk("aria-orientation",Ht.orientation),g.ekj("mat-stepper-horizontal","horizontal"===Ht.orientation)("mat-stepper-vertical","vertical"===Ht.orientation)("mat-stepper-label-position-end","horizontal"===Ht.orientation&&"end"==Ht.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ht.orientation&&"bottom"==Ht.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ht.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[g._Bn([{provide:d.B8,useExisting:ot}]),g.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(At,Ht){1&At&&(g.ynx(0,0),g.YNc(1,Qt,5,2,"div",1),g.YNc(2,ie,2,1,"ng-container",2),g.BQk(),g.YNc(3,Wt,1,23,"ng-template",null,3,g.W1O)),2&At&&(g.Q6J("ngSwitch",Ht.orientation),g.xp6(1),g.Q6J("ngSwitchCase","horizontal"),g.xp6(1),g.Q6J("ngSwitchCase","vertical"))},dependencies:[v.sg,v.O5,v.tP,v.RF,v.n9,hn],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),ot})(),oi=(()=>{class ot extends d.st{}return ot.\u0275fac=function(){let X;return function(Ht){return(X||(X=g.n5z(ot)))(Ht||ot)}}(),ot.\u0275dir=g.lG2({type:ot,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(At,Ht){2&At&&g.Ikx("type",Ht.type)},inputs:{type:"type"},features:[g.qOj]}),ot})(),We=(()=>{class ot extends d.po{}return ot.\u0275fac=function(){let X;return function(Ht){return(X||(X=g.n5z(ot)))(Ht||ot)}}(),ot.\u0275dir=g.lG2({type:ot,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(At,Ht){2&At&&g.Ikx("type",Ht.type)},inputs:{type:"type"},features:[g.qOj]}),ot})(),ee=(()=>{class ot{}return ot.\u0275fac=function(At){return new(At||ot)},ot.\u0275mod=g.oAB({type:ot}),ot.\u0275inj=g.cJS({providers:[De,T.rD],imports:[T.BQ,v.ez,u.eL,t.ot,d.U5,U.Ps,T.si,T.BQ]}),ot})()},30671:(tt,W,f)=>{"use strict";f.d(W,{ev:()=>He,Dz:()=>cn,w1:()=>Le,yh:()=>we,mD:()=>It,Q2:()=>_n,Ke:()=>Ei,ge:()=>zt,fO:()=>xe,XQ:()=>un,as:()=>kn,Gk:()=>Ke,nj:()=>Bi,BZ:()=>gn,by:()=>Ta,p0:()=>Co});var u=f(94650),d=f(40445),v=f(21281),g=f(95017),t=f(83353),T=f(67376),U=f(36895),w=f(8929),P=f(5254),O=f(591),L=f(54715),N=f(21086),B=f(7625),K=f(72986);const et=[[["caption"]],[["colgroup"],["col"]]],ct=["caption","colgroup, col"];function Dt(Re){return class extends Re{constructor(...Rn){super(...Rn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Rn){const Ye=this._sticky;this._sticky=(0,v.Ig)(Rn),this._hasStickyChanged=Ye!==this._sticky}hasStickyChanged(){const Rn=this._hasStickyChanged;return this._hasStickyChanged=!1,Rn}resetStickyChanged(){this._hasStickyChanged=!1}}}const Zt=new u.OlP("CDK_TABLE");let Gt=(()=>{class Re{constructor(Ye){this.template=Ye}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkCellDef",""]]}),Re})(),Tt=(()=>{class Re{constructor(Ye){this.template=Ye}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkHeaderCellDef",""]]}),Re})(),Ut=(()=>{class Re{constructor(Ye){this.template=Ye}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkFooterCellDef",""]]}),Re})();class bt{}const mt=Dt(bt);let Lt=(()=>{class Re extends mt{constructor(Ye){super(),this._table=Ye,this._stickyEnd=!1}get name(){return this._name}set name(Ye){this._setNameInput(Ye)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Ye){const Me=this._stickyEnd;this._stickyEnd=(0,v.Ig)(Ye),this._hasStickyChanged=Me!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ye){Ye&&(this._name=Ye,this.cssClassFriendlyName=Ye.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ye,Me,an){if(1&Ye&&(u.Suo(an,Gt,5),u.Suo(an,Tt,5),u.Suo(an,Ut,5)),2&Ye){let j;u.iGM(j=u.CRH())&&(Me.cell=j.first),u.iGM(j=u.CRH())&&(Me.headerCell=j.first),u.iGM(j=u.CRH())&&(Me.footerCell=j.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[u._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),u.qOj]}),Re})();class Bt{constructor(Rn,Ye){Ye.nativeElement.classList.add(...Rn._columnCssClassName)}}let kt=(()=>{class Re extends Bt{constructor(Ye,Me){super(Ye,Me)}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Lt),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u.qOj]}),Re})(),le=(()=>{class Re extends Bt{constructor(Ye,Me){if(super(Ye,Me),1===Ye._table?._elementRef.nativeElement.nodeType){const an=Ye._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===an||"treegrid"===an?"gridcell":"cell")}}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Lt),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[u.qOj]}),Re})(),Vt=(()=>{class Re extends Bt{constructor(Ye,Me){if(super(Ye,Me),1===Ye._table?._elementRef.nativeElement.nodeType){const an=Ye._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===an||"treegrid"===an?"gridcell":"cell")}}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(Lt),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u.qOj]}),Re})();class be{constructor(){this.tasks=[],this.endTasks=[]}}const ge=new u.OlP("_COALESCED_STYLE_SCHEDULER");let Fe=(()=>{class Re{constructor(Ye){this._ngZone=Ye,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(Ye){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Ye)}scheduleEnd(Ye){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Ye)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new be,this._getScheduleObservable().pipe((0,B.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Ye=this._currentSchedule;this._currentSchedule=new be;for(const Me of Ye.tasks)Me();for(const Me of Ye.endTasks)Me()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,P.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,K.q)(1))}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.LFG(u.R0b))},Re.\u0275prov=u.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),je=(()=>{class Re{constructor(Ye,Me){this.template=Ye,this._differs=Me}ngOnChanges(Ye){if(!this._columnsDiffer){const Me=Ye.columns&&Ye.columns.currentValue||[];this._columnsDiffer=this._differs.find(Me).create(),this._columnsDiffer.diff(Me)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ye){return this instanceof ie?Ye.headerCell.template:this instanceof Xt?Ye.footerCell.template:Ye.cell.template}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4))},Re.\u0275dir=u.lG2({type:Re,features:[u.TTD]}),Re})();class Qt extends je{}const Ue=Dt(Qt);let ie=(()=>{class Re extends Ue{constructor(Ye,Me,an){super(Ye,Me),this._table=an}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Re})();class Wt extends je{}const se=Dt(Wt);let Xt=(()=>{class Re extends se{constructor(Ye,Me,an){super(Ye,Me),this._table=an}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),Re})(),ae=(()=>{class Re extends je{constructor(Ye,Me,an){super(Ye,Me),this._table=an}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(Zt,8))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[u.qOj]}),Re})(),De=(()=>{class Re{constructor(Ye){this._viewContainer=Ye,Re.mostRecentCellOutlet=this}ngOnDestroy(){Re.mostRecentCellOutlet===this&&(Re.mostRecentCellOutlet=null)}}return Re.mostRecentCellOutlet=null,Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","cdkCellOutlet",""]]}),Re})(),nn=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),hn=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),Ce=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),bn=(()=>{class Re{constructor(Ye){this.templateRef=Ye,this._contentClassName="cdk-no-data-row"}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.Rgc))},Re.\u0275dir=u.lG2({type:Re,selectors:[["ng-template","cdkNoDataRow",""]]}),Re})();const Oe=["top","bottom","left","right"];class dn{constructor(Rn,Ye,Me,an,j=!0,Ft=!0,J){this._isNativeHtmlTable=Rn,this._stickCellCss=Ye,this.direction=Me,this._coalescedStyleScheduler=an,this._isBrowser=j,this._needsPositionStickyOnElement=Ft,this._positionListener=J,this._cachedCellWidths=[],this._borderCellCss={top:`${Ye}-border-elem-top`,bottom:`${Ye}-border-elem-bottom`,left:`${Ye}-border-elem-left`,right:`${Ye}-border-elem-right`}}clearStickyPositioning(Rn,Ye){const Me=[];for(const an of Rn)if(an.nodeType===an.ELEMENT_NODE){Me.push(an);for(let j=0;j{for(const an of Me)this._removeStickyStyle(an,Ye)})}updateStickyColumns(Rn,Ye,Me,an=!0){if(!Rn.length||!this._isBrowser||!Ye.some(To=>To)&&!Me.some(To=>To))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const j=Rn[0],Ft=j.children.length,J=this._getCellWidths(j,an),Et=this._getStickyStartColumnPositions(J,Ye),ze=this._getStickyEndColumnPositions(J,Me),Vn=Ye.lastIndexOf(!0),Xi=Me.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const To="rtl"===this.direction,_r=To?"right":"left",fr=To?"left":"right";for(const jr of Rn)for(let Ja=0;JaYe[Ja]?jr:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Xi?[]:J.slice(Xi).map((jr,Ja)=>Me[Ja+Xi]?jr:null).reverse()}))})}stickRows(Rn,Ye,Me){if(!this._isBrowser)return;const an="bottom"===Me?Rn.slice().reverse():Rn,j="bottom"===Me?Ye.slice().reverse():Ye,Ft=[],J=[],Et=[];for(let Vn=0,Xi=0;Vn{for(let Vn=0;Vn{Ye.some(an=>!an)?this._removeStickyStyle(Me,["bottom"]):this._addStickyStyle(Me,"bottom",0,!1)})}_removeStickyStyle(Rn,Ye){for(const an of Ye)Rn.style[an]="",Rn.classList.remove(this._borderCellCss[an]);Oe.some(an=>-1===Ye.indexOf(an)&&Rn.style[an])?Rn.style.zIndex=this._getCalculatedZIndex(Rn):(Rn.style.zIndex="",this._needsPositionStickyOnElement&&(Rn.style.position=""),Rn.classList.remove(this._stickCellCss))}_addStickyStyle(Rn,Ye,Me,an){Rn.classList.add(this._stickCellCss),an&&Rn.classList.add(this._borderCellCss[Ye]),Rn.style[Ye]=`${Me}px`,Rn.style.zIndex=this._getCalculatedZIndex(Rn),this._needsPositionStickyOnElement&&(Rn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rn){const Ye={top:100,bottom:10,left:1,right:1};let Me=0;for(const an of Oe)Rn.style[an]&&(Me+=Ye[an]);return Me?`${Me}`:""}_getCellWidths(Rn,Ye=!0){if(!Ye&&this._cachedCellWidths.length)return this._cachedCellWidths;const Me=[],an=Rn.children;for(let j=0;j0;j--)Ye[j]&&(Me[j]=an,an+=Rn[j]);return Me}}const At=new u.OlP("CDK_SPL");let ue=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","rowOutlet",""]]}),Re})(),ye=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","headerRowOutlet",""]]}),Re})(),Se=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","footerRowOutlet",""]]}),Re})(),vn=(()=>{class Re{constructor(Ye,Me){this.viewContainer=Ye,this.elementRef=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.s_b),u.Y36(u.SBq))},Re.\u0275dir=u.lG2({type:Re,selectors:[["","noDataRowOutlet",""]]}),Re})(),Di=(()=>{class Re{constructor(Ye,Me,an,j,Ft,J,Et,ze,Vn,Xi,To,_r){this._differs=Ye,this._changeDetectorRef=Me,this._elementRef=an,this._dir=Ft,this._platform=Et,this._viewRepeater=ze,this._coalescedStyleScheduler=Vn,this._viewportRuler=Xi,this._stickyPositioningListener=To,this._ngZone=_r,this._onDestroy=new w.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new u.vpe,this.viewChange=new O.X({start:0,end:Number.MAX_VALUE}),j||this._elementRef.nativeElement.setAttribute("role","table"),this._document=J,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Ye){this._trackByFn=Ye}get dataSource(){return this._dataSource}set dataSource(Ye){this._dataSource!==Ye&&this._switchDataSource(Ye)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ye){this._multiTemplateDataRows=(0,v.Ig)(Ye),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Ye){this._fixedLayout=(0,v.Ig)(Ye),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Ye,Me)=>this.trackBy?this.trackBy(Me.dataIndex,Me.data):Me),this._viewportRuler.change().pipe((0,B.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Me=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Me,this._forceRecalculateCellWidths=Me,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ye=>{Ye.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,g.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ye=this._dataDiffer.diff(this._renderRows);if(!Ye)return this._updateNoDataRow(),void this.contentChanged.next();const Me=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ye,Me,(an,j,Ft)=>this._getEmbeddedViewArgs(an.item,Ft),an=>an.item.data,an=>{1===an.operation&&an.context&&this._renderCellTemplateForItem(an.record.item.rowDef,an.context)}),this._updateRowIndexContext(),Ye.forEachIdentityChange(an=>{Me.get(an.currentIndex).context.$implicit=an.item.data}),this._updateNoDataRow(),this._ngZone&&u.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,K.q)(1),(0,B.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Ye){this._customColumnDefs.add(Ye)}removeColumnDef(Ye){this._customColumnDefs.delete(Ye)}addRowDef(Ye){this._customRowDefs.add(Ye)}removeRowDef(Ye){this._customRowDefs.delete(Ye)}addHeaderRowDef(Ye){this._customHeaderRowDefs.add(Ye),this._headerRowDefChanged=!0}removeHeaderRowDef(Ye){this._customHeaderRowDefs.delete(Ye),this._headerRowDefChanged=!0}addFooterRowDef(Ye){this._customFooterRowDefs.add(Ye),this._footerRowDefChanged=!0}removeFooterRowDef(Ye){this._customFooterRowDefs.delete(Ye),this._footerRowDefChanged=!0}setNoDataRow(Ye){this._customNoDataRow=Ye}updateStickyHeaderRowStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),an=this._elementRef.nativeElement.querySelector("thead");an&&(an.style.display=Ye.length?"":"none");const j=this._headerRowDefs.map(Ft=>Ft.sticky);this._stickyStyler.clearStickyPositioning(Ye,["top"]),this._stickyStyler.stickRows(Ye,j,"top"),this._headerRowDefs.forEach(Ft=>Ft.resetStickyChanged())}updateStickyFooterRowStyles(){const Ye=this._getRenderedRows(this._footerRowOutlet),an=this._elementRef.nativeElement.querySelector("tfoot");an&&(an.style.display=Ye.length?"":"none");const j=this._footerRowDefs.map(Ft=>Ft.sticky);this._stickyStyler.clearStickyPositioning(Ye,["bottom"]),this._stickyStyler.stickRows(Ye,j,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,j),this._footerRowDefs.forEach(Ft=>Ft.resetStickyChanged())}updateStickyColumnStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),Me=this._getRenderedRows(this._rowOutlet),an=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ye,...Me,...an],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ye.forEach((j,Ft)=>{this._addStickyColumnStyles([j],this._headerRowDefs[Ft])}),this._rowDefs.forEach(j=>{const Ft=[];for(let J=0;J{this._addStickyColumnStyles([j],this._footerRowDefs[Ft])}),Array.from(this._columnDefsByName.values()).forEach(j=>j.resetStickyChanged())}_getAllRenderRows(){const Ye=[],Me=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let an=0;an{const J=an&&an.has(Ft)?an.get(Ft):[];if(J.length){const Et=J.shift();return Et.dataIndex=Me,Et}return{data:Ye,rowDef:Ft,dataIndex:Me}})}_cacheColumnDefs(){this._columnDefsByName.clear(),bo(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Me=>{this._columnDefsByName.has(Me.name),this._columnDefsByName.set(Me.name,Me)})}_cacheRowDefs(){this._headerRowDefs=bo(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=bo(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=bo(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ye=this._rowDefs.filter(Me=>!Me.when);this._defaultRowDef=Ye[0]}_renderUpdatedColumns(){const Ye=(Ft,J)=>Ft||!!J.getColumnsDiff(),Me=this._rowDefs.reduce(Ye,!1);Me&&this._forceRenderDataRows();const an=this._headerRowDefs.reduce(Ye,!1);an&&this._forceRenderHeaderRows();const j=this._footerRowDefs.reduce(Ye,!1);return j&&this._forceRenderFooterRows(),Me||an||j}_switchDataSource(Ye){this._data=[],(0,g.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ye||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Ye}_observeRenderChanges(){if(!this.dataSource)return;let Ye;(0,g.Z9)(this.dataSource)?Ye=this.dataSource.connect(this):(0,L.b)(this.dataSource)?Ye=this.dataSource:Array.isArray(this.dataSource)&&(Ye=(0,N.of)(this.dataSource)),this._renderChangeSubscription=Ye.pipe((0,B.R)(this._onDestroy)).subscribe(Me=>{this._data=Me||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ye,Me)=>this._renderRow(this._headerRowOutlet,Ye,Me)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ye,Me)=>this._renderRow(this._footerRowOutlet,Ye,Me)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ye,Me){const an=Array.from(Me.columns||[]).map(J=>this._columnDefsByName.get(J)),j=an.map(J=>J.sticky),Ft=an.map(J=>J.stickyEnd);this._stickyStyler.updateStickyColumns(Ye,j,Ft,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ye){const Me=[];for(let an=0;an!j.when||j.when(Me,Ye));else{let j=this._rowDefs.find(Ft=>Ft.when&&Ft.when(Me,Ye))||this._defaultRowDef;j&&an.push(j)}return an}_getEmbeddedViewArgs(Ye,Me){return{templateRef:Ye.rowDef.template,context:{$implicit:Ye.data},index:Me}}_renderRow(Ye,Me,an,j={}){const Ft=Ye.viewContainer.createEmbeddedView(Me.template,j,an);return this._renderCellTemplateForItem(Me,j),Ft}_renderCellTemplateForItem(Ye,Me){for(let an of this._getCellTemplates(Ye))De.mostRecentCellOutlet&&De.mostRecentCellOutlet._viewContainer.createEmbeddedView(an,Me);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ye=this._rowOutlet.viewContainer;for(let Me=0,an=Ye.length;Me{const an=this._columnDefsByName.get(Me);return Ye.extractCellTemplate(an)}):[]}_applyNativeTableSections(){const Ye=this._document.createDocumentFragment(),Me=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const an of Me){const j=this._document.createElement(an.tag);j.setAttribute("role","rowgroup");for(const Ft of an.outlets)j.appendChild(Ft.elementRef.nativeElement);Ye.appendChild(j)}this._elementRef.nativeElement.appendChild(Ye)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ye=(Me,an)=>Me||an.hasStickyChanged();this._headerRowDefs.reduce(Ye,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ye,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ye,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new dn(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,N.of)()).pipe((0,B.R)(this._onDestroy)).subscribe(Me=>{this._stickyStyler.direction=Me,this.updateStickyColumnStyles()})}_getOwnDefs(Ye){return Ye.filter(Me=>!Me._table||Me._table===this)}_updateNoDataRow(){const Ye=this._customNoDataRow||this._noDataRow;if(!Ye)return;const Me=0===this._rowOutlet.viewContainer.length;if(Me===this._isShowingNoDataRow)return;const an=this._noDataRowOutlet.viewContainer;if(Me){const j=an.createEmbeddedView(Ye.templateRef),Ft=j.rootNodes[0];1===j.rootNodes.length&&Ft?.nodeType===this._document.ELEMENT_NODE&&(Ft.setAttribute("role","row"),Ft.classList.add(Ye._contentClassName))}else an.clear();this._isShowingNoDataRow=Me}}return Re.\u0275fac=function(Ye){return new(Ye||Re)(u.Y36(u.ZZ4),u.Y36(u.sBO),u.Y36(u.SBq),u.$8M("role"),u.Y36(d.Is,8),u.Y36(U.K0),u.Y36(t.t4),u.Y36(g.k),u.Y36(ge),u.Y36(T.rL),u.Y36(At,12),u.Y36(u.R0b,8))},Re.\u0275cmp=u.Xpm({type:Re,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ye,Me,an){if(1&Ye&&(u.Suo(an,bn,5),u.Suo(an,Lt,5),u.Suo(an,ae,5),u.Suo(an,ie,5),u.Suo(an,Xt,5)),2&Ye){let j;u.iGM(j=u.CRH())&&(Me._noDataRow=j.first),u.iGM(j=u.CRH())&&(Me._contentColumnDefs=j),u.iGM(j=u.CRH())&&(Me._contentRowDefs=j),u.iGM(j=u.CRH())&&(Me._contentHeaderRowDefs=j),u.iGM(j=u.CRH())&&(Me._contentFooterRowDefs=j)}},viewQuery:function(Ye,Me){if(1&Ye&&(u.Gf(ue,7),u.Gf(ye,7),u.Gf(Se,7),u.Gf(vn,7)),2&Ye){let an;u.iGM(an=u.CRH())&&(Me._rowOutlet=an.first),u.iGM(an=u.CRH())&&(Me._headerRowOutlet=an.first),u.iGM(an=u.CRH())&&(Me._footerRowOutlet=an.first),u.iGM(an=u.CRH())&&(Me._noDataRowOutlet=an.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ye,Me){2&Ye&&u.ekj("cdk-table-fixed-layout",Me.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[u._Bn([{provide:Zt,useExisting:Re},{provide:g.k,useClass:g.yy},{provide:ge,useClass:Fe},{provide:At,useValue:null}])],ngContentSelectors:ct,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Me){1&Ye&&(u.F$t(et),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ue,ye,Se,vn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Re})();function bo(Re,Rn){return Re.concat(Array.from(Rn))}let Bn=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275mod=u.oAB({type:Re}),Re.\u0275inj=u.cJS({imports:[T.Cl]}),Re})();var Qe=f(3238),xn=f(36787),Ve=f(23426),Ne=f(24850);const tn=[[["caption"]],[["colgroup"],["col"]]],ce=["caption","colgroup, col"];let gn=(()=>{class Re extends Di{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Ye,Me){2&Ye&&u.ekj("mat-table-fixed-layout",Me.fixedLayout)},exportAs:["matTable"],features:[u._Bn([{provide:g.k,useClass:g.yy},{provide:Di,useExisting:Re},{provide:Zt,useExisting:Re},{provide:ge,useClass:Fe},{provide:At,useValue:null}]),u.qOj],ngContentSelectors:ce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Me){1&Ye&&(u.F$t(tn),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ue,ye,Se,vn],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Re})(),cn=(()=>{class Re extends Gt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matCellDef",""]],features:[u._Bn([{provide:Gt,useExisting:Re}]),u.qOj]}),Re})(),xe=(()=>{class Re extends Tt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matHeaderCellDef",""]],features:[u._Bn([{provide:Tt,useExisting:Re}]),u.qOj]}),Re})(),It=(()=>{class Re extends Ut{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matFooterCellDef",""]],features:[u._Bn([{provide:Ut,useExisting:Re}]),u.qOj]}),Re})(),Le=(()=>{class Re extends Lt{get name(){return this._name}set name(Ye){this._setNameInput(Ye)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[u._Bn([{provide:Lt,useExisting:Re},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),u.qOj]}),Re})(),zt=(()=>{class Re extends kt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[u.qOj]}),Re})(),we=(()=>{class Re extends le{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[u.qOj]}),Re})(),He=(()=>{class Re extends Vt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[u.qOj]}),Re})(),kn=(()=>{class Re extends ie{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[u._Bn([{provide:ie,useExisting:Re}]),u.qOj]}),Re})(),Ei=(()=>{class Re extends Xt{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[u._Bn([{provide:Xt,useExisting:Re}]),u.qOj]}),Re})(),Bi=(()=>{class Re extends ae{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275dir=u.lG2({type:Re,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[u._Bn([{provide:ae,useExisting:Re}]),u.qOj]}),Re})(),un=(()=>{class Re extends nn{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[u._Bn([{provide:nn,useExisting:Re}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),_n=(()=>{class Re extends hn{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[u._Bn([{provide:hn,useExisting:Re}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),Ke=(()=>{class Re extends Ce{}return Re.\u0275fac=function(){let Rn;return function(Me){return(Rn||(Rn=u.n5z(Re)))(Me||Re)}}(),Re.\u0275cmp=u.Xpm({type:Re,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[u._Bn([{provide:Ce,useExisting:Re}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Me){1&Ye&&u.GkF(0,0)},dependencies:[De],encapsulation:2}),Re})(),Co=(()=>{class Re{}return Re.\u0275fac=function(Ye){return new(Ye||Re)},Re.\u0275mod=u.oAB({type:Re}),Re.\u0275inj=u.cJS({imports:[Bn,Qe.BQ,Qe.BQ]}),Re})();class ma extends g.o2{constructor(Rn=[]){super(),this._renderData=new O.X([]),this._filter=new O.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Ye,Me)=>{const an=Ye[Me];if((0,v.t6)(an)){const j=Number(an);return j<9007199254740991?j:an}return an},this.sortData=(Ye,Me)=>{const an=Me.active,j=Me.direction;return an&&""!=j?Ye.sort((Ft,J)=>{let Et=this.sortingDataAccessor(Ft,an),ze=this.sortingDataAccessor(J,an);const Vn=typeof Et,Xi=typeof ze;Vn!==Xi&&("number"===Vn&&(Et+=""),"number"===Xi&&(ze+=""));let To=0;return null!=Et&&null!=ze?Et>ze?To=1:Et{const an=Object.keys(Ye).reduce((Ft,J)=>Ft+Ye[J]+"\u25ec","").toLowerCase(),j=Me.trim().toLowerCase();return-1!=an.indexOf(j)},this._data=new O.X(Rn),this._updateChangeSubscription()}get data(){return this._data.value}set data(Rn){Rn=Array.isArray(Rn)?Rn:[],this._data.next(Rn),this._renderChangesSubscription||this._filterData(Rn)}get filter(){return this._filter.value}set filter(Rn){this._filter.next(Rn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Rn){this._sort=Rn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Rn){this._paginator=Rn,this._updateChangeSubscription()}_updateChangeSubscription(){const Rn=this._sort?(0,xn.T)(this._sort.sortChange,this._sort.initialized):(0,N.of)(null),Ye=this._paginator?(0,xn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,N.of)(null),an=(0,Ve.aj)([this._data,this._filter]).pipe((0,Ne.U)(([J])=>this._filterData(J))),j=(0,Ve.aj)([an,Rn]).pipe((0,Ne.U)(([J])=>this._orderData(J))),Ft=(0,Ve.aj)([j,Ye]).pipe((0,Ne.U)(([J])=>this._pageData(J)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Ft.subscribe(J=>this._renderData.next(J))}_filterData(Rn){return this.filteredData=null==this.filter||""===this.filter?Rn:Rn.filter(Ye=>this.filterPredicate(Ye,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Rn){return this.sort?this.sortData(Rn.slice(),this.sort):Rn}_pageData(Rn){if(!this.paginator)return Rn;const Ye=this.paginator.pageIndex*this.paginator.pageSize;return Rn.slice(Ye,Ye+this.paginator.pageSize)}_updatePaginator(Rn){Promise.resolve().then(()=>{const Ye=this.paginator;if(Ye&&(Ye.length=Rn,Ye.pageIndex>0)){const Me=Math.ceil(Ye.length/Ye.pageSize)-1||0,an=Math.min(Ye.pageIndex,Me);an!==Ye.pageIndex&&(Ye.pageIndex=an,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Ta extends ma{}},3848:(tt,W,f)=>{"use strict";f.d(W,{BU:()=>Be,Nh:()=>xe,Nj:()=>gn,SP:()=>Ne,uD:()=>_i,uX:()=>ee});var u=f(12687),d=f(49643),v=f(84080),g=f(36895),t=f(94650),T=f(3238),U=f(72986),w=f(1059),P=f(75778),O=f(7625),L=f(87545),N=f(31307),B=f(92198),K=f(8929),et=f(42654),ct=f(23753),lt=f(21086),Ct=f(36787),Dt=f(68896),Zt=f(56498),Rt=f(98723),Gt=f(40445),Tt=f(37340),Ut=f(21281),bt=f(67376),mt=f(83353),Lt=f(29521);function Bt(It,Le){1&It&&t.Hsn(0)}const kt=["*"];function le(It,Le){}const Vt=function(It){return{animationDuration:It}},be=function(It,Le){return{value:It,params:Le}},ge=["tabListContainer"],Fe=["tabList"],qe=["tabListInner"],je=["nextPaginator"],Qt=["previousPaginator"],Ue=["tabBodyWrapper"],ie=["tabHeader"];function Wt(It,Le){}function se(It,Le){if(1&It&&t.YNc(0,Wt,0,0,"ng-template",10),2&It){const zt=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",zt.templateLabel)}}function Xt(It,Le){if(1&It&&t._uU(0),2&It){const zt=t.oxw().$implicit;t.Oqu(zt.textLabel)}}function ae(It,Le){if(1&It){const zt=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const He=t.CHM(zt),kn=He.$implicit,Ei=He.index,Bi=t.oxw(),un=t.MAs(1);return t.KtG(Bi._handleClick(kn,un,Ei))})("cdkFocusChange",function(He){const Ei=t.CHM(zt).index,Bi=t.oxw();return t.KtG(Bi._tabFocusChanged(He,Ei))}),t.TgZ(1,"div",7),t.YNc(2,se,1,1,"ng-template",8),t.YNc(3,Xt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&It){const zt=Le.$implicit,we=Le.index,He=t.MAs(4),kn=t.oxw();t.ekj("mat-tab-label-active",kn.selectedIndex===we),t.Q6J("id",kn._getTabLabelId(we))("ngClass",zt.labelClass)("disabled",zt.disabled)("matRippleDisabled",zt.disabled||kn.disableRipple),t.uIk("tabIndex",kn._getTabIndex(zt,we))("aria-posinset",we+1)("aria-setsize",kn._tabs.length)("aria-controls",kn._getTabContentId(we))("aria-selected",kn.selectedIndex===we)("aria-label",zt.ariaLabel||null)("aria-labelledby",!zt.ariaLabel&&zt.ariaLabelledby?zt.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",zt.templateLabel)("ngIfElse",He)}}function De(It,Le){if(1&It){const zt=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(zt);const He=t.oxw();return t.KtG(He._removeTabBodyWrapperHeight())})("_onCentering",function(He){t.CHM(zt);const kn=t.oxw();return t.KtG(kn._setTabBodyWrapperHeight(He))}),t.qZA()}if(2&It){const zt=Le.$implicit,we=Le.index,He=t.oxw();t.ekj("mat-tab-body-active",He.selectedIndex===we),t.Q6J("id",He._getTabContentId(we))("ngClass",zt.bodyClass)("content",zt.content)("position",zt.position)("origin",zt.origin)("animationDuration",He.animationDuration)("preserveContent",He.preserveContent),t.uIk("tabindex",null!=He.contentTabIndex&&He.selectedIndex===we?He.contentTabIndex:null)("aria-labelledby",He._getTabLabelId(we))}}const nn=["mat-tab-nav-bar",""],hn=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ce(){return Le=>({left:Le?(Le.offsetLeft||0)+"px":"0",width:Le?(Le.offsetWidth||0)+"px":"0"})}});let bn=(()=>{class It{constructor(zt,we,He,kn){this._elementRef=zt,this._ngZone=we,this._inkBarPositioner=He,this._animationMode=kn}alignToElement(zt){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(()=>{const we=this._inkBarPositioner(zt),He=this._elementRef.nativeElement;He.style.left=we.left,He.style.width=we.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(hn),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(zt,we){2&zt&&t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)}}),It})();const Oe=new t.OlP("MatTabContent"),Pn=new t.OlP("MatTabLabel"),ii=new t.OlP("MAT_TAB");let _i=(()=>{class It extends v.ig{constructor(zt,we,He){super(zt,we),this._closestTab=He}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(ii,8))},It.\u0275dir=t.lG2({type:It,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Pn,useExisting:It}]),t.qOj]}),It})();const oi=(0,T.Id)(class{}),We=new t.OlP("MAT_TAB_GROUP");let ee=(()=>{class It extends oi{constructor(zt,we){super(),this._viewContainerRef=zt,this._closestTabGroup=we,this.textLabel="",this._contentPortal=null,this._stateChanges=new K.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(zt){this._setTemplateLabelInput(zt)}get content(){return this._contentPortal}ngOnChanges(zt){(zt.hasOwnProperty("textLabel")||zt.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(zt){zt&&zt._closestTab===this&&(this._templateLabel=zt)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.s_b),t.Y36(We,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab"]],contentQueries:function(zt,we,He){if(1&zt&&(t.Suo(He,Pn,5),t.Suo(He,Oe,7,t.Rgc)),2&zt){let kn;t.iGM(kn=t.CRH())&&(we.templateLabel=kn.first),t.iGM(kn=t.CRH())&&(we._explicitContent=kn.first)}},viewQuery:function(zt,we){if(1&zt&&t.Gf(t.Rgc,7),2&zt){let He;t.iGM(He=t.CRH())&&(we._implicitContent=He.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:ii,useExisting:It}]),t.qOj,t.TTD],ngContentSelectors:kt,decls:1,vars:0,template:function(zt,we){1&zt&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),It})();const ot={translateTab:(0,Tt.X$)("translateTab",[(0,Tt.SB)("center, void, left-origin-center, right-origin-center",(0,Tt.oB)({transform:"none"})),(0,Tt.SB)("left",(0,Tt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Tt.SB)("right",(0,Tt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Tt.eR)("* => left, * => right, left => center, right => center",(0,Tt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Tt.eR)("void => left-origin-center",[(0,Tt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Tt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Tt.eR)("void => right-origin-center",[(0,Tt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Tt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let X=(()=>{class It extends v.Pl{constructor(zt,we,He,kn){super(zt,we,kn),this._host=He,this._centeringSub=et.w.EMPTY,this._leavingSub=et.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(zt=>{zt&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Ht)),t.Y36(g.K0))},It.\u0275dir=t.lG2({type:It,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),It})(),At=(()=>{class It{constructor(zt,we,He){this._elementRef=zt,this._dir=we,this._dirChangeSubscription=et.w.EMPTY,this._translateTabComplete=new K.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,we&&(this._dirChangeSubscription=we.change.subscribe(kn=>{this._computePositionAnimationState(kn),He.markForCheck()})),this._translateTabComplete.pipe((0,P.x)((kn,Ei)=>kn.fromState===Ei.fromState&&kn.toState===Ei.toState)).subscribe(kn=>{this._isCenterPosition(kn.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(kn.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(zt){this._positionIndex=zt,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(zt){const we=this._isCenterPosition(zt.toState);this._beforeCentering.emit(we),we&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(zt){return"center"==zt||"left-origin-center"==zt||"right-origin-center"==zt}_computePositionAnimationState(zt=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==zt?"left":"right":this._positionIndex>0?"ltr"==zt?"right":"left":"center"}_computePositionFromOrigin(zt){const we=this._getLayoutDirection();return"ltr"==we&&zt<=0||"rtl"==we&&zt>0?"left-origin-center":"right-origin-center"}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(Gt.Is,8),t.Y36(t.sBO))},It.\u0275dir=t.lG2({type:It,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),It})(),Ht=(()=>{class It extends At{constructor(zt,we,He){super(zt,we,He)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(Gt.Is,8),t.Y36(t.sBO))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab-body"]],viewQuery:function(zt,we){if(1&zt&&t.Gf(v.Pl,5),2&zt){let He;t.iGM(He=t.CRH())&&(we._portalHost=He.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(zt,we){1&zt&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(kn){return we._onTranslateTabStarted(kn)})("@translateTab.done",function(kn){return we._translateTabComplete.next(kn)}),t.YNc(2,le,0,0,"ng-template",2),t.qZA()),2&zt&&t.Q6J("@translateTab",t.WLB(3,be,we._position,t.VKq(1,Vt,we.animationDuration)))},dependencies:[X],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[ot.translateTab]}}),It})();const ue=new t.OlP("MAT_TABS_CONFIG"),ye=(0,T.Id)(class{});let Se=(()=>{class It extends ye{constructor(zt){super(),this.elementRef=zt}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq))},It.\u0275dir=t.lG2({type:It,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(zt,we){2&zt&&(t.uIk("aria-disabled",!!we.disabled),t.ekj("mat-tab-disabled",we.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),It})();const vn=(0,mt.i$)({passive:!0});let bo=(()=>{class It{constructor(zt,we,He,kn,Ei,Bi,un){this._elementRef=zt,this._changeDetectorRef=we,this._viewportRuler=He,this._dir=kn,this._ngZone=Ei,this._platform=Bi,this._animationMode=un,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new K.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new K.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,Ei.runOutsideAngular(()=>{(0,ct.R)(zt.nativeElement,"mouseleave").pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,Ut.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){zt=(0,Ut.su)(zt),this._selectedIndex!=zt&&(this._selectedIndexChanged=!0,this._selectedIndex=zt,this._keyManager&&this._keyManager.updateActiveItem(zt))}ngAfterViewInit(){(0,ct.R)(this._previousPaginator.nativeElement,"touchstart",vn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ct.R)(this._nextPaginator.nativeElement,"touchstart",vn).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const zt=this._dir?this._dir.change:(0,lt.of)("ltr"),we=this._viewportRuler.change(150),He=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new u.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(He),(0,Ct.T)(zt,we,this._items.changes,this._itemsResized()).pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),He()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,O.R)(this._destroyed)).subscribe(kn=>{this.indexFocused.emit(kn),this._setTabFocus(kn)})}_itemsResized(){return"function"!=typeof ResizeObserver?Dt.E:this._items.changes.pipe((0,w.O)(this._items),(0,L.w)(zt=>new Zt.y(we=>this._ngZone.runOutsideAngular(()=>{const He=new ResizeObserver(kn=>we.next(kn));return zt.forEach(kn=>He.observe(kn.elementRef.nativeElement)),()=>{He.disconnect()}}))),(0,N.T)(1),(0,B.h)(zt=>zt.some(we=>we.contentRect.width>0&&we.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(zt){if(!(0,Lt.Vb)(zt))switch(zt.keyCode){case Lt.K5:case Lt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(zt));break;default:this._keyManager.onKeydown(zt)}}_onContentChanges(){const zt=this._elementRef.nativeElement.textContent;zt!==this._currentTextContent&&(this._currentTextContent=zt||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(zt){!this._isValidIndex(zt)||this.focusIndex===zt||!this._keyManager||this._keyManager.setActiveItem(zt)}_isValidIndex(zt){if(!this._items)return!0;const we=this._items?this._items.toArray()[zt]:null;return!!we&&!we.disabled}_setTabFocus(zt){if(this._showPaginationControls&&this._scrollToLabel(zt),this._items&&this._items.length){this._items.toArray()[zt].focus();const we=this._tabListContainer.nativeElement;we.scrollLeft="ltr"==this._getLayoutDirection()?0:we.scrollWidth-we.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const zt=this.scrollDistance,we="ltr"===this._getLayoutDirection()?-zt:zt;this._tabList.nativeElement.style.transform=`translateX(${Math.round(we)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(zt){this._scrollTo(zt)}_scrollHeader(zt){return this._scrollTo(this._scrollDistance+("before"==zt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(zt){this._stopInterval(),this._scrollHeader(zt)}_scrollToLabel(zt){if(this.disablePagination)return;const we=this._items?this._items.toArray()[zt]:null;if(!we)return;const He=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:kn,offsetWidth:Ei}=we.elementRef.nativeElement;let Bi,un;"ltr"==this._getLayoutDirection()?(Bi=kn,un=Bi+Ei):(un=this._tabListInner.nativeElement.offsetWidth-kn,Bi=un-Ei);const _n=this.scrollDistance,Ke=this.scrollDistance+He;Bi<_n?this.scrollDistance-=_n-Bi+60:un>Ke&&(this.scrollDistance+=un-Ke+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const zt=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;zt||(this.scrollDistance=0),zt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=zt}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const zt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,we=zt?zt.elementRef.nativeElement:null;we?this._inkBar.alignToElement(we):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(zt,we){we&&null!=we.button&&0!==we.button||(this._stopInterval(),(0,Rt.H)(650,100).pipe((0,O.R)((0,Ct.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:He,distance:kn}=this._scrollHeader(zt);(0===kn||kn>=He)&&this._stopInterval()}))}_scrollTo(zt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const we=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(we,zt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:we,distance:this._scrollDistance}}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{disablePagination:"disablePagination"}}),It})(),hi=(()=>{class It extends bo{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,we,He,kn,Ei,Bi,un),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,Ut.Ig)(zt)}_itemSelected(zt){zt.preventDefault()}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),It})(),zn=(()=>{class It extends hi{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,we,He,kn,Ei,Bi,un)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab-header"]],contentQueries:function(zt,we,He){if(1&zt&&t.Suo(He,Se,4),2&zt){let kn;t.iGM(kn=t.CRH())&&(we._items=kn)}},viewQuery:function(zt,we){if(1&zt&&(t.Gf(bn,7),t.Gf(ge,7),t.Gf(Fe,7),t.Gf(qe,7),t.Gf(je,5),t.Gf(Qt,5)),2&zt){let He;t.iGM(He=t.CRH())&&(we._inkBar=He.first),t.iGM(He=t.CRH())&&(we._tabListContainer=He.first),t.iGM(He=t.CRH())&&(we._tabList=He.first),t.iGM(He=t.CRH())&&(we._tabListInner=He.first),t.iGM(He=t.CRH())&&(we._nextPaginator=He.first),t.iGM(He=t.CRH())&&(we._previousPaginator=He.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(zt,we){2&zt&&t.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:kt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(zt,we){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(kn){return we._handlePaginatorPress("before",kn)})("touchend",function(){return we._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(kn){return we._handleKeydown(kn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(kn){return we._handlePaginatorPress("after",kn)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),t.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),t.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},dependencies:[T.wG,d.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),It})(),Bn=0;class Qe{}const xn=(0,T.pj)((0,T.Kr)(class{constructor(It){this._elementRef=It}}),"primary");let Ve=(()=>{class It extends xn{constructor(zt,we,He,kn){super(zt),this._changeDetectorRef=we,this._animationMode=kn,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=et.w.EMPTY,this._tabLabelSubscription=et.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Bn++,this.animationDuration=He&&He.animationDuration?He.animationDuration:"500ms",this.disablePagination=!(!He||null==He.disablePagination)&&He.disablePagination,this.dynamicHeight=!(!He||null==He.dynamicHeight)&&He.dynamicHeight,this.contentTabIndex=He?.contentTabIndex??null,this.preserveContent=!!He?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(zt){this._dynamicHeight=(0,Ut.Ig)(zt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(zt){this._indexToSelect=(0,Ut.su)(zt,null)}get animationDuration(){return this._animationDuration}set animationDuration(zt){this._animationDuration=/^\d+$/.test(zt+"")?zt+"ms":zt}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(zt){this._contentTabIndex=(0,Ut.su)(zt,null)}get disablePagination(){return this._disablePagination}set disablePagination(zt){this._disablePagination=(0,Ut.Ig)(zt)}get preserveContent(){return this._preserveContent}set preserveContent(zt){this._preserveContent=(0,Ut.Ig)(zt)}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const we=this._elementRef.nativeElement;we.classList.remove(`mat-background-${this.backgroundColor}`),zt&&we.classList.add(`mat-background-${zt}`),this._backgroundColor=zt}ngAfterContentChecked(){const zt=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=zt){const we=null==this._selectedIndex;if(!we){this.selectedTabChange.emit(this._createChangeEvent(zt));const He=this._tabBodyWrapper.nativeElement;He.style.minHeight=He.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((He,kn)=>He.isActive=kn===zt),we||(this.selectedIndexChange.emit(zt),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((we,He)=>{we.position=He-zt,null!=this._selectedIndex&&0==we.position&&!we.origin&&(we.origin=zt-this._selectedIndex)}),this._selectedIndex!==zt&&(this._selectedIndex=zt,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const zt=this._clampTabIndex(this._indexToSelect);if(zt===this._selectedIndex){const we=this._tabs.toArray();let He;for(let kn=0;kn{we[zt].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(zt))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(zt=>{this._tabs.reset(zt.filter(we=>we._closestTabGroup===this||!we._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(zt){const we=this._tabHeader;we&&(we.focusIndex=zt)}_focusChanged(zt){this._lastFocusedTabIndex=zt,this.focusChange.emit(this._createChangeEvent(zt))}_createChangeEvent(zt){const we=new Qe;return we.index=zt,this._tabs&&this._tabs.length&&(we.tab=this._tabs.toArray()[zt]),we}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ct.T)(...this._tabs.map(zt=>zt._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(zt){return Math.min(this._tabs.length-1,Math.max(zt||0,0))}_getTabLabelId(zt){return`mat-tab-label-${this._groupId}-${zt}`}_getTabContentId(zt){return`mat-tab-content-${this._groupId}-${zt}`}_setTabBodyWrapperHeight(zt){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const we=this._tabBodyWrapper.nativeElement;we.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(we.style.height=zt+"px")}_removeTabBodyWrapperHeight(){const zt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=zt.clientHeight,zt.style.height="",this.animationDone.emit()}_handleClick(zt,we,He){zt.disabled||(this.selectedIndex=we.focusIndex=He)}_getTabIndex(zt,we){return zt.disabled?null:we===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(zt,we){zt&&"mouse"!==zt&&"touch"!==zt&&(this._tabHeader.focusIndex=we)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ue,8),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),It})(),Ne=(()=>{class It extends Ve{constructor(zt,we,He,kn){super(zt,we,He,kn)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ue,8),t.Y36(t.QbO,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["mat-tab-group"]],contentQueries:function(zt,we,He){if(1&zt&&t.Suo(He,ee,5),2&zt){let kn;t.iGM(kn=t.CRH())&&(we._allTabs=kn)}},viewQuery:function(zt,we){if(1&zt&&(t.Gf(Ue,5),t.Gf(ie,5)),2&zt){let He;t.iGM(He=t.CRH())&&(we._tabBodyWrapper=He.first),t.iGM(He=t.CRH())&&(we._tabHeader=He.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(zt,we){2&zt&&t.ekj("mat-tab-group-dynamic-height",we.dynamicHeight)("mat-tab-group-inverted-header","below"===we.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:We,useExisting:It}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(zt,we){1&zt&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(kn){return we._focusChanged(kn)})("selectFocusedIndex",function(kn){return we.selectedIndex=kn}),t.YNc(2,ae,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,De,1,11,"mat-tab-body",5),t.qZA()),2&zt&&(t.Q6J("selectedIndex",we.selectedIndex||0)("disableRipple",we.disableRipple)("disablePagination",we.disablePagination),t.xp6(2),t.Q6J("ngForOf",we._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),t.xp6(2),t.Q6J("ngForOf",we._tabs))},dependencies:[g.mk,g.sg,g.O5,v.Pl,T.wG,u.kH,Se,Ht,zn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),It})(),tn=0,ce=(()=>{class It extends bo{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,kn,Ei,we,He,Bi,un),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(zt){const we=this._elementRef.nativeElement.classList;we.remove(`mat-background-${this.backgroundColor}`),zt&&we.add(`mat-background-${zt}`),this._backgroundColor=zt}get disableRipple(){return this._disableRipple}set disableRipple(zt){this._disableRipple=(0,Ut.Ig)(zt)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,O.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const zt=this._items.toArray();for(let we=0;we{class It extends ce{constructor(zt,we,He,kn,Ei,Bi,un){super(zt,we,He,kn,Ei,Bi,un)}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(t.SBq),t.Y36(Gt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(bt.rL),t.Y36(mt.t4),t.Y36(t.QbO,8))},It.\u0275cmp=t.Xpm({type:It,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(zt,we,He){if(1&zt&&t.Suo(He,gn,5),2&zt){let kn;t.iGM(kn=t.CRH())&&(we._items=kn)}},viewQuery:function(zt,we){if(1&zt&&(t.Gf(bn,7),t.Gf(ge,7),t.Gf(Fe,7),t.Gf(qe,7),t.Gf(je,5),t.Gf(Qt,5)),2&zt){let He;t.iGM(He=t.CRH())&&(we._inkBar=He.first),t.iGM(He=t.CRH())&&(we._tabListContainer=He.first),t.iGM(He=t.CRH())&&(we._tabList=He.first),t.iGM(He=t.CRH())&&(we._tabListInner=He.first),t.iGM(He=t.CRH())&&(we._nextPaginator=He.first),t.iGM(He=t.CRH())&&(we._previousPaginator=He.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(zt,we){2&zt&&(t.uIk("role",we._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())("mat-primary","warn"!==we.color&&"accent"!==we.color)("mat-accent","accent"===we.color)("mat-warn","warn"===we.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:nn,ngContentSelectors:kt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(zt,we){1&zt&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(kn){return we._handlePaginatorPress("before",kn)})("touchend",function(){return we._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(kn){return we._handleKeydown(kn)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(kn){return we._handlePaginatorPress("after",kn)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&zt&&(t.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),t.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),t.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},dependencies:[T.wG,d.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),It})();const oe=(0,T.sb)((0,T.Kr)((0,T.Id)(class{})));let rn=(()=>{class It extends oe{constructor(zt,we,He,kn,Ei,Bi){super(),this._tabNavBar=zt,this.elementRef=we,this._focusMonitor=Ei,this._isActive=!1,this.id="mat-tab-link-"+tn++,this.rippleConfig=He||{},this.tabIndex=parseInt(kn)||0,"NoopAnimations"===Bi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(zt){const we=(0,Ut.Ig)(zt);we!==this._isActive&&(this._isActive=we,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(zt){this._tabNavBar.tabPanel&&zt.keyCode===Lt.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(ce),t.Y36(t.SBq),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,inputs:{active:"active",id:"id"},features:[t.qOj]}),It})(),gn=(()=>{class It extends rn{constructor(zt,we,He,kn,Ei,Bi,un,_n){super(zt,we,Ei,Bi,un,_n),this._tabLinkRipple=new T.IR(this,He,we,kn),this._tabLinkRipple.setupTriggerEvents(we.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return It.\u0275fac=function(zt){return new(zt||It)(t.Y36(Be),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(mt.t4),t.Y36(T.Y2,8),t.$8M("tabindex"),t.Y36(u.tE),t.Y36(t.QbO,8))},It.\u0275dir=t.lG2({type:It,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(zt,we){1&zt&&t.NdJ("focus",function(){return we._handleFocus()})("keydown",function(kn){return we._handleKeydown(kn)}),2&zt&&(t.uIk("aria-controls",we._getAriaControls())("aria-current",we._getAriaCurrent())("aria-disabled",we.disabled)("aria-selected",we._getAriaSelected())("id",we.id)("tabIndex",we._getTabIndex())("role",we._getRole()),t.ekj("mat-tab-disabled",we.disabled)("mat-tab-label-active",we.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),It})(),xe=(()=>{class It{}return It.\u0275fac=function(zt){return new(zt||It)},It.\u0275mod=t.oAB({type:It}),It.\u0275inj=t.cJS({imports:[g.ez,T.BQ,v.eL,T.si,d.Q8,u.rt,T.BQ]}),It})()},83683:(tt,W,f)=>{"use strict";f.d(W,{Ye:()=>P,g0:()=>L});var u=f(94650),d=f(3238),v=f(83353),g=f(36895);const t=["*",[["mat-toolbar-row"]]],T=["*","mat-toolbar-row"],U=(0,d.pj)(class{constructor(N){this._elementRef=N}});let w=(()=>{class N{}return N.\u0275fac=function(K){return new(K||N)},N.\u0275dir=u.lG2({type:N,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),N})(),P=(()=>{class N extends U{constructor(K,et,ct){super(K),this._platform=et,this._document=ct}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return N.\u0275fac=function(K){return new(K||N)(u.Y36(u.SBq),u.Y36(v.t4),u.Y36(g.K0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["mat-toolbar"]],contentQueries:function(K,et,ct){if(1&K&&u.Suo(ct,w,5),2&K){let lt;u.iGM(lt=u.CRH())&&(et._toolbarRows=lt)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(K,et){2&K&&u.ekj("mat-toolbar-multiple-rows",et._toolbarRows.length>0)("mat-toolbar-single-row",0===et._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[u.qOj],ngContentSelectors:T,decls:2,vars:0,template:function(K,et){1&K&&(u.F$t(t),u.Hsn(0),u.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),N})(),L=(()=>{class N{}return N.\u0275fac=function(K){return new(K||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[d.BQ,d.BQ]}),N})()},10266:(tt,W,f)=>{"use strict";f.d(W,{AV:()=>ge,gM:()=>le});var u=f(98184),d=f(12687),v=f(36895),g=f(94650),t=f(3238),T=f(67376),U=f(40445),w=f(21281),P=f(29521),O=f(62289),L=f(83353),N=f(84080),B=f(8929),K=f(7625),et=f(72986);f(37340);const lt=["tooltip"],Zt="tooltip-panel",Rt=(0,L.i$)({passive:!0}),Ut=new g.OlP("mat-tooltip-scroll-strategy"),mt={provide:Ut,deps:[u.aV],useFactory:function bt(qe){return()=>qe.scrollStrategies.reposition({scrollThrottle:20})}},Lt=new g.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let kt=(()=>{class qe{constructor(Qt,Ue,ie,Wt,se,Xt,ae,De,nn,hn,Ce,bn){this._overlay=Qt,this._elementRef=Ue,this._scrollDispatcher=ie,this._viewContainerRef=Wt,this._ngZone=se,this._platform=Xt,this._ariaDescriber=ae,this._focusMonitor=De,this._dir=hn,this._defaultOptions=Ce,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new B.xQ,this._scrollStrategy=nn,this._document=bn,Ce&&(Ce.position&&(this.position=Ce.position),Ce.touchGestures&&(this.touchGestures=Ce.touchGestures)),hn.change.pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Qt){Qt!==this._position&&(this._position=Qt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Qt){this._disabled=(0,w.Ig)(Qt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Qt){this._showDelay=(0,w.su)(Qt)}get hideDelay(){return this._hideDelay}set hideDelay(Qt){this._hideDelay=(0,w.su)(Qt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Qt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Qt?String(Qt).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Qt){this._tooltipClass=Qt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,K.R)(this._destroyed)).subscribe(Qt=>{Qt?"keyboard"===Qt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Qt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ue,ie])=>{Qt.removeEventListener(Ue,ie,Rt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Qt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Qt)}show(Qt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Ue=this._createOverlay();this._detach(),this._portal=this._portal||new N.C5(this._tooltipComponent,this._viewContainerRef);const ie=this._tooltipInstance=Ue.attach(this._portal).instance;ie._triggerElement=this._elementRef.nativeElement,ie._mouseLeaveHideDelay=this._hideDelay,ie.afterHidden().pipe((0,K.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ie.show(Qt)}hide(Qt=this.hideDelay){const Ue=this._tooltipInstance;Ue&&(Ue.isVisible()?Ue.hide(Qt):(Ue._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Qt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ue=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Qt);return Ue.positionChanges.pipe((0,K.R)(this._destroyed)).subscribe(ie=>{this._updateCurrentPositionClass(ie.connectionPair),this._tooltipInstance&&ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ue,panelClass:`${this._cssClassPrefix}-${Zt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,K.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,K.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,K.R)(this._destroyed)).subscribe(ie=>{this._isTooltipVisible()&&ie.keyCode===P.hY&&!(0,P.Vb)(ie)&&(ie.preventDefault(),ie.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Qt){const Ue=Qt.getConfig().positionStrategy,ie=this._getOrigin(),Wt=this._getOverlayPosition();Ue.withPositions([this._addOffset({...ie.main,...Wt.main}),this._addOffset({...ie.fallback,...Wt.fallback})])}_addOffset(Qt){return Qt}_getOrigin(){const Qt=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ie;"above"==Ue||"below"==Ue?ie={originX:"center",originY:"above"==Ue?"top":"bottom"}:"before"==Ue||"left"==Ue&&Qt||"right"==Ue&&!Qt?ie={originX:"start",originY:"center"}:("after"==Ue||"right"==Ue&&Qt||"left"==Ue&&!Qt)&&(ie={originX:"end",originY:"center"});const{x:Wt,y:se}=this._invertPosition(ie.originX,ie.originY);return{main:ie,fallback:{originX:Wt,originY:se}}}_getOverlayPosition(){const Qt=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ie;"above"==Ue?ie={overlayX:"center",overlayY:"bottom"}:"below"==Ue?ie={overlayX:"center",overlayY:"top"}:"before"==Ue||"left"==Ue&&Qt||"right"==Ue&&!Qt?ie={overlayX:"end",overlayY:"center"}:("after"==Ue||"right"==Ue&&Qt||"left"==Ue&&!Qt)&&(ie={overlayX:"start",overlayY:"center"});const{x:Wt,y:se}=this._invertPosition(ie.overlayX,ie.overlayY);return{main:ie,fallback:{overlayX:Wt,overlayY:se}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,et.q)(1),(0,K.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Qt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Qt,this._tooltipInstance._markForCheck())}_invertPosition(Qt,Ue){return"above"===this.position||"below"===this.position?"top"===Ue?Ue="bottom":"bottom"===Ue&&(Ue="top"):"end"===Qt?Qt="start":"start"===Qt&&(Qt="end"),{x:Qt,y:Ue}}_updateCurrentPositionClass(Qt){const{overlayY:Ue,originX:ie,originY:Wt}=Qt;let se;if(se="center"===Ue?this._dir&&"rtl"===this._dir.value?"end"===ie?"left":"right":"start"===ie?"left":"right":"bottom"===Ue&&"top"===Wt?"above":"below",se!==this._currentPosition){const Xt=this._overlayRef;if(Xt){const ae=`${this._cssClassPrefix}-${Zt}-`;Xt.removePanelClass(ae+this._currentPosition),Xt.addPanelClass(ae+se)}this._currentPosition=se}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Qt=[];if(this._platformSupportsMouseEvents())Qt.push(["mouseleave",Ue=>{const ie=Ue.relatedTarget;(!ie||!this._overlayRef?.overlayElement.contains(ie))&&this.hide()}],["wheel",Ue=>this._wheelListener(Ue)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ue=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Qt.push(["touchend",Ue],["touchcancel",Ue])}this._addListeners(Qt),this._passiveListeners.push(...Qt)}_addListeners(Qt){Qt.forEach(([Ue,ie])=>{this._elementRef.nativeElement.addEventListener(Ue,ie,Rt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Qt){if(this._isTooltipVisible()){const Ue=this._document.elementFromPoint(Qt.clientX,Qt.clientY),ie=this._elementRef.nativeElement;Ue!==ie&&!ie.contains(Ue)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Qt=this.touchGestures;if("off"!==Qt){const Ue=this._elementRef.nativeElement,ie=Ue.style;("on"===Qt||"INPUT"!==Ue.nodeName&&"TEXTAREA"!==Ue.nodeName)&&(ie.userSelect=ie.msUserSelect=ie.webkitUserSelect=ie.MozUserSelect="none"),("on"===Qt||!Ue.draggable)&&(ie.webkitUserDrag="none"),ie.touchAction="none",ie.webkitTapHighlightColor="transparent"}}}return qe.\u0275fac=function(Qt){g.$Z()},qe.\u0275dir=g.lG2({type:qe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),qe})(),le=(()=>{class qe extends kt{constructor(Qt,Ue,ie,Wt,se,Xt,ae,De,nn,hn,Ce,bn){super(Qt,Ue,ie,Wt,se,Xt,ae,De,nn,hn,Ce,bn),this._tooltipComponent=be}}return qe.\u0275fac=function(Qt){return new(Qt||qe)(g.Y36(u.aV),g.Y36(g.SBq),g.Y36(T.mF),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(L.t4),g.Y36(d.$s),g.Y36(d.tE),g.Y36(Ut),g.Y36(U.Is,8),g.Y36(Lt,8),g.Y36(v.K0))},qe.\u0275dir=g.lG2({type:qe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[g.qOj]}),qe})(),Vt=(()=>{class qe{constructor(Qt,Ue){this._changeDetectorRef=Qt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new B.xQ,this._animationsDisabled="NoopAnimations"===Ue}show(Qt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Qt)}hide(Qt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Qt)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Qt}){(!Qt||!this._triggerElement.contains(Qt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Qt}){(Qt===this._showAnimation||Qt===this._hideAnimation)&&this._finalizeAnimation(Qt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Qt){Qt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Qt){const Ue=this._tooltip.nativeElement,ie=this._showAnimation,Wt=this._hideAnimation;if(Ue.classList.remove(Qt?Wt:ie),Ue.classList.add(Qt?ie:Wt),this._isVisible=Qt,Qt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const se=getComputedStyle(Ue);("0s"===se.getPropertyValue("animation-duration")||"none"===se.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Qt&&this._onShow(),this._animationsDisabled&&(Ue.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Qt))}}return qe.\u0275fac=function(Qt){return new(Qt||qe)(g.Y36(g.sBO),g.Y36(g.QbO,8))},qe.\u0275dir=g.lG2({type:qe}),qe})(),be=(()=>{class qe extends Vt{constructor(Qt,Ue,ie){super(Qt,ie),this._breakpointObserver=Ue,this._isHandset=this._breakpointObserver.observe(O.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return qe.\u0275fac=function(Qt){return new(Qt||qe)(g.Y36(g.sBO),g.Y36(O.Yg),g.Y36(g.QbO,8))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-tooltip-component"]],viewQuery:function(Qt,Ue){if(1&Qt&&g.Gf(lt,7),2&Qt){let ie;g.iGM(ie=g.CRH())&&(Ue._tooltip=ie.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Qt,Ue){1&Qt&&g.NdJ("mouseleave",function(Wt){return Ue._handleMouseLeave(Wt)}),2&Qt&&g.Udp("zoom",Ue.isVisible()?1:null)},features:[g.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Qt,Ue){if(1&Qt&&(g.TgZ(0,"div",0,1),g.NdJ("animationend",function(Wt){return Ue._handleAnimationEnd(Wt)}),g.ALo(2,"async"),g._uU(3),g.qZA()),2&Qt){let ie;g.ekj("mat-tooltip-handset",null==(ie=g.lcZ(2,4,Ue._isHandset))?null:ie.matches),g.Q6J("ngClass",Ue.tooltipClass),g.xp6(3),g.Oqu(Ue.message)}},dependencies:[v.mk,v.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),qe})(),ge=(()=>{class qe{}return qe.\u0275fac=function(Qt){return new(Qt||qe)},qe.\u0275mod=g.oAB({type:qe}),qe.\u0275inj=g.cJS({providers:[mt],imports:[d.rt,v.ez,u.U8,t.BQ,t.BQ,T.ZD]}),qe})()},35423:(tt,W,f)=>{"use strict";f.d(W,{Ar:()=>et,GZ:()=>B,JZ:()=>Zt,WX:()=>Gt,ah:()=>K,dp:()=>Dt,eu:()=>lt,fQ:()=>N,gi:()=>ct,kc:()=>Rt,uo:()=>L});var u=f(57851),d=f(94650),v=f(3238),g=f(21281),t=f(95017),T=f(591),U=f(36787),w=f(72986),P=f(24850);const O=(0,v.sb)((0,v.Id)(u.Hs));let L=(()=>{class Tt extends O{constructor(bt,mt,Lt){super(bt,mt),this.tabIndex=Number(Lt)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(d.Y36(d.SBq),d.Y36(u._0),d.$8M("tabindex"))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[d._Bn([{provide:u.Hs,useExisting:Tt}]),d.qOj]}),Tt})(),N=(()=>{class Tt extends u.rO{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[d._Bn([{provide:u.rO,useExisting:Tt}]),d.qOj]}),Tt})(),B=(()=>{class Tt extends u.Xx{constructor(bt,mt,Lt,Bt){super(bt,mt,Lt),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(bt){this._disabled=(0,g.Ig)(bt)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(bt){this._tabIndex=bt??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(d.Y36(d.SBq),d.Y36(u._0),d.Y36(d.ZZ4),d.$8M("tabindex"))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[d._Bn([{provide:u.Xx,useExisting:Tt},{provide:u.Hs,useExisting:Tt},{provide:u.HI,useExisting:Tt}]),d.qOj]}),Tt})(),K=(()=>{class Tt extends u.XJ{get level(){return this._level}set level(bt){this._setLevelInput(bt)}get indent(){return this._indent}set indent(bt){this._setIndentInput(bt)}}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[d._Bn([{provide:u.XJ,useExisting:Tt}]),d.qOj]}),Tt})(),et=(()=>{class Tt{constructor(bt,mt){this.viewContainer=bt,this._node=mt}}return Tt.\u0275fac=function(bt){return new(bt||Tt)(d.Y36(d.s_b),d.Y36(u.HI,8))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodeOutlet",""]],features:[d._Bn([{provide:u.cu,useExisting:Tt}])]}),Tt})(),ct=(()=>{class Tt extends u._0{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-tree"]],viewQuery:function(bt,mt){if(1&bt&&d.Gf(et,7),2&bt){let Lt;d.iGM(Lt=d.CRH())&&(mt._nodeOutlet=Lt.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[d._Bn([{provide:u._0,useExisting:Tt}]),d.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(bt,mt){1&bt&&d.GkF(0,0)},dependencies:[et],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),Tt})(),lt=(()=>{class Tt extends u.Ud{}return Tt.\u0275fac=function(){let Ut;return function(mt){return(Ut||(Ut=d.n5z(Tt)))(mt||Tt)}}(),Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[d._Bn([{provide:u.Ud,useExisting:Tt}]),d.qOj]}),Tt})(),Dt=(()=>{class Tt{}return Tt.\u0275fac=function(bt){return new(bt||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[u.nZ,v.BQ,v.BQ]}),Tt})();class Zt{constructor(Ut,bt,mt,Lt){this.transformFunction=Ut,this.getLevel=bt,this.isExpandable=mt,this.getChildren=Lt}_flattenNode(Ut,bt,mt,Lt){const Bt=this.transformFunction(Ut,bt);if(mt.push(Bt),this.isExpandable(Bt)){const kt=this.getChildren(Ut);kt&&(Array.isArray(kt)?this._flattenChildren(kt,bt,mt,Lt):kt.pipe((0,w.q)(1)).subscribe(le=>{this._flattenChildren(le,bt,mt,Lt)}))}return mt}_flattenChildren(Ut,bt,mt,Lt){Ut.forEach((Bt,kt)=>{let le=Lt.slice();le.push(kt!=Ut.length-1),this._flattenNode(Bt,bt+1,mt,le)})}flattenNodes(Ut){let bt=[];return Ut.forEach(mt=>this._flattenNode(mt,0,bt,[])),bt}expandFlattenedNodes(Ut,bt){let mt=[],Lt=[];return Lt[0]=!0,Ut.forEach(Bt=>{let kt=!0;for(let le=0;le<=this.getLevel(Bt);le++)kt=kt&&Lt[le];kt&&mt.push(Bt),this.isExpandable(Bt)&&(Lt[this.getLevel(Bt)+1]=bt.isExpanded(Bt))}),mt}}class Rt extends t.o2{constructor(Ut,bt,mt){super(),this._treeControl=Ut,this._treeFlattener=bt,this._flattenedData=new T.X([]),this._expandedData=new T.X([]),this._data=new T.X([]),mt&&(this.data=mt)}get data(){return this._data.value}set data(Ut){this._data.next(Ut),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Ut){return(0,U.T)(Ut.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,P.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Gt extends t.o2{constructor(){super(...arguments),this._data=new T.X([])}get data(){return this._data.value}set data(Ut){this._data.next(Ut)}connect(Ut){return(0,U.T)(Ut.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},11481:(tt,W,f)=>{"use strict";f.d(W,{Dx:()=>ue,H7:()=>He,b2:()=>ee,q6:()=>ii,se:()=>Vt});var u=f(36895),d=f(94650);class v extends u.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class g extends v{static makeCurrent(){(0,u.HT)(new g)}onAndCancel(_n,Ke,ai){return _n.addEventListener(Ke,ai,!1),()=>{_n.removeEventListener(Ke,ai,!1)}}dispatchEvent(_n,Ke){_n.dispatchEvent(Ke)}remove(_n){_n.parentNode&&_n.parentNode.removeChild(_n)}createElement(_n,Ke){return(Ke=Ke||this.getDefaultDocument()).createElement(_n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_n){return _n.nodeType===Node.ELEMENT_NODE}isShadowRoot(_n){return _n instanceof DocumentFragment}getGlobalEventTarget(_n,Ke){return"window"===Ke?window:"document"===Ke?_n:"body"===Ke?_n.body:null}getBaseHref(_n){const Ke=function T(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==Ke?null:function w(un){U=U||document.createElement("a"),U.setAttribute("href",un);const _n=U.pathname;return"/"===_n.charAt(0)?_n:`/${_n}`}(Ke)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(_n){return(0,u.Mx)(document.cookie,_n)}}let U,t=null;const P=new d.OlP("TRANSITION_ID"),L=[{provide:d.ip1,useFactory:function O(un,_n,Ke){return()=>{Ke.get(d.CZH).donePromise.then(()=>{const ai=(0,u.q)(),xi=_n.querySelectorAll(`style[ng-transition="${un}"]`);for(let co=0;co{class un{build(){return new XMLHttpRequest}}return un.\u0275fac=function(Ke){return new(Ke||un)},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();const K=new d.OlP("EventManagerPlugins");let et=(()=>{class un{constructor(Ke,ai){this._zone=ai,this._eventNameToPlugin=new Map,Ke.forEach(xi=>xi.manager=this),this._plugins=Ke.slice().reverse()}addEventListener(Ke,ai,xi){return this._findPluginFor(ai).addEventListener(Ke,ai,xi)}addGlobalEventListener(Ke,ai,xi){return this._findPluginFor(ai).addGlobalEventListener(Ke,ai,xi)}getZone(){return this._zone}_findPluginFor(Ke){const ai=this._eventNameToPlugin.get(Ke);if(ai)return ai;const xi=this._plugins;for(let co=0;co{class un{constructor(){this._stylesSet=new Set}addStyles(Ke){const ai=new Set;Ke.forEach(xi=>{this._stylesSet.has(xi)||(this._stylesSet.add(xi),ai.add(xi))}),this.onStylesAdded(ai)}onStylesAdded(Ke){}getAllStyles(){return Array.from(this._stylesSet)}}return un.\u0275fac=function(Ke){return new(Ke||un)},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})(),Ct=(()=>{class un extends lt{constructor(Ke){super(),this._doc=Ke,this._hostNodes=new Map,this._hostNodes.set(Ke.head,[])}_addStylesToHost(Ke,ai,xi){Ke.forEach(co=>{const Co=this._doc.createElement("style");Co.textContent=co,xi.push(ai.appendChild(Co))})}addHost(Ke){const ai=[];this._addStylesToHost(this._stylesSet,Ke,ai),this._hostNodes.set(Ke,ai)}removeHost(Ke){const ai=this._hostNodes.get(Ke);ai&&ai.forEach(Dt),this._hostNodes.delete(Ke)}onStylesAdded(Ke){this._hostNodes.forEach((ai,xi)=>{this._addStylesToHost(Ke,xi,ai)})}ngOnDestroy(){this._hostNodes.forEach(Ke=>Ke.forEach(Dt))}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();function Dt(un){(0,u.q)().remove(un)}const Zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Rt=/%COMP%/g;function Bt(un,_n,Ke){for(let ai=0;ai<_n.length;ai++){let xi=_n[ai];Array.isArray(xi)?Bt(un,xi,Ke):(xi=xi.replace(Rt,un),Ke.push(xi))}return Ke}function kt(un){return _n=>{if("__ngUnwrap__"===_n)return un;!1===un(_n)&&(_n.preventDefault(),_n.returnValue=!1)}}let Vt=(()=>{class un{constructor(Ke,ai,xi){this.eventManager=Ke,this.sharedStylesHost=ai,this.appId=xi,this.rendererByCompId=new Map,this.defaultRenderer=new be(Ke)}createRenderer(Ke,ai){if(!Ke||!ai)return this.defaultRenderer;switch(ai.encapsulation){case d.ifc.Emulated:{let xi=this.rendererByCompId.get(ai.id);return xi||(xi=new je(this.eventManager,this.sharedStylesHost,ai,this.appId),this.rendererByCompId.set(ai.id,xi)),xi.applyToHost(Ke),xi}case 1:case d.ifc.ShadowDom:return new Qt(this.eventManager,this.sharedStylesHost,Ke,ai);default:if(!this.rendererByCompId.has(ai.id)){const xi=Bt(ai.id,ai.styles,[]);this.sharedStylesHost.addStyles(xi),this.rendererByCompId.set(ai.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(et),d.LFG(Ct),d.LFG(d.AFp))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();class be{constructor(_n){this.eventManager=_n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(_n,Ke){return Ke?document.createElementNS(Zt[Ke]||Ke,_n):document.createElement(_n)}createComment(_n){return document.createComment(_n)}createText(_n){return document.createTextNode(_n)}appendChild(_n,Ke){(qe(_n)?_n.content:_n).appendChild(Ke)}insertBefore(_n,Ke,ai){_n&&(qe(_n)?_n.content:_n).insertBefore(Ke,ai)}removeChild(_n,Ke){_n&&_n.removeChild(Ke)}selectRootElement(_n,Ke){let ai="string"==typeof _n?document.querySelector(_n):_n;if(!ai)throw new Error(`The selector "${_n}" did not match any elements`);return Ke||(ai.textContent=""),ai}parentNode(_n){return _n.parentNode}nextSibling(_n){return _n.nextSibling}setAttribute(_n,Ke,ai,xi){if(xi){Ke=xi+":"+Ke;const co=Zt[xi];co?_n.setAttributeNS(co,Ke,ai):_n.setAttribute(Ke,ai)}else _n.setAttribute(Ke,ai)}removeAttribute(_n,Ke,ai){if(ai){const xi=Zt[ai];xi?_n.removeAttributeNS(xi,Ke):_n.removeAttribute(`${ai}:${Ke}`)}else _n.removeAttribute(Ke)}addClass(_n,Ke){_n.classList.add(Ke)}removeClass(_n,Ke){_n.classList.remove(Ke)}setStyle(_n,Ke,ai,xi){xi&(d.JOm.DashCase|d.JOm.Important)?_n.style.setProperty(Ke,ai,xi&d.JOm.Important?"important":""):_n.style[Ke]=ai}removeStyle(_n,Ke,ai){ai&d.JOm.DashCase?_n.style.removeProperty(Ke):_n.style[Ke]=""}setProperty(_n,Ke,ai){_n[Ke]=ai}setValue(_n,Ke){_n.nodeValue=Ke}listen(_n,Ke,ai){return"string"==typeof _n?this.eventManager.addGlobalEventListener(_n,Ke,kt(ai)):this.eventManager.addEventListener(_n,Ke,kt(ai))}}function qe(un){return"TEMPLATE"===un.tagName&&void 0!==un.content}class je extends be{constructor(_n,Ke,ai,xi){super(_n),this.component=ai;const co=Bt(xi+"-"+ai.id,ai.styles,[]);Ke.addStyles(co),this.contentAttr=function mt(un){return"_ngcontent-%COMP%".replace(Rt,un)}(xi+"-"+ai.id),this.hostAttr=function Lt(un){return"_nghost-%COMP%".replace(Rt,un)}(xi+"-"+ai.id)}applyToHost(_n){super.setAttribute(_n,this.hostAttr,"")}createElement(_n,Ke){const ai=super.createElement(_n,Ke);return super.setAttribute(ai,this.contentAttr,""),ai}}class Qt extends be{constructor(_n,Ke,ai,xi){super(_n),this.sharedStylesHost=Ke,this.hostEl=ai,this.shadowRoot=ai.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const co=Bt(xi.id,xi.styles,[]);for(let Co=0;Co{class un extends ct{constructor(Ke){super(Ke)}supports(Ke){return!0}addEventListener(Ke,ai,xi){return Ke.addEventListener(ai,xi,!1),()=>this.removeEventListener(Ke,ai,xi)}removeEventListener(Ke,ai,xi){return Ke.removeEventListener(ai,xi)}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();const ie=["alt","control","meta","shift"],Wt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},se={alt:un=>un.altKey,control:un=>un.ctrlKey,meta:un=>un.metaKey,shift:un=>un.shiftKey};let Xt=(()=>{class un extends ct{constructor(Ke){super(Ke)}supports(Ke){return null!=un.parseEventName(Ke)}addEventListener(Ke,ai,xi){const co=un.parseEventName(ai),Co=un.eventCallback(co.fullKey,xi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.q)().onAndCancel(Ke,co.domEventName,Co))}static parseEventName(Ke){const ai=Ke.toLowerCase().split("."),xi=ai.shift();if(0===ai.length||"keydown"!==xi&&"keyup"!==xi)return null;const co=un._normalizeKey(ai.pop());let Co="",So=ai.indexOf("code");if(So>-1&&(ai.splice(So,1),Co="code."),ie.forEach(Ta=>{const Re=ai.indexOf(Ta);Re>-1&&(ai.splice(Re,1),Co+=Ta+".")}),Co+=co,0!=ai.length||0===co.length)return null;const ma={};return ma.domEventName=xi,ma.fullKey=Co,ma}static matchEventFullKeyCode(Ke,ai){let xi=Wt[Ke.key]||Ke.key,co="";return ai.indexOf("code.")>-1&&(xi=Ke.code,co="code."),!(null==xi||!xi)&&(xi=xi.toLowerCase()," "===xi?xi="space":"."===xi&&(xi="dot"),ie.forEach(Co=>{Co!==xi&&(0,se[Co])(Ke)&&(co+=Co+".")}),co+=xi,co===ai)}static eventCallback(Ke,ai,xi){return co=>{un.matchEventFullKeyCode(co,Ke)&&xi.runGuarded(()=>ai(co))}}static _normalizeKey(Ke){return"esc"===Ke?"escape":Ke}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:un.\u0275fac}),un})();const ii=(0,d.eFA)(d._c5,"browser",[{provide:d.Lbi,useValue:u.bD},{provide:d.g9A,useValue:function bn(){g.makeCurrent()},multi:!0},{provide:u.K0,useFactory:function dn(){return(0,d.RDi)(document),document},deps:[]}]),_i=new d.OlP(""),oi=[{provide:d.rWj,useClass:class N{addToWindow(_n){d.dqk.getAngularTestability=(ai,xi=!0)=>{const co=_n.findTestabilityInTree(ai,xi);if(null==co)throw new Error("Could not find testability for element.");return co},d.dqk.getAllAngularTestabilities=()=>_n.getAllTestabilities(),d.dqk.getAllAngularRootElements=()=>_n.getAllRootElements(),d.dqk.frameworkStabilizers||(d.dqk.frameworkStabilizers=[]),d.dqk.frameworkStabilizers.push(ai=>{const xi=d.dqk.getAllAngularTestabilities();let co=xi.length,Co=!1;const So=function(ma){Co=Co||ma,co--,0==co&&ai(Co)};xi.forEach(function(ma){ma.whenStable(So)})})}findTestabilityInTree(_n,Ke,ai){return null==Ke?null:_n.getTestability(Ke)??(ai?(0,u.q)().isShadowRoot(Ke)?this.findTestabilityInTree(_n,Ke.host,!0):this.findTestabilityInTree(_n,Ke.parentElement,!0):null)}},deps:[]},{provide:d.lri,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]},{provide:d.dDg,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]}],We=[{provide:d.zSh,useValue:"root"},{provide:d.qLn,useFactory:function Oe(){return new d.qLn},deps:[]},{provide:K,useClass:Ue,multi:!0,deps:[u.K0,d.R0b,d.Lbi]},{provide:K,useClass:Xt,multi:!0,deps:[u.K0]},{provide:Vt,useClass:Vt,deps:[et,Ct,d.AFp]},{provide:d.FYo,useExisting:Vt},{provide:lt,useExisting:Ct},{provide:Ct,useClass:Ct,deps:[u.K0]},{provide:et,useClass:et,deps:[K,d.R0b]},{provide:u.JF,useClass:B,deps:[]},[]];let ee=(()=>{class un{constructor(Ke){}static withServerTransition(Ke){return{ngModule:un,providers:[{provide:d.AFp,useValue:Ke.appId},{provide:P,useExisting:d.AFp},L]}}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(_i,12))},un.\u0275mod=d.oAB({type:un}),un.\u0275inj=d.cJS({providers:[...We,...oi],imports:[u.ez,d.hGG]}),un})(),ue=(()=>{class un{constructor(Ke){this._doc=Ke}getTitle(){return this._doc.title}setTitle(Ke){this._doc.title=Ke||""}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:function(Ke){let ai=null;return ai=Ke?new Ke:function Ht(){return new ue((0,d.LFG)(u.K0))}(),ai},providedIn:"root"}),un})();typeof window<"u"&&window;let He=(()=>{class un{}return un.\u0275fac=function(Ke){return new(Ke||un)},un.\u0275prov=d.Yz7({token:un,factory:function(Ke){let ai=null;return ai=Ke?new(Ke||un):d.LFG(Ei),ai},providedIn:"root"}),un})(),Ei=(()=>{class un extends He{constructor(Ke){super(),this._doc=Ke}sanitize(Ke,ai){if(null==ai)return null;switch(Ke){case d.q3G.NONE:return ai;case d.q3G.HTML:return(0,d.qzn)(ai,"HTML")?(0,d.z3N)(ai):(0,d.EiD)(this._doc,String(ai)).toString();case d.q3G.STYLE:return(0,d.qzn)(ai,"Style")?(0,d.z3N)(ai):ai;case d.q3G.SCRIPT:if((0,d.qzn)(ai,"Script"))return(0,d.z3N)(ai);throw new Error("unsafe value used in a script context");case d.q3G.URL:return(0,d.qzn)(ai,"URL")?(0,d.z3N)(ai):(0,d.mCW)(String(ai));case d.q3G.RESOURCE_URL:if((0,d.qzn)(ai,"ResourceURL"))return(0,d.z3N)(ai);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ke} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ke){return(0,d.JVY)(Ke)}bypassSecurityTrustStyle(Ke){return(0,d.L6k)(Ke)}bypassSecurityTrustScript(Ke){return(0,d.eBb)(Ke)}bypassSecurityTrustUrl(Ke){return(0,d.LAX)(Ke)}bypassSecurityTrustResourceUrl(Ke){return(0,d.pB0)(Ke)}}return un.\u0275fac=function(Ke){return new(Ke||un)(d.LFG(u.K0))},un.\u0275prov=d.Yz7({token:un,factory:function(Ke){let ai=null;return ai=Ke?new Ke:function kn(un){return new Ei(un.get(u.K0))}(d.LFG(d.zs3)),ai},providedIn:"root"}),un})()},83689:(tt,W,f)=>{"use strict";f.d(W,{gz:()=>Ss,m2:()=>Ur,wN:()=>vi,F0:()=>Ba,rH:()=>ed,Od:()=>a1,yS:()=>Wc,Bz:()=>h_,lC:()=>Ya});var u=f(94650),d=f(5254),v=f(21086),g=f(591),t=f(84450),T=f(23426),U=f(61221),w=f(88514),P=f(4843),O=f(61737),L=f(56498),N=f(68896),B=f(71762),K=f(8929),et=f(36895),ct=f(24850),lt=f(87545),Ct=f(72986),Dt=f(1059),Zt=f(92198),Rt=f(61709),Gt=f(87224),Tt=f(21406),Ut=f(22868),bt=f(27221),mt=f(43489);function Lt(ht,vt){let st=!1;return arguments.length>=2&&(st=!0),function(ne){return ne.lift(new Bt(ht,vt,st))}}class Bt{constructor(vt,st,Ot=!1){this.accumulator=vt,this.seed=st,this.hasSeed=Ot}call(vt,st){return st.subscribe(new kt(vt,this.accumulator,this.seed,this.hasSeed))}}class kt extends mt.L{constructor(vt,st,Ot,ne){super(vt),this.accumulator=st,this._seed=Ot,this.hasSeed=ne,this.index=0}get seed(){return this._seed}set seed(vt){this.hasSeed=!0,this._seed=vt}_next(vt){if(this.hasSeed)return this._tryNext(vt);this.seed=vt,this.destination.next(vt)}_tryNext(vt){const st=this.index++;let Ot;try{Ot=this.accumulator(this.seed,vt,st)}catch(ne){this.destination.error(ne)}this.seed=Ot,this.destination.next(Ot)}}var le=f(94231);function Vt(ht){return function(st){return 0===ht?(0,N.c)():st.lift(new be(ht))}}class be{constructor(vt){if(this.total=vt,this.total<0)throw new le.W}call(vt,st){return st.subscribe(new ge(vt,this.total))}}class ge extends mt.L{constructor(vt,st){super(vt),this.total=st,this.ring=new Array,this.count=0}_next(vt){const st=this.ring,Ot=this.total,ne=this.count++;st.length0){const Ot=this.count>=this.total?this.total:this.count,ne=this.ring;for(let fe=0;fe=2;return Ot=>Ot.pipe(ht?(0,Zt.h)((ne,fe)=>ht(ne,fe,Ot)):je.y,Vt(1),st?(0,qe.d)(vt):(0,Fe.T)(()=>new t.K))}var Ue=f(44290),ie=f(77604),Wt=f(40537),se=f(74327),Xt=f(89146),ae=f(11481);const De="primary",nn=Symbol("RouteTitle");class hn{constructor(vt){this.params=vt||{}}has(vt){return Object.prototype.hasOwnProperty.call(this.params,vt)}get(vt){if(this.has(vt)){const st=this.params[vt];return Array.isArray(st)?st[0]:st}return null}getAll(vt){if(this.has(vt)){const st=this.params[vt];return Array.isArray(st)?st:[st]}return[]}get keys(){return Object.keys(this.params)}}function Ce(ht){return new hn(ht)}function bn(ht,vt,st){const Ot=st.path.split("/");if(Ot.length>ht.length||"full"===st.pathMatch&&(vt.hasChildren()||Ot.lengthOt[fe]===ne)}return ht===vt}function ii(ht){return Array.prototype.concat.apply([],ht)}function _i(ht){return ht.length>0?ht[ht.length-1]:null}function We(ht,vt){for(const st in ht)ht.hasOwnProperty(st)&&vt(ht[st],st)}function ee(ht){return(0,u.CqO)(ht)?ht:(0,u.QGY)(ht)?(0,d.D)(Promise.resolve(ht)):(0,v.of)(ht)}const At={exact:function Se(ht,vt,st){if(!Qe(ht.segments,vt.segments)||!Di(ht.segments,vt.segments,st)||ht.numberOfChildren!==vt.numberOfChildren)return!1;for(const Ot in vt.children)if(!ht.children[Ot]||!Se(ht.children[Ot],vt.children[Ot],st))return!1;return!0},subset:qn},Ht={exact:function ye(ht,vt){return dn(ht,vt)},subset:function vn(ht,vt){return Object.keys(vt).length<=Object.keys(ht).length&&Object.keys(vt).every(st=>Pn(ht[st],vt[st]))},ignored:()=>!0};function ue(ht,vt,st){return At[st.paths](ht.root,vt.root,st.matrixParams)&&Ht[st.queryParams](ht.queryParams,vt.queryParams)&&!("exact"===st.fragment&&ht.fragment!==vt.fragment)}function qn(ht,vt,st){return mi(ht,vt,vt.segments,st)}function mi(ht,vt,st,Ot){if(ht.segments.length>st.length){const ne=ht.segments.slice(0,st.length);return!(!Qe(ne,st)||vt.hasChildren()||!Di(ne,st,Ot))}if(ht.segments.length===st.length){if(!Qe(ht.segments,st)||!Di(ht.segments,st,Ot))return!1;for(const ne in vt.children)if(!ht.children[ne]||!qn(ht.children[ne],vt.children[ne],Ot))return!1;return!0}{const ne=st.slice(0,ht.segments.length),fe=st.slice(ht.segments.length);return!!(Qe(ht.segments,ne)&&Di(ht.segments,ne,Ot)&&ht.children[De])&&mi(ht.children[De],vt,fe,Ot)}}function Di(ht,vt,st){return vt.every((Ot,ne)=>Ht[st](ht[ne].parameters,Ot.parameters))}class bo{constructor(vt,st,Ot){this.root=vt,this.queryParams=st,this.fragment=Ot}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ce(this.queryParams)),this._queryParamMap}toString(){return tn.serialize(this)}}class hi{constructor(vt,st){this.segments=vt,this.children=st,this.parent=null,We(st,(Ot,ne)=>Ot.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ce(this)}}class zn{constructor(vt,st){this.path=vt,this.parameters=st}get parameterMap(){return this._parameterMap||(this._parameterMap=Ce(this.parameters)),this._parameterMap}toString(){return Le(this)}}function Qe(ht,vt){return ht.length===vt.length&&ht.every((st,Ot)=>st.path===vt[Ot].path)}let Ve=(()=>{class ht{}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275prov=u.Yz7({token:ht,factory:function(){return new Ne},providedIn:"root"}),ht})();class Ne{parse(vt){const st=new Ke(vt);return new bo(st.parseRootSegment(),st.parseQueryParams(),st.parseFragment())}serialize(vt){const st=`/${Be(vt.root,!0)}`,Ot=function we(ht){const vt=Object.keys(ht).map(st=>{const Ot=ht[st];return Array.isArray(Ot)?Ot.map(ne=>`${rn(st)}=${rn(ne)}`).join("&"):`${rn(st)}=${rn(Ot)}`}).filter(st=>!!st);return vt.length?`?${vt.join("&")}`:""}(vt.queryParams);return`${st}${Ot}${"string"==typeof vt.fragment?`#${function gn(ht){return encodeURI(ht)}(vt.fragment)}`:""}`}}const tn=new Ne;function ce(ht){return ht.segments.map(vt=>Le(vt)).join("/")}function Be(ht,vt){if(!ht.hasChildren())return ce(ht);if(vt){const st=ht.children[De]?Be(ht.children[De],!1):"",Ot=[];return We(ht.children,(ne,fe)=>{fe!==De&&Ot.push(`${fe}:${Be(ne,!1)}`)}),Ot.length>0?`${st}(${Ot.join("//")})`:st}{const st=function xn(ht,vt){let st=[];return We(ht.children,(Ot,ne)=>{ne===De&&(st=st.concat(vt(Ot,ne)))}),We(ht.children,(Ot,ne)=>{ne!==De&&(st=st.concat(vt(Ot,ne)))}),st}(ht,(Ot,ne)=>ne===De?[Be(ht.children[De],!1)]:[`${ne}:${Be(Ot,!1)}`]);return 1===Object.keys(ht.children).length&&null!=ht.children[De]?`${ce(ht)}/${st[0]}`:`${ce(ht)}/(${st.join("//")})`}}function oe(ht){return encodeURIComponent(ht).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rn(ht){return oe(ht).replace(/%3B/gi,";")}function cn(ht){return oe(ht).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xe(ht){return decodeURIComponent(ht)}function It(ht){return xe(ht.replace(/\+/g,"%20"))}function Le(ht){return`${cn(ht.path)}${function zt(ht){return Object.keys(ht).map(vt=>`;${cn(vt)}=${cn(ht[vt])}`).join("")}(ht.parameters)}`}const He=/^[^\/()?;=#]+/;function kn(ht){const vt=ht.match(He);return vt?vt[0]:""}const Ei=/^[^=?&#]+/,un=/^[^&#]+/;class Ke{constructor(vt){this.url=vt,this.remaining=vt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hi([],{}):new hi([],this.parseChildren())}parseQueryParams(){const vt={};if(this.consumeOptional("?"))do{this.parseQueryParam(vt)}while(this.consumeOptional("&"));return vt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const vt=[];for(this.peekStartsWith("(")||vt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),vt.push(this.parseSegment());let st={};this.peekStartsWith("/(")&&(this.capture("/"),st=this.parseParens(!0));let Ot={};return this.peekStartsWith("(")&&(Ot=this.parseParens(!1)),(vt.length>0||Object.keys(st).length>0)&&(Ot[De]=new hi(vt,st)),Ot}parseSegment(){const vt=kn(this.remaining);if(""===vt&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(vt),new zn(xe(vt),this.parseMatrixParams())}parseMatrixParams(){const vt={};for(;this.consumeOptional(";");)this.parseParam(vt);return vt}parseParam(vt){const st=kn(this.remaining);if(!st)return;this.capture(st);let Ot="";if(this.consumeOptional("=")){const ne=kn(this.remaining);ne&&(Ot=ne,this.capture(Ot))}vt[xe(st)]=xe(Ot)}parseQueryParam(vt){const st=function Bi(ht){const vt=ht.match(Ei);return vt?vt[0]:""}(this.remaining);if(!st)return;this.capture(st);let Ot="";if(this.consumeOptional("=")){const de=function _n(ht){const vt=ht.match(un);return vt?vt[0]:""}(this.remaining);de&&(Ot=de,this.capture(Ot))}const ne=It(st),fe=It(Ot);if(vt.hasOwnProperty(ne)){let de=vt[ne];Array.isArray(de)||(de=[de],vt[ne]=de),de.push(fe)}else vt[ne]=fe}parseParens(vt){const st={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ot=kn(this.remaining),ne=this.remaining[Ot.length];if("/"!==ne&&")"!==ne&&";"!==ne)throw new u.vHH(4010,!1);let fe;Ot.indexOf(":")>-1?(fe=Ot.slice(0,Ot.indexOf(":")),this.capture(fe),this.capture(":")):vt&&(fe=De);const de=this.parseChildren();st[fe]=1===Object.keys(de).length?de[De]:new hi([],de),this.consumeOptional("//")}return st}peekStartsWith(vt){return this.remaining.startsWith(vt)}consumeOptional(vt){return!!this.peekStartsWith(vt)&&(this.remaining=this.remaining.substring(vt.length),!0)}capture(vt){if(!this.consumeOptional(vt))throw new u.vHH(4011,!1)}}function ai(ht){return ht.segments.length>0?new hi([],{[De]:ht}):ht}function xi(ht){const vt={};for(const Ot of Object.keys(ht.children)){const fe=xi(ht.children[Ot]);(fe.segments.length>0||fe.hasChildren())&&(vt[Ot]=fe)}return function co(ht){if(1===ht.numberOfChildren&&ht.children[De]){const vt=ht.children[De];return new hi(ht.segments.concat(vt.segments),vt.children)}return ht}(new hi(ht.segments,vt))}function Co(ht){return ht instanceof bo}function Rn(ht,vt,st,Ot,ne){if(0===st.length)return an(vt.root,vt.root,vt.root,Ot,ne);const fe=function J(ht){if("string"==typeof ht[0]&&1===ht.length&&"/"===ht[0])return new Ft(!0,0,ht);let vt=0,st=!1;const Ot=ht.reduce((ne,fe,de)=>{if("object"==typeof fe&&null!=fe){if(fe.outlets){const Jt={};return We(fe.outlets,(Cn,Ri)=>{Jt[Ri]="string"==typeof Cn?Cn.split("/"):Cn}),[...ne,{outlets:Jt}]}if(fe.segmentPath)return[...ne,fe.segmentPath]}return"string"!=typeof fe?[...ne,fe]:0===de?(fe.split("/").forEach((Jt,Cn)=>{0==Cn&&"."===Jt||(0==Cn&&""===Jt?st=!0:".."===Jt?vt++:""!=Jt&&ne.push(Jt))}),ne):[...ne,fe]},[]);return new Ft(st,vt,Ot)}(st);return fe.toRoot()?an(vt.root,vt.root,new hi([],{}),Ot,ne):function de(Cn){const Ri=function Vn(ht,vt,st,Ot){if(ht.isAbsolute)return new Et(vt.root,!0,0);if(-1===Ot)return new Et(st,st===vt.root,0);return function Xi(ht,vt,st){let Ot=ht,ne=vt,fe=st;for(;fe>ne;){if(fe-=ne,Ot=Ot.parent,!Ot)throw new u.vHH(4005,!1);ne=Ot.segments.length}return new Et(Ot,!1,ne-fe)}(st,Ot+(Ye(ht.commands[0])?0:1),ht.numberOfDoubleDots)}(fe,vt,ht.snapshot?._urlSegment,Cn),po=Ri.processChildren?fr(Ri.segmentGroup,Ri.index,fe.commands):_r(Ri.segmentGroup,Ri.index,fe.commands);return an(vt.root,Ri.segmentGroup,po,Ot,ne)}(ht.snapshot?._lastPathIndex)}function Ye(ht){return"object"==typeof ht&&null!=ht&&!ht.outlets&&!ht.segmentPath}function Me(ht){return"object"==typeof ht&&null!=ht&&ht.outlets}function an(ht,vt,st,Ot,ne){let de,fe={};Ot&&We(Ot,(Cn,Ri)=>{fe[Ri]=Array.isArray(Cn)?Cn.map(po=>`${po}`):`${Cn}`}),de=ht===vt?st:j(ht,vt,st);const Jt=ai(xi(de));return new bo(Jt,fe,ne)}function j(ht,vt,st){const Ot={};return We(ht.children,(ne,fe)=>{Ot[fe]=ne===vt?st:j(ne,vt,st)}),new hi(ht.segments,Ot)}class Ft{constructor(vt,st,Ot){if(this.isAbsolute=vt,this.numberOfDoubleDots=st,this.commands=Ot,vt&&Ot.length>0&&Ye(Ot[0]))throw new u.vHH(4003,!1);const ne=Ot.find(Me);if(ne&&ne!==_i(Ot))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Et{constructor(vt,st,Ot){this.segmentGroup=vt,this.processChildren=st,this.index=Ot}}function _r(ht,vt,st){if(ht||(ht=new hi([],{})),0===ht.segments.length&&ht.hasChildren())return fr(ht,vt,st);const Ot=function jr(ht,vt,st){let Ot=0,ne=vt;const fe={match:!1,pathIndex:0,commandIndex:0};for(;ne=st.length)return fe;const de=ht.segments[ne],Jt=st[Ot];if(Me(Jt))break;const Cn=`${Jt}`,Ri=Ot0&&void 0===Cn)break;if(Cn&&Ri&&"object"==typeof Ri&&void 0===Ri.outlets){if(!nr(Cn,Ri,de))return fe;Ot+=2}else{if(!nr(Cn,{},de))return fe;Ot++}ne++}return{match:!0,pathIndex:ne,commandIndex:Ot}}(ht,vt,st),ne=st.slice(Ot.commandIndex);if(Ot.match&&Ot.pathIndex{"string"==typeof fe&&(fe=[fe]),null!==fe&&(ne[de]=_r(ht.children[de],vt,fe))}),We(ht.children,(fe,de)=>{void 0===Ot[de]&&(ne[de]=fe)}),new hi(ht.segments,ne)}}function Ja(ht,vt,st){const Ot=ht.segments.slice(0,vt);let ne=0;for(;ne{"string"==typeof st&&(st=[st]),null!==st&&(vt[Ot]=Ja(new hi([],{}),0,st))}),vt}function cc(ht){const vt={};return We(ht,(st,Ot)=>vt[Ot]=`${st}`),vt}function nr(ht,vt,st){return ht==st.path&&dn(vt,st.parameters)}class ls{constructor(vt,st){this.id=vt,this.url=st}}class Ar extends ls{constructor(vt,st,Ot="imperative",ne=null){super(vt,st),this.type=0,this.navigationTrigger=Ot,this.restoredState=ne}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ur extends ls{constructor(vt,st,Ot){super(vt,st),this.urlAfterRedirects=Ot,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Oc extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.reason=Ot,this.code=ne,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Al extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.error=Ot,this.target=ne,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Js extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ps extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qs extends ls{constructor(vt,st,Ot,ne,fe){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.shouldActivate=fe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lc extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class us extends ls{constructor(vt,st,Ot,ne){super(vt,st),this.urlAfterRedirects=Ot,this.state=ne,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hs{constructor(vt){this.route=vt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class t1{constructor(vt){this.route=vt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Lr{constructor(vt){this.snapshot=vt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ad{constructor(vt){this.snapshot=vt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class e1{constructor(vt){this.snapshot=vt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vc{constructor(vt){this.snapshot=vt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lc{constructor(vt,st,Ot){this.routerEvent=vt,this.position=st,this.anchor=Ot,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Bc{constructor(vt){this._root=vt}get root(){return this._root.value}parent(vt){const st=this.pathFromRoot(vt);return st.length>1?st[st.length-2]:null}children(vt){const st=Gc(vt,this._root);return st?st.children.map(Ot=>Ot.value):[]}firstChild(vt){const st=Gc(vt,this._root);return st&&st.children.length>0?st.children[0].value:null}siblings(vt){const st=js(vt,this._root);return st.length<2?[]:st[st.length-2].children.map(ne=>ne.value).filter(ne=>ne!==vt)}pathFromRoot(vt){return js(vt,this._root).map(st=>st.value)}}function Gc(ht,vt){if(ht===vt.value)return vt;for(const st of vt.children){const Ot=Gc(ht,st);if(Ot)return Ot}return null}function js(ht,vt){if(ht===vt.value)return[vt];for(const st of vt.children){const Ot=js(ht,st);if(Ot.length)return Ot.unshift(vt),Ot}return[]}class xc{constructor(vt,st){this.value=vt,this.children=st}toString(){return`TreeNode(${this.value})`}}function Ws(ht){const vt={};return ht&&ht.children.forEach(st=>vt[st.value.outlet]=st),vt}class sl extends Bc{constructor(vt,st){super(vt),this.snapshot=st,wl(this,vt)}toString(){return this.snapshot.toString()}}function $u(ht,vt){const st=function Yl(ht,vt){const de=new Jc([],{},{},"",{},De,vt,null,ht.root,-1,{});return new $s("",new xc(de,[]))}(ht,vt),Ot=new g.X([new zn("",{})]),ne=new g.X({}),fe=new g.X({}),de=new g.X({}),Jt=new g.X(""),Cn=new Ss(Ot,ne,de,Jt,fe,De,vt,st.root);return Cn.snapshot=st.root,new sl(new xc(Cn,[]),st)}class Ss{constructor(vt,st,Ot,ne,fe,de,Jt,Cn){this.url=vt,this.params=st,this.queryParams=Ot,this.fragment=ne,this.data=fe,this.outlet=de,this.component=Jt,this.title=this.data?.pipe((0,ct.U)(Ri=>Ri[nn]))??(0,v.of)(void 0),this._futureSnapshot=Cn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ct.U)(vt=>Ce(vt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ct.U)(vt=>Ce(vt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ul(ht,vt="emptyOnly"){const st=ht.pathFromRoot;let Ot=0;if("always"!==vt)for(Ot=st.length-1;Ot>=1;){const ne=st[Ot],fe=st[Ot-1];if(ne.routeConfig&&""===ne.routeConfig.path)Ot--;else{if(fe.component)break;Ot--}}return function Ys(ht){return ht.reduce((vt,st)=>({params:{...vt.params,...st.params},data:{...vt.data,...st.data},resolve:{...st.data,...vt.resolve,...st.routeConfig?.data,...st._resolvedData}}),{params:{},data:{},resolve:{}})}(st.slice(Ot))}class Jc{constructor(vt,st,Ot,ne,fe,de,Jt,Cn,Ri,po,Zi,ja){this.url=vt,this.params=st,this.queryParams=Ot,this.fragment=ne,this.data=fe,this.outlet=de,this.component=Jt,this.title=this.data?.[nn],this.routeConfig=Cn,this._urlSegment=Ri,this._lastPathIndex=po,this._correctedLastPathIndex=ja??po,this._resolve=Zi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ce(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ce(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ot=>Ot.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $s extends Bc{constructor(vt,st){super(st),this.url=vt,wl(this,st)}toString(){return iu(this._root)}}function wl(ht,vt){vt.value._routerState=ht,vt.children.forEach(st=>wl(ht,st))}function iu(ht){const vt=ht.children.length>0?` { ${ht.children.map(iu).join(", ")} } `:"";return`${ht.value}${vt}`}function zl(ht){if(ht.snapshot){const vt=ht.snapshot,st=ht._futureSnapshot;ht.snapshot=st,dn(vt.queryParams,st.queryParams)||ht.queryParams.next(st.queryParams),vt.fragment!==st.fragment&&ht.fragment.next(st.fragment),dn(vt.params,st.params)||ht.params.next(st.params),function Oe(ht,vt){if(ht.length!==vt.length)return!1;for(let st=0;stdn(st.parameters,vt[Ot].parameters))}(ht.url,vt.url);return st&&!(!ht.parent!=!vt.parent)&&(!ht.parent||xa(ht.parent,vt.parent))}function bc(ht,vt,st){if(st&&ht.shouldReuseRoute(vt.value,st.value.snapshot)){const Ot=st.value;Ot._futureSnapshot=vt.value;const ne=function vu(ht,vt,st){return vt.children.map(Ot=>{for(const ne of st.children)if(ht.shouldReuseRoute(Ot.value,ne.value.snapshot))return bc(ht,Ot,ne);return bc(ht,Ot)})}(ht,vt,st);return new xc(Ot,ne)}{if(ht.shouldAttach(vt.value)){const fe=ht.retrieve(vt.value);if(null!==fe){const de=fe.route;return de.value._futureSnapshot=vt.value,de.children=vt.children.map(Jt=>bc(ht,Jt)),de}}const Ot=function Ku(ht){return new Ss(new g.X(ht.url),new g.X(ht.params),new g.X(ht.queryParams),new g.X(ht.fragment),new g.X(ht.data),ht.outlet,ht.component,ht)}(vt.value),ne=vt.children.map(fe=>bc(ht,fe));return new xc(Ot,ne)}}const Ia="ngNavigationCancelingError";function ou(ht,vt){const{redirectTo:st,navigationBehaviorOptions:Ot}=Co(vt)?{redirectTo:vt,navigationBehaviorOptions:void 0}:vt,ne=Cs(!1,0,vt);return ne.url=st,ne.navigationBehaviorOptions=Ot,ne}function Cs(ht,vt,st){const Ot=new Error("NavigationCancelingError: "+(ht||""));return Ot[Ia]=!0,Ot.cancellationCode=vt,st&&(Ot.url=st),Ot}function ys(ht){return Vl(ht)&&Co(ht.url)}function Vl(ht){return ht&&ht[Ia]}class Pr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new dc,this.attachRef=null}}let dc=(()=>{class ht{constructor(){this.contexts=new Map}onChildOutletCreated(st,Ot){const ne=this.getOrCreateContext(st);ne.outlet=Ot,this.contexts.set(st,ne)}onChildOutletDestroyed(st){const Ot=this.getContext(st);Ot&&(Ot.outlet=null,Ot.attachRef=null)}onOutletDeactivated(){const st=this.contexts;return this.contexts=new Map,st}onOutletReAttached(st){this.contexts=st}getOrCreateContext(st){let Ot=this.getContext(st);return Ot||(Ot=new Pr,this.contexts.set(st,Ot)),Ot}getContext(st){return this.contexts.get(st)||null}}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const Ha=!1;let Ya=(()=>{class ht{constructor(st,Ot,ne,fe,de){this.parentContexts=st,this.location=Ot,this.changeDetector=fe,this.environmentInjector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.attachEvents=new u.vpe,this.detachEvents=new u.vpe,this.name=ne||De,st.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const st=this.parentContexts.getContext(this.name);st&&st.route&&(st.attachRef?this.attach(st.attachRef,st.route):this.activateWith(st.route,st.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,Ha);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,Ha);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,Ha);this.location.detach();const st=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(st.instance),st}attach(st,Ot){this.activated=st,this._activatedRoute=Ot,this.location.insert(st.hostView),this.attachEvents.emit(st.instance)}deactivate(){if(this.activated){const st=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(st)}}activateWith(st,Ot){if(this.isActivated)throw new u.vHH(4013,Ha);this._activatedRoute=st;const ne=this.location,de=st._futureSnapshot.component,Jt=this.parentContexts.getOrCreateContext(this.name).children,Cn=new wr(st,Jt,ne.injector);if(Ot&&function xr(ht){return!!ht.resolveComponentFactory}(Ot)){const Ri=Ot.resolveComponentFactory(de);this.activated=ne.createComponent(Ri,ne.length,Cn)}else this.activated=ne.createComponent(de,{index:ne.length,injector:Cn,environmentInjector:Ot??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(dc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},ht.\u0275dir=u.lG2({type:ht,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),ht})();class wr{constructor(vt,st,Ot){this.route=vt,this.childContexts=st,this.parent=Ot}get(vt,st){return vt===Ss?this.route:vt===dc?this.childContexts:this.parent.get(vt,st)}}let ns=(()=>{class ht{}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275cmp=u.Xpm({type:ht,selectors:[["ng-component"]],standalone:!0,features:[u.jDz],decls:1,vars:0,template:function(st,Ot){1&st&&u._UZ(0,"router-outlet")},dependencies:[Ya],encapsulation:2}),ht})();function jn(ht,vt){return ht.providers&&!ht._injector&&(ht._injector=(0,u.MMx)(ht.providers,vt,`Route: ${ht.path}`)),ht._injector??vt}function Os(ht){const vt=ht.children&&ht.children.map(Os),st=vt?{...ht,children:vt}:{...ht};return!st.component&&!st.loadComponent&&(vt||st.loadChildren)&&st.outlet&&st.outlet!==De&&(st.component=ns),st}function za(ht){return ht.outlet||De}function ao(ht,vt){const st=ht.filter(Ot=>za(Ot)===vt);return st.push(...ht.filter(Ot=>za(Ot)!==vt)),st}function Er(ht){if(!ht)return null;if(ht.routeConfig?._injector)return ht.routeConfig._injector;for(let vt=ht.parent;vt;vt=vt.parent){const st=vt.routeConfig;if(st?._loadedInjector)return st._loadedInjector;if(st?._injector)return st._injector}return null}class zr{constructor(vt,st,Ot,ne){this.routeReuseStrategy=vt,this.futureState=st,this.currState=Ot,this.forwardEvent=ne}activate(vt){const st=this.futureState._root,Ot=this.currState?this.currState._root:null;this.deactivateChildRoutes(st,Ot,vt),zl(this.futureState.root),this.activateChildRoutes(st,Ot,vt)}deactivateChildRoutes(vt,st,Ot){const ne=Ws(st);vt.children.forEach(fe=>{const de=fe.value.outlet;this.deactivateRoutes(fe,ne[de],Ot),delete ne[de]}),We(ne,(fe,de)=>{this.deactivateRouteAndItsChildren(fe,Ot)})}deactivateRoutes(vt,st,Ot){const ne=vt.value,fe=st?st.value:null;if(ne===fe)if(ne.component){const de=Ot.getContext(ne.outlet);de&&this.deactivateChildRoutes(vt,st,de.children)}else this.deactivateChildRoutes(vt,st,Ot);else fe&&this.deactivateRouteAndItsChildren(st,Ot)}deactivateRouteAndItsChildren(vt,st){vt.value.component&&this.routeReuseStrategy.shouldDetach(vt.value.snapshot)?this.detachAndStoreRouteSubtree(vt,st):this.deactivateRouteAndOutlet(vt,st)}detachAndStoreRouteSubtree(vt,st){const Ot=st.getContext(vt.value.outlet),ne=Ot&&vt.value.component?Ot.children:st,fe=Ws(vt);for(const de of Object.keys(fe))this.deactivateRouteAndItsChildren(fe[de],ne);if(Ot&&Ot.outlet){const de=Ot.outlet.detach(),Jt=Ot.children.onOutletDeactivated();this.routeReuseStrategy.store(vt.value.snapshot,{componentRef:de,route:vt,contexts:Jt})}}deactivateRouteAndOutlet(vt,st){const Ot=st.getContext(vt.value.outlet),ne=Ot&&vt.value.component?Ot.children:st,fe=Ws(vt);for(const de of Object.keys(fe))this.deactivateRouteAndItsChildren(fe[de],ne);Ot&&Ot.outlet&&(Ot.outlet.deactivate(),Ot.children.onOutletDeactivated(),Ot.attachRef=null,Ot.resolver=null,Ot.route=null)}activateChildRoutes(vt,st,Ot){const ne=Ws(st);vt.children.forEach(fe=>{this.activateRoutes(fe,ne[fe.value.outlet],Ot),this.forwardEvent(new Vc(fe.value.snapshot))}),vt.children.length&&this.forwardEvent(new Ad(vt.value.snapshot))}activateRoutes(vt,st,Ot){const ne=vt.value,fe=st?st.value:null;if(zl(ne),ne===fe)if(ne.component){const de=Ot.getOrCreateContext(ne.outlet);this.activateChildRoutes(vt,st,de.children)}else this.activateChildRoutes(vt,st,Ot);else if(ne.component){const de=Ot.getOrCreateContext(ne.outlet);if(this.routeReuseStrategy.shouldAttach(ne.snapshot)){const Jt=this.routeReuseStrategy.retrieve(ne.snapshot);this.routeReuseStrategy.store(ne.snapshot,null),de.children.onOutletReAttached(Jt.contexts),de.attachRef=Jt.componentRef,de.route=Jt.route.value,de.outlet&&de.outlet.attach(Jt.componentRef,Jt.route.value),zl(Jt.route.value),this.activateChildRoutes(vt,null,de.children)}else{const Jt=Er(ne.snapshot),Cn=Jt?.get(u._Vd)??null;de.attachRef=null,de.route=ne,de.resolver=Cn,de.injector=Jt,de.outlet&&de.outlet.activateWith(ne,de.injector),this.activateChildRoutes(vt,null,de.children)}}else this.activateChildRoutes(vt,null,Ot)}}class Ec{constructor(vt){this.path=vt,this.route=this.path[this.path.length-1]}}class cl{constructor(vt,st){this.component=vt,this.route=st}}function Cc(ht,vt,st){const Ot=ht._root;return Qi(Ot,vt?vt._root:null,st,[Ot.value])}function ps(ht,vt){const st=Symbol(),Ot=vt.get(ht,st);return Ot===st?"function"!=typeof ht||(0,u.Z0I)(ht)?vt.get(ht):ht:Ot}function Qi(ht,vt,st,Ot,ne={canDeactivateChecks:[],canActivateChecks:[]}){const fe=Ws(vt);return ht.children.forEach(de=>{(function la(ht,vt,st,Ot,ne={canDeactivateChecks:[],canActivateChecks:[]}){const fe=ht.value,de=vt?vt.value:null,Jt=st?st.getContext(ht.value.outlet):null;if(de&&fe.routeConfig===de.routeConfig){const Cn=function or(ht,vt,st){if("function"==typeof st)return st(ht,vt);switch(st){case"pathParamsChange":return!Qe(ht.url,vt.url);case"pathParamsOrQueryParamsChange":return!Qe(ht.url,vt.url)||!dn(ht.queryParams,vt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xa(ht,vt)||!dn(ht.queryParams,vt.queryParams);default:return!xa(ht,vt)}}(de,fe,fe.routeConfig.runGuardsAndResolvers);Cn?ne.canActivateChecks.push(new Ec(Ot)):(fe.data=de.data,fe._resolvedData=de._resolvedData),Qi(ht,vt,fe.component?Jt?Jt.children:null:st,Ot,ne),Cn&&Jt&&Jt.outlet&&Jt.outlet.isActivated&&ne.canDeactivateChecks.push(new cl(Jt.outlet.component,de))}else de&&Wr(vt,Jt,ne),ne.canActivateChecks.push(new Ec(Ot)),Qi(ht,null,fe.component?Jt?Jt.children:null:st,Ot,ne)})(de,fe[de.value.outlet],st,Ot.concat([de.value]),ne),delete fe[de.value.outlet]}),We(fe,(de,Jt)=>Wr(de,st.getContext(Jt),ne)),ne}function Wr(ht,vt,st){const Ot=Ws(ht),ne=ht.value;We(Ot,(fe,de)=>{Wr(fe,ne.component?vt?vt.children.getContext(de):null:vt,st)}),st.canDeactivateChecks.push(new cl(ne.component&&vt&&vt.outlet&&vt.outlet.isActivated?vt.outlet.component:null,ne))}function Qa(ht){return"function"==typeof ht}function Fc(ht){return ht instanceof t.K||"EmptyError"===ht?.name}const Fr=Symbol("INITIAL_VALUE");function Nr(){return(0,lt.w)(ht=>(0,T.aj)(ht.map(vt=>vt.pipe((0,Ct.q)(1),(0,Dt.O)(Fr)))).pipe((0,ct.U)(vt=>{for(const st of vt)if(!0!==st){if(st===Fr)return Fr;if(!1===st||st instanceof bo)return st}return!0}),(0,Zt.h)(vt=>vt!==Fr),(0,Ct.q)(1)))}function Ic(ht){return(0,P.z)((0,Ut.b)(vt=>{if(Co(vt))throw ou(0,vt)}),(0,ct.U)(vt=>!0===vt))}const rp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Zl(ht,vt,st,Ot,ne){const fe=yc(ht,vt,st);return fe.matched?function ll(ht,vt,st,Ot){const ne=vt.canMatch;if(!ne||0===ne.length)return(0,v.of)(!0);const fe=ne.map(de=>{const Jt=ps(de,ht);return ee(function zo(ht){return ht&&Qa(ht.canMatch)}(Jt)?Jt.canMatch(vt,st):ht.runInContext(()=>Jt(vt,st)))});return(0,v.of)(fe).pipe(Nr(),Ic())}(Ot=jn(vt,Ot),vt,st).pipe((0,ct.U)(de=>!0===de?fe:{...rp})):(0,v.of)(fe)}function yc(ht,vt,st){if(""===vt.path)return"full"===vt.pathMatch&&(ht.hasChildren()||st.length>0)?{...rp}:{matched:!0,consumedSegments:[],remainingSegments:st,parameters:{},positionalParamSegments:{}};const ne=(vt.matcher||bn)(st,ht,vt);if(!ne)return{...rp};const fe={};We(ne.posParams,(Jt,Cn)=>{fe[Cn]=Jt.path});const de=ne.consumed.length>0?{...fe,...ne.consumed[ne.consumed.length-1].parameters}:fe;return{matched:!0,consumedSegments:ne.consumed,remainingSegments:st.slice(ne.consumed.length),parameters:de,positionalParamSegments:ne.posParams??{}}}function Gi(ht,vt,st,Ot,ne="corrected"){if(st.length>0&&function Bl(ht,vt,st){return st.some(Ot=>ul(ht,vt,Ot)&&za(Ot)!==De)}(ht,st,Ot)){const de=new hi(vt,function ru(ht,vt,st,Ot){const ne={};ne[De]=Ot,Ot._sourceSegment=ht,Ot._segmentIndexShift=vt.length;for(const fe of st)if(""===fe.path&&za(fe)!==De){const de=new hi([],{});de._sourceSegment=ht,de._segmentIndexShift=vt.length,ne[za(fe)]=de}return ne}(ht,vt,Ot,new hi(st,ht.children)));return de._sourceSegment=ht,de._segmentIndexShift=vt.length,{segmentGroup:de,slicedSegments:[]}}if(0===st.length&&function Ua(ht,vt,st){return st.some(Ot=>ul(ht,vt,Ot))}(ht,st,Ot)){const de=new hi(ht.segments,function dt(ht,vt,st,Ot,ne,fe){const de={};for(const Jt of Ot)if(ul(ht,st,Jt)&&!ne[za(Jt)]){const Cn=new hi([],{});Cn._sourceSegment=ht,Cn._segmentIndexShift="legacy"===fe?ht.segments.length:vt.length,de[za(Jt)]=Cn}return{...ne,...de}}(ht,vt,st,Ot,ht.children,ne));return de._sourceSegment=ht,de._segmentIndexShift=vt.length,{segmentGroup:de,slicedSegments:st}}const fe=new hi(ht.segments,ht.children);return fe._sourceSegment=ht,fe._segmentIndexShift=vt.length,{segmentGroup:fe,slicedSegments:st}}function ul(ht,vt,st){return(!(ht.hasChildren()||vt.length>0)||"full"!==st.pathMatch)&&""===st.path}function ar(ht,vt,st,Ot){return!!(za(ht)===Ot||Ot!==De&&ul(vt,st,ht))&&("**"===ht.path||yc(vt,ht,st).matched)}function Ir(ht,vt,st){return 0===vt.length&&!ht.children[st]}const _s=!1;class Da{constructor(vt){this.segmentGroup=vt||null}}class ki{constructor(vt){this.urlTree=vt}}function Xu(ht){return(0,O._)(new Da(ht))}function vo(ht){return(0,O._)(new ki(ht))}class Mi{constructor(vt,st,Ot,ne,fe){this.injector=vt,this.configLoader=st,this.urlSerializer=Ot,this.urlTree=ne,this.config=fe,this.allowRedirects=!0}apply(){const vt=Gi(this.urlTree.root,[],[],this.config).segmentGroup,st=new hi(vt.segments,vt.children);return this.expandSegmentGroup(this.injector,this.config,st,De).pipe((0,ct.U)(fe=>this.createUrlTree(xi(fe),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,bt.K)(fe=>{if(fe instanceof ki)return this.allowRedirects=!1,this.match(fe.urlTree);throw fe instanceof Da?this.noMatchError(fe):fe}))}match(vt){return this.expandSegmentGroup(this.injector,this.config,vt.root,De).pipe((0,ct.U)(ne=>this.createUrlTree(xi(ne),vt.queryParams,vt.fragment))).pipe((0,bt.K)(ne=>{throw ne instanceof Da?this.noMatchError(ne):ne}))}noMatchError(vt){return new u.vHH(4002,_s)}createUrlTree(vt,st,Ot){const ne=ai(vt);return new bo(ne,st,Ot)}expandSegmentGroup(vt,st,Ot,ne){return 0===Ot.segments.length&&Ot.hasChildren()?this.expandChildren(vt,st,Ot).pipe((0,ct.U)(fe=>new hi([],fe))):this.expandSegment(vt,Ot,st,Ot.segments,ne,!0)}expandChildren(vt,st,Ot){const ne=[];for(const fe of Object.keys(Ot.children))"primary"===fe?ne.unshift(fe):ne.push(fe);return(0,d.D)(ne).pipe((0,Tt.b)(fe=>{const de=Ot.children[fe],Jt=ao(st,fe);return this.expandSegmentGroup(vt,Jt,de,fe).pipe((0,ct.U)(Cn=>({segment:Cn,outlet:fe})))}),Lt((fe,de)=>(fe[de.outlet]=de.segment,fe),{}),Qt())}expandSegment(vt,st,Ot,ne,fe,de){return(0,d.D)(Ot).pipe((0,Tt.b)(Jt=>this.expandSegmentAgainstRoute(vt,st,Ot,Jt,ne,fe,de).pipe((0,bt.K)(Ri=>{if(Ri instanceof Da)return(0,v.of)(null);throw Ri}))),(0,Gt.P)(Jt=>!!Jt),(0,bt.K)((Jt,Cn)=>{if(Fc(Jt))return Ir(st,ne,fe)?(0,v.of)(new hi([],{})):Xu(st);throw Jt}))}expandSegmentAgainstRoute(vt,st,Ot,ne,fe,de,Jt){return ar(ne,st,fe,de)?void 0===ne.redirectTo?this.matchSegmentAgainstRoute(vt,st,ne,fe,de):Jt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de):Xu(st):Xu(st)}expandSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de){return"**"===ne.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(vt,Ot,ne,de):this.expandRegularSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(vt,st,Ot,ne){const fe=this.applyRedirectCommands([],Ot.redirectTo,{});return Ot.redirectTo.startsWith("/")?vo(fe):this.lineralizeSegments(Ot,fe).pipe((0,Rt.zg)(de=>{const Jt=new hi(de,{});return this.expandSegment(vt,Jt,st,de,ne,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(vt,st,Ot,ne,fe,de){const{matched:Jt,consumedSegments:Cn,remainingSegments:Ri,positionalParamSegments:po}=yc(st,ne,fe);if(!Jt)return Xu(st);const Zi=this.applyRedirectCommands(Cn,ne.redirectTo,po);return ne.redirectTo.startsWith("/")?vo(Zi):this.lineralizeSegments(ne,Zi).pipe((0,Rt.zg)(ja=>this.expandSegment(vt,st,Ot,ja.concat(Ri),de,!1)))}matchSegmentAgainstRoute(vt,st,Ot,ne,fe){return"**"===Ot.path?(vt=jn(Ot,vt),Ot.loadChildren?(Ot._loadedRoutes?(0,v.of)({routes:Ot._loadedRoutes,injector:Ot._loadedInjector}):this.configLoader.loadChildren(vt,Ot)).pipe((0,ct.U)(Jt=>(Ot._loadedRoutes=Jt.routes,Ot._loadedInjector=Jt.injector,new hi(ne,{})))):(0,v.of)(new hi(ne,{}))):Zl(st,Ot,ne,vt).pipe((0,lt.w)(({matched:de,consumedSegments:Jt,remainingSegments:Cn})=>de?this.getChildConfig(vt=Ot._injector??vt,Ot,ne).pipe((0,Rt.zg)(po=>{const Zi=po.injector??vt,ja=po.routes,{segmentGroup:$c,slicedSegments:Uu}=Gi(st,Jt,Cn,ja),Kc=new hi($c.segments,$c.children);if(0===Uu.length&&Kc.hasChildren())return this.expandChildren(Zi,ja,Kc).pipe((0,ct.U)(r1=>new hi(Jt,r1)));if(0===ja.length&&0===Uu.length)return(0,v.of)(new hi(Jt,{}));const pl=za(Ot)===fe;return this.expandSegment(Zi,Kc,ja,Uu,pl?De:fe,!0).pipe((0,ct.U)(Fs=>new hi(Jt.concat(Fs.segments),Fs.children)))})):Xu(st)))}getChildConfig(vt,st,Ot){return st.children?(0,v.of)({routes:st.children,injector:vt}):st.loadChildren?void 0!==st._loadedRoutes?(0,v.of)({routes:st._loadedRoutes,injector:st._loadedInjector}):function Nc(ht,vt,st,Ot){const ne=vt.canLoad;if(void 0===ne||0===ne.length)return(0,v.of)(!0);const fe=ne.map(de=>{const Jt=ps(de,ht);return ee(function $t(ht){return ht&&Qa(ht.canLoad)}(Jt)?Jt.canLoad(vt,st):ht.runInContext(()=>Jt(vt,st)))});return(0,v.of)(fe).pipe(Nr(),Ic())}(vt,st,Ot).pipe((0,Rt.zg)(ne=>ne?this.configLoader.loadChildren(vt,st).pipe((0,Ut.b)(fe=>{st._loadedRoutes=fe.routes,st._loadedInjector=fe.injector})):function pi(ht){return(0,O._)(Cs(_s,3))}())):(0,v.of)({routes:[],injector:vt})}lineralizeSegments(vt,st){let Ot=[],ne=st.root;for(;;){if(Ot=Ot.concat(ne.segments),0===ne.numberOfChildren)return(0,v.of)(Ot);if(ne.numberOfChildren>1||!ne.children[De])return(0,O._)(new u.vHH(4e3,_s));ne=ne.children[De]}}applyRedirectCommands(vt,st,Ot){return this.applyRedirectCreateUrlTree(st,this.urlSerializer.parse(st),vt,Ot)}applyRedirectCreateUrlTree(vt,st,Ot,ne){const fe=this.createSegmentGroup(vt,st.root,Ot,ne);return new bo(fe,this.createQueryParams(st.queryParams,this.urlTree.queryParams),st.fragment)}createQueryParams(vt,st){const Ot={};return We(vt,(ne,fe)=>{if("string"==typeof ne&&ne.startsWith(":")){const Jt=ne.substring(1);Ot[fe]=st[Jt]}else Ot[fe]=ne}),Ot}createSegmentGroup(vt,st,Ot,ne){const fe=this.createSegments(vt,st.segments,Ot,ne);let de={};return We(st.children,(Jt,Cn)=>{de[Cn]=this.createSegmentGroup(vt,Jt,Ot,ne)}),new hi(fe,de)}createSegments(vt,st,Ot,ne){return st.map(fe=>fe.path.startsWith(":")?this.findPosParam(vt,fe,ne):this.findOrReturn(fe,Ot))}findPosParam(vt,st,Ot){const ne=Ot[st.path.substring(1)];if(!ne)throw new u.vHH(4001,_s);return ne}findOrReturn(vt,st){let Ot=0;for(const ne of st){if(ne.path===vt.path)return st.splice(Ot),ne;Ot++}return vt}}class Ka{}class dl{constructor(vt,st,Ot,ne,fe,de,Jt,Cn){this.injector=vt,this.rootComponentType=st,this.config=Ot,this.urlTree=ne,this.url=fe,this.paramsInheritanceStrategy=de,this.relativeLinkResolution=Jt,this.urlSerializer=Cn}recognize(){const vt=Gi(this.urlTree.root,[],[],this.config.filter(st=>void 0===st.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,vt,De).pipe((0,ct.U)(st=>{if(null===st)return null;const Ot=new Jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},De,this.rootComponentType,null,this.urlTree.root,-1,{}),ne=new xc(Ot,st),fe=new $s(this.url,ne);return this.inheritParamsAndData(fe._root),fe}))}inheritParamsAndData(vt){const st=vt.value,Ot=Ul(st,this.paramsInheritanceStrategy);st.params=Object.freeze(Ot.params),st.data=Object.freeze(Ot.data),vt.children.forEach(ne=>this.inheritParamsAndData(ne))}processSegmentGroup(vt,st,Ot,ne){return 0===Ot.segments.length&&Ot.hasChildren()?this.processChildren(vt,st,Ot):this.processSegment(vt,st,Ot,Ot.segments,ne)}processChildren(vt,st,Ot){return(0,d.D)(Object.keys(Ot.children)).pipe((0,Tt.b)(ne=>{const fe=Ot.children[ne],de=ao(st,ne);return this.processSegmentGroup(vt,de,fe,ne)}),Lt((ne,fe)=>ne&&fe?(ne.push(...fe),ne):null),(0,Ue.o)(ne=>null!==ne),(0,qe.d)(null),Qt(),(0,ct.U)(ne=>{if(null===ne)return null;const fe=Cu(ne);return function bu(ht){ht.sort((vt,st)=>vt.value.outlet===De?-1:st.value.outlet===De?1:vt.value.outlet.localeCompare(st.value.outlet))}(fe),fe}))}processSegment(vt,st,Ot,ne,fe){return(0,d.D)(st).pipe((0,Tt.b)(de=>this.processSegmentAgainstRoute(de._injector??vt,de,Ot,ne,fe)),(0,Gt.P)(de=>!!de),(0,bt.K)(de=>{if(Fc(de))return Ir(Ot,ne,fe)?(0,v.of)([]):(0,v.of)(null);throw de}))}processSegmentAgainstRoute(vt,st,Ot,ne,fe){if(st.redirectTo||!ar(st,Ot,ne,fe))return(0,v.of)(null);let de;if("**"===st.path){const Jt=ne.length>0?_i(ne).parameters:{},Cn=Pt(Ot)+ne.length,Ri=new Jc(ne,Jt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(st),za(st),st.component??st._loadedComponent??null,st,td(Ot),Cn,Ge(st),Cn);de=(0,v.of)({snapshot:Ri,consumedSegments:[],remainingSegments:[]})}else de=Zl(Ot,st,ne,vt).pipe((0,ct.U)(({matched:Jt,consumedSegments:Cn,remainingSegments:Ri,parameters:po})=>{if(!Jt)return null;const Zi=Pt(Ot)+Cn.length;return{snapshot:new Jc(Cn,po,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yt(st),za(st),st.component??st._loadedComponent??null,st,td(Ot),Zi,Ge(st),Zi),consumedSegments:Cn,remainingSegments:Ri}}));return de.pipe((0,lt.w)(Jt=>{if(null===Jt)return(0,v.of)(null);const{snapshot:Cn,consumedSegments:Ri,remainingSegments:po}=Jt;vt=st._injector??vt;const Zi=st._loadedInjector??vt,ja=function Xa(ht){return ht.children?ht.children:ht.loadChildren?ht._loadedRoutes:[]}(st),{segmentGroup:$c,slicedSegments:Uu}=Gi(Ot,Ri,po,ja.filter(pl=>void 0===pl.redirectTo),this.relativeLinkResolution);if(0===Uu.length&&$c.hasChildren())return this.processChildren(Zi,ja,$c).pipe((0,ct.U)(pl=>null===pl?null:[new xc(Cn,pl)]));if(0===ja.length&&0===Uu.length)return(0,v.of)([new xc(Cn,[])]);const Kc=za(st)===fe;return this.processSegment(Zi,ja,$c,Uu,Kc?De:fe).pipe((0,ct.U)(pl=>null===pl?null:[new xc(Cn,pl)]))}))}}function Xs(ht){const vt=ht.value.routeConfig;return vt&&""===vt.path&&void 0===vt.redirectTo}function Cu(ht){const vt=[],st=new Set;for(const Ot of ht){if(!Xs(Ot)){vt.push(Ot);continue}const ne=vt.find(fe=>Ot.value.routeConfig===fe.value.routeConfig);void 0!==ne?(ne.children.push(...Ot.children),st.add(ne)):vt.push(Ot)}for(const Ot of st){const ne=Cu(Ot.children);vt.push(new xc(Ot.value,ne))}return vt.filter(Ot=>!st.has(Ot))}function td(ht){let vt=ht;for(;vt._sourceSegment;)vt=vt._sourceSegment;return vt}function Pt(ht){let vt=ht,st=vt._segmentIndexShift??0;for(;vt._sourceSegment;)vt=vt._sourceSegment,st+=vt._segmentIndexShift??0;return st-1}function Yt(ht){return ht.data||{}}function Ge(ht){return ht.resolve||{}}function Xn(ht){return"string"==typeof ht.title||null===ht.title}function ei(ht){return(0,lt.w)(vt=>{const st=ht(vt);return st?(0,d.D)(st).pipe((0,ct.U)(()=>vt)):(0,v.of)(vt)})}let yi=(()=>{class ht{buildTitle(st){let Ot,ne=st.root;for(;void 0!==ne;)Ot=this.getResolvedTitleForRoute(ne)??Ot,ne=ne.children.find(fe=>fe.outlet===De);return Ot}getResolvedTitleForRoute(st){return st.data[nn]}}return ht.\u0275fac=function(st){return new(st||ht)},ht.\u0275prov=u.Yz7({token:ht,factory:function(){return(0,u.f3M)(Ui)},providedIn:"root"}),ht})(),Ui=(()=>{class ht extends yi{constructor(st){super(),this.title=st}updateTitle(st){const Ot=this.buildTitle(st);void 0!==Ot&&this.title.setTitle(Ot)}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(ae.Dx))},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();class vi{}class ua extends class zi{shouldDetach(vt){return!1}store(vt,st){}shouldAttach(vt){return!1}retrieve(vt){return null}shouldReuseRoute(vt,st){return vt.routeConfig===st.routeConfig}}{}const ga=new u.OlP("",{providedIn:"root",factory:()=>({})}),fs=new u.OlP("ROUTES");let Us=(()=>{class ht{constructor(st,Ot){this.injector=st,this.compiler=Ot,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(st){if(this.componentLoaders.get(st))return this.componentLoaders.get(st);if(st._loadedComponent)return(0,v.of)(st._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(st);const Ot=ee(st.loadComponent()).pipe((0,Ut.b)(fe=>{this.onLoadEndListener&&this.onLoadEndListener(st),st._loadedComponent=fe}),(0,Wt.x)(()=>{this.componentLoaders.delete(st)})),ne=new B.c(Ot,()=>new K.xQ).pipe((0,se.x)());return this.componentLoaders.set(st,ne),ne}loadChildren(st,Ot){if(this.childrenLoaders.get(Ot))return this.childrenLoaders.get(Ot);if(Ot._loadedRoutes)return(0,v.of)({routes:Ot._loadedRoutes,injector:Ot._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ot);const fe=this.loadModuleFactoryOrRoutes(Ot.loadChildren).pipe((0,ct.U)(Jt=>{this.onLoadEndListener&&this.onLoadEndListener(Ot);let Cn,Ri,po=!1;Array.isArray(Jt)?Ri=Jt:(Cn=Jt.create(st).injector,Ri=ii(Cn.get(fs,[],u.XFs.Self|u.XFs.Optional)));return{routes:Ri.map(Os),injector:Cn}}),(0,Wt.x)(()=>{this.childrenLoaders.delete(Ot)})),de=new B.c(fe,()=>new K.xQ).pipe((0,se.x)());return this.childrenLoaders.set(Ot,de),de}loadModuleFactoryOrRoutes(st){return ee(st()).pipe((0,Rt.zg)(Ot=>Ot instanceof u.YKP||Array.isArray(Ot)?(0,v.of)(Ot):(0,d.D)(this.compiler.compileModuleAsync(Ot))))}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(u.zs3),u.LFG(u.Sil))},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();class Kr{}class Vr{shouldProcessUrl(vt){return!0}extract(vt){return vt}merge(vt,st){return vt}}function tc(ht){throw ht}function ec(ht,vt,st){return vt.parse("/")}const ws={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},o1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function na(){const ht=(0,u.f3M)(Ve),vt=(0,u.f3M)(dc),st=(0,u.f3M)(et.Ye),Ot=(0,u.f3M)(u.zs3),ne=(0,u.f3M)(u.Sil),fe=(0,u.f3M)(fs,{optional:!0})??[],de=(0,u.f3M)(ga,{optional:!0})??{},Jt=(0,u.f3M)(Ui),Cn=(0,u.f3M)(yi,{optional:!0}),Ri=(0,u.f3M)(Kr,{optional:!0}),po=(0,u.f3M)(vi,{optional:!0}),Zi=new Ba(null,ht,vt,st,Ot,ne,ii(fe));return Ri&&(Zi.urlHandlingStrategy=Ri),po&&(Zi.routeReuseStrategy=po),Zi.titleStrategy=Cn??Jt,function rr(ht,vt){ht.errorHandler&&(vt.errorHandler=ht.errorHandler),ht.malformedUriErrorHandler&&(vt.malformedUriErrorHandler=ht.malformedUriErrorHandler),ht.onSameUrlNavigation&&(vt.onSameUrlNavigation=ht.onSameUrlNavigation),ht.paramsInheritanceStrategy&&(vt.paramsInheritanceStrategy=ht.paramsInheritanceStrategy),ht.relativeLinkResolution&&(vt.relativeLinkResolution=ht.relativeLinkResolution),ht.urlUpdateStrategy&&(vt.urlUpdateStrategy=ht.urlUpdateStrategy),ht.canceledNavigationResolution&&(vt.canceledNavigationResolution=ht.canceledNavigationResolution)}(de,Zi),Zi}let Ba=(()=>{class ht{constructor(st,Ot,ne,fe,de,Jt,Cn){this.rootComponentType=st,this.urlSerializer=Ot,this.rootContexts=ne,this.location=fe,this.config=Cn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new K.xQ,this.errorHandler=tc,this.malformedUriErrorHandler=ec,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,v.of)(void 0),this.urlHandlingStrategy=new Vr,this.routeReuseStrategy=new ua,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=de.get(Us),this.configLoader.onLoadEndListener=ja=>this.triggerEvent(new t1(ja)),this.configLoader.onLoadStartListener=ja=>this.triggerEvent(new Hs(ja)),this.ngModule=de.get(u.h0i),this.console=de.get(u.c2e);const Zi=de.get(u.R0b);this.isNgZoneEnabled=Zi instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Cn),this.currentUrlTree=function X(){return new bo(new hi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$u(this.currentUrlTree,this.rootComponentType),this.transitions=new g.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(st){const Ot=this.events;return st.pipe((0,Zt.h)(ne=>0!==ne.id),(0,ct.U)(ne=>({...ne,extractedUrl:this.urlHandlingStrategy.extract(ne.rawUrl)})),(0,lt.w)(ne=>{let fe=!1,de=!1;return(0,v.of)(ne).pipe((0,Ut.b)(Jt=>{this.currentNavigation={id:Jt.id,initialUrl:Jt.rawUrl,extractedUrl:Jt.extractedUrl,trigger:Jt.source,extras:Jt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,lt.w)(Jt=>{const Cn=this.browserUrlTree.toString(),Ri=!this.navigated||Jt.extractedUrl.toString()!==Cn||Cn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ri)&&this.urlHandlingStrategy.shouldProcessUrl(Jt.rawUrl))return L1(Jt.source)&&(this.browserUrlTree=Jt.extractedUrl),(0,v.of)(Jt).pipe((0,lt.w)(Zi=>{const ja=this.transitions.getValue();return Ot.next(new Ar(Zi.id,this.serializeUrl(Zi.extractedUrl),Zi.source,Zi.restoredState)),ja!==this.transitions.getValue()?N.E:Promise.resolve(Zi)}),function Lo(ht,vt,st,Ot){return(0,lt.w)(ne=>function Si(ht,vt,st,Ot,ne){return new Mi(ht,vt,st,Ot,ne).apply()}(ht,vt,st,ne.extractedUrl,Ot).pipe((0,ct.U)(fe=>({...ne,urlAfterRedirects:fe}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ut.b)(Zi=>{this.currentNavigation={...this.currentNavigation,finalUrl:Zi.urlAfterRedirects},ne.urlAfterRedirects=Zi.urlAfterRedirects}),function En(ht,vt,st,Ot,ne,fe){return(0,Rt.zg)(de=>function Ko(ht,vt,st,Ot,ne,fe,de="emptyOnly",Jt="legacy"){return new dl(ht,vt,st,Ot,ne,de,Jt,fe).recognize().pipe((0,lt.w)(Cn=>null===Cn?function gr(ht){return new L.y(vt=>vt.error(ht))}(new Ka):(0,v.of)(Cn)))}(ht,vt,st,de.urlAfterRedirects,Ot.serialize(de.urlAfterRedirects),Ot,ne,fe).pipe((0,ct.U)(Jt=>({...de,targetSnapshot:Jt}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ut.b)(Zi=>{if(ne.targetSnapshot=Zi.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Zi.extras.skipLocationChange){const $c=this.urlHandlingStrategy.merge(Zi.urlAfterRedirects,Zi.rawUrl);this.setBrowserUrl($c,Zi)}this.browserUrlTree=Zi.urlAfterRedirects}const ja=new Js(Zi.id,this.serializeUrl(Zi.extractedUrl),this.serializeUrl(Zi.urlAfterRedirects),Zi.targetSnapshot);Ot.next(ja)}));if(Ri&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ja,extractedUrl:$c,source:Uu,restoredState:Kc,extras:pl}=Jt,Am=new Ar(ja,this.serializeUrl($c),Uu,Kc);Ot.next(Am);const Fs=$u($c,this.rootComponentType).snapshot;return ne={...Jt,targetSnapshot:Fs,urlAfterRedirects:$c,extras:{...pl,skipLocationChange:!1,replaceUrl:!1}},(0,v.of)(ne)}return this.rawUrlTree=Jt.rawUrl,Jt.resolve(null),N.E}),(0,Ut.b)(Jt=>{const Cn=new Ps(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(Cn)}),(0,ct.U)(Jt=>ne={...Jt,guards:Cc(Jt.targetSnapshot,Jt.currentSnapshot,this.rootContexts)}),function xu(ht,vt){return(0,Rt.zg)(st=>{const{targetSnapshot:Ot,currentSnapshot:ne,guards:{canActivateChecks:fe,canDeactivateChecks:de}}=st;return 0===de.length&&0===fe.length?(0,v.of)({...st,guardsResult:!0}):function Va(ht,vt,st,Ot){return(0,d.D)(ht).pipe((0,Rt.zg)(ne=>function au(ht,vt,st,Ot,ne){const fe=vt&&vt.routeConfig?vt.routeConfig.canDeactivate:null;if(!fe||0===fe.length)return(0,v.of)(!0);const de=fe.map(Jt=>{const Cn=Er(vt)??ne,Ri=ps(Jt,Cn);return ee(function wi(ht){return ht&&Qa(ht.canDeactivate)}(Ri)?Ri.canDeactivate(ht,vt,st,Ot):Cn.runInContext(()=>Ri(ht,vt,st,Ot))).pipe((0,Gt.P)())});return(0,v.of)(de).pipe(Nr())}(ne.component,ne.route,st,vt,Ot)),(0,Gt.P)(ne=>!0!==ne,!0))}(de,Ot,ne,ht).pipe((0,Rt.zg)(Jt=>Jt&&function re(ht){return"boolean"==typeof ht}(Jt)?function jc(ht,vt,st,Ot){return(0,d.D)(vt).pipe((0,Tt.b)(ne=>(0,U.z)(function wd(ht,vt){return null!==ht&&vt&&vt(new Lr(ht)),(0,v.of)(!0)}(ne.route.parent,Ot),function k1(ht,vt){return null!==ht&&vt&&vt(new e1(ht)),(0,v.of)(!0)}(ne.route,Ot),function n1(ht,vt,st){const Ot=vt[vt.length-1],fe=vt.slice(0,vt.length-1).reverse().map(de=>function Ud(ht){const vt=ht.routeConfig?ht.routeConfig.canActivateChild:null;return vt&&0!==vt.length?{node:ht,guards:vt}:null}(de)).filter(de=>null!==de).map(de=>(0,w.P)(()=>{const Jt=de.guards.map(Cn=>{const Ri=Er(de.node)??st,po=ps(Cn,Ri);return ee(function nt(ht){return ht&&Qa(ht.canActivateChild)}(po)?po.canActivateChild(Ot,ht):Ri.runInContext(()=>po(Ot,ht))).pipe((0,Gt.P)())});return(0,v.of)(Jt).pipe(Nr())}));return(0,v.of)(fe).pipe(Nr())}(ht,ne.path,st),function O1(ht,vt,st){const Ot=vt.routeConfig?vt.routeConfig.canActivate:null;if(!Ot||0===Ot.length)return(0,v.of)(!0);const ne=Ot.map(fe=>(0,w.P)(()=>{const de=Er(vt)??st,Jt=ps(fe,de);return ee(function Nt(ht){return ht&&Qa(ht.canActivate)}(Jt)?Jt.canActivate(vt,ht):de.runInContext(()=>Jt(vt,ht))).pipe((0,Gt.P)())}));return(0,v.of)(ne).pipe(Nr())}(ht,ne.route,st))),(0,Gt.P)(ne=>!0!==ne,!0))}(Ot,fe,ht,vt):(0,v.of)(Jt)),(0,ct.U)(Jt=>({...st,guardsResult:Jt})))})}(this.ngModule.injector,Jt=>this.triggerEvent(Jt)),(0,Ut.b)(Jt=>{if(ne.guardsResult=Jt.guardsResult,Co(Jt.guardsResult))throw ou(0,Jt.guardsResult);const Cn=new Qs(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot,!!Jt.guardsResult);this.triggerEvent(Cn)}),(0,Zt.h)(Jt=>!!Jt.guardsResult||(this.restoreHistory(Jt),this.cancelNavigationTransition(Jt,"",3),!1)),ei(Jt=>{if(Jt.guards.canActivateChecks.length)return(0,v.of)(Jt).pipe((0,Ut.b)(Cn=>{const Ri=new Lc(Cn.id,this.serializeUrl(Cn.extractedUrl),this.serializeUrl(Cn.urlAfterRedirects),Cn.targetSnapshot);this.triggerEvent(Ri)}),(0,lt.w)(Cn=>{let Ri=!1;return(0,v.of)(Cn).pipe(function St(ht,vt){return(0,Rt.zg)(st=>{const{targetSnapshot:Ot,guards:{canActivateChecks:ne}}=st;if(!ne.length)return(0,v.of)(st);let fe=0;return(0,d.D)(ne).pipe((0,Tt.b)(de=>function pe(ht,vt,st,Ot){const ne=ht.routeConfig,fe=ht._resolve;return void 0!==ne?.title&&!Xn(ne)&&(fe[nn]=ne.title),function Te(ht,vt,st,Ot){const ne=function Xe(ht){return[...Object.keys(ht),...Object.getOwnPropertySymbols(ht)]}(ht);if(0===ne.length)return(0,v.of)({});const fe={};return(0,d.D)(ne).pipe((0,Rt.zg)(de=>function Tn(ht,vt,st,Ot){const ne=Er(vt)??Ot,fe=ps(ht,ne);return ee(fe.resolve?fe.resolve(vt,st):ne.runInContext(()=>fe(vt,st)))}(ht[de],vt,st,Ot).pipe((0,Gt.P)(),(0,Ut.b)(Jt=>{fe[de]=Jt}))),Vt(1),(0,ie.h)(fe),(0,bt.K)(de=>Fc(de)?N.E:(0,O._)(de)))}(fe,ht,vt,Ot).pipe((0,ct.U)(de=>(ht._resolvedData=de,ht.data=Ul(ht,st).resolve,ne&&Xn(ne)&&(ht.data[nn]=ne.title),null)))}(de.route,Ot,ht,vt)),(0,Ut.b)(()=>fe++),Vt(1),(0,Rt.zg)(de=>fe===ne.length?(0,v.of)(st):N.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ut.b)({next:()=>Ri=!0,complete:()=>{Ri||(this.restoreHistory(Cn),this.cancelNavigationTransition(Cn,"",2))}}))}),(0,Ut.b)(Cn=>{const Ri=new us(Cn.id,this.serializeUrl(Cn.extractedUrl),this.serializeUrl(Cn.urlAfterRedirects),Cn.targetSnapshot);this.triggerEvent(Ri)}))}),ei(Jt=>{const Cn=Ri=>{const po=[];Ri.routeConfig?.loadComponent&&!Ri.routeConfig._loadedComponent&&po.push(this.configLoader.loadComponent(Ri.routeConfig).pipe((0,Ut.b)(Zi=>{Ri.component=Zi}),(0,ct.U)(()=>{})));for(const Zi of Ri.children)po.push(...Cn(Zi));return po};return(0,T.aj)(Cn(Jt.targetSnapshot.root)).pipe((0,qe.d)(),(0,Ct.q)(1))}),ei(()=>this.afterPreactivation()),(0,ct.U)(Jt=>{const Cn=function ir(ht,vt,st){const Ot=bc(ht,vt._root,st?st._root:void 0);return new sl(Ot,vt)}(this.routeReuseStrategy,Jt.targetSnapshot,Jt.currentRouterState);return ne={...Jt,targetRouterState:Cn}}),(0,Ut.b)(Jt=>{this.currentUrlTree=Jt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Jt.urlAfterRedirects,Jt.rawUrl),this.routerState=Jt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Jt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Jt),this.browserUrlTree=Jt.urlAfterRedirects)}),((ht,vt,st)=>(0,ct.U)(Ot=>(new zr(vt,Ot.targetRouterState,Ot.currentRouterState,st).activate(ht),Ot)))(this.rootContexts,this.routeReuseStrategy,Jt=>this.triggerEvent(Jt)),(0,Ut.b)({next(){fe=!0},complete(){fe=!0}}),(0,Wt.x)(()=>{fe||de||this.cancelNavigationTransition(ne,"",1),this.currentNavigation?.id===ne.id&&(this.currentNavigation=null)}),(0,bt.K)(Jt=>{if(de=!0,Vl(Jt)){ys(Jt)||(this.navigated=!0,this.restoreHistory(ne,!0));const Cn=new Oc(ne.id,this.serializeUrl(ne.extractedUrl),Jt.message,Jt.cancellationCode);if(Ot.next(Cn),ys(Jt)){const Ri=this.urlHandlingStrategy.merge(Jt.url,this.rawUrlTree),po={skipLocationChange:ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||L1(ne.source)};this.scheduleNavigation(Ri,"imperative",null,po,{resolve:ne.resolve,reject:ne.reject,promise:ne.promise})}else ne.resolve(!1)}else{this.restoreHistory(ne,!0);const Cn=new Al(ne.id,this.serializeUrl(ne.extractedUrl),Jt,ne.targetSnapshot??void 0);Ot.next(Cn);try{ne.resolve(this.errorHandler(Jt))}catch(Ri){ne.reject(Ri)}}return N.E}))}))}resetRootComponentType(st){this.rootComponentType=st,this.routerState.root.component=this.rootComponentType}setTransition(st){this.transitions.next({...this.transitions.value,...st})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(st=>{const Ot="popstate"===st.type?"popstate":"hashchange";"popstate"===Ot&&setTimeout(()=>{const ne={replaceUrl:!0},fe=st.state?.navigationId?st.state:null;if(fe){const Jt={...fe};delete Jt.navigationId,delete Jt.\u0275routerPageId,0!==Object.keys(Jt).length&&(ne.state=Jt)}const de=this.parseUrl(st.url);this.scheduleNavigation(de,Ot,fe,ne)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(st){this.events.next(st)}resetConfig(st){this.config=st.map(Os),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(st,Ot={}){const{relativeTo:ne,queryParams:fe,fragment:de,queryParamsHandling:Jt,preserveFragment:Cn}=Ot,Ri=ne||this.routerState.root,po=Cn?this.currentUrlTree.fragment:de;let Zi=null;switch(Jt){case"merge":Zi={...this.currentUrlTree.queryParams,...fe};break;case"preserve":Zi=this.currentUrlTree.queryParams;break;default:Zi=fe||null}return null!==Zi&&(Zi=this.removeEmptyProps(Zi)),Rn(Ri,this.currentUrlTree,st,Zi,po??null)}navigateByUrl(st,Ot={skipLocationChange:!1}){const ne=Co(st)?st:this.parseUrl(st),fe=this.urlHandlingStrategy.merge(ne,this.rawUrlTree);return this.scheduleNavigation(fe,"imperative",null,Ot)}navigate(st,Ot={skipLocationChange:!1}){return function sp(ht){for(let vt=0;vt{const fe=st[ne];return null!=fe&&(Ot[ne]=fe),Ot},{})}processNavigations(){this.navigations.subscribe(st=>{this.navigated=!0,this.lastSuccessfulId=st.id,this.currentPageId=st.targetPageId,this.events.next(new Ur(st.id,this.serializeUrl(st.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),st.resolve(!0)},st=>{this.console.warn(`Unhandled Navigation Error: ${st}`)})}scheduleNavigation(st,Ot,ne,fe,de){if(this.disposed)return Promise.resolve(!1);let Jt,Cn,Ri;de?(Jt=de.resolve,Cn=de.reject,Ri=de.promise):Ri=new Promise((ja,$c)=>{Jt=ja,Cn=$c});const po=++this.navigationId;let Zi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ne=this.location.getState()),Zi=ne&&ne.\u0275routerPageId?ne.\u0275routerPageId:fe.replaceUrl||fe.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Zi=0,this.setTransition({id:po,targetPageId:Zi,source:Ot,restoredState:ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:st,extras:fe,resolve:Jt,reject:Cn,promise:Ri,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ri.catch(ja=>Promise.reject(ja))}setBrowserUrl(st,Ot){const ne=this.urlSerializer.serialize(st),fe={...Ot.extras.state,...this.generateNgRouterState(Ot.id,Ot.targetPageId)};this.location.isCurrentPathEqualTo(ne)||Ot.extras.replaceUrl?this.location.replaceState(ne,"",fe):this.location.go(ne,"",fe)}restoreHistory(st,Ot=!1){if("computed"===this.canceledNavigationResolution){const ne=this.currentPageId-st.targetPageId;"popstate"!==st.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ne?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ne&&(this.resetState(st),this.browserUrlTree=st.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ne)}else"replace"===this.canceledNavigationResolution&&(Ot&&this.resetState(st),this.resetUrlToCurrentUrlTree())}resetState(st){this.routerState=st.currentRouterState,this.currentUrlTree=st.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,st.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(st,Ot,ne){const fe=new Oc(st.id,this.serializeUrl(st.extractedUrl),Ot,ne);this.triggerEvent(fe),st.resolve(!1)}generateNgRouterState(st,Ot){return"computed"===this.canceledNavigationResolution?{navigationId:st,\u0275routerPageId:Ot}:{navigationId:st}}}return ht.\u0275fac=function(st){u.$Z()},ht.\u0275prov=u.Yz7({token:ht,factory:function(){return na()},providedIn:"root"}),ht})();function L1(ht){return"imperative"!==ht}let ed=(()=>{class ht{constructor(st,Ot,ne,fe,de){this.router=st,this.route=Ot,this.tabIndexAttribute=ne,this.renderer=fe,this.el=de,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new K.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(st){this._preserveFragment=(0,u.D6c)(st)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(st){this._skipLocationChange=(0,u.D6c)(st)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(st){this._replaceUrl=(0,u.D6c)(st)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(st){if(null!=this.tabIndexAttribute)return;const Ot=this.renderer,ne=this.el.nativeElement;null!==st?Ot.setAttribute(ne,"tabindex",st):Ot.removeAttribute(ne,"tabindex")}ngOnChanges(st){this.onChanges.next(this)}set routerLink(st){null!=st?(this.commands=Array.isArray(st)?st:[st],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(Ba),u.Y36(Ss),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},ht.\u0275dir=u.lG2({type:ht,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(st,Ot){1&st&&u.NdJ("click",function(){return Ot.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[u.TTD]}),ht})(),Wc=(()=>{class ht{constructor(st,Ot,ne){this.router=st,this.route=Ot,this.locationStrategy=ne,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new K.xQ,this.subscription=st.events.subscribe(fe=>{fe instanceof Ur&&this.updateTargetUrlAndHref()})}set preserveFragment(st){this._preserveFragment=(0,u.D6c)(st)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(st){this._skipLocationChange=(0,u.D6c)(st)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(st){this._replaceUrl=(0,u.D6c)(st)}get replaceUrl(){return this._replaceUrl}set routerLink(st){this.commands=null!=st?Array.isArray(st)?st:[st]:null}ngOnChanges(st){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(st,Ot,ne,fe,de){return!!(0!==st||Ot||ne||fe||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(Ba),u.Y36(Ss),u.Y36(et.S$))},ht.\u0275dir=u.lG2({type:ht,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(st,Ot){1&st&&u.NdJ("click",function(fe){return Ot.onClick(fe.button,fe.ctrlKey,fe.shiftKey,fe.altKey,fe.metaKey)}),2&st&&u.uIk("target",Ot.target)("href",Ot.href,u.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[u.TTD]}),ht})(),a1=(()=>{class ht{constructor(st,Ot,ne,fe,de,Jt){this.router=st,this.element=Ot,this.renderer=ne,this.cdr=fe,this.link=de,this.linkWithHref=Jt,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.vpe,this.routerEventsSubscription=st.events.subscribe(Cn=>{Cn instanceof Ur&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,this.linksWithHrefs.changes,(0,v.of)(null)).pipe((0,Xt.J)()).subscribe(st=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const st=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Ot=>!!Ot).map(Ot=>Ot.onChanges);this.linkInputChangesSubscription=(0,d.D)(st).pipe((0,Xt.J)()).subscribe(Ot=>{this.isActive!==this.isLinkActive(this.router)(Ot)&&this.update()})}set routerLinkActive(st){const Ot=Array.isArray(st)?st:st.split(" ");this.classes=Ot.filter(ne=>!!ne)}ngOnChanges(st){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const st=this.hasActiveLinks();this.isActive!==st&&(this.isActive=st,this.cdr.markForCheck(),this.classes.forEach(Ot=>{st?this.renderer.addClass(this.element.nativeElement,Ot):this.renderer.removeClass(this.element.nativeElement,Ot)}),st&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(st))})}isLinkActive(st){const Ot=function cp(ht){return!!ht.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ne=>!!ne.urlTree&&st.isActive(ne.urlTree,Ot)}hasActiveLinks(){const st=this.isLinkActive(this.router);return this.link&&st(this.link)||this.linkWithHref&&st(this.linkWithHref)||this.links.some(st)||this.linksWithHrefs.some(st)}}return ht.\u0275fac=function(st){return new(st||ht)(u.Y36(Ba),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(ed,8),u.Y36(Wc,8))},ht.\u0275dir=u.lG2({type:ht,selectors:[["","routerLinkActive",""]],contentQueries:function(st,Ot,ne){if(1&st&&(u.Suo(ne,ed,5),u.Suo(ne,Wc,5)),2&st){let fe;u.iGM(fe=u.CRH())&&(Ot.links=fe),u.iGM(fe=u.CRH())&&(Ot.linksWithHrefs=fe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.TTD]}),ht})();class yu{}let Au=(()=>{class ht{constructor(st,Ot,ne,fe,de){this.router=st,this.injector=ne,this.preloadingStrategy=fe,this.loader=de}setUpPreloading(){this.subscription=this.router.events.pipe((0,Zt.h)(st=>st instanceof Ur),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(st,Ot){const ne=[];for(const fe of Ot){fe.providers&&!fe._injector&&(fe._injector=(0,u.MMx)(fe.providers,st,`Route: ${fe.path}`));const de=fe._injector??st,Jt=fe._loadedInjector??de;fe.loadChildren&&!fe._loadedRoutes&&void 0===fe.canLoad||fe.loadComponent&&!fe._loadedComponent?ne.push(this.preloadConfig(de,fe)):(fe.children||fe._loadedRoutes)&&ne.push(this.processRoutes(Jt,fe.children??fe._loadedRoutes))}return(0,d.D)(ne).pipe((0,Xt.J)())}preloadConfig(st,Ot){return this.preloadingStrategy.preload(Ot,()=>{let ne;ne=Ot.loadChildren&&void 0===Ot.canLoad?this.loader.loadChildren(st,Ot):(0,v.of)(null);const fe=ne.pipe((0,Rt.zg)(de=>null===de?(0,v.of)(void 0):(Ot._loadedRoutes=de.routes,Ot._loadedInjector=de.injector,this.processRoutes(de.injector??st,de.routes))));if(Ot.loadComponent&&!Ot._loadedComponent){const de=this.loader.loadComponent(Ot);return(0,d.D)([fe,de]).pipe((0,Xt.J)())}return fe})}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(Ba),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(yu),u.LFG(Us))},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const pc=new u.OlP("");let Gl=(()=>{class ht{constructor(st,Ot,ne={}){this.router=st,this.viewportScroller=Ot,this.options=ne,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ne.scrollPositionRestoration=ne.scrollPositionRestoration||"disabled",ne.anchorScrolling=ne.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(st=>{st instanceof Ar?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=st.navigationTrigger,this.restoredId=st.restoredState?st.restoredState.navigationId:0):st instanceof Ur&&(this.lastId=st.id,this.scheduleScrollEvent(st,this.router.parseUrl(st.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(st=>{st instanceof lc&&(st.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(st.position):st.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(st.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(st,Ot){this.router.triggerEvent(new lc(st,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ot))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ht.\u0275fac=function(st){u.$Z()},ht.\u0275prov=u.Yz7({token:ht,factory:ht.\u0275fac}),ht})();function Ml(ht,vt){return{\u0275kind:ht,\u0275providers:vt}}function On(ht){return[{provide:fs,multi:!0,useValue:ht}]}function io(){const ht=(0,u.f3M)(u.zs3);return vt=>{const st=ht.get(u.z2F);if(vt!==st.components[0])return;const Ot=ht.get(Ba),ne=ht.get(sn);1===ht.get(Y)&&Ot.initialNavigation(),ht.get(f_,null,u.XFs.Optional)?.setUpPreloading(),ht.get(pc,null,u.XFs.Optional)?.init(),Ot.resetRootComponentType(st.componentTypes[0]),ne.closed||(ne.next(),ne.unsubscribe())}}const sn=new u.OlP("",{factory:()=>new K.xQ}),Y=new u.OlP("",{providedIn:"root",factory:()=>1});const f_=new u.OlP("");function Sp(ht){return Ml(0,[{provide:f_,useExisting:Au},{provide:yu,useExisting:ht}])}const Es=new u.OlP("ROUTER_FORROOT_GUARD"),kp=[et.Ye,{provide:Ve,useClass:Ne},{provide:Ba,useFactory:na},dc,{provide:Ss,useFactory:function Br(ht){return ht.routerState.root},deps:[Ba]},Us];function E1(){return new u.PXZ("Router",Ba)}let h_=(()=>{class ht{constructor(st){}static forRoot(st,Ot){return{ngModule:ht,providers:[kp,[],On(st),{provide:Es,useFactory:cu,deps:[[Ba,new u.FiY,new u.tp0]]},{provide:ga,useValue:Ot||{}},Ot?.useHash?{provide:et.S$,useClass:et.Do}:{provide:et.S$,useClass:et.b0},{provide:pc,useFactory:()=>{const ht=(0,u.f3M)(Ba),vt=(0,u.f3M)(et.EM),st=(0,u.f3M)(ga);return st.scrollOffset&&vt.setOffset(st.scrollOffset),new Gl(ht,vt,st)}},Ot?.preloadingStrategy?Sp(Ot.preloadingStrategy).\u0275providers:[],{provide:u.PXZ,multi:!0,useFactory:E1},Ot?.initialNavigation?id(Ot):[],[{provide:od,useFactory:io},{provide:u.tb,multi:!0,useExisting:od}]]}}static forChild(st){return{ngModule:ht,providers:[On(st)]}}}return ht.\u0275fac=function(st){return new(st||ht)(u.LFG(Es,8))},ht.\u0275mod=u.oAB({type:ht}),ht.\u0275inj=u.cJS({imports:[ns]}),ht})();function cu(ht){return"guarded"}function id(ht){return["disabled"===ht.initialNavigation?Ml(3,[{provide:u.ip1,multi:!0,useFactory:()=>{const vt=(0,u.f3M)(Ba);return()=>{vt.setUpLocationChangeListener()}}},{provide:Y,useValue:2}]).\u0275providers:[],"enabledBlocking"===ht.initialNavigation?Ml(2,[{provide:Y,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:vt=>{const st=vt.get(et.V_,Promise.resolve());let Ot=!1;return()=>st.then(()=>new Promise(fe=>{const de=vt.get(Ba),Jt=vt.get(sn);(function ne(fe){vt.get(Ba).events.pipe((0,Zt.h)(Jt=>Jt instanceof Ur||Jt instanceof Oc||Jt instanceof Al),(0,ct.U)(Jt=>Jt instanceof Ur||Jt instanceof Oc&&(0===Jt.code||1===Jt.code)&&null),(0,Zt.h)(Jt=>null!==Jt),(0,Ct.q)(1)).subscribe(()=>{fe()})})(()=>{fe(!0),Ot=!0}),de.afterPreactivation=()=>(fe(!0),Ot||Jt.closed?(0,v.of)(void 0):Jt),de.initialNavigation()}))}}]).\u0275providers:[]]}const od=new u.OlP("")},92216:(tt,W,f)=>{"use strict";f.d(W,{BN:()=>ur,by:()=>Xa,uH:()=>En});var u=f(94650);function d(St,pe){var Te=Object.keys(St);if(Object.getOwnPropertySymbols){var Xe=Object.getOwnPropertySymbols(St);pe&&(Xe=Xe.filter(function(Tn){return Object.getOwnPropertyDescriptor(St,Tn).enumerable})),Te.push.apply(Te,Xe)}return Te}function v(St){for(var pe=1;peSt.length)&&(pe=St.length);for(var Te=0,Xe=new Array(pe);Te0;)pe+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return pe}function we(St){for(var pe=[],Te=(St||[]).length>>>0;Te--;)pe[Te]=St[Te];return pe}function He(St){return St.classList?we(St.classList):(St.getAttribute("class")||"").split(" ").filter(function(pe){return pe})}function kn(St){return"".concat(St).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Bi(St){return Object.keys(St||{}).reduce(function(pe,Te){return pe+"".concat(Te,": ").concat(St[Te].trim(),";")},"")}function un(St){return St.size!==xe.size||St.x!==xe.x||St.y!==xe.y||St.rotate!==xe.rotate||St.flipX||St.flipY}function xi(){var pe=nn,Te=oe.cssPrefix,Xe=oe.replacementClass,Tn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==Te||Xe!==pe){var Xn=new RegExp("\\.".concat("fa","\\-"),"g"),ei=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(pe),"g");Tn=Tn.replace(Xn,".".concat(Te,"-")).replace(ei,"--".concat(Te,"-")).replace(yi,".".concat(Xe))}return Tn}var co=!1;function Co(){oe.autoAddCss&&!co&&(function It(St){if(St&&qe){var pe=Vt.createElement("style");pe.setAttribute("type","text/css"),pe.innerHTML=St;for(var Te=Vt.head.childNodes,Xe=null,Tn=Te.length-1;Tn>-1;Tn--){var Xn=Te[Tn],ei=(Xn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ei)>-1&&(Xe=Xn)}Vt.head.insertBefore(pe,Xe)}}(xi()),co=!0)}var So={mixout:function(){return{dom:{css:xi,insertCss:Co}}},hooks:function(){return{beforeDOMElementCreation:function(){Co()},beforeI2svg:function(){Co()}}}},ma=le||{};ma[Xt]||(ma[Xt]={}),ma[Xt].styles||(ma[Xt].styles={}),ma[Xt].hooks||(ma[Xt].hooks={}),ma[Xt].shims||(ma[Xt].shims=[]);var Ta=ma[Xt],Re=[],Ye=!1;function Me(St){!qe||(Ye?setTimeout(St,0):Re.push(St))}function an(St){var pe=St.tag,Te=St.attributes,Xe=void 0===Te?{}:Te,Tn=St.children,Xn=void 0===Tn?[]:Tn;return"string"==typeof St?kn(St):"<".concat(pe," ").concat(function Ei(St){return Object.keys(St||{}).reduce(function(pe,Te){return pe+"".concat(Te,'="').concat(kn(St[Te]),'" ')},"").trim()}(Xe),">").concat(Xn.map(an).join(""),"")}function j(St,pe,Te){if(St&&St[pe]&&St[pe][Te])return{prefix:pe,iconName:Te,icon:St[pe][Te]}}qe&&((Ye=(Vt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Vt.readyState))||Vt.addEventListener("DOMContentLoaded",function St(){Vt.removeEventListener("DOMContentLoaded",St),Ye=1,Re.map(function(pe){return pe()})}));var J=function(pe,Te,Xe,Tn){var Ui,xo,vi,Xn=Object.keys(pe),ei=Xn.length,yi=void 0!==Tn?function(pe,Te){return function(Xe,Tn,Xn,ei){return pe.call(Te,Xe,Tn,Xn,ei)}}(Te,Tn):Te;for(void 0===Xe?(Ui=1,vi=pe[Xn[0]]):(Ui=0,vi=Xe);Ui=55296&&Tn<=56319&&Te2&&void 0!==arguments[2]?arguments[2]:{},Xe=Te.skipHooks,Tn=void 0!==Xe&&Xe,Xn=Xi(pe);"function"!=typeof Ta.hooks.addPack||Tn?Ta.styles[St]=v(v({},Ta.styles[St]||{}),Xn):Ta.hooks.addPack(St,Xi(pe)),"fas"===St&&To("fa",pe)}var fr,jr,Ja,Or=Ta.styles,cc=Ta.shims,nr=(P(fr={},We,Object.values(ue[We])),P(fr,ee,Object.values(ue[ee])),fr),ls=null,Ar={},Ur={},Oc={},Al={},Js={},Ps=(P(jr={},We,Object.keys(At[We])),P(jr,ee,Object.keys(At[ee])),jr);function Lc(St,pe){var Te=pe.split("-"),Xe=Te[0],Tn=Te.slice(1).join("-");return Xe!==St||""===Tn||function Qs(St){return~Qe.indexOf(St)}(Tn)?null:Tn}var us=function(){var pe=function(Xn){return J(Or,function(ei,yi,Ui){return ei[Ui]=J(yi,Xn,{}),ei},{})};Ar=pe(function(Tn,Xn,ei){return Xn[3]&&(Tn[Xn[3]]=ei),Xn[2]&&Xn[2].filter(function(Ui){return"number"==typeof Ui}).forEach(function(Ui){Tn[Ui.toString(16)]=ei}),Tn}),Ur=pe(function(Tn,Xn,ei){return Tn[ei]=ei,Xn[2]&&Xn[2].filter(function(Ui){return"string"==typeof Ui}).forEach(function(Ui){Tn[Ui]=ei}),Tn}),Js=pe(function(Tn,Xn,ei){var yi=Xn[2];return Tn[ei]=ei,yi.forEach(function(Ui){Tn[Ui]=ei}),Tn});var Te="far"in Or||oe.autoFetchSvg,Xe=J(cc,function(Tn,Xn){var ei=Xn[0],yi=Xn[1],Ui=Xn[2];return"far"===yi&&!Te&&(yi="fas"),"string"==typeof ei&&(Tn.names[ei]={prefix:yi,iconName:Ui}),"number"==typeof ei&&(Tn.unicodes[ei.toString(16)]={prefix:yi,iconName:Ui}),Tn},{names:{},unicodes:{}});Oc=Xe.names,Al=Xe.unicodes,ls=uc(oe.styleDefault,{family:oe.familyDefault})};function Hs(St,pe){return(Ar[St]||{})[pe]}function Lr(St,pe){return(Js[St]||{})[pe]}function Ad(St){return Oc[St]||{prefix:null,iconName:null}}function Vc(){return ls}function uc(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=pe.family,Xe=void 0===Te?We:Te,Tn=At[Xe][St],Xn=Ht[Xe][St]||Ht[Xe][Tn],ei=St in Ta.styles?St:null;return Xn||ei||null}(function gn(St){rn.push(St)})(function(St){ls=uc(St.styleDefault,{family:oe.familyDefault})}),us();var Bc=(P(Ja={},We,Object.keys(ue[We])),P(Ja,ee,Object.keys(ue[ee])),Ja);function Gc(St){var pe,Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xe=Te.skipLookups,Tn=void 0!==Xe&&Xe,Xn=(P(pe={},We,"".concat(oe.cssPrefix,"-").concat(We)),P(pe,ee,"".concat(oe.cssPrefix,"-").concat(ee)),pe),ei=null,yi=We;(St.includes(Xn[We])||St.some(function(xo){return Bc[We].includes(xo)}))&&(yi=We),(St.includes(Xn[ee])||St.some(function(xo){return Bc[ee].includes(xo)}))&&(yi=ee);var Ui=St.reduce(function(xo,vi){var zi=Lc(oe.cssPrefix,vi);if(Or[vi]?(vi=nr[yi].includes(vi)?ye[yi][vi]:vi,ei=vi,xo.prefix=vi):Ps[yi].indexOf(vi)>-1?(ei=vi,xo.prefix=uc(vi,{family:yi})):zi?xo.iconName=zi:vi!==oe.replacementClass&&vi!==Xn[We]&&vi!==Xn[ee]&&xo.rest.push(vi),!Tn&&xo.prefix&&xo.iconName){var ua="fa"===ei?Ad(xo.iconName):{},ea=Lr(xo.prefix,xo.iconName);ua.prefix&&(ei=null),xo.iconName=ua.iconName||ea||xo.iconName,xo.prefix=ua.prefix||xo.prefix,"far"===xo.prefix&&!Or.far&&Or.fas&&!oe.autoFetchSvg&&(xo.prefix="fas")}return xo},{prefix:null,iconName:null,rest:[]});return(St.includes("fa-brands")||St.includes("fab"))&&(Ui.prefix="fab"),(St.includes("fa-duotone")||St.includes("fad"))&&(Ui.prefix="fad"),!Ui.prefix&&yi===ee&&(Or.fass||oe.autoFetchSvg)&&(Ui.prefix="fass",Ui.iconName=Lr(Ui.prefix,Ui.iconName)||Ui.iconName),("fa"===Ui.prefix||"fa"===ei)&&(Ui.prefix=Vc()||"fas"),Ui}var js=function(){function St(){(function T(St,pe){if(!(St instanceof pe))throw new TypeError("Cannot call a class as a function")})(this,St),this.definitions={}}return function w(St,pe,Te){pe&&U(St.prototype,pe),Te&&U(St,Te),Object.defineProperty(St,"prototype",{writable:!1})}(St,[{key:"add",value:function(){for(var Te=this,Xe=arguments.length,Tn=new Array(Xe),Xn=0;Xn0&&vi.forEach(function(zi){"string"==typeof zi&&(Te[yi][zi]=xo)}),Te[yi][Ui]=xo}),Te}}]),St}(),xc=[],Ws={},sl={},$u=Object.keys(sl);function Ss(St,pe){for(var Te=arguments.length,Xe=new Array(Te>2?Te-2:0),Tn=2;Tn1?pe-1:0),Xe=1;Xe0&&void 0!==arguments[0]?arguments[0]:{};return qe?(Ul("beforeI2svg",pe),Ys("pseudoElements2svg",pe),Ys("i2svg",pe)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Te=pe.autoReplaceSvgRoot;!1===oe.autoReplaceSvg&&(oe.autoReplaceSvg=!0),oe.observeMutations=!0,Me(function(){ir({autoReplaceSvgRoot:Te}),Ul("watch",pe)})}},xa={noAuto:function(){oe.autoReplaceSvg=!1,oe.observeMutations=!1,Ul("noAuto")},config:oe,dom:iu,parse:{icon:function(pe){if(null===pe)return null;if("object"===g(pe)&&pe.prefix&&pe.iconName)return{prefix:pe.prefix,iconName:Lr(pe.prefix,pe.iconName)||pe.iconName};if(Array.isArray(pe)&&2===pe.length){var Te=0===pe[1].indexOf("fa-")?pe[1].slice(3):pe[1],Xe=uc(pe[0]);return{prefix:Xe,iconName:Lr(Xe,Te)||Te}}if("string"==typeof pe&&(pe.indexOf("".concat(oe.cssPrefix,"-"))>-1||pe.match(Se))){var Tn=Gc(pe.split(" "),{skipLookups:!0});return{prefix:Tn.prefix||Vc(),iconName:Lr(Tn.prefix,Tn.iconName)||Tn.iconName}}if("string"==typeof pe){var Xn=Vc();return{prefix:Xn,iconName:Lr(Xn,pe)||pe}}}},library:$s,findIconDefinition:Jc,toHtml:an},ir=function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Te=pe.autoReplaceSvgRoot,Xe=void 0===Te?Vt:Te;(Object.keys(Ta.styles).length>0||oe.autoFetchSvg)&&qe&&oe.autoReplaceSvg&&xa.dom.i2svg({node:Xe})};function bc(St,pe){return Object.defineProperty(St,"abstract",{get:pe}),Object.defineProperty(St,"html",{get:function(){return St.abstract.map(function(Xe){return an(Xe)})}}),Object.defineProperty(St,"node",{get:function(){if(qe){var Xe=Vt.createElement("div");return Xe.innerHTML=St.html,Xe.children}}}),St}function Ia(St){var pe=St.icons,Te=pe.main,Xe=pe.mask,Tn=St.prefix,Xn=St.iconName,ei=St.transform,yi=St.symbol,Ui=St.title,xo=St.maskId,vi=St.titleId,zi=St.extra,ua=St.watchable,ea=void 0!==ua&&ua,ga=Xe.found?Xe:Te,$r=ga.width,fs=ga.height,Us="fak"===Tn,Kr=[oe.replacementClass,Xn?"".concat(oe.cssPrefix,"-").concat(Xn):""].filter(function(rr){return-1===zi.classes.indexOf(rr)}).filter(function(rr){return""!==rr||!!rr}).concat(zi.classes).join(" "),Vr={children:[],attributes:v(v({},zi.attributes),{},{"data-prefix":Tn,"data-icon":Xn,class:Kr,role:zi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat($r," ").concat(fs)})},os=Us&&!~zi.classes.indexOf("fa-fw")?{width:"".concat($r/fs*16*.0625,"em")}:{};ea&&(Vr.attributes[hn]=""),Ui&&(Vr.children.push({tag:"title",attributes:{id:Vr.attributes["aria-labelledby"]||"title-".concat(vi||zt())},children:[Ui]}),delete Vr.attributes.title);var tc=v(v({},Vr),{},{prefix:Tn,iconName:Xn,main:Te,mask:Xe,maskId:xo,transform:ei,symbol:yi,styles:v(v({},os),zi.styles)}),ec=Xe.found&&Te.found?Ys("generateAbstractMask",tc)||{children:[],attributes:{}}:Ys("generateAbstractIcon",tc)||{children:[],attributes:{}},o1=ec.attributes;return tc.children=ec.children,tc.attributes=o1,yi?function Ku(St){var Te=St.iconName,Xe=St.children,Tn=St.attributes,Xn=St.symbol,ei=!0===Xn?"".concat(St.prefix,"-").concat(oe.cssPrefix,"-").concat(Te):Xn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},Tn),{},{id:ei}),children:Xe}]}]}(tc):function vu(St){var pe=St.children,Te=St.main,Xe=St.mask,Tn=St.attributes,Xn=St.styles,ei=St.transform;if(un(ei)&&Te.found&&!Xe.found){var xo={x:Te.width/Te.height/2,y:.5};Tn.style=Bi(v(v({},Xn),{},{"transform-origin":"".concat(xo.x+ei.x/16,"em ").concat(xo.y+ei.y/16,"em")}))}return[{tag:"svg",attributes:Tn,children:pe}]}(tc)}function ou(St){var pe=St.content,Te=St.width,Xe=St.height,Tn=St.transform,Xn=St.title,ei=St.extra,yi=St.watchable,Ui=void 0!==yi&&yi,xo=v(v(v({},ei.attributes),Xn?{title:Xn}:{}),{},{class:ei.classes.join(" ")});Ui&&(xo[hn]="");var vi=v({},ei.styles);un(Tn)&&(vi.transform=function Ke(St){var pe=St.transform,Te=St.width,Tn=St.height,Xn=void 0===Tn?16:Tn,ei=St.startCentered,yi=void 0!==ei&&ei,Ui="";return Ui+=yi&&je?"translate(".concat(pe.x/16-(void 0===Te?16:Te)/2,"em, ").concat(pe.y/16-Xn/2,"em) "):yi?"translate(calc(-50% + ".concat(pe.x/16,"em), calc(-50% + ").concat(pe.y/16,"em)) "):"translate(".concat(pe.x/16,"em, ").concat(pe.y/16,"em) "),(Ui+="scale(".concat(pe.size/16*(pe.flipX?-1:1),", ").concat(pe.size/16*(pe.flipY?-1:1),") "))+"rotate(".concat(pe.rotate,"deg) ")}({transform:Tn,startCentered:!0,width:Te,height:Xe}),vi["-webkit-transform"]=vi.transform);var zi=Bi(vi);zi.length>0&&(xo.style=zi);var ua=[];return ua.push({tag:"span",attributes:xo,children:[pe]}),Xn&&ua.push({tag:"span",attributes:{class:"sr-only"},children:[Xn]}),ua}function Cs(St){var pe=St.content,Te=St.title,Xe=St.extra,Tn=v(v(v({},Xe.attributes),Te?{title:Te}:{}),{},{class:Xe.classes.join(" ")}),Xn=Bi(Xe.styles);Xn.length>0&&(Tn.style=Xn);var ei=[];return ei.push({tag:"span",attributes:Tn,children:[pe]}),Te&&ei.push({tag:"span",attributes:{class:"sr-only"},children:[Te]}),ei}var ys=Ta.styles;function Vl(St){var pe=St[0],Te=St[1],Xn=N(St.slice(4),1)[0];return{found:!0,width:pe,height:Te,icon:Array.isArray(Xn)?{tag:"g",attributes:{class:"".concat(oe.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(oe.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Xn[0]}},{tag:"path",attributes:{class:"".concat(oe.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Xn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Xn}}}}var Pr={found:!1,width:512,height:512};function Ha(St,pe){var Te=pe;return"fa"===pe&&null!==oe.styleDefault&&(pe=Vc()),new Promise(function(Xe,Tn){if(Ys("missingIconAbstract"),"fa"===Te){var ei=Ad(St)||{};St=ei.iconName||St,pe=ei.prefix||pe}if(St&&pe&&ys[pe]&&ys[pe][St])return Xe(Vl(ys[pe][St]));(function dc(St,pe){!oi&&!oe.showMissingIcons&&St&&console.error('Icon with name "'.concat(St,'" and prefix "').concat(pe,'" is missing.'))})(St,pe),Xe(v(v({},Pr),{},{icon:oe.showMissingIcons&&St&&Ys("missingIconAbstract")||{}}))})}var Ya=function(){},wr=oe.measurePerformance&&ge&&ge.mark&&ge.measure?ge:{mark:Ya,measure:Ya},xr='FA "6.2.1"',zs_begin=function(pe){return wr.mark("".concat(xr," ").concat(pe," begins")),function(){return function(pe){wr.mark("".concat(xr," ").concat(pe," ends")),wr.measure("".concat(xr," ").concat(pe),"".concat(xr," ").concat(pe," begins"),"".concat(xr," ").concat(pe," ends"))}(pe)}},ds=function(){};function wa(St){return"string"==typeof(St.getAttribute?St.getAttribute(hn):null)}function ks(St){return Vt.createElementNS("http://www.w3.org/2000/svg",St)}function Ks(St){return Vt.createElement(St)}function Os(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=pe.ceFn,Xe=void 0===Te?"svg"===St.tag?ks:Ks:Te;if("string"==typeof St)return Vt.createTextNode(St);var Tn=Xe(St.tag);Object.keys(St.attributes||[]).forEach(function(ei){Tn.setAttribute(ei,St.attributes[ei])});var Xn=St.children||[];return Xn.forEach(function(ei){Tn.appendChild(Os(ei,{ceFn:Xe}))}),Tn}var ao={replace:function(pe){var Te=pe[0];if(Te.parentNode)if(pe[1].forEach(function(Tn){Te.parentNode.insertBefore(Os(Tn),Te)}),null===Te.getAttribute(hn)&&oe.keepOriginalSource){var Xe=Vt.createComment(function za(St){var pe=" ".concat(St.outerHTML," ");return"".concat(pe,"Font Awesome fontawesome.com ")}(Te));Te.parentNode.replaceChild(Xe,Te)}else Te.remove()},nest:function(pe){var Te=pe[0],Xe=pe[1];if(~He(Te).indexOf(oe.replacementClass))return ao.replace(pe);var Tn=new RegExp("".concat(oe.cssPrefix,"-.*"));if(delete Xe[0].attributes.id,Xe[0].attributes.class){var Xn=Xe[0].attributes.class.split(" ").reduce(function(yi,Ui){return Ui===oe.replacementClass||Ui.match(Tn)?yi.toSvg.push(Ui):yi.toNode.push(Ui),yi},{toNode:[],toSvg:[]});Xe[0].attributes.class=Xn.toSvg.join(" "),0===Xn.toNode.length?Te.removeAttribute("class"):Te.setAttribute("class",Xn.toNode.join(" "))}var ei=Xe.map(function(yi){return an(yi)}).join("\n");Te.setAttribute(hn,""),Te.innerHTML=ei}};function Er(St){St()}function lr(St,pe){var Te="function"==typeof pe?pe:ds;if(0===St.length)Te();else{var Xe=Er;"async"===oe.mutateApproach&&(Xe=le.requestAnimationFrame||Er),Xe(function(){var Tn=function As(){return!0===oe.autoReplaceSvg?ao.replace:ao[oe.autoReplaceSvg]||ao.replace}(),Xn=zs_begin("mutate");St.map(Tn),Xn(),Te()})}}var zr=!1;function Ec(){zr=!0}function cl(){zr=!1}var Cc=null;function Ud(St){if(be&&oe.observeMutations){var pe=St.treeCallback,Te=void 0===pe?ds:pe,Xe=St.nodeCallback,Tn=void 0===Xe?ds:Xe,Xn=St.pseudoElementsCallback,ei=void 0===Xn?ds:Xn,yi=St.observeMutationsRoot,Ui=void 0===yi?Vt:yi;Cc=new be(function(xo){if(!zr){var vi=Vc();we(xo).forEach(function(zi){if("childList"===zi.type&&zi.addedNodes.length>0&&!wa(zi.addedNodes[0])&&(oe.searchPseudoElements&&ei(zi.target),Te(zi.target)),"attributes"===zi.type&&zi.target.parentNode&&oe.searchPseudoElements&&ei(zi.target.parentNode),"attributes"===zi.type&&wa(zi.target)&&~hi.indexOf(zi.attributeName))if("class"===zi.attributeName&&function is(St){var pe=St.getAttribute?St.getAttribute(Oe):null,Te=St.getAttribute?St.getAttribute(dn):null;return pe&&Te}(zi.target)){var ua=Gc(He(zi.target)),ga=ua.iconName;zi.target.setAttribute(Oe,ua.prefix||vi),ga&&zi.target.setAttribute(dn,ga)}else(function Ts(St){return St&&St.classList&&St.classList.contains&&St.classList.contains(oe.replacementClass)})(zi.target)&&Tn(zi.target)})}}),qe&&Cc.observe(Ui,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Qi(St){var pe=St.getAttribute("style"),Te=[];return pe&&(Te=pe.split(";").reduce(function(Xe,Tn){var Xn=Tn.split(":"),ei=Xn[0],yi=Xn.slice(1);return ei&&yi.length>0&&(Xe[ei]=yi.join(":").trim()),Xe},{})),Te}function la(St){var pe=St.getAttribute("data-prefix"),Te=St.getAttribute("data-icon"),Xe=void 0!==St.innerText?St.innerText.trim():"",Tn=Gc(He(St));return Tn.prefix||(Tn.prefix=Vc()),pe&&Te&&(Tn.prefix=pe,Tn.iconName=Te),Tn.iconName&&Tn.prefix||(Tn.prefix&&Xe.length>0&&(Tn.iconName=function t1(St,pe){return(Ur[St]||{})[pe]}(Tn.prefix,St.innerText)||Hs(Tn.prefix,ze(St.innerText))),!Tn.iconName&&oe.autoFetchSvg&&St.firstChild&&St.firstChild.nodeType===Node.TEXT_NODE&&(Tn.iconName=St.firstChild.data)),Tn}function or(St){var pe=we(St.attributes).reduce(function(Tn,Xn){return"class"!==Tn.name&&"style"!==Tn.name&&(Tn[Xn.name]=Xn.value),Tn},{}),Te=St.getAttribute("title"),Xe=St.getAttribute("data-fa-title-id");return oe.autoA11y&&(Te?pe["aria-labelledby"]="".concat(oe.replacementClass,"-title-").concat(Xe||zt()):(pe["aria-hidden"]="true",pe.focusable="false")),pe}function Qa(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Te=la(St),Xe=Te.iconName,Tn=Te.prefix,Xn=Te.rest,ei=or(St),yi=Ss("parseNodeAttributes",{},St),Ui=pe.styleParser?Qi(St):[];return v({iconName:Xe,title:St.getAttribute("title"),titleId:St.getAttribute("data-fa-title-id"),prefix:Tn,transform:xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Xn,styles:Ui,attributes:ei}},yi)}var re=Ta.styles;function $t(St){var pe="nest"===oe.autoReplaceSvg?Qa(St,{styleParser:!1}):Qa(St);return~pe.extra.classes.indexOf(vn)?Ys("generateLayersText",St,pe):Ys("generateSvgReplacementMutation",St,pe)}var Nt=new Set;function nt(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!qe)return Promise.resolve();var Te=Vt.documentElement.classList,Xe=function(zi){return Te.add("".concat(Pn,"-").concat(zi))},Tn=function(zi){return Te.remove("".concat(Pn,"-").concat(zi))},Xn=oe.autoFetchSvg?Nt:ot.map(function(vi){return"fa-".concat(vi)}).concat(Object.keys(re));Xn.includes("fa")||Xn.push("fa");var ei=[".".concat(vn,":not([").concat(hn,"])")].concat(Xn.map(function(vi){return".".concat(vi,":not([").concat(hn,"])")})).join(", ");if(0===ei.length)return Promise.resolve();var yi=[];try{yi=we(St.querySelectorAll(ei))}catch{}if(!(yi.length>0))return Promise.resolve();Xe("pending"),Tn("complete");var Ui=zs_begin("onTree"),xo=yi.reduce(function(vi,zi){try{var ua=$t(zi);ua&&vi.push(ua)}catch(ea){oi||"MissingIcon"===ea.name&&console.error(ea)}return vi},[]);return new Promise(function(vi,zi){Promise.all(xo).then(function(ua){lr(ua,function(){Xe("active"),Xe("complete"),Tn("pending"),"function"==typeof pe&&pe(),Ui(),vi()})}).catch(function(ua){Ui(),zi(ua)})})}function wi(St){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$t(St).then(function(Te){Te&&lr([Te],pe)})}ot.map(function(St){Nt.add("fa-".concat(St))}),Object.keys(At[We]).map(Nt.add.bind(Nt)),Object.keys(At[ee]).map(Nt.add.bind(Nt)),Nt=B(Nt);var Aa=function(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xe=Te.transform,Tn=void 0===Xe?xe:Xe,Xn=Te.symbol,ei=void 0!==Xn&&Xn,yi=Te.mask,Ui=void 0===yi?null:yi,xo=Te.maskId,vi=void 0===xo?null:xo,zi=Te.title,ua=void 0===zi?null:zi,ea=Te.titleId,ga=void 0===ea?null:ea,$r=Te.classes,fs=void 0===$r?[]:$r,Us=Te.attributes,Kr=void 0===Us?{}:Us,Vr=Te.styles,os=void 0===Vr?{}:Vr;if(pe){var tc=pe.prefix,ec=pe.iconName,ws=pe.icon;return bc(v({type:"icon"},pe),function(){return Ul("beforeDOMElementCreation",{iconDefinition:pe,params:Te}),oe.autoA11y&&(ua?Kr["aria-labelledby"]="".concat(oe.replacementClass,"-title-").concat(ga||zt()):(Kr["aria-hidden"]="true",Kr.focusable="false")),Ia({icons:{main:Vl(ws),mask:Ui?Vl(Ui.icon):{found:!1,width:null,height:null,icon:{}}},prefix:tc,iconName:ec,transform:v(v({},xe),Tn),symbol:ei,title:ua,maskId:vi,titleId:ga,extra:{attributes:Kr,styles:os,classes:fs}})})}},Qc={mixout:function(){return{icon:(St=Aa,function(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xe=(pe||{}).icon?pe:Jc(pe||{}),Tn=Te.mask;return Tn&&(Tn=(Tn||{}).icon?Tn:Jc(Tn||{})),St(Xe,v(v({},Te),{},{mask:Tn}))})};var St},hooks:function(){return{mutationObserverCallbacks:function(Te){return Te.treeCallback=nt,Te.nodeCallback=wi,Te}}},provides:function(pe){pe.i2svg=function(Te){var Xe=Te.node,Xn=Te.callback;return nt(void 0===Xe?Vt:Xe,void 0===Xn?function(){}:Xn)},pe.generateSvgReplacementMutation=function(Te,Xe){var Tn=Xe.iconName,Xn=Xe.title,ei=Xe.titleId,yi=Xe.prefix,Ui=Xe.transform,xo=Xe.symbol,vi=Xe.mask,zi=Xe.maskId,ua=Xe.extra;return new Promise(function(ea,ga){Promise.all([Ha(Tn,yi),vi.iconName?Ha(vi.iconName,vi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function($r){var fs=N($r,2);ea([Te,Ia({icons:{main:fs[0],mask:fs[1]},prefix:yi,iconName:Tn,transform:Ui,symbol:xo,maskId:zi,title:Xn,titleId:ei,extra:ua,watchable:!0})])}).catch(ga)})},pe.generateAbstractIcon=function(Te){var xo,Xe=Te.children,Tn=Te.attributes,Xn=Te.main,ei=Te.transform,Ui=Bi(Te.styles);return Ui.length>0&&(Tn.style=Ui),un(ei)&&(xo=Ys("generateAbstractTransformGrouping",{main:Xn,transform:ei,containerWidth:Xn.width,iconWidth:Xn.width})),Xe.push(xo||Xn.icon),{children:Xe,attributes:Tn}}}},Fc={mixout:function(){return{layer:function(Te){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tn=Xe.classes,Xn=void 0===Tn?[]:Tn;return bc({type:"layer"},function(){Ul("beforeDOMElementCreation",{assembler:Te,params:Xe});var ei=[];return Te(function(yi){Array.isArray(yi)?yi.map(function(Ui){ei=ei.concat(Ui.abstract)}):ei=ei.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(oe.cssPrefix,"-layers")].concat(B(Xn)).join(" ")},children:ei}]})}}}},Fr={mixout:function(){return{counter:function(Te){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tn=Xe.title,Xn=void 0===Tn?null:Tn,ei=Xe.classes,yi=void 0===ei?[]:ei,Ui=Xe.attributes,xo=void 0===Ui?{}:Ui,vi=Xe.styles,zi=void 0===vi?{}:vi;return bc({type:"counter",content:Te},function(){return Ul("beforeDOMElementCreation",{content:Te,params:Xe}),Cs({content:Te.toString(),title:Xn,extra:{attributes:xo,styles:zi,classes:["".concat(oe.cssPrefix,"-layers-counter")].concat(B(yi))}})})}}}},Nr={mixout:function(){return{text:function(Te){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Tn=Xe.transform,Xn=void 0===Tn?xe:Tn,ei=Xe.title,yi=void 0===ei?null:ei,Ui=Xe.classes,xo=void 0===Ui?[]:Ui,vi=Xe.attributes,zi=void 0===vi?{}:vi,ua=Xe.styles,ea=void 0===ua?{}:ua;return bc({type:"text",content:Te},function(){return Ul("beforeDOMElementCreation",{content:Te,params:Xe}),ou({content:Te,transform:v(v({},xe),Xn),title:yi,extra:{attributes:zi,styles:ea,classes:["".concat(oe.cssPrefix,"-layers-text")].concat(B(xo))}})})}}},provides:function(pe){pe.generateLayersText=function(Te,Xe){var Tn=Xe.title,Xn=Xe.transform,ei=Xe.extra,yi=null,Ui=null;if(je){var xo=parseInt(getComputedStyle(Te).fontSize,10),vi=Te.getBoundingClientRect();yi=vi.width/xo,Ui=vi.height/xo}return oe.autoA11y&&!Tn&&(ei.attributes["aria-hidden"]="true"),Promise.resolve([Te,ou({content:Te.innerHTML,width:yi,height:Ui,transform:Xn,title:Tn,extra:ei,watchable:!0})])}}},xu=new RegExp('"',"ug"),Va=[1105920,1112319];function k1(St,pe){var Te="".concat("data-fa-pseudo-element-pending").concat(pe.replace(":","-"));return new Promise(function(Xe,Tn){if(null!==St.getAttribute(Te))return Xe();var ei=we(St.children).filter(function(ws){return ws.getAttribute(Ce)===pe})[0],yi=le.getComputedStyle(St,pe),Ui=yi.getPropertyValue("font-family").match(qn),xo=yi.getPropertyValue("font-weight"),vi=yi.getPropertyValue("content");if(ei&&!Ui)return St.removeChild(ei),Xe();if(Ui&&"none"!==vi&&""!==vi){var zi=yi.getPropertyValue("content"),ua=~["Sharp"].indexOf(Ui[2])?ee:We,ea=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ui[2])?Ht[ua][Ui[2].toLowerCase()]:mi[ua][xo],ga=function jc(St){var pe=St.replace(xu,""),Te=function Vn(St,pe){var Tn,Te=St.length,Xe=St.charCodeAt(pe);return Xe>=55296&&Xe<=56319&&Te>pe+1&&(Tn=St.charCodeAt(pe+1))>=56320&&Tn<=57343?1024*(Xe-55296)+Tn-56320+65536:Xe}(pe,0),Xe=Te>=Va[0]&&Te<=Va[1],Tn=2===pe.length&&pe[0]===pe[1];return{value:ze(Tn?pe[0]:pe),isSecondary:Xe||Tn}}(zi),$r=ga.value,fs=ga.isSecondary,Us=Ui[0].startsWith("FontAwesome"),Kr=Hs(ea,$r),Vr=Kr;if(Us){var os=function e1(St){var pe=Al[St],Te=Hs("fas",St);return pe||(Te?{prefix:"fas",iconName:Te}:null)||{prefix:null,iconName:null}}($r);os.iconName&&os.prefix&&(Kr=os.iconName,ea=os.prefix)}if(!Kr||fs||ei&&ei.getAttribute(Oe)===ea&&ei.getAttribute(dn)===Vr)Xe();else{St.setAttribute(Te,Vr),ei&&St.removeChild(ei);var tc=function Wr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ec=tc.extra;ec.attributes[Ce]=pe,Ha(Kr,ea).then(function(ws){var o1=Ia(v(v({},tc),{},{icons:{main:ws,mask:{prefix:null,iconName:null,rest:[]}},prefix:ea,iconName:Vr,extra:ec,watchable:!0})),rr=Vt.createElement("svg");"::before"===pe?St.insertBefore(rr,St.firstChild):St.appendChild(rr),rr.outerHTML=o1.map(function(na){return an(na)}).join("\n"),St.removeAttribute(Te),Xe()}).catch(Tn)}}else Xe()})}function wd(St){return Promise.all([k1(St,"::before"),k1(St,"::after")])}function O1(St){return!(St.parentNode===document.head||~_i.indexOf(St.tagName.toUpperCase())||St.getAttribute(Ce)||St.parentNode&&"svg"===St.parentNode.tagName)}function n1(St){if(qe)return new Promise(function(pe,Te){var Xe=we(St.querySelectorAll("*")).filter(O1).map(wd),Tn=zs_begin("searchPseudoElements");Ec(),Promise.all(Xe).then(function(){Tn(),cl(),pe()}).catch(function(){Tn(),cl(),Te()})})}var Nc=!1,ll=function(pe){return pe.toLowerCase().split(" ").reduce(function(Xe,Tn){var Xn=Tn.toLowerCase().split("-"),ei=Xn[0],yi=Xn.slice(1).join("-");if(ei&&"h"===yi)return Xe.flipX=!0,Xe;if(ei&&"v"===yi)return Xe.flipY=!0,Xe;if(yi=parseFloat(yi),isNaN(yi))return Xe;switch(ei){case"grow":Xe.size=Xe.size+yi;break;case"shrink":Xe.size=Xe.size-yi;break;case"left":Xe.x=Xe.x-yi;break;case"right":Xe.x=Xe.x+yi;break;case"up":Xe.y=Xe.y-yi;break;case"down":Xe.y=Xe.y+yi;break;case"rotate":Xe.rotate=Xe.rotate+yi}return Xe},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Zl={x:0,y:0,width:"100%",height:"100%"};function yc(St){var pe=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return St.attributes&&(St.attributes.fill||pe)&&(St.attributes.fill="black"),St}!function Yl(St,pe){var Te=pe.mixoutsTo;xc=St,Ws={},Object.keys(sl).forEach(function(Xe){-1===$u.indexOf(Xe)&&delete sl[Xe]}),xc.forEach(function(Xe){var Tn=Xe.mixout?Xe.mixout():{};if(Object.keys(Tn).forEach(function(ei){"function"==typeof Tn[ei]&&(Te[ei]=Tn[ei]),"object"===g(Tn[ei])&&Object.keys(Tn[ei]).forEach(function(yi){Te[ei]||(Te[ei]={}),Te[ei][yi]=Tn[ei][yi]})}),Xe.hooks){var Xn=Xe.hooks();Object.keys(Xn).forEach(function(ei){Ws[ei]||(Ws[ei]=[]),Ws[ei].push(Xn[ei])})}Xe.provides&&Xe.provides(sl)})}([So,Qc,Fc,Fr,Nr,{hooks:function(){return{mutationObserverCallbacks:function(Te){return Te.pseudoElementsCallback=n1,Te}}},provides:function(pe){pe.pseudoElements2svg=function(Te){var Xe=Te.node;oe.searchPseudoElements&&n1(void 0===Xe?Vt:Xe)}}},{mixout:function(){return{dom:{unwatch:function(){Ec(),Nc=!0}}}},hooks:function(){return{bootstrap:function(){Ud(Ss("mutationObserverCallbacks",{}))},noAuto:function(){!function ps(){!Cc||Cc.disconnect()}()},watch:function(Te){var Xe=Te.observeMutationsRoot;Nc?cl():Ud(Ss("mutationObserverCallbacks",{observeMutationsRoot:Xe}))}}}},{mixout:function(){return{parse:{transform:function(Te){return ll(Te)}}}},hooks:function(){return{parseNodeAttributes:function(Te,Xe){var Tn=Xe.getAttribute("data-fa-transform");return Tn&&(Te.transform=ll(Tn)),Te}}},provides:function(pe){pe.generateAbstractTransformGrouping=function(Te){var Xe=Te.main,Tn=Te.transform,ei=Te.iconWidth,yi={transform:"translate(".concat(Te.containerWidth/2," 256)")},Ui="translate(".concat(32*Tn.x,", ").concat(32*Tn.y,") "),xo="scale(".concat(Tn.size/16*(Tn.flipX?-1:1),", ").concat(Tn.size/16*(Tn.flipY?-1:1),") "),vi="rotate(".concat(Tn.rotate," 0 0)"),ea={outer:yi,inner:{transform:"".concat(Ui," ").concat(xo," ").concat(vi)},path:{transform:"translate(".concat(ei/2*-1," -256)")}};return{tag:"g",attributes:v({},ea.outer),children:[{tag:"g",attributes:v({},ea.inner),children:[{tag:Xe.icon.tag,children:Xe.icon.children,attributes:v(v({},Xe.icon.attributes),ea.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Te,Xe){var Tn=Xe.getAttribute("data-fa-mask"),Xn=Tn?Gc(Tn.split(" ").map(function(ei){return ei.trim()})):{prefix:null,iconName:null,rest:[]};return Xn.prefix||(Xn.prefix=Vc()),Te.mask=Xn,Te.maskId=Xe.getAttribute("data-fa-mask-id"),Te}}},provides:function(pe){pe.generateAbstractMask=function(Te){var St,Xe=Te.children,Tn=Te.attributes,Xn=Te.main,ei=Te.mask,yi=Te.maskId,vi=Xn.icon,ua=ei.icon,ea=function _n(St){var pe=St.transform,Xe=St.iconWidth,Tn={transform:"translate(".concat(St.containerWidth/2," 256)")},Xn="translate(".concat(32*pe.x,", ").concat(32*pe.y,") "),ei="scale(".concat(pe.size/16*(pe.flipX?-1:1),", ").concat(pe.size/16*(pe.flipY?-1:1),") "),yi="rotate(".concat(pe.rotate," 0 0)");return{outer:Tn,inner:{transform:"".concat(Xn," ").concat(ei," ").concat(yi)},path:{transform:"translate(".concat(Xe/2*-1," -256)")}}}({transform:Te.transform,containerWidth:ei.width,iconWidth:Xn.width}),ga={tag:"rect",attributes:v(v({},Zl),{},{fill:"white"})},$r=vi.children?{children:vi.children.map(yc)}:{},fs={tag:"g",attributes:v({},ea.inner),children:[yc(v({tag:vi.tag,attributes:v(v({},vi.attributes),ea.path)},$r))]},Us={tag:"g",attributes:v({},ea.outer),children:[fs]},Kr="mask-".concat(yi||zt()),Vr="clip-".concat(yi||zt()),os={tag:"mask",attributes:v(v({},Zl),{},{id:Kr,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ga,Us]},tc={tag:"defs",children:[{tag:"clipPath",attributes:{id:Vr},children:(St=ua,"g"===St.tag?St.children:[St])},os]};return Xe.push(tc,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(Vr,")"),mask:"url(#".concat(Kr,")")},Zl)}),{children:Xe,attributes:Tn}}}},{provides:function(pe){var Te=!1;le.matchMedia&&(Te=le.matchMedia("(prefers-reduced-motion: reduce)").matches),pe.missingIconAbstract=function(){var Xe=[],Tn={fill:"currentColor"},Xn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Xe.push({tag:"path",attributes:v(v({},Tn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ei=v(v({},Xn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:v(v({},Tn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Te||yi.children.push({tag:"animate",attributes:v(v({},Xn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},ei),{},{values:"1;0;1;1;0;1;"})}),Xe.push(yi),Xe.push({tag:"path",attributes:v(v({},Tn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Te?[]:[{tag:"animate",attributes:v(v({},ei),{},{values:"1;0;0;0;0;1;"})}]}),Te||Xe.push({tag:"path",attributes:v(v({},Tn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:v(v({},ei),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Xe}}}},{hooks:function(){return{parseNodeAttributes:function(Te,Xe){var Tn=Xe.getAttribute("data-fa-symbol");return Te.symbol=null!==Tn&&(""===Tn||Tn),Te}}}}],{mixoutsTo:xa});var Da=xa.parse,vo=xa.icon,Mi=f(11481);const Lo=["*"],gr=St=>{const pe={"fa-spin":St.spin,"fa-pulse":St.pulse,"fa-fw":St.fixedWidth,"fa-border":St.border,"fa-inverse":St.inverse,"fa-layers-counter":St.counter,"fa-flip-horizontal":"horizontal"===St.flip||"both"===St.flip,"fa-flip-vertical":"vertical"===St.flip||"both"===St.flip,[`fa-${St.size}`]:null!==St.size,[`fa-rotate-${St.rotate}`]:null!==St.rotate,[`fa-pull-${St.pull}`]:null!==St.pull,[`fa-stack-${St.stackItemSize}`]:null!=St.stackItemSize};return Object.keys(pe).map(Te=>pe[Te]?Te:null).filter(Te=>Te)};let bu=(()=>{class St{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275prov=u.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"}),St})(),Xa=(()=>{class St{constructor(){this.definitions={}}addIcons(...Te){for(const Xe of Te){Xe.prefix in this.definitions||(this.definitions[Xe.prefix]={}),this.definitions[Xe.prefix][Xe.iconName]=Xe;for(const Tn of Xe.icon[2])"string"==typeof Tn&&(this.definitions[Xe.prefix][Tn]=Xe)}}addIconPacks(...Te){for(const Xe of Te){const Tn=Object.keys(Xe).map(Xn=>Xe[Xn]);this.addIcons(...Tn)}}getIconDefinition(Te,Xe){return Te in this.definitions&&Xe in this.definitions[Te]?this.definitions[Te][Xe]:null}}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275prov=u.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"}),St})(),Xs=(()=>{class St{constructor(){this.stackItemSize="1x"}ngOnChanges(Te){if("size"in Te)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275dir=u.lG2({type:St,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[u.TTD]}),St})(),Cu=(()=>{class St{constructor(Te,Xe){this.renderer=Te,this.elementRef=Xe}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Te){"size"in Te&&(null!=Te.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Te.size.currentValue}`),null!=Te.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Te.size.previousValue}`))}}return St.\u0275fac=function(Te){return new(Te||St)(u.Y36(u.Qsj),u.Y36(u.SBq))},St.\u0275cmp=u.Xpm({type:St,selectors:[["fa-stack"]],inputs:{size:"size"},features:[u.TTD],ngContentSelectors:Lo,decls:1,vars:0,template:function(Te,Xe){1&Te&&(u.F$t(),u.Hsn(0))},encapsulation:2}),St})(),ur=(()=>{class St{constructor(Te,Xe,Tn,Xn,ei){this.sanitizer=Te,this.config=Xe,this.iconLibrary=Tn,this.stackItem=Xn,this.classes=[],null!=ei&&null==Xn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Te){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Xe=null;if(Xe=this.icon??this.config.fallbackIcon,Te){const Tn=this.findIconDefinition(Xe);if(null!=Tn){const Xn=this.buildParams();this.renderIcon(Tn,Xn)}}}render(){this.ngOnChanges({})}findIconDefinition(Te){const Xe=((St,pe)=>(St=>void 0!==St.prefix&&void 0!==St.iconName)(St)?St:Array.isArray(St)&&2===St.length?{prefix:St[0],iconName:St[1]}:"string"==typeof St?{prefix:pe,iconName:St}:void 0)(Te,this.config.defaultPrefix);return"icon"in Xe?Xe:this.iconLibrary.getIconDefinition(Xe.prefix,Xe.iconName)??((St=>{throw new Error(`Could not find icon with iconName=${St.iconName} and prefix=${St.prefix} in the icon library.`)})(Xe),null)}buildParams(){const Te={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Xe="string"==typeof this.transform?Da.transform(this.transform):this.transform;return{title:this.title,transform:Xe,classes:[...gr(Te),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Te,Xe){const Tn=vo(Te,Xe);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Tn.html.join("\n"))}}return St.\u0275fac=function(Te){return new(Te||St)(u.Y36(Mi.H7),u.Y36(bu),u.Y36(Xa),u.Y36(Xs,8),u.Y36(Cu,8))},St.\u0275cmp=u.Xpm({type:St,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Te,Xe){2&Te&&(u.Ikx("innerHTML",Xe.renderedIconHTML,u.oJD),u.uIk("title",Xe.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[u.TTD],decls:0,vars:0,template:function(Te,Xe){},encapsulation:2}),St})(),En=(()=>{class St{}return St.\u0275fac=function(Te){return new(Te||St)},St.\u0275mod=u.oAB({type:St}),St.\u0275inj=u.cJS({}),St})()},33231:(tt,W,f)=>{"use strict";f.d(W,{Co:()=>bn,nu:()=>hn});var u=f(29521),d=f(94650),v=f(24006),g=f(3238),t=f(59549),T=f(84385),U=f(591),w=f(21086),P=f(23426),O=f(8929),L=f(87545),N=f(24850),B=f(1059),K=f(18583),et=f(7625),ct=f(72986),lt=f(92198),Ct=f(22868),Dt=f(67376),Zt=f(56709),Rt=f(51572),Gt=f(4859),Tt=f(97392),Ut=f(36895),bt=f(10266);const mt=["searchSelectInput"],Lt=["innerSelectSearch"];function Bt(Oe,dn){if(1&Oe){const Pn=d.EpF();d.TgZ(0,"mat-checkbox",9),d.NdJ("change",function(_i){d.CHM(Pn);const oi=d.oxw();return d.KtG(oi._emitSelectAllBooleanToParent(_i.checked))}),d.qZA()}if(2&Oe){const Pn=d.oxw();d.Q6J("color",null==Pn.matFormField?null:Pn.matFormField.color)("checked",Pn.toggleAllCheckboxChecked)("indeterminate",Pn.toggleAllCheckboxIndeterminate)("matTooltip",Pn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Pn.toggleAllCheckboxTooltipPosition)}}function kt(Oe,dn){1&Oe&&d._UZ(0,"mat-spinner",10)}function le(Oe,dn){1&Oe&&d.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Vt(Oe,dn){if(1&Oe&&(d.TgZ(0,"mat-icon",14),d._uU(1),d.qZA()),2&Oe){const Pn=d.oxw(2);d.Q6J("svgIcon",Pn.closeSvgIcon),d.xp6(1),d.hij(" ",Pn.closeSvgIcon?null:Pn.closeIcon," ")}}function be(Oe,dn){if(1&Oe){const Pn=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){d.CHM(Pn);const _i=d.oxw();return d.KtG(_i._reset(!0))}),d.YNc(1,le,1,0,"ng-content",12),d.YNc(2,Vt,2,2,"ng-template",null,13,d.W1O),d.qZA()}if(2&Oe){const Pn=d.MAs(3),ii=d.oxw();d.xp6(1),d.Q6J("ngIf",ii.clearIcon)("ngIfElse",Pn)}}function ge(Oe,dn){1&Oe&&d.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Fe(Oe,dn){if(1&Oe&&d._uU(0),2&Oe){const Pn=d.oxw(2);d.Oqu(Pn.noEntriesFoundLabel)}}function qe(Oe,dn){if(1&Oe&&(d.TgZ(0,"div",15),d.YNc(1,ge,1,0,"ng-content",12),d.YNc(2,Fe,1,1,"ng-template",null,16,d.W1O),d.qZA()),2&Oe){const Pn=d.MAs(3),ii=d.oxw();d.xp6(1),d.Q6J("ngIf",ii.noEntriesFound)("ngIfElse",Pn)}}const je=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Qt=function(Oe,dn){return{"mat-select-search-inner-multiple":Oe,"mat-select-search-inner-toggle-all":dn}},Ue=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ie=(()=>{class Oe{}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)},Oe.\u0275dir=d.lG2({type:Oe,selectors:[["","ngxMatSelectSearchClear",""]]}),Oe})();const Wt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],se=new d.OlP("mat-selectsearch-default-options");let De=(()=>{class Oe{}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)},Oe.\u0275dir=d.lG2({type:Oe,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Oe})(),hn=(()=>{class Oe{constructor(Pn,ii,_i,oi=null,We=null,ee){this.matSelect=Pn,this.changeDetectorRef=ii,this._viewportRuler=_i,this.matOption=oi,this.matFormField=We,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new d.vpe,this.onTouched=ot=>{},this._options$=new U.X(null),this.optionsList$=this._options$.pipe((0,L.w)(ot=>ot?ot.changes.pipe((0,N.U)(X=>X.toArray()),(0,B.O)(ot.toArray())):(0,w.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,N.U)(ot=>ot?ot.length:0)),this._formControl=new v.NI(""),this._showNoEntriesFound$=(0,P.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,N.U)(([ot,X])=>this.noEntriesFoundLabel&&ot&&X===this.getOptionsLengthOffset())),this._onDestroy=new O.xQ,this.applyDefaultOptions(ee)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Pn){this._options$.next(Pn)}get _options(){return this._options$.getValue()}applyDefaultOptions(Pn){if(Pn)for(const ii of Wt)Pn.hasOwnProperty(ii)&&(this[ii]=Pn[ii])}ngOnInit(){const Pn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Pn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Pn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Pn]=!0):this.matSelect.panelClass=Pn,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,K.g)(1),(0,et.R)(this._onDestroy)).subscribe(ii=>{ii?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ct.q)(1)).pipe((0,et.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,et.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let ii=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,et.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const _i=this._options.toArray(),oi=_i[this.getOptionsLengthOffset()],We=this.matSelect._keyManager;We&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ii,oi)||!We.activeItem||!_i.find(ot=>this.matSelect.compareWith(ot,We.activeItem)))&&We.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ii=oi})})}),this._showNoEntriesFound$.pipe((0,et.R)(this._onDestroy)).subscribe(ii=>{this.matOption&&(ii?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,et.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,et.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Pn){this.toggleAll.emit(Pn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Pn){(Pn.key&&1===Pn.key.length||Pn.keyCode>=u.A&&Pn.keyCode<=u.Z||Pn.keyCode>=u.xE&&Pn.keyCode<=u.aO||Pn.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(Pn.keyCode===u.Sd||Pn.keyCode===u.uR))&&Pn.stopPropagation(),this.matSelect.multiple&&Pn.key&&Pn.keyCode===u.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Pn.keyCode===u.hY&&this.value&&(this._reset(!0),Pn.stopPropagation())}_handleKeyup(Pn){if(Pn.keyCode===u.LH||Pn.keyCode===u.JH){const ii=this.matSelect._getAriaActiveDescendant(),_i=this._options.toArray().findIndex(oi=>oi.id===ii);-1!==_i&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[_i]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ii))}}writeValue(Pn){this._lastExternalInputValue=Pn,this._formControl.setValue(Pn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Pn){this._formControl.valueChanges.pipe((0,lt.h)(ii=>ii!==this._lastExternalInputValue),(0,Ct.b)(()=>this._lastExternalInputValue=void 0),(0,et.R)(this._onDestroy)).subscribe(Pn)}registerOnTouched(Pn){this.onTouched=Pn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Pn=this.matSelect.panel.nativeElement,ii=Pn.scrollTop;this.searchSelectInput.nativeElement.focus(),Pn.scrollTop=ii}_reset(Pn){this._formControl.setValue(""),Pn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,et.R)(this._onDestroy)).subscribe(Pn=>{let ii=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Pn||!Array.isArray(Pn))&&(Pn=[]);const _i=this.matSelect.options.map(oi=>oi.value);this.previousSelectedValues.forEach(oi=>{!Pn.some(We=>this.matSelect.compareWith(We,oi))&&!_i.some(We=>this.matSelect.compareWith(We,oi))&&(Pn.push(oi),ii=!0)})}this.previousSelectedValues=Pn,ii&&this.matSelect._onChange(Pn)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Pn=this.getMatOptionHeight(),ii=this.matSelect._keyManager.activeItemIndex||0,_i=(0,g.CB)(ii,this.matSelect.options,this.matSelect.optionGroups),oi=(this.matOption?-1:0)+_i+ii,We=this.matSelect.panel.nativeElement.scrollTop,ee=this.innerSelectSearch.nativeElement.offsetHeight,ot=Math.floor((256-ee)/Pn),X=Math.round((We+ee)/Pn)-1;X>=oi?this.matSelect.panel.nativeElement.scrollTop=oi*Pn:X+ot<=oi&&(this.matSelect.panel.nativeElement.scrollTop=(oi+1)*Pn-(256-ee))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ii,Pn=this.innerSelectSearch.nativeElement;for(;Pn=Pn.parentElement;)if(Pn.classList.contains("mat-select-panel")){ii=Pn;break}ii&&(this.innerSelectSearch.nativeElement.style.width=ii.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)(d.Y36(T.gD),d.Y36(d.sBO),d.Y36(Dt.rL),d.Y36(g.ey,8),d.Y36(t.KE,8),d.Y36(se,8))},Oe.\u0275cmp=d.Xpm({type:Oe,selectors:[["ngx-mat-select-search"]],contentQueries:function(Pn,ii,_i){if(1&Pn&&(d.Suo(_i,ie,5),d.Suo(_i,De,5)),2&Pn){let oi;d.iGM(oi=d.CRH())&&(ii.clearIcon=oi.first),d.iGM(oi=d.CRH())&&(ii.noEntriesFound=oi.first)}},viewQuery:function(Pn,ii){if(1&Pn&&(d.Gf(mt,7,d.SBq),d.Gf(Lt,7,d.SBq)),2&Pn){let _i;d.iGM(_i=d.CRH())&&(ii.searchSelectInput=_i.first),d.iGM(_i=d.CRH())&&(ii.innerSelectSearch=_i.first)}},hostVars:2,hostBindings:function(Pn,ii){2&Pn&&d.ekj("mat-select-search-inside-mat-option",ii.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[d._Bn([{provide:v.JU,useExisting:(0,d.Gpc)(()=>Oe),multi:!0}])],ngContentSelectors:Ue,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Pn,ii){1&Pn&&(d.F$t(je),d._UZ(0,"input",0),d.TgZ(1,"div",1,2),d.YNc(3,Bt,1,5,"mat-checkbox",3),d.TgZ(4,"input",4,5),d.NdJ("keydown",function(oi){return ii._handleKeydown(oi)})("keyup",function(oi){return ii._handleKeyup(oi)})("blur",function(){return ii.onBlur()}),d.qZA(),d.YNc(6,kt,1,0,"mat-spinner",6),d.YNc(7,be,4,2,"button",7),d.Hsn(8),d.qZA(),d.YNc(9,qe,4,2,"div",8),d.ALo(10,"async")),2&Pn&&(d.xp6(1),d.Q6J("ngClass",d.WLB(11,Qt,ii.matSelect.multiple,ii._isToggleAllCheckboxVisible())),d.xp6(2),d.Q6J("ngIf",ii._isToggleAllCheckboxVisible()),d.xp6(1),d.Q6J("type",ii.type)("formControl",ii._formControl)("placeholder",ii.placeholderLabel),d.uIk("aria-label",ii.ariaLabel),d.xp6(2),d.Q6J("ngIf",ii.searching),d.xp6(1),d.Q6J("ngIf",!ii.hideClearSearchButton&&ii.value&&!ii.searching),d.xp6(2),d.Q6J("ngIf",d.lcZ(10,9,ii._showNoEntriesFound$)))},dependencies:[Zt.oG,Rt.Ou,Gt.lW,Tt.Hw,Ut.mk,Ut.O5,bt.gM,v.Fj,v.JJ,v.oH,Ut.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Oe})(),bn=(()=>{class Oe{}return Oe.\u0275fac=function(Pn){return new(Pn||Oe)},Oe.\u0275mod=d.oAB({type:Oe}),Oe.\u0275inj=d.cJS({imports:[[Ut.ez,v.UX,Gt.ot,Zt.p9,Tt.Ps,Rt.Cq,bt.AV]]}),Oe})()}},tt=>{tt(tt.s=17751)}]); \ No newline at end of file diff --git a/src_app_deposits_fixed-deposits_fixed-deposits_module_ts.js b/src_app_deposits_fixed-deposits_fixed-deposits_module_ts.js index 4df0d34406..11547d5b72 100644 --- a/src_app_deposits_fixed-deposits_fixed-deposits_module_ts.js +++ b/src_app_deposits_fixed-deposits_fixed-deposits_module_ts.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_deposits_fixed-deposits_fixed-deposits_module_ts","src_app_account-transfers_account-transfers_service_ts"],{35023:(mt,j,l)=>{l.d(j,{o:()=>X});var q=l(80529),E=l(94650);let X=(()=>{class d{constructor(t){this.http=t}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){const _=(new q.LE).set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:_})}updateStandingInstructionsData(t,_){const h=(new q.LE).set("command","update");return this.http.put(`/standinginstructions/${t}`,_,{params:h})}getStandingInstructionsTemplate(t,_,h,g){let O=(new q.LE).set("fromAccountType",h).set("fromClientId",t).set("fromOfficeId",_);if(g){const y=Object.getOwnPropertyNames(g);for(let F=0;F{l.r(j),l.d(j,{FixedDepositsModule:()=>Js});var q=l(87734),E=l(35503),X=l(78434),d=l(83689),Q=l(13450),t=l(94650),_=l(65412),h=l(4859),g=l(49274);const O=function(){return{confirm:!0}};let y=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"labels.heading.Calculate Interest")),t.xp6(6),t.hij("",t.lcZ(8,7,"labels.text.Are you sure you want to calculate interest")," ?"),t.xp6(7),t.Oqu(t.lcZ(15,9,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(13,O)),t.xp6(1),t.Oqu(t.lcZ(19,11,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();const F=function(){return{confirm:!0}};let B=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"labels.heading.Post Interest")),t.xp6(6),t.hij("",t.lcZ(8,7,"labels.text.Are you sure you want to post interest")," ?"),t.xp6(7),t.Oqu(t.lcZ(15,9,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(13,F)),t.xp6(1),t.Oqu(t.lcZ(19,11,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();const gt=function(){return{confirm:!0}};let ot=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so),t.Y36(_.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:23,vars:20,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n"),t.qZA(),t._uU(11,"\n"),t.TgZ(12,"mat-dialog-actions",2),t._uU(13,"\n "),t.TgZ(14,"button",3),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"button",4),t._uU(19),t.ALo(20,"translate"),t.qZA(),t._uU(21,"\n"),t.qZA(),t._uU(22,"\n")),2&e&&(t.xp6(1),t.AsE("",i.data.isEnable?"Enable":"Disable"," ",t.lcZ(2,9,"labels.heading.Withhold Tax"),""),t.xp6(6),t.lnq("",t.lcZ(8,11,"labels.text.Are you sure you want to")," ",i.data.isEnable?"enable":"disable"," ",t.lcZ(9,13,"labels.text.withhold tax for this account")," ?"),t.xp6(8),t.Oqu(t.lcZ(16,15,"labels.buttons.Cancel")),t.xp6(3),t.s9C("color",i.data.isEnable?"accent":"warn"),t.Q6J("mat-dialog-close",t.DdM(19,gt)),t.xp6(1),t.Oqu(t.lcZ(20,17,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();class ft{constructor(o){this.setOptions(o),this.setButtons(o)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(o){switch(o){case"Active":this.buttonsArray=[{name:"Premature Close",icon:"fa fa-arrow-left"},{name:"Calculate Interest",icon:"fa fa-table"},{name:"Undo Activation",icon:"fa fa-undo"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right"},{name:"Calculate Interest",icon:"fa fa-table"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-pencil "},{name:"Approve",icon:"fa fa-check"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo"},{name:"Activate",icon:"fa fa-check"}];break;default:this.buttonsArray=[]}}setOptions(o){switch(o){case"Active":case"Matured":this.optionArray=[{name:"Post Interest"},{name:"Add Charge"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject"},{name:"Withdraw By Client"},{name:"Add Charge"},{name:"Delete"}];break;default:this.optionArray=[]}}addOption(o){this.optionArray.push(o)}}var w=l(80529);let b=(()=>{class n{constructor(e){this.http=e}getFixedDepositsAccountData(e){const i=(new w.LE).set("associations","all");return this.http.get(`/fixeddepositaccounts/${e}`,{params:i})}deleteFixedDepositsAccount(e){return this.http.delete(`/fixeddepositaccounts/${e}`)}executeFixedDepositsAccountCommand(e,i,a){const r=(new w.LE).set("command",i);return this.http.post(`/fixeddepositaccounts/${e}`,a,{params:r})}getFixedDepositsAccountTransaction(e,i){return this.http.get(`/fixeddepositaccounts/${e}/transactions/${i}`)}executeFixedDepositsAccountTransactionsCommand(e,i,a,r){const c=(new w.LE).set("command",i);return this.http.post(`/fixeddepositaccounts/${e}/transactions/${r}`,a,{params:c})}getFixedDepositsAccountClosureTemplate(e){const i=(new w.LE).set("command","close");return this.http.get(`/fixeddepositaccounts/${e}/template`,{params:i})}getFixedDepositsAccountTemplate(e,i){let a=(new w.LE).set("clientId",e);return a=i?a.set("productId",i):a,this.http.get("/fixeddepositaccounts/template",{params:a})}getFixedDepositsAccountAndTemplate(e){const i=(new w.LE).set("associations","charges,+linkedAccount").set("template","true");return this.http.get(`/fixeddepositaccounts/${e}`,{params:i})}createFixedDepositAccount(e){return this.http.post("/fixeddepositaccounts",e)}updateFixedDepositAccount(e,i){return this.http.put(`/fixeddepositaccounts/${e}`,i)}getStandingInstructions(e,i,a,r,c){const m=(new w.LE).set("clientId",e).set("clientName",i).set("fromAccountId",a).set("fromAccountType","2").set("locale",r).set("dateFormat",c);return this.http.get("/standinginstructions",{params:m})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(w.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var S=l(59349),x=l(36895),v=l(92216),p=l(1576),K=l(55829),A=l(73546),xt=l(97392),ht=l(96338),tt=l(28255),it=l(3848),J=l(10266),At=l(15705),z=l(30998),Ct=l(87197);function Tt(n,o){if(1&n&&(t.TgZ(0,"span",26),t._uU(1,"\n "),t._UZ(2,"mifosx-account-number",8),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("accountNo",e.fixedDepositsAccountData.clientAccountNo)}}function Ut(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table",9),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",27),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",27),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,5,"labels.heading.Account Overview")," "),t.xp6(10),t.Oqu(t.lcZ(14,7,"labels.inputs.Current Balance")),t.xp6(4),t.Oqu(t.gM2(18,9,e.fixedDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,14,"labels.inputs.Deposit Amount")),t.xp6(4),t.Oqu(t.gM2(29,16,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2"))}}function Zt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",28),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.doAction(r.name))}),t._uU(3,"\n "),t._UZ(4,"i",29),t._uU(5),t.qZA(),t._uU(6,"\n "),t.BQk()}if(2&n){const e=o.$implicit;t.xp6(4),t.s9C("ngClass",e.icon),t.xp6(1),t.hij(" ",e.name,"")}}function bt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t._uU(1,"\n "),t.TgZ(2,"button",28),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw(2);return t.KtG(c.doAction(r.name))}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(3),t.Oqu(e.name)}}function Dt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",30),t._uU(3,"More"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"mat-menu",null,31),t._uU(7,"\n "),t.YNc(8,bt,5,1,"span",18),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(6),t.Q6J("ngForOf",i.buttonConfig.options)}}const Ot=function(){return["./transactions"]};function Pt(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.TgZ(2,"a",21,32),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.qZA()),2&n){const e=t.MAs(3);t.xp6(2),t.Q6J("routerLink",t.DdM(5,Ot))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,3,"labels.inputs.Transactions"),"\n ")}}const vt=function(){return["./standing-instructions"]};function Mt(n,o){if(1&n&&(t.TgZ(0,"a",21,33),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,vt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Standing Instructions"),"\n ")}}const qt=function(n){return["./datatables",n]};function yt(n,o){if(1&n&&(t.TgZ(0,"a",21,35),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),i=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,qt,i.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",i.registeredTableName,"\n ")}}function Ft(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,yt,3,5,"a",34),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const wt=function(){return["./general"]},It=function(){return["./interest-rate-chart"]},St=function(){return["./charges"]};let Lt=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.router=i,this.fixedDepositsService=a,this.savingsService=r,this.dialog=c,this.showTransactions=!1,this.route.data.subscribe(m=>{this.fixedDepositsAccountData=m.fixedDepositsAccountData,this.savingsDatatables=m.savingsDatatables,this.currency=this.fixedDepositsAccountData.currency,this.showTransactions=m.fixedDepositsAccountData.status.id>=300}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){const e=this.fixedDepositsAccountData.status.value;this.buttonConfig=new ft(e),this.fixedDepositsAccountData.taxGroup&&"Active"===e&&this.buttonConfig.addOption(this.fixedDepositsAccountData.withHoldTax?{name:"Disable Withhold Tax"}:{name:"Enable Withhold Tax"})}reload(){const i=this.router.url;this.router.navigateByUrl(`/clients/${this.fixedDepositsAccountData.clientId}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}doAction(e){switch(e){case"Approve":case"Reject":case"Activate":case"Close":case"Undo Approval":case"Undo Activation":case"Add Charge":case"Withdraw By Client":case"Premature Close":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteFixedDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax()}}deleteFixedDepositsAccount(){this.dialog.open(Q.F,{data:{deleteContext:`fixed deposit account with id: ${this.fixedDepositsAccountData.id}`}}).afterClosed().subscribe(i=>{i.delete&&this.fixedDepositsService.deleteFixedDepositsAccount(this.fixedDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(y).afterClosed().subscribe(i=>{i.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(B).afterClosed().subscribe(i=>{i.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(ot,{data:{isEnable:!0}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(ot,{data:{isEnable:!1}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0),t.Y36(b),t.Y36(S.d),t.Y36(_.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-view"]],decls:95,vars:46,consts:[[1,"account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],["fxFlex","60%"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["fxFlex","auto"],["fxFlex","5%"],["mat-icon-button","","aria-label","Fixed Deposit account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngIf"],[1,"m-l-10"],[1,"r-amount"],["mat-menu-item","",3,"click"],[3,"ngClass"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(e,i){if(1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t.ALo(11,"translate"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",5),t._uU(16,"\n "),t.TgZ(17,"mat-card-title"),t._uU(18,"\n\n "),t.TgZ(19,"div",6),t._uU(20,"\n "),t.TgZ(21,"h3"),t._uU(22,"\n "),t._UZ(23,"i",7),t.ALo(24,"statusLookup"),t._uU(25),t.ALo(26,"translate"),t._UZ(27,"mifosx-account-number",8),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n "),t.TgZ(30,"span",9),t._uU(31),t.ALo(32,"translate"),t.ALo(33,"translate"),t.YNc(34,Tt,4,1,"span",10),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,Ut,34,21,"div",11),t._uU(39,"\n\n "),t._UZ(40,"span",12),t._uU(41,"\n\n "),t.TgZ(42,"div",13),t._uU(43,"\n "),t.TgZ(44,"button",14),t._uU(45,"\n "),t.TgZ(46,"mat-icon",15),t._uU(47,"\n "),t._UZ(48,"fa-icon",16),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n\n "),t.TgZ(55,"mat-menu",null,17),t._uU(57,"\n "),t.YNc(58,Zt,7,2,"ng-container",18),t._uU(59,"\n\n "),t.YNc(60,Dt,11,2,"ng-container",11),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n "),t.TgZ(65,"mat-card-content",19),t._uU(66,"\n\n "),t.TgZ(67,"nav",20),t._uU(68,"\n "),t.TgZ(69,"a",21,22),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"a",21,23),t._uU(76),t.ALo(77,"translate"),t.qZA(),t._uU(78,"\n "),t.YNc(79,Pt,7,6,"span",11),t._uU(80,"\n "),t.TgZ(81,"a",21,24),t._uU(83),t.ALo(84,"translate"),t.qZA(),t._uU(85,"\n "),t.YNc(86,Mt,4,6,"a",25),t._uU(87,"\n "),t.YNc(88,Ft,4,1,"ng-container",18),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n\n "),t._UZ(91,"router-outlet"),t._uU(92,"\n\n "),t.qZA(),t._uU(93,"\n\n"),t.qZA(),t._uU(94,"\n")),2&e){const a=t.MAs(56),r=t.MAs(70),c=t.MAs(75),m=t.MAs(82);t.xp6(10),t.s9C("matTooltip",t.lcZ(11,27,"tooltips.Fixed Deposits Account")),t.Q6J("src","assets/images/fd_account_placeholder.png",t.LSH),t.xp6(13),t.Q6J("ngClass",t.lcZ(24,29,i.fixedDepositsAccountData.status.code))("matTooltip",i.fixedDepositsAccountData.status.value),t.xp6(2),t.AsE("\n ",t.lcZ(26,31,"labels.inputs.Fixed Deposit Product")," : ",i.fixedDepositsAccountData.depositProductName,"\n "),t.xp6(2),t.s9C("accountNo",i.fixedDepositsAccountData.accountNo),t.xp6(4),t.lnq("\n ",t.lcZ(32,33,"labels.text."+i.entityType)," ",t.lcZ(33,35,"labels.inputs.name"),": ",i.fixedDepositsAccountData.clientName||i.fixedDepositsAccountData.groupName,"\n "),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.clientAccountNo),t.xp6(4),t.Q6J("ngIf",!i.fixedDepositsAccountData.status.rejected&&!i.fixedDepositsAccountData.status.submittedAndPendingApproval),t.xp6(6),t.Q6J("matMenuTriggerFor",a),t.xp6(14),t.Q6J("ngForOf",i.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",i.buttonConfig.options.length),t.xp6(9),t.Q6J("routerLink",t.DdM(43,wt))("active",r.isActive),t.xp6(2),t.hij("\n ",t.lcZ(72,37,"labels.inputs.General"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(44,It))("active",c.isActive),t.xp6(2),t.hij("\n ",t.lcZ(77,39,"labels.inputs.Interest Rate Chart"),"\n "),t.xp6(3),t.Q6J("ngIf",i.showTransactions),t.xp6(2),t.Q6J("routerLink",t.DdM(45,St))("active",m.isActive),t.xp6(2),t.hij("\n ",t.lcZ(84,41,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.clientId),t.xp6(2),t.Q6J("ngForOf",i.savingsDatatables)}},dependencies:[x.mk,x.sg,x.O5,v.BN,p.xw,p.yH,K.oO,h.lW,A.a8,A.dk,A.C1,A.dn,A.n5,A.nc,xt.Hw,ht.Nh,tt.VK,tt.OP,tt.p6,it.BU,it.Nj,J.gM,At.t,z.A,d.lC,d.yS,d.Od,x.H9,g.X$,Ct.F]}),n})();var T=l(37340),u=l(30671);function Nt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function Yt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.lnq("\n ",e.fromPeriod,"-",e.toPeriod,"\xa0",e.periodType.value,"")}}function kt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Qt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.amountRangeFrom,"-",e.amountRangeTo,"")}}function Jt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Rt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.annualInterestRate," ")}}function jt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Et(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.description," ")}}function Bt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function zt(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",21),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function $t(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",22),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function Gt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",18),t._uU(1,"\n "),t.TgZ(2,"button",19),t.NdJ("click",function(){const r=t.CHM(e).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===r?null:r)}),t._uU(3,"\n "),t.YNc(4,zt,5,3,"span",20),t._uU(5,"\n "),t.YNc(6,$t,5,3,"span",20),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&n){const e=o.dataIndex,i=t.oxw();t.xp6(4),t.Q6J("ngIf",i.expandChartSlabIndex!==e),t.xp6(2),t.Q6J("ngIf",i.expandChartSlabIndex===e)}}function Ht(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Wt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.entityType.value,"\n ")}}function Vt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Xt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.attributeName.value,"\n ")}}function Kt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function tn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.conditionType.value),"\n ")}}function nn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function en(n,o){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("ngSwitch",e.attributeName),t.xp6(1),t.hij("\n ",e.attributeValueDesc,"\n ")}}function on(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function an(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.incentiveType.value,"\n ")}}function cn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function sn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function rn(n,o){1&n&&t._UZ(0,"tr",36)}function un(n,o){1&n&&t._UZ(0,"tr",37)}function pn(n,o){if(1&n&&(t.TgZ(0,"table",27),t._uU(1,"\n\n "),t.ynx(2,28),t._uU(3,"\n "),t.YNc(4,Ht,3,3,"th",7),t._uU(5,"\n "),t.YNc(6,Wt,2,1,"td",8),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,29),t._uU(10,"\n "),t.YNc(11,Vt,3,3,"th",7),t._uU(12,"\n "),t.YNc(13,Xt,2,1,"td",8),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,30),t._uU(17,"\n "),t.YNc(18,Kt,3,3,"th",7),t._uU(19,"\n "),t.YNc(20,tn,3,3,"td",8),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,31),t._uU(24,"\n "),t.YNc(25,nn,3,3,"th",7),t._uU(26,"\n "),t.YNc(27,en,2,2,"td",32),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,33),t._uU(31,"\n "),t.YNc(32,on,3,3,"th",7),t._uU(33,"\n "),t.YNc(34,an,2,1,"td",8),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,34),t._uU(38,"\n "),t.YNc(39,cn,3,3,"th",7),t._uU(40,"\n "),t.YNc(41,sn,2,1,"td",8),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,rn,1,0,"tr",14),t._uU(45,"\n "),t.YNc(46,un,1,0,"tr",15),t._uU(47,"\n\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("dataSource",e.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",i.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.incentivesDisplayedColumns)}}function ln(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1,"\n\n "),t.TgZ(2,"div",23),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",24),t._uU(5,"\n\n "),t.TgZ(6,"h4",25),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,pn,48,3,"table",26),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&n){const e=o.$implicit,i=o.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",i===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",null==e.incentives?null:e.incentives.length)}}function dn(n,o){1&n&&t._UZ(0,"tr",36)}function _n(n,o){1&n&&t._UZ(0,"tr",37)}function mn(n,o){1&n&&t._UZ(0,"tr",38)}let gn=(()=>{class n{constructor(e){this.route=e,this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(i=>{this.interestRateChartData=i.fixedDepositsAccountData.accountChart.chartSlabs})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-interest-rate-chart-tab"]],decls:66,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayoutAlign","start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4,5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,Nt,3,3,"th",7),t._uU(20,"\n "),t.YNc(21,Yt,2,3,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,kt,3,3,"th",7),t._uU(27,"\n "),t.YNc(28,Qt,2,2,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,10),t._uU(32,"\n "),t.YNc(33,Jt,3,3,"th",7),t._uU(34,"\n "),t.YNc(35,Rt,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,11),t._uU(39,"\n "),t.YNc(40,jt,3,3,"th",7),t._uU(41,"\n "),t.YNc(42,Et,2,1,"td",8),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,12),t._uU(46,"\n "),t.YNc(47,Bt,3,3,"th",7),t._uU(48,"\n "),t.YNc(49,Gt,9,2,"td",8),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,13),t._uU(53,"\n "),t.YNc(54,ln,14,6,"td",8),t._uU(55,"\n "),t.BQk(),t._uU(56,"\n\n "),t.YNc(57,dn,1,0,"tr",14),t._uU(58,"\n "),t.YNc(59,_n,1,0,"tr",15),t._uU(60,"\n "),t.YNc(61,mn,1,0,"tr",16),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n"),t.qZA(),t._uU(65,"\n")),2&e&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.heading.All Interest Rates")),t.xp6(7),t.Q6J("dataSource",i.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsIncentivesDisplayedColumns))},dependencies:[x.O5,x.RF,v.BN,p.xw,p.Wh,p.s9,p.yH,h.lW,A.a8,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,x.rS,g.X$],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,T.X$)("expandChartSlab",[(0,T.SB)("collapsed",(0,T.oB)({height:"0px",minHeight:"0"})),(0,T.SB)("expanded",(0,T.oB)({height:"*"})),(0,T.eR)("expanded <=> collapsed",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();var I=l(35769);function fn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.ID")," "))}function xn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function hn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Date")," "))}function An(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function Cn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Type")," "))}function Tn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.transactionType.value," ")}}function Un(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Debit")," "))}function Zn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",i.isDebit(e.transactionType)?e.amount:"N/A"," ")}}function bn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Credit")," "))}function Dn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",i.isDebit(e.transactionType)?"N/A":e.amount," ")}}function On(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Balance")," "))}function Pn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.runningBalance," ")}}function vn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}const Mn=function(n){return[n,"reciept"]},qn=function(n){return["/","journal-entry","view",n]};function yn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",19),t._uU(1,"\n "),t.TgZ(2,"button",20),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.routeEdit(a))}),t._uU(3,"\n "),t._UZ(4,"i",21),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"button",22),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.routeEdit(a))}),t._uU(8,"\n "),t._UZ(9,"i",23),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("routerLink",t.VKq(2,Mn,e.id)),t.xp6(5),t.Q6J("routerLink",t.VKq(4,qn,"S"+e.id))}}function Fn(n,o){1&n&&t._UZ(0,"tr",24)}function wn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"tr",25),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.showTransactions(r))}),t.qZA()}}let In=(()=>{class n{constructor(e,i){this.route=e,this.router=i,this.displayedColumns=["id","transactionDate","transactionType","debit","credit","balance","actions"],this.route.parent.data.subscribe(a=>{this.transactionsData=a.fixedDepositsAccountData.transactions})}ngOnInit(){this.dataSource=new u.by(this.transactionsData)}isDebit(e){return!0===e.withdrawal||!0===e.feeDeduction||!0===e.overdraftInterest||!0===e.withholdTax}showTransactions(e){this.router.navigate(e.transfer?[`account-transfers/account-transfers/${e.transfer.id}`]:[e.id],{relativeTo:this.route})}transactionColor(e){return e.reversed?"strike":this.isAccrual(e.transactionType)?"accrual":""}isAccrual(e){return e.accrual}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-transactions-tab"]],decls:72,vars:6,consts:[[1,"tab-container","mat-typography"],["fxLayoutAlign","start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"center"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","View Reciept",1,"fa","fa-file"],["mat-raised-button","","color","primary","matTooltip","View Journal Entries","matTooltipPosition","left",1,"account-action-button",3,"routerLink","click"],[1,"fa","fa-arrow-circle-right"],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4),t._uU(15,"\n\n "),t.ynx(16,5),t._uU(17,"\n "),t.YNc(18,fn,3,3,"th",6),t._uU(19,"\n "),t.YNc(20,xn,2,1,"td",7),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,8),t._uU(24,"\n "),t.YNc(25,hn,3,3,"th",6),t._uU(26,"\n "),t.YNc(27,An,3,3,"td",7),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,9),t._uU(31,"\n "),t.YNc(32,Cn,3,3,"th",6),t._uU(33,"\n "),t.YNc(34,Tn,2,1,"td",7),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,10),t._uU(38,"\n "),t.YNc(39,Un,3,3,"th",6),t._uU(40,"\n "),t.YNc(41,Zn,2,1,"td",7),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,11),t._uU(45,"\n "),t.YNc(46,bn,3,3,"th",6),t._uU(47,"\n "),t.YNc(48,Dn,2,1,"td",7),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.ynx(51,12),t._uU(52,"\n "),t.YNc(53,On,3,3,"th",6),t._uU(54,"\n "),t.YNc(55,Pn,2,1,"td",7),t._uU(56,"\n "),t.BQk(),t._uU(57,"\n\n "),t.ynx(58,13),t._uU(59,"\n "),t.YNc(60,vn,3,3,"th",6),t._uU(61,"\n "),t.YNc(62,yn,12,6,"td",14),t._uU(63,"\n "),t.BQk(),t._uU(64,"\n\n "),t.YNc(65,Fn,1,0,"tr",15),t._uU(66,"\n "),t.YNc(67,wn,1,0,"tr",16),t._uU(68,"\n\n "),t.qZA(),t._uU(69,"\n\n "),t.qZA(),t._uU(70,"\n\n"),t.qZA(),t._uU(71,"\n")),2&e&&(t.xp6(7),t.Oqu(t.lcZ(8,4,"labels.heading.All Transactions")),t.xp6(7),t.Q6J("dataSource",i.dataSource),t.xp6(51),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[p.Wh,h.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,J.gM,d.rH,g.X$,I.E],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#0f36e4}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#0f36e4b3;border:1px solid #091f84;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#0f36e4}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#00ce00}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;color:#000}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .linked[_ngcontent-%COMP%]{color:#0f36e4}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .accrual[_ngcontent-%COMP%]{color:#999}.active[_ngcontent-%COMP%]{background-color:#00ce00;height:4px}.linked[_ngcontent-%COMP%]{background-color:#0f36e4;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]}),n})();var D=l(99639),R=l(34417);const Sn=function(){return{confirm:!0}};let Ln=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so),t.Y36(_.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-waive-charge-dialog"]],decls:22,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"labels.heading.Waive Charge")),t.xp6(6),t.AsE("",t.lcZ(8,8,"labels.text.Are you sure you want to waive charge with id"),": ",i.data.id," ?"),t.xp6(7),t.Oqu(t.lcZ(15,10,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(14,Sn)),t.xp6(1),t.Oqu(t.lcZ(19,12,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();const Nn=function(){return{confirm:!0}};let Yn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so),t.Y36(_.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-inactivate-charge-dialog"]],decls:22,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"labels.heading.Inactivate Charge")),t.xp6(6),t.AsE("",t.lcZ(8,8,"labels.text.Are you sure you want to inactivate charge with id"),": ",i.data.id," ?"),t.xp6(7),t.Oqu(t.lcZ(15,10,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(14,Nn)),t.xp6(1),t.Oqu(t.lcZ(19,12,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();var $=l(68830),at=l(23107),P=l(73426);const kn=["chargesTable"];function Qn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.toggleCharges())}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij("\n ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges","")}}function Jn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function Rn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function jn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Fee/Penalty")," "))}function En(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",!0===e.penalty?"Penalty":"Fee"," ")}}function Bn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Payment Due At")," "))}function zn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeTimeType.value," ")}}function $n(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due As Of")," "))}function Gn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.dueDate)," ")}}function Hn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repeats On")," "))}const Wn=function(){return[2e3]};function Vn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.feeOnMonthDay?t.xi3(2,1,t.DdM(4,Wn).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function Xn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Calculation Type")," "))}function Kn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeCalculationType.value," ")}}function te(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due")," "))}function ne(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amount," ")}}function ee(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Paid")," "))}function oe(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amountPaid," ")}}function ie(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Waived")," "))}function ae(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amountWaived," ")}}function ce(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Outstanding")," "))}function se(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amountOutstanding," ")}}function re(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function ue(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.editCharge(r))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",30),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Edit Charge"))}function pe(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.deleteCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",32),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Delete Charge"))}function le(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,ue,5,3,"button",27),t._uU(3,"\n "),t.YNc(4,pe,5,3,"button",28),t._uU(5,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function de(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.payCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",33),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Pay Charge"))}function _e(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.waiveCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",34),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Waive Charge"))}function me(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(3).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.inactivateCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",35),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Inactivate Charge"))}function ge(n,o){1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,me,5,3,"button",27),t._uU(3,"\n "),t.BQk()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function fe(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,de,5,3,"button",27),t._uU(3,"\n "),t.YNc(4,_e,5,3,"button",27),t._uU(5,"\n "),t.YNc(6,ge,4,1,"ng-container",26),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",i.isRecurringCharge(e))}}function xe(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1,"\n "),t.YNc(2,le,6,2,"span",26),t._uU(3,"\n "),t.YNc(4,fe,8,3,"span",26),t._uU(5,"\n "),t.qZA()),2&n){const e=o.$implicit,i=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===i.fixedDepositsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Active"===i.fixedDepositsAccountData.status.value&&0!==e.amountOutstanding)}}function he(n,o){1&n&&t._UZ(0,"tr",36)}function Ae(n,o){1&n&&t._UZ(0,"tr",37)}let Ce=(()=>{class n{constructor(e,i,a,r,c,m){this.savingsService=e,this.route=i,this.dateUtils=a,this.router=r,this.dialog=c,this.settingsService=m,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(Z=>{this.fixedDepositsAccountData=Z.fixedDepositsAccountData,this.chargesData=this.fixedDepositsAccountData.charges})}ngOnInit(){const e=this.chargesData?this.chargesData.filter(i=>i.isActive):[];this.dataSource=new u.by(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){const e=this.chargesData.filter(i=>!i.isActive);this.dataSource.data=e}else{const e=this.chargesData.filter(i=>i.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){const i=[new $.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new at.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(R.E,{data:{title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const m=this.settingsService.language.code,Z=this.settingsService.dateFormat,k={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,Z),dateFormat:Z,locale:m};this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"paycharge",k,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(Ln,{data:{id:e}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(Yn,{data:{id:e}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){const i=[new $.M({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})];this.dialog.open(R.E,{data:{title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const k={...c.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.fixedDepositsAccountData.id,k,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(Q.F,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.fixedDepositsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value}routeEdit(e){e.stopPropagation()}reload(){const i=this.router.url;this.router.navigateByUrl(`/clients/${this.fixedDepositsAccountData.clientId}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.d),t.Y36(d.gz),t.Y36(P.L),t.Y36(d.F0),t.Y36(_.uw),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-charges-tab"]],viewQuery:function(e,i){if(1&e&&t.Gf(kn,7),2&e){let a;t.iGM(a=t.CRH())&&(i.chargesTableRef=a.first)}},decls:103,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20",4,"ngIf"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip","click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"matTooltip","click"],[1,"fa","fa-trash"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,Qn,5,1,"div",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",4),t._uU(15,"\n\n "),t.TgZ(16,"table",5,6),t._uU(18,"\n\n "),t.ynx(19,7),t._uU(20,"\n "),t.YNc(21,Jn,3,3,"th",8),t._uU(22,"\n "),t.YNc(23,Rn,2,1,"td",9),t._uU(24,"\n "),t.BQk(),t._uU(25,"\n\n "),t.ynx(26,10),t._uU(27,"\n "),t.YNc(28,jn,3,3,"th",8),t._uU(29,"\n "),t.YNc(30,En,2,1,"td",9),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,Bn,3,3,"th",8),t._uU(36,"\n "),t.YNc(37,zn,2,1,"td",9),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,$n,3,3,"th",8),t._uU(43,"\n "),t.YNc(44,Gn,3,3,"td",9),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,Hn,3,3,"th",8),t._uU(50,"\n "),t.YNc(51,Vn,3,5,"td",9),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,Xn,3,3,"th",8),t._uU(57,"\n "),t.YNc(58,Kn,2,1,"td",9),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,te,3,3,"th",8),t._uU(64,"\n "),t.YNc(65,ne,2,2,"td",9),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,ee,3,3,"th",8),t._uU(71,"\n "),t.YNc(72,oe,2,2,"td",9),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.ynx(75,17),t._uU(76,"\n "),t.YNc(77,ie,3,3,"th",8),t._uU(78,"\n "),t.YNc(79,ae,2,2,"td",9),t._uU(80,"\n "),t.BQk(),t._uU(81,"\n\n "),t.ynx(82,18),t._uU(83,"\n "),t.YNc(84,ce,3,3,"th",8),t._uU(85,"\n "),t.YNc(86,se,2,2,"td",9),t._uU(87,"\n "),t.BQk(),t._uU(88,"\n\n "),t.ynx(89,19),t._uU(90,"\n "),t.YNc(91,re,3,3,"th",8),t._uU(92,"\n "),t.YNc(93,xe,6,2,"td",9),t._uU(94,"\n "),t.BQk(),t._uU(95,"\n\n "),t.YNc(96,he,1,0,"tr",20),t._uU(97,"\n "),t.YNc(98,Ae,1,0,"tr",21),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n "),t.qZA(),t._uU(101,"\n\n"),t.qZA(),t._uU(102,"\n")),2&e&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.heading.All Charges")),t.xp6(4),t.Q6J("ngIf",i.chargesData),t.xp6(5),t.Q6J("dataSource",i.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[x.O5,p.xw,p.Wh,h.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,J.gM,z.A,g.X$,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})();var Te=l(35023);const Ue=["instructionsTable"];function Ze(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client")," "))}function be(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromClient.displayName,"-",e.fromClient.id,"")}}function De(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.From Account")," "))}function Oe(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromAccount.accountNo," (",e.fromAccountType.value,")")}}function Pe(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Beneficiary")," "))}function ve(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e.toClient.displayName)}}function Me(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.To Account")," "))}function qe(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.toAccount.accountNo," (",e.toAccountType.value,")")}}function ye(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Fe(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.instructionType.value,"/",e.amount,"")}}function we(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Validity")," "))}function Ie(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,e.validFrom)," to ",t.lcZ(3,4,e.validTill),"")}}function Se(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Le(n,o){1&n&&(t.TgZ(0,"button",20),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",21),t._uU(4,"\n "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Edit Standing Instruction"))}function Ne(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Le,5,3,"button",19),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Ye(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2).$implicit,r=t.oxw();return t.KtG(r.deleteStandingInstruction(a.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",24),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Delete Standing Instruction"))}function ke(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ye,5,3,"button",22),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Qe(n,o){1&n&&(t.TgZ(0,"button",20),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",25),t._uU(4,"\n "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.View Standing Instruction"))}function Je(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,Ne,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,ke,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,Qe,5,3,"button",19),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Re(n,o){1&n&&t._UZ(0,"tr",26)}function je(n,o){1&n&&t._UZ(0,"tr",27)}let Ee=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.fixedDepositsService=i,this.dialog=a,this.accountTransfersService=r,this.settingsService=c,this.dataSource=new u.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(m=>{this.fixedDepositsData=m.fixedDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.fixedDepositsService.getStandingInstructions(this.fixedDepositsData.clientId,this.fixedDepositsData.clientName,this.fixedDepositsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(m=>{this.instructionsData=m.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(Q.F,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(b),t.Y36(_.uw),t.Y36(Te.o),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(e,i){if(1&e&&t.Gf(Ue,7),2&e){let a;t.iGM(a=t.CRH())&&(i.instructionTableRef=a.first)}},decls:70,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"matTooltip","click"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n\n "),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"table",3,4),t._uU(13,"\n\n "),t.ynx(14,5),t._uU(15,"\n "),t.YNc(16,Ze,3,3,"th",6),t._uU(17,"\n "),t.YNc(18,be,2,2,"td",7),t._uU(19,"\n "),t.BQk(),t._uU(20,"\n\n "),t.ynx(21,8),t._uU(22,"\n "),t.YNc(23,De,3,3,"th",6),t._uU(24,"\n "),t.YNc(25,Oe,2,2,"td",7),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n "),t.ynx(28,9),t._uU(29,"\n "),t.YNc(30,Pe,3,3,"th",6),t._uU(31,"\n "),t.YNc(32,ve,2,1,"td",7),t._uU(33,"\n "),t.BQk(),t._uU(34,"\n\n "),t.ynx(35,10),t._uU(36,"\n "),t.YNc(37,Me,3,3,"th",6),t._uU(38,"\n "),t.YNc(39,qe,2,2,"td",7),t._uU(40,"\n "),t.BQk(),t._uU(41,"\n\n "),t.ynx(42,11),t._uU(43,"\n "),t.YNc(44,ye,3,3,"th",6),t._uU(45,"\n "),t.YNc(46,Fe,2,2,"td",7),t._uU(47,"\n "),t.BQk(),t._uU(48,"\n\n "),t.ynx(49,12),t._uU(50,"\n "),t.YNc(51,we,3,3,"th",6),t._uU(52,"\n "),t.YNc(53,Ie,4,6,"td",7),t._uU(54,"\n "),t.BQk(),t._uU(55,"\n\n "),t.ynx(56,13),t._uU(57,"\n "),t.YNc(58,Se,3,3,"th",6),t._uU(59,"\n "),t.YNc(60,Je,8,3,"td",7),t._uU(61,"\n "),t.BQk(),t._uU(62,"\n\n "),t.YNc(63,Re,1,0,"tr",14),t._uU(64,"\n "),t.YNc(65,je,1,0,"tr",15),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n "),t.qZA(),t._uU(68,"\n\n"),t.qZA(),t._uU(69,"\n")),2&e&&(t.xp6(5),t.Oqu(t.lcZ(6,4,"labels.heading.All Standing Instructions")),t.xp6(6),t.Q6J("dataSource",i.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[x.O5,h.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,J.gM,z.A,g.X$,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})();var Be=l(45063);let ze=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("fixedDepositAccountId"),this.route.data.subscribe(i=>{this.entityDatatable=i.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Fixed Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&e&&(t.xp6(2),t.Q6J("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[Be.j]}),n})();var s=l(24006),C=l(99602),f=l(59549),Y=l(39349),M=l(284);function $e(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ge=function(){return["../../"]};let He=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveFixedDepositsAccountForm()}createApproveFixedDepositsAccountForm(){this.approveFixedDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.approveFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(this.approveFixedDepositsAccountForm.value.approvedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"approve",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-approve-fixed-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,$e,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.approveFixedDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.approveFixedDepositsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ge)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.approveFixedDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function We(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ve=function(){return["../../"]};let Xe=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectFixedDepositsAccountForm()}createRejectFixedDepositsAccountForm(){this.rejectFixedDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.rejectFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(this.rejectFixedDepositsAccountForm.value.rejectedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"reject",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-reject-fixed-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,We,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.rejectFixedDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.rejectFixedDepositsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ve)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.rejectFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Ke(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const to=function(){return["../../"]};let no=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.savingsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateFixedDepositsAccountForm()}createActivateFixedDepositsAccountForm(){this.activateFixedDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",s.kI.required]})}submit(){const e=this.activateFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(this.activateFixedDepositsAccountForm.value.activatedOnDate,a));const c={...e,dateFormat:a,locale:i};this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(S.d),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-activate-fixed-deposits-account"]],decls:39,vars:18,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(19);return t.KtG(c.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,Ke,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const a=t.MAs(19);t.xp6(4),t.Q6J("formGroup",i.activateFixedDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.activateFixedDepositsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,to)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.activateFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,p.yH,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();const eo=function(){return["../../"]};let oo=(()=>{class n{constructor(e,i,a,r,c){this.formBuilder=e,this.savingsService=i,this.fixedDepositsService=a,this.route=r,this.router=c,this.undoCommand="undoapproval",this.undoAction=this.route.snapshot.params.name,"Undo Activation"===this.undoAction&&(this.undoCommand="undoactivate"),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.createUndoApprovalFixedDepositsAccountForm()}createUndoApprovalFixedDepositsAccountForm(){this.undoApprovalFixedDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){const e={...this.undoApprovalFixedDepositsAccountForm.value};"Undo Activation"===this.undoAction?this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})}):this.savingsService.executeSavingsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(S.d),t.Y36(b),t.Y36(d.gz),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-approval-fixed-deposits-account"]],decls:32,vars:13,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",i.undoApprovalFixedDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,eo)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.undoApprovalFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[p.xw,p.SQ,p.Wh,p.yH,h.lW,A.a8,A.dn,A.hq,f.KE,f.hX,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function io(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ao=function(){return["../../"]};let co=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawFixedDepositsAccountForm()}createWithdrawFixedDepositsAccountForm(){this.withdrawFixedDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.withdrawFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawFixedDepositsAccountForm.value.withdrawnOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"withdrawnByApplicant",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-withdraw-by-client-fixed-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,io,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.withdrawFixedDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.withdrawFixedDepositsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,ao)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.withdrawFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();var L=l(3238),N=l(84385);function so(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name+" ("+e.currency.name+")","\n ")}}function ro(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function uo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function po(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function lo(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function _o(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function mo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,_o,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),i=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",i.fixedDepositsChargeForm.controls.dueDate.hasError("required"))}}function go(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function fo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,go,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),i=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",i.fixedDepositsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function xo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function ho(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,uo,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,po,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,lo,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,mo,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,fo,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,xo,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",e.fixedDepositsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",e.fixedDepositsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsChargeForm.contains("feeInterval"))}}const Ao=function(){return["../../"]};let Co=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.route=i,this.router=a,this.dateUtils=r,this.savingsService=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(Z=>{this.savingsChargeOptions=Z.fixedDepositsAccountActionData.chargeOptions}),this.fixedDepositAccountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFixedDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.fixedDepositsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(i=>{this.chargeDetails=i;const a=i.chargeTimeType.id;("Withdrawal Fee"===i.chargeTimeType.value||"Saving No Activity Fee"===i.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===i.chargeTimeType.value||"Monthly Fee"===i.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.removeControl("dueDate"):this.fixedDepositsChargeForm.addControl("dueDate",new s.p4("",s.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.addControl("feeOnMonthDay",new s.p4("",s.kI.required)):this.fixedDepositsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===a.value?this.fixedDepositsChargeForm.addControl("feeInterval",new s.p4(i.feeInterval,s.kI.required)):this.fixedDepositsChargeForm.removeControl("feeInterval"),this.fixedDepositsChargeForm.patchValue({amount:i.amount,chargeCalculationType:i.chargeCalculationType.id,chargeTimeType:i.chargeTimeType.id})})})}createFixedDepositsChargeForm(){this.fixedDepositsChargeForm=this.formBuilder.group({chargeId:["",s.kI.required],amount:["",s.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const e=this.fixedDepositsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const i="MMMM-dd";e.monthDayFormat=i,e.feeOnMonthDay&&(e.feeOnMonthDay=this.dateUtils.formatDate(this.fixedDepositsChargeForm.value.feeOnMonthDay,i))}else{const i=this.settingsService.dateFormat;e.dateFormat=i,e.dueDate&&(e.dueDate=this.dateUtils.formatDate(this.fixedDepositsChargeForm.value.dueDate,i))}this.savingsService.createSavingsCharge(this.fixedDepositAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(d.gz),t.Y36(d.F0),t.Y36(P.L),t.Y36(S.d),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-add-charge-fixed-deposits-account"]],decls:42,vars:16,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,so,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,ro,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,ho,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",i.fixedDepositsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",i.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",i.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,Ao)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.fixedDepositsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[x.sg,x.O5,p.xw,p.SQ,p.Wh,L.ey,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,M.Nt,N.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function To(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Premature Close Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Uo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",11),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Maturity Amount")))}function Zo(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function bo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Account action")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Do(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",12),t._uU(7,"\n "),t.YNc(8,Zo,2,2,"mat-option",13),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,bo,8,9,"mat-error",7),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Action")),t.xp6(5),t.Q6J("ngForOf",e.onAccountClosureOptions),t.xp6(3),t.Q6J("ngIf",e.prematureCloseAccountForm.controls.onAccountClosureId.hasError("required"))}}function Oo(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function Po(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transfer to savings account")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function vo(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",15),t._uU(7,"\n "),t.YNc(8,Oo,2,2,"mat-option",13),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,Po,8,9,"mat-error",7),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Transfer to Savings")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(3),t.Q6J("ngIf",e.prematureCloseAccountForm.controls.toSavingsAccountId.hasError("required"))}}function Mo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transfer Description")))}function qo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"textarea",17),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Note")))}const yo=function(){return["../../"]};let Fo=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isSubmitted=!1,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPrematureCloseAccountForm(),this.buildDependencies()}createPrematureCloseAccountForm(){this.prematureCloseAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required]})}buildDependencies(){this.prematureCloseAccountForm.get("closedOnDate").valueChanges.subscribe(e=>{this.isSubmitted||this.calculatePrematureAmount(e)})}calculatePrematureAmount(e){const i=this.settingsService.language.code,a=this.settingsService.dateFormat,r={closedOnDate:this.dateUtils.formatDate(e,a),dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"calculatePrematureAmount",r).subscribe(c=>{this.savingsAccountsData=c.savingsAccounts,this.onAccountClosureOptions=c.onAccountClosureOptions,this.prematureCloseAccountForm.addControl("maturityAmount",new s.p4({value:"",disabled:!0})),this.prematureCloseAccountForm.addControl("onAccountClosureId",new s.p4("",s.kI.required)),this.prematureCloseAccountForm.addControl("note",new s.p4("")),this.prematureCloseAccountForm.get("maturityAmount").patchValue(c.maturityAmount),this.addTransferDetails()})}addTransferDetails(){this.prematureCloseAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{200===e?(this.prematureCloseAccountForm.addControl("toSavingsAccountId",new s.p4("",s.kI.required)),this.prematureCloseAccountForm.addControl("transferDescription",new s.p4(""))):(this.prematureCloseAccountForm.removeControl("toSavingsAccountId"),this.prematureCloseAccountForm.removeControl("transferDescription"))})}submit(){const e=this.prematureCloseAccountForm.value;this.isSubmitted=!0;const i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.prematureCloseAccountForm.value.closedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"prematureClose",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-premature-close-fixed-deposits-account"]],decls:52,vars:23,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,To,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.YNc(26,Uo,8,3,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,Do,13,5,"mat-form-field",7),t._uU(29,"\n\n "),t.YNc(30,vo,13,5,"mat-form-field",7),t._uU(31,"\n\n "),t.YNc(32,Mo,8,3,"mat-form-field",7),t._uU(33,"\n\n "),t.YNc(34,qo,8,3,"mat-form-field",7),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-card-actions",8),t._uU(39,"\n "),t.TgZ(40,"button",9),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"button",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n "),t.qZA(),t._uU(50,"\n\n"),t.qZA(),t._uU(51,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.prematureCloseAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,16,"labels.inputs.Premature Close Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.prematureCloseAccountForm.controls.closedOnDate.hasError("required")),t.xp6(3),t.Q6J("ngIf",i.prematureCloseAccountForm.controls.maturityAmount),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("onAccountClosureId")),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("toSavingsAccountId")),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("transferDescription")),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("note")),t.xp6(6),t.Q6J("routerLink",t.DdM(22,yo)),t.xp6(1),t.Oqu(t.lcZ(42,18,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.prematureCloseAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(46,20,"labels.buttons.Confirm"))}},dependencies:[x.sg,x.O5,p.xw,p.SQ,p.Wh,L.ey,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,N.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function wo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Io(n,o){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function So(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Account action")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Lo(n,o){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function No(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transfer to savings account")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Yo(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",16),t._uU(7,"\n "),t.YNc(8,Lo,2,2,"mat-option",10),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,No,8,9,"mat-error",7),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Transfer to Savings")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(3),t.Q6J("ngIf",e.closeOnMaturityAccountForm.controls.toSavingsAccountId.hasError("required"))}}function ko(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",17),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transfer Description")))}const Qo=function(){return["../../"]};let Jo=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(Z=>{this.savingsAccountsData=Z.fixedDepositsAccountActionData.savingsAccounts,this.onAccountClosureOptions=Z.fixedDepositsAccountActionData.onAccountClosureOptions,this.maturityAmount=Z.fixedDepositsAccountActionData.maturityAmount}),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseOnMaturityAccountForm(),this.addTransferDetails()}createCloseOnMaturityAccountForm(){this.closeOnMaturityAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",s.kI.required],note:[""]})}addTransferDetails(){this.closeOnMaturityAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{200===e?(this.closeOnMaturityAccountForm.addControl("toSavingsAccountId",new s.p4("",s.kI.required)),this.closeOnMaturityAccountForm.addControl("transferDescription",new s.p4(""))):(this.closeOnMaturityAccountForm.removeControl("toSavingsAccountId"),this.closeOnMaturityAccountForm.removeControl("transferDescription"))})}submit(){const e=this.closeOnMaturityAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.closeOnMaturityAccountForm.value.closedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"close",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-close-fixed-deposits-account"]],decls:78,vars:31,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],[3,"value"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,wo,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"input",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.TgZ(35,"mat-form-field"),t._uU(36,"\n "),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.TgZ(41,"mat-select",9),t._uU(42,"\n "),t.YNc(43,Io,2,2,"mat-option",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.YNc(46,So,8,9,"mat-error",7),t._uU(47,"\n "),t.qZA(),t._uU(48,"\n\n "),t.YNc(49,Yo,13,5,"mat-form-field",7),t._uU(50,"\n\n "),t.YNc(51,ko,8,3,"mat-form-field",7),t._uU(52,"\n\n "),t.TgZ(53,"mat-form-field"),t._uU(54,"\n "),t.TgZ(55,"mat-label"),t._uU(56),t.ALo(57,"translate"),t.qZA(),t._uU(58,"\n "),t._UZ(59,"textarea",11),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n\n "),t.qZA(),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"mat-card-actions",12),t._uU(65,"\n "),t.TgZ(66,"button",13),t._uU(67),t.ALo(68,"translate"),t.qZA(),t._uU(69,"\n "),t.TgZ(70,"button",14),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.qZA(),t._uU(74,"\n\n "),t.qZA(),t._uU(75,"\n\n "),t.qZA(),t._uU(76,"\n\n"),t.qZA(),t._uU(77,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.closeOnMaturityAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,18,"labels.inputs.Closed On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.closeOnMaturityAccountForm.controls.closedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,20,"labels.inputs.Maturity Amount")),t.xp6(9),t.Oqu(t.lcZ(39,22,"labels.inputs.Action")),t.xp6(5),t.Q6J("ngForOf",i.onAccountClosureOptions),t.xp6(3),t.Q6J("ngIf",i.closeOnMaturityAccountForm.controls.onAccountClosureId.hasError("required")),t.xp6(3),t.Q6J("ngIf",i.closeOnMaturityAccountForm.contains("toSavingsAccountId")),t.xp6(2),t.Q6J("ngIf",i.closeOnMaturityAccountForm.contains("transferDescription")),t.xp6(5),t.Oqu(t.lcZ(57,24,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(30,Qo)),t.xp6(1),t.Oqu(t.lcZ(68,26,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.closeOnMaturityAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(72,28,"labels.buttons.Confirm"))}},dependencies:[x.sg,x.O5,p.xw,p.SQ,p.Wh,L.ey,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,N.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Ro(n,o){1&n&&t._UZ(0,"mifosx-approve-fixed-deposits-account")}function jo(n,o){1&n&&t._UZ(0,"mifosx-reject-fixed-deposits-account")}function Eo(n,o){1&n&&t._UZ(0,"mifosx-activate-fixed-deposits-account")}function Bo(n,o){1&n&&t._UZ(0,"mifosx-undo-approval-fixed-deposits-account")}function zo(n,o){1&n&&t._UZ(0,"mifosx-withdraw-by-client-fixed-deposits-account")}function $o(n,o){1&n&&t._UZ(0,"mifosx-add-charge-fixed-deposits-account")}function Go(n,o){1&n&&t._UZ(0,"mifosx-premature-close-fixed-deposits-account")}function Ho(n,o){1&n&&t._UZ(0,"mifosx-close-fixed-deposits-account")}let Wo=(()=>{class n{constructor(e){this.route=e,this.actions={Approve:!1,Reject:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Undo Activation":!1,"Add Charge":!1,"Premature Close":!1,"Withdraw By Client":!1},this.actions[this.route.snapshot.params.name]=!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposits-account-actions"]],decls:16,vars:8,consts:[[4,"ngIf"]],template:function(e,i){1&e&&(t.YNc(0,Ro,1,0,"mifosx-approve-fixed-deposits-account",0),t._uU(1,"\n"),t.YNc(2,jo,1,0,"mifosx-reject-fixed-deposits-account",0),t._uU(3,"\n"),t.YNc(4,Eo,1,0,"mifosx-activate-fixed-deposits-account",0),t._uU(5,"\n"),t.YNc(6,Bo,1,0,"mifosx-undo-approval-fixed-deposits-account",0),t._uU(7,"\n"),t.YNc(8,zo,1,0,"mifosx-withdraw-by-client-fixed-deposits-account",0),t._uU(9,"\n"),t.YNc(10,$o,1,0,"mifosx-add-charge-fixed-deposits-account",0),t._uU(11,"\n"),t.YNc(12,Go,1,0,"mifosx-premature-close-fixed-deposits-account",0),t._uU(13,"\n"),t.YNc(14,Ho,1,0,"mifosx-close-fixed-deposits-account",0),t._uU(15,"\n")),2&e&&(t.Q6J("ngIf",i.actions.Approve),t.xp6(2),t.Q6J("ngIf",i.actions.Reject),t.xp6(2),t.Q6J("ngIf",i.actions.Activate),t.xp6(2),t.Q6J("ngIf",i.actions["Undo Approval"]||i.actions["Undo Activation"]),t.xp6(2),t.Q6J("ngIf",i.actions["Withdraw By Client"]),t.xp6(2),t.Q6J("ngIf",i.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",i.actions["Premature Close"]),t.xp6(2),t.Q6J("ngIf",i.actions.Close))},dependencies:[x.O5,He,Xe,no,oo,co,Co,Fo,Jo]}),n})();var Vo=l(29243);function Xo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",13),t._uU(3,"Undo\n "),t.qZA()}}function Ko(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Xo,4,0,"button",11),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function ti(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Note"),"\n "))}function ni(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("\n ",e.transactionData.note,"\n ")}}function ei(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Payment Type"),"\n "))}function oi(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.paymentType.name,"\n ")}}function ii(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Account No"),".\n "))}function ai(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.accountNumber,"\n ")}}function ci(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Cheque Number"),"\n "))}function si(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.checkNumber,"\n ")}}function ri(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Routing Code"),"\n "))}function ui(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.routingCode,"\n ")}}function pi(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Receipt No"),".\n "))}function li(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.receiptNumber,"\n ")}}function di(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Bank No"),".\n "))}function _i(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.bankNumber,"\n ")}}function mi(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n\n "),t.YNc(2,ei,3,3,"div",7),t._uU(3,"\n\n "),t.YNc(4,oi,2,1,"div",8),t._uU(5,"\n\n "),t.YNc(6,ii,3,3,"div",7),t._uU(7,"\n\n "),t.YNc(8,ai,2,1,"div",8),t._uU(9,"\n\n "),t.YNc(10,ci,3,3,"div",7),t._uU(11,"\n\n "),t.YNc(12,si,2,1,"div",8),t._uU(13,"\n\n "),t.YNc(14,ri,3,3,"div",7),t._uU(15,"\n\n "),t.YNc(16,ui,2,1,"div",8),t._uU(17,"\n\n "),t.YNc(18,pi,3,3,"div",7),t._uU(19,"\n\n "),t.YNc(20,li,2,1,"div",8),t._uU(21,"\n\n "),t.YNc(22,di,3,3,"div",7),t._uU(23,"\n\n "),t.YNc(24,_i,2,1,"div",8),t._uU(25,"\n\n "),t.BQk()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.bankNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.bankNumber)}}const gi=function(){return["../"]};let fi=(()=>{class n{constructor(e,i,a,r,c,m){this.savingsService=e,this.route=i,this.dateUtils=a,this.router=r,this.dialog=c,this.settingsService=m,this.route.data.subscribe(Z=>{console.log(this.route.parent.snapshot.params),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId,this.transactionData=Z.fixedDepositsAccountTransaction})}transactionColor(){return this.transactionData.manuallyReversed?"undo":"active"}allowUndo(){return!1}undoTransaction(){this.dialog.open(Vo.z).afterClosed().subscribe(i=>{if(i.confirm){const a=this.settingsService.language.code,r=this.settingsService.dateFormat,c={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),r),transactionAmount:0,dateFormat:r,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",c,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.d),t.Y36(d.gz),t.Y36(P.L),t.Y36(d.F0),t.Y36(_.uw),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-transaction"]],decls:70,vars:37,consts:[["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","100%",3,"ngClass"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxFlex","50%","class","mat-body-strong",4,"ngIf"],["fxFlex","50%",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,Ko,4,1,"span",1),t._uU(3,"\n"),t.qZA(),t._uU(4,"\n"),t.TgZ(5,"div",2),t._uU(6,"\n\n "),t.TgZ(7,"mat-card"),t._uU(8,"\n\n "),t.TgZ(9,"mat-card-content"),t._uU(10,"\n\n "),t.TgZ(11,"div",3),t._uU(12,"\n "),t.TgZ(13,"div",4),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",6),t._uU(21),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"div",5),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"div",6),t._uU(28),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",6),t._uU(35),t.ALo(36,"dateFormat"),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"div",5),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"div",6),t._uU(43),t.qZA(),t._uU(44,"\n\n "),t.TgZ(45,"div",5),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n\n "),t.TgZ(49,"div",6),t._uU(50),t.ALo(51,"currency"),t.qZA(),t._uU(52,"\n\n "),t.YNc(53,ti,3,3,"div",7),t._uU(54,"\n\n "),t.YNc(55,ni,2,1,"div",8),t._uU(56,"\n\n "),t.YNc(57,mi,26,12,"ng-container",1),t._uU(58,"\n\n "),t.qZA(),t._uU(59,"\n\n "),t.TgZ(60,"div",9),t._uU(61,"\n "),t.TgZ(62,"button",10),t._uU(63),t.ALo(64,"translate"),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.qZA(),t._uU(68,"\n\n"),t.qZA(),t._uU(69,"\n")),2&e&&(t.xp6(2),t.Q6J("ngIf",i.allowUndo()),t.xp6(11),t.Q6J("ngClass",i.transactionColor()),t.xp6(4),t.hij("\n ",t.lcZ(18,17,"labels.inputs.Transaction Id"),"\n "),t.xp6(4),t.hij("\n ",i.transactionData.id,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(25,19,"labels.inputs.Type"),"\n "),t.xp6(4),t.hij("\n ",i.transactionData.transactionType.value,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(32,21,"labels.inputs.Transaction Date"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(36,23,i.transactionData.date),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(40,25,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",i.transactionData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(47,27,"labels.inputs.Amount"),"\n "),t.xp6(4),t.hij("\n ",t.gM2(51,29,i.transactionData.amount,i.transactionData.currency.code,"symbol-narrow","1.2-2"),"\n "),t.xp6(3),t.Q6J("ngIf",i.transactionData.note),t.xp6(2),t.Q6J("ngIf",i.transactionData.note),t.xp6(2),t.Q6J("ngIf",i.transactionData.paymentDetailData),t.xp6(5),t.Q6J("routerLink",t.DdM(36,gi)),t.xp6(1),t.Oqu(t.lcZ(64,34,"Back")))},dependencies:[x.mk,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.yH,K.oO,h.lW,A.a8,A.dn,z.A,d.rH,x.H9,g.X$,I.E],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#0f36e4}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#0f36e4b3;border:1px solid #091f84;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#0f36e4}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#00ce00}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.transaction-relation[_ngcontent-%COMP%]{background-color:#d7dada}.active[_ngcontent-%COMP%]{background-color:#00ce00;height:4px}.linked[_ngcontent-%COMP%]{background-color:#0f36e4;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]}),n})();var U=l(58425);function xi(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function hi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.TgZ(13,"mat-error"),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.TgZ(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),i=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.inputs.Submitted On")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(6),t.AsE("\n ",t.lcZ(15,10,"labels.inputs.Submission Date")," ",t.lcZ(16,12,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(19,14,"labels.commons.required"))}}function Ai(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function Ci(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",17),t._uU(7,"\n "),t.YNc(8,Ai,2,2,"mat-option",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Field Officer")),t.xp6(5),t.Q6J("ngForOf",e.fieldOfficerData)}}function Ti(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",18),t.ALo(7,"translate"),t._uU(8,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.External id")),t.xp6(3),t.s9C("matTooltip",t.lcZ(7,4,"tooltips.Provides an external id")))}let G=(()=>{class n{constructor(e,i,a){this.formBuilder=e,this.fixedDepositsService=i,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.fixedDepositsAccountProductTemplate=new t.vpe,this.createFixedDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.fixedDepositsAccountTemplate&&(this.productData=this.fixedDepositsAccountTemplate.productOptions,this.fixedDepositsAccountTemplate.depositProductId&&this.fixedDepositAccountDetailsForm.patchValue({productId:this.fixedDepositsAccountTemplate.depositProductId,submittedOnDate:this.fixedDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.fixedDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.fixedDepositsAccountTemplate.externalId||""}))}createFixedDepositsAccountDetailsForm(){this.fixedDepositAccountDetailsForm=this.formBuilder.group({productId:["",s.kI.required],submittedOnDate:["",s.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const e=this.fixedDepositsAccountTemplate.clientId;this.fixedDepositAccountDetailsForm.get("productId").valueChanges.subscribe(i=>{this.fixedDepositsService.getFixedDepositsAccountTemplate(e,i).subscribe(a=>{this.fixedDepositsAccountProductTemplate.emit(a),this.isProductSelected=!0,this.fieldOfficerData=a.fieldOfficerOptions,!this.isFieldOfficerPatched&&this.fixedDepositsAccountTemplate.fieldOfficerId?(this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.fixedDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get fixedDepositAccountDetails(){const e=this.fixedDepositAccountDetailsForm.value;for(const i in e)""===e[i]&&delete e[i];return e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-details-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate"},outputs:{fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},decls:48,vars:23,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,xi,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,hi,22,16,"mat-form-field",5),t._uU(26,"\n\n "),t.YNc(27,Ci,11,4,"mat-form-field",6),t._uU(28,"\n\n "),t.YNc(29,Ti,9,6,"mat-form-field",6),t._uU(30,"\n\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",7),t._uU(33,"\n "),t.TgZ(34,"button",8),t._uU(35,"\n "),t._UZ(36,"fa-icon",9),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"button",10),t._uU(41),t.ALo(42,"translate"),t._UZ(43,"fa-icon",11),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n"),t.qZA(),t._uU(47,"\n")),2&e&&(t.Q6J("formGroup",i.fixedDepositAccountDetailsForm),t.xp6(7),t.Oqu(t.lcZ(8,11,"labels.inputs.Product Name")),t.xp6(5),t.Q6J("ngForOf",i.productData),t.xp6(4),t.AsE("\n ",t.lcZ(17,13,"labels.inputs.Product Name")," ",t.lcZ(18,15,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,17,"labels.commons.required")),t.xp6(5),t.Q6J("ngIf",i.isProductSelected),t.xp6(2),t.Q6J("ngIf",i.isProductSelected),t.xp6(2),t.Q6J("ngIf",i.isProductSelected),t.xp6(8),t.hij("\n ",t.lcZ(38,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(42,21,"labels.buttons.Next"),"\n "))},dependencies:[x.sg,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.yH,L.ey,h.lW,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,M.Nt,N.gD,U.Ic,U.fd,J.gM,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,g.X$],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var nt=l(44850);function Ui(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Zi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function bi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Di(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Oi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}let H=(()=>{class n{constructor(e,i){this.formBuilder=e,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createFixedDepositsAccountTermsForm()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&this.setOptions()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate.id&&this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountTemplate.depositAmount,depositPeriod:this.fixedDepositsAccountTemplate.depositPeriod,depositPeriodFrequencyId:this.fixedDepositsAccountTemplate.depositPeriodFrequency.id})}createFixedDepositsAccountTermsForm(){this.fixedDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",s.kI.required],interestPostingPeriodType:["",s.kI.required],interestCalculationType:["",s.kI.required],interestCalculationDaysInYearType:["",s.kI.required],depositAmount:["",s.kI.required],depositPeriod:["",s.kI.required],depositPeriodFrequencyId:["",s.kI.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.fixedDepositsAccountTemplate.id||this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountProductTemplate.depositAmount,depositPeriod:this.fixedDepositsAccountProductTemplate.minDepositTerm,depositPeriodFrequencyId:this.fixedDepositsAccountProductTemplate.minDepositTermType.id})}get fixedDepositAccountTerms(){const e=this.fixedDepositAccountTermsForm.value;for(const i in e)""===e[i]&&delete e[i];return e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-terms-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[t.TTD],decls:166,vars:96,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["type","number","matInput","","formControlName","depositAmount","required",""],["fxFlex","48%","fxHide.lt-md",""],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","98%"],["formControlName","interestCompoundingPeriodType","required",""],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t._UZ(10,"input",3),t._uU(11,"\n "),t.TgZ(12,"mat-error"),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.TgZ(16,"strong"),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t._UZ(22,"span",4),t._uU(23,"\n\n "),t.TgZ(24,"mat-form-field",2),t._uU(25,"\n "),t.TgZ(26,"mat-label"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t._UZ(30,"input",5),t._uU(31,"\n "),t.TgZ(32,"mat-error"),t._uU(33),t.ALo(34,"translate"),t.ALo(35,"translate"),t.TgZ(36,"strong"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"mat-form-field",2),t._uU(43,"\n "),t.TgZ(44,"mat-label"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"mat-select",6),t._uU(49,"\n "),t.YNc(50,Ui,2,2,"mat-option",7),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"mat-error"),t._uU(54),t.ALo(55,"translate"),t.ALo(56,"translate"),t.TgZ(57,"strong"),t._uU(58),t.ALo(59,"translate"),t.qZA(),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n\n "),t._UZ(63,"mat-divider",8),t._uU(64,"\n\n "),t.TgZ(65,"mat-form-field",2),t._uU(66,"\n "),t.TgZ(67,"mat-label"),t._uU(68),t.ALo(69,"translate"),t.qZA(),t._uU(70,"\n "),t.TgZ(71,"mat-select",9),t._uU(72,"\n "),t.YNc(73,Zi,2,2,"mat-option",7),t._uU(74,"\n "),t.qZA(),t._uU(75,"\n "),t.TgZ(76,"mat-error"),t._uU(77),t.ALo(78,"translate"),t.ALo(79,"translate"),t.TgZ(80,"strong"),t._uU(81),t.ALo(82,"translate"),t.qZA(),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n "),t.qZA(),t._uU(85,"\n\n "),t.TgZ(86,"mat-form-field",2),t._uU(87,"\n "),t.TgZ(88,"mat-label"),t._uU(89),t.ALo(90,"translate"),t.qZA(),t._uU(91,"\n "),t.TgZ(92,"mat-select",10),t._uU(93,"\n "),t.YNc(94,bi,2,2,"mat-option",7),t._uU(95,"\n "),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"mat-error"),t._uU(98),t.ALo(99,"translate"),t.ALo(100,"translate"),t.TgZ(101,"strong"),t._uU(102),t.ALo(103,"translate"),t.qZA(),t._uU(104,"\n "),t.qZA(),t._uU(105,"\n "),t.qZA(),t._uU(106,"\n\n "),t.TgZ(107,"mat-form-field",2),t._uU(108,"\n "),t.TgZ(109,"mat-label"),t._uU(110),t.ALo(111,"translate"),t.qZA(),t._uU(112,"\n "),t.TgZ(113,"mat-select",11),t._uU(114,"\n "),t.YNc(115,Di,2,2,"mat-option",7),t._uU(116,"\n "),t.qZA(),t._uU(117,"\n "),t.TgZ(118,"mat-error"),t._uU(119),t.ALo(120,"translate"),t.ALo(121,"translate"),t.TgZ(122,"strong"),t._uU(123),t.ALo(124,"translate"),t.qZA(),t._uU(125,"\n "),t.qZA(),t._uU(126,"\n "),t.qZA(),t._uU(127,"\n\n "),t.TgZ(128,"mat-form-field",2),t._uU(129,"\n "),t.TgZ(130,"mat-label"),t._uU(131),t.ALo(132,"translate"),t.qZA(),t._uU(133,"\n "),t.TgZ(134,"mat-select",12),t._uU(135,"\n "),t.YNc(136,Oi,2,2,"mat-option",7),t._uU(137,"\n "),t.qZA(),t._uU(138,"\n "),t.TgZ(139,"mat-error"),t._uU(140),t.ALo(141,"translate"),t.ALo(142,"translate"),t.TgZ(143,"strong"),t._uU(144),t.ALo(145,"translate"),t.qZA(),t._uU(146,"\n "),t.qZA(),t._uU(147,"\n "),t.qZA(),t._uU(148,"\n\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"div",13),t._uU(151,"\n "),t.TgZ(152,"button",14),t._uU(153,"\n "),t._UZ(154,"fa-icon",15),t._uU(155),t.ALo(156,"translate"),t.qZA(),t._uU(157,"\n "),t.TgZ(158,"button",16),t._uU(159),t.ALo(160,"translate"),t._UZ(161,"fa-icon",17),t._uU(162,"\n "),t.qZA(),t._uU(163,"\n "),t.qZA(),t._uU(164,"\n\n"),t.qZA(),t._uU(165,"\n")),2&e&&(t.Q6J("formGroup",i.fixedDepositAccountTermsForm),t.xp6(7),t.Oqu(t.lcZ(8,36,"labels.inputs.Deposit Amount")),t.xp6(6),t.AsE("\n ",t.lcZ(14,38,"labels.inputs.Fixed Deposit Amount")," ",t.lcZ(15,40,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(18,42,"labels.commons.required")),t.xp6(10),t.Oqu(t.lcZ(28,44,"labels.inputs.Deposit Period")),t.xp6(6),t.AsE("\n ",t.lcZ(34,46,"labels.inputs.Deposit Period")," ",t.lcZ(35,48,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(38,50,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(46,52,"labels.inputs.Deposit Period Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(55,54,"labels.inputs.Deposit Period Type")," ",t.lcZ(56,56,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(59,58,"labels.commons.required")),t.xp6(10),t.Oqu(t.lcZ(69,60,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Q6J("ngForOf",i.interestCompoundingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(78,62,"labels.inputs.Interest Compounding Period")," ",t.lcZ(79,64,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(82,66,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(90,68,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Q6J("ngForOf",i.interestPostingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(99,70,"labels.inputs.Interest Posting Period")," ",t.lcZ(100,72,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(103,74,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(111,76,"labels.inputs.Interest Calculated using")),t.xp6(5),t.Q6J("ngForOf",i.interestCalculationTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(120,78,"labels.inputs.Interest Calculated using")," ",t.lcZ(121,80,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(124,82,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(132,84,"labels.inputs.Days in Year")),t.xp6(5),t.Q6J("ngForOf",i.interestCalculationDaysInYearTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(141,86,"labels.inputs.Days in Year")," ",t.lcZ(142,88,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(145,90,"labels.commons.required")),t.xp6(11),t.hij("\n ",t.lcZ(156,92,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(160,94,"labels.buttons.Next"),"\n "))},dependencies:[x.sg,v.BN,p.xw,p.SQ,p.Wh,p.yH,K.b8,L.ey,h.lW,nt.d,f.TO,f.KE,f.hX,M.Nt,N.gD,U.Ic,U.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,g.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var Pi=l(56709);function vi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Mi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function qi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function yi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Fi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function wi(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",29),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",30),t._uU(7,"\n "),t.YNc(8,Fi,2,2,"mat-option",6),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.TgZ(11,"mat-error"),t._uU(12),t.ALo(13,"translate"),t.ALo(14,"translate"),t.TgZ(15,"strong"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"labels.inputs.Linked Savings Account")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(4),t.AsE("\n ",t.lcZ(13,7,"labels.inputs.Linked Savings Account")," ",t.lcZ(14,9,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(17,11,"labels.commons.required"))}}function Ii(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Si(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function Li(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",29),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",31),t._uU(7,"\n "),t.YNc(8,Si,2,2,"mat-option",6),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.TgZ(11,"mat-error"),t._uU(12),t.ALo(13,"translate"),t.ALo(14,"translate"),t.TgZ(15,"strong"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"labels.inputs.Transfer to savings account")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(4),t.AsE("\n ",t.lcZ(13,7,"labels.inputs.Transfer to savings account")," ",t.lcZ(14,9,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(17,11,"labels.commons.required"))}}function Ni(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Yi(n,o){1&n&&(t.TgZ(0,"mat-form-field",34),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",35),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Tax Group")))}function ki(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n\n "),t._UZ(2,"mat-divider",13),t._uU(3,"\n\n "),t.TgZ(4,"mat-checkbox",32),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n\n "),t.YNc(8,Yi,8,3,"mat-form-field",33),t._uU(9,"\n\n "),t.BQk()),2&n){const e=t.oxw();t.xp6(5),t.hij("\n ",t.lcZ(6,2,"labels.inputs.Is Withhold Tax Applicable"),"?\n "),t.xp6(3),t.Q6J("ngIf",e.fixedDepositAccountSettingsForm.controls.taxGroupId)}}let W=(()=>{class n{constructor(e,i){this.formBuilder=e,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createFixedDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.fixedDepositAccountSettingsForm.patchValue({minDepositTerm:this.fixedDepositsAccountProductTemplate.minDepositTerm,minDepositTermTypeId:this.fixedDepositsAccountProductTemplate.minDepositTermType?this.fixedDepositsAccountProductTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType?this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.id:"",maxDepositTerm:this.fixedDepositsAccountProductTemplate.maxDepositTerm,maxDepositTermTypeId:this.fixedDepositsAccountProductTemplate.maxDepositTermType?this.fixedDepositsAccountProductTemplate.maxDepositTermType.id:"",preClosurePenalApplicable:this.fixedDepositsAccountProductTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.fixedDepositsAccountProductTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType?this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id:"",maturityInstructionId:this.fixedDepositsAccountProductTemplate.maturityInstructionId}),this.fixedDepositsAccountProductTemplate.withHoldTax?(this.fixedDepositAccountSettingsForm.addControl("withHoldTax",new s.p4(!1)),this.fixedDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("taxGroupId",new s.p4({value:"",disabled:!0})),this.fixedDepositAccountSettingsForm.get("taxGroupId").patchValue(this.fixedDepositsAccountProductTemplate.taxGroup&&this.fixedDepositsAccountProductTemplate.taxGroup.name)):this.fixedDepositAccountSettingsForm.removeControl("taxGroupId")}),this.fixedDepositAccountSettingsForm.get("withHoldTax").patchValue(this.fixedDepositsAccountTemplate.withHoldTax)):this.fixedDepositAccountSettingsForm.removeControl("withHoldTax"),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate&&this.fixedDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.fixedDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType&&this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType.id,transferInterestToSavings:this.fixedDepositsAccountTemplate.transferInterestToSavings})}createFixedDepositAccountSettingsForm(){this.fixedDepositAccountSettingsForm=this.formBuilder.group({lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],transferInterestToSavings:[!1],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],maturityInstructionId:[""]})}buildDependencies(){this.fixedDepositAccountSettingsForm.get("transferInterestToSavings").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("linkAccountId",new s.p4("",s.kI.required)),this.fixedDepositAccountSettingsForm.get("linkAccountId").patchValue(this.fixedDepositsAccountTemplate.linkedAccount&&this.fixedDepositsAccountTemplate.linkedAccount.id)):this.fixedDepositAccountSettingsForm.removeControl("linkAccountId")}),this.fixedDepositAccountSettingsForm.get("maturityInstructionId").valueChanges.subscribe(e=>{e>100?(this.fixedDepositAccountSettingsForm.addControl("transferToSavingsId",new s.p4("",s.kI.required)),this.fixedDepositAccountSettingsForm.get("transferToSavingsId").patchValue(this.fixedDepositsAccountTemplate.transferToSavingsId&&this.fixedDepositsAccountTemplate.transferToSavingsId.id)):this.fixedDepositAccountSettingsForm.removeControl("transferToSavingsId")})}setOptions(){this.lockinPeriodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.savingsAccountsData=this.fixedDepositsAccountProductTemplate.savingsAccounts,this.preClosurePenalInterestOnTypeData=this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnTypeOptions,this.maturityInstructionOptions=this.fixedDepositsAccountProductTemplate.maturityInstructionOptions}get fixedDepositAccountSettings(){const e=this.fixedDepositAccountSettingsForm.getRawValue();for(const i in e)(""===e[i]||"taxGroupId"===i)&&delete e[i];return e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-settings-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[t.TTD],decls:200,vars:91,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","98%",1,"mat-h4"],["fxFlex","48%"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value",4,"ngFor","ngForOf"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],["fxFlex","98%"],["fxFlex","23%",1,"mat-h3"],["fxFlex","32%","labelPosition","before","formControlName","transferInterestToSavings",1,"margin-b"],["fxFlex","48%","class","margin-b",4,"ngIf"],["formControlName","maturityInstructionId"],["fxFlex","23%",1,"mat-h4"],["fxFlex","73%","labelPosition","before","formControlName","preClosurePenalApplicable",1,"margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",1,"margin-b"],["formControlName","linkAccountId","required",""],["formControlName","transferToSavingsId","required",""],["fxFlex","48%","labelPosition","before","formControlName","withHoldTax",1,"margin-p"],["fxFlex","48%","class","p-b-25",4,"ngIf"],["fxFlex","48%",1,"p-b-25"],["matInput","","formControlName","taxGroupId"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"h4",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",4),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"mat-form-field",3),t._uU(18,"\n "),t.TgZ(19,"mat-label"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.TgZ(23,"mat-select",5),t._uU(24,"\n "),t.YNc(25,vi,2,2,"mat-option",6),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"h4",2),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n\n "),t.TgZ(33,"mat-form-field",3),t._uU(34,"\n "),t.TgZ(35,"mat-label"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38,"\n "),t._UZ(39,"input",7),t._uU(40,"\n "),t.TgZ(41,"mat-error"),t._uU(42),t.ALo(43,"translate"),t.ALo(44,"translate"),t.TgZ(45,"strong"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.TgZ(51,"mat-form-field",3),t._uU(52,"\n "),t.TgZ(53,"mat-label"),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"mat-select",8),t._uU(58,"\n "),t.YNc(59,Mi,2,2,"mat-option",6),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.TgZ(62,"mat-error"),t._uU(63),t.ALo(64,"translate"),t.ALo(65,"translate"),t.TgZ(66,"strong"),t._uU(67),t.ALo(68,"translate"),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.TgZ(72,"h4",2),t._uU(73),t.ALo(74,"translate"),t.qZA(),t._uU(75,"\n\n "),t.TgZ(76,"mat-form-field",3),t._uU(77,"\n "),t.TgZ(78,"mat-label"),t._uU(79),t.ALo(80,"translate"),t.qZA(),t._uU(81,"\n "),t._UZ(82,"input",9),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n\n "),t.TgZ(85,"mat-form-field",3),t._uU(86,"\n "),t.TgZ(87,"mat-label"),t._uU(88),t.ALo(89,"translate"),t.qZA(),t._uU(90,"\n "),t.TgZ(91,"mat-select",10),t._uU(92,"\n "),t.YNc(93,qi,2,2,"mat-option",6),t._uU(94,"\n "),t.qZA(),t._uU(95,"\n "),t.qZA(),t._uU(96,"\n\n "),t.TgZ(97,"h4",2),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n\n "),t.TgZ(101,"mat-form-field",3),t._uU(102,"\n "),t.TgZ(103,"mat-label"),t._uU(104),t.ALo(105,"translate"),t.qZA(),t._uU(106,"\n "),t._UZ(107,"input",11),t._uU(108,"\n "),t.qZA(),t._uU(109,"\n\n "),t.TgZ(110,"mat-form-field",3),t._uU(111,"\n "),t.TgZ(112,"mat-label"),t._uU(113),t.ALo(114,"translate"),t.qZA(),t._uU(115,"\n "),t.TgZ(116,"mat-select",12),t._uU(117,"\n "),t.YNc(118,yi,2,2,"mat-option",6),t._uU(119,"\n "),t.qZA(),t._uU(120,"\n "),t.qZA(),t._uU(121,"\n\n "),t._UZ(122,"mat-divider",13),t._uU(123,"\n\n "),t.TgZ(124,"h3",14),t._uU(125),t.ALo(126,"translate"),t.qZA(),t._uU(127,"\n\n "),t.TgZ(128,"mat-checkbox",15),t._uU(129),t.ALo(130,"translate"),t.qZA(),t._uU(131,"\n\n "),t.YNc(132,wi,20,13,"mat-form-field",16),t._uU(133,"\n\n "),t._UZ(134,"mat-divider",13),t._uU(135,"\n\n "),t.TgZ(136,"mat-form-field",3),t._uU(137,"\n "),t.TgZ(138,"mat-label"),t._uU(139),t.ALo(140,"translate"),t.qZA(),t._uU(141,"\n "),t.TgZ(142,"mat-select",17),t._uU(143,"\n "),t.YNc(144,Ii,2,2,"mat-option",6),t._uU(145,"\n "),t.qZA(),t._uU(146,"\n "),t.qZA(),t._uU(147,"\n\n "),t.YNc(148,Li,20,13,"mat-form-field",16),t._uU(149,"\n\n "),t._UZ(150,"mat-divider",13),t._uU(151,"\n\n "),t.TgZ(152,"h4",18),t._uU(153),t.ALo(154,"translate"),t.qZA(),t._uU(155,"\n\n "),t.TgZ(156,"mat-checkbox",19),t._uU(157),t.ALo(158,"translate"),t.qZA(),t._uU(159,"\n\n "),t.TgZ(160,"mat-form-field",3),t._uU(161,"\n "),t.TgZ(162,"mat-label"),t._uU(163),t.ALo(164,"translate"),t.qZA(),t._uU(165,"\n "),t._UZ(166,"input",20),t._uU(167,"\n "),t.qZA(),t._uU(168,"\n\n "),t.TgZ(169,"mat-form-field",3),t._uU(170,"\n "),t.TgZ(171,"mat-label"),t._uU(172),t.ALo(173,"translate"),t.qZA(),t._uU(174,"\n "),t.TgZ(175,"mat-select",21),t._uU(176,"\n "),t.YNc(177,Ni,2,2,"mat-option",6),t._uU(178,"\n "),t.qZA(),t._uU(179,"\n "),t.qZA(),t._uU(180,"\n\n "),t.YNc(181,ki,10,4,"ng-container",22),t._uU(182,"\n\n "),t.qZA(),t._uU(183,"\n\n "),t.TgZ(184,"div",23),t._uU(185,"\n "),t.TgZ(186,"button",24),t._uU(187,"\n "),t._UZ(188,"fa-icon",25),t._uU(189),t.ALo(190,"translate"),t.qZA(),t._uU(191,"\n "),t.TgZ(192,"button",26),t._uU(193),t.ALo(194,"translate"),t._UZ(195,"fa-icon",27),t._uU(196,"\n "),t.qZA(),t._uU(197,"\n "),t.qZA(),t._uU(198,"\n\n"),t.qZA(),t._uU(199,"\n")),2&e&&(t.Q6J("formGroup",i.fixedDepositAccountSettingsForm),t.xp6(5),t.Oqu(t.lcZ(6,37,"labels.heading.Lock-in Period")),t.xp6(6),t.Oqu(t.lcZ(12,39,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(21,41,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",i.lockinPeriodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(31,43,"labels.heading.Minimum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(37,45,"labels.inputs.Frequency")),t.xp6(6),t.AsE("\n ",t.lcZ(43,47,"labels.inputs.Minimum Deposit Term Frequency")," ",t.lcZ(44,49,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(47,51,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(55,53,"labels.inputs.Frequency Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(64,55,"labels.inputs.Minimum Deposit Term Frequency Type")," ",t.lcZ(65,57,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(68,59,"labels.commons.required")),t.xp6(6),t.Oqu(t.lcZ(74,61,"labels.heading.And thereafter, in Multiples of")),t.xp6(6),t.Oqu(t.lcZ(80,63,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(89,65,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(99,67,"labels.heading.Maximum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(105,69,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(114,71,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(7),t.Oqu(t.lcZ(126,73,"labels.heading.Interest Transfer")),t.xp6(4),t.hij("\n ",t.lcZ(130,75,"labels.inputs.Transfer Interest to Linked Savings Account"),"?\n "),t.xp6(3),t.Q6J("ngIf",i.fixedDepositAccountSettingsForm.contains("linkAccountId")),t.xp6(7),t.Oqu(t.lcZ(140,77,"labels.inputs.Maturity Instructions")),t.xp6(5),t.Q6J("ngForOf",i.maturityInstructionOptions),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountSettingsForm.contains("transferToSavingsId")),t.xp6(5),t.Oqu(t.lcZ(154,79,"labels.heading.For Pre-mature closure")),t.xp6(4),t.hij("\n ",t.lcZ(158,81,"labels.inputs.Apply Penal Interest (less)"),"\n "),t.xp6(6),t.hij("",t.lcZ(164,83,"labels.inputs.Penal Interest")," (%)"),t.xp6(9),t.Oqu(t.lcZ(173,85,"labels.inputs.Period")),t.xp6(5),t.Q6J("ngForOf",i.preClosurePenalInterestOnTypeData),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountSettingsForm.controls.withHoldTax),t.xp6(8),t.hij("\n ",t.lcZ(190,87,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(194,89,"labels.buttons.Next"),"\n "))},dependencies:[x.sg,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.yH,L.ey,h.lW,Pi.oG,nt.d,f.TO,f.KE,f.hX,M.Nt,N.gD,U.Ic,U.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,g.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-p[_ngcontent-%COMP%]{margin-top:1.7em}"]}),n})();function Qi(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ji(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function Ri(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function ji(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Ei(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function Bi(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function zi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",26),t._uU(1),t.TgZ(2,"button",27),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.editChargeAmount(r))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",28),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function $i(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Gi(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function Hi(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function Wi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned*","\n ")}}const Vi=function(){return[2e3]};function Xi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",e.feeOnMonthDay?t.xi3(2,1,t.DdM(4,Vi).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned","\n ")}}function Ki(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function ta(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,r=t.oxw();return t.KtG(r.editChargeDate(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function na(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1,"\n "),t.YNc(2,Wi,3,3,"span",29),t._uU(3,"\n "),t.YNc(4,Xi,3,5,"span",29),t._uU(5,"\n "),t.YNc(6,Ki,3,3,"span",29),t._uU(7,"\n "),t.YNc(8,ta,4,0,"button",30),t._uU(9,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value)}}function ea(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function oa(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,r=t.oxw();return t.KtG(r.editChargeFeeInterval(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function ia(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,oa,4,0,"button",30),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n "),t.xp6(1),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value)}}function aa(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function ca(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",26),t._uU(1,"\n "),t.TgZ(2,"button",31),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.deleteCharge(r))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",32),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function sa(n,o){1&n&&t._UZ(0,"tr",33)}function ra(n,o){1&n&&t._UZ(0,"tr",34)}let V=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dateUtils=i,this.settingsService=a,this.currency=null,this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.isChargesPatched=!1,this.pristine=!0}ngOnInit(){this.chargesDataSource=[],this.fixedDepositsAccountTemplate.id&&this.fixedDepositsAccountTemplate.charges&&(this.chargesDataSource=this.fixedDepositsAccountTemplate.charges.map(e=>({...e,id:e.chargeId}))||[])}ngOnChanges(){null==this.currency&&(this.fixedDepositsAccountTemplate.currency?this.currency=this.fixedDepositsAccountTemplate.currency:this.fixedDepositsAccountProductTemplate&&this.fixedDepositsAccountProductTemplate.currency&&(this.currency=this.fixedDepositsAccountProductTemplate.currency)),this.fixedDepositsAccountProductTemplate&&(this.chargeData=this.fixedDepositsAccountProductTemplate.chargeOptions.filter(e=>e.currency.code===this.currency.code))}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){const i=[new $.M({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})];this.dialog.open(R.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const m={...e,amount:c.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,m),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){const i=[new at.d({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(R.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){let m;const k=this.dateUtils.formatDate(c.data.value.date,this.settingsService.dateFormat);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":m={...e,dueDate:k};break;case"Annual Fee":m={...e,feeOnMonthDay:k}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,m),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){const i=[new $.M({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})];this.dialog.open(R.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const m={...e,feeInterval:c.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,m),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get fixedDepositAccountCharges(){return{charges:this.chargesDataSource}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.uw),t.Y36(P.L),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-charges-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountFormValid:"fixedDepositAccountFormValid"},features:[t.TTD],decls:96,vars:19,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-select",null,2),t._uU(10,"\n "),t.YNc(11,Qi,2,2,"mat-option",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",4),t._uU(16,"\n "),t.TgZ(17,"button",5),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(9);return t.KtG(i.addCharge(c))}),t._uU(18,"\n "),t._UZ(19,"fa-icon",6),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"table",7),t._uU(25,"\n\n "),t.ynx(26,8),t._uU(27,"\n "),t.YNc(28,Ji,3,3,"th",9),t._uU(29,"\n "),t.YNc(30,Ri,2,1,"td",10),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,ji,3,3,"th",9),t._uU(36,"\n "),t.YNc(37,Ei,2,1,"td",10),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,Bi,3,3,"th",9),t._uU(43,"\n "),t.YNc(44,zi,7,1,"td",10),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,$i,3,3,"th",9),t._uU(50,"\n "),t.YNc(51,Gi,2,1,"td",10),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,Hi,3,3,"th",9),t._uU(57,"\n "),t.YNc(58,na,10,4,"td",10),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,ea,3,3,"th",9),t._uU(64,"\n "),t.YNc(65,ia,4,2,"td",10),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,aa,3,3,"th",9),t._uU(71,"\n "),t.YNc(72,ca,7,0,"td",10),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.YNc(75,sa,1,0,"tr",17),t._uU(76,"\n "),t.YNc(77,ra,1,0,"tr",18),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n"),t.qZA(),t._uU(80,"\n\n"),t.TgZ(81,"div",19),t._uU(82,"\n "),t.TgZ(83,"button",20),t._uU(84,"\n "),t._UZ(85,"fa-icon",21),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"button",22),t._uU(90),t.ALo(91,"translate"),t._UZ(92,"fa-icon",23),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n"),t.qZA(),t._uU(95,"\n")}if(2&e){const a=t.MAs(9);t.xp6(5),t.Oqu(t.lcZ(6,11,"labels.inputs.Charge")),t.xp6(6),t.Q6J("ngForOf",i.chargeData),t.xp6(6),t.Q6J("disabled",!a.value),t.xp6(3),t.hij("\n ",t.lcZ(21,13,"labels.buttons.Add"),"\n "),t.xp6(4),t.Q6J("dataSource",i.chargesDataSource)("hidden",0===i.chargesDataSource.length),t.xp6(51),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(87,15,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("disabled",!i.fixedDepositAccountFormValid),t.xp6(1),t.hij("\n ",t.lcZ(91,17,"labels.buttons.Next"),"\n ")}},dependencies:[x.sg,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.XD,p.yH,L.ey,h.lW,f.KE,f.hX,N.gD,U.Ic,U.fd,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,g.X$,I.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();const ua=["chartsTable"];function pa(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.accountChart.name)}}function la(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function da(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function _a(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function ma(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.lnq("\n ",e.fromPeriod,"-",e.toPeriod,"\xa0",e.periodType.value,"")}}function ga(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function fa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.amountRangeFrom,"-",e.amountRangeTo,"")}}function xa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function ha(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.annualInterestRate," ")}}function Aa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Ca(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.description," ")}}function Ta(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Ua(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",27),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function Za(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function ba(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",24),t._uU(1,"\n "),t.TgZ(2,"button",25),t.NdJ("click",function(){const r=t.CHM(e).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===r?null:r)}),t._uU(3,"\n "),t.YNc(4,Ua,5,3,"span",26),t._uU(5,"\n "),t.YNc(6,Za,5,3,"span",26),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&n){const e=o.dataIndex,i=t.oxw();t.xp6(4),t.Q6J("ngIf",i.expandChartSlabIndex!==e),t.xp6(2),t.Q6J("ngIf",i.expandChartSlabIndex===e)}}function Da(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Oa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.entityType.value,"\n ")}}function Pa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function va(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.attributeName.value,"\n ")}}function Ma(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function qa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.conditionType.value),"\n ")}}function ya(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Fa(n,o){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("ngSwitch",e.attributeName),t.xp6(1),t.hij("\n ",e.attributeValueDesc,"\n ")}}function wa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function Ia(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.incentiveType.value,"\n ")}}function Sa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function La(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function Na(n,o){1&n&&t._UZ(0,"tr",42)}function Ya(n,o){1&n&&t._UZ(0,"tr",43)}function ka(n,o){if(1&n&&(t.TgZ(0,"table",33),t._uU(1,"\n\n "),t.ynx(2,34),t._uU(3,"\n "),t.YNc(4,Da,3,3,"th",8),t._uU(5,"\n "),t.YNc(6,Oa,2,1,"td",9),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,35),t._uU(10,"\n "),t.YNc(11,Pa,3,3,"th",8),t._uU(12,"\n "),t.YNc(13,va,2,1,"td",9),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,36),t._uU(17,"\n "),t.YNc(18,Ma,3,3,"th",8),t._uU(19,"\n "),t.YNc(20,qa,3,3,"td",9),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,37),t._uU(24,"\n "),t.YNc(25,ya,3,3,"th",8),t._uU(26,"\n "),t.YNc(27,Fa,2,2,"td",38),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,39),t._uU(31,"\n "),t.YNc(32,wa,3,3,"th",8),t._uU(33,"\n "),t.YNc(34,Ia,2,1,"td",9),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,40),t._uU(38,"\n "),t.YNc(39,Sa,3,3,"th",8),t._uU(40,"\n "),t.YNc(41,La,2,1,"td",9),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,Na,1,0,"tr",15),t._uU(45,"\n "),t.YNc(46,Ya,1,0,"tr",16),t._uU(47,"\n\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("dataSource",e.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",i.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.incentivesDisplayedColumns)}}function Qa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1,"\n\n "),t.TgZ(2,"div",29),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",30),t._uU(5,"\n\n "),t.TgZ(6,"h4",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,ka,48,3,"table",32),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&n){const e=o.$implicit,i=o.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",i===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",e.incentives.length)}}function Ja(n,o){1&n&&t._UZ(0,"tr",42)}function Ra(n,o){1&n&&t._UZ(0,"tr",43)}function ja(n,o){1&n&&t._UZ(0,"tr",44)}let ct=(()=>{class n{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs,this.chartsTableRef.renderRows())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-interest-rate-chart-step"]],viewQuery:function(e,i){if(1&e&&t.Gf(ua,7),2&e){let a;t.iGM(a=t.CRH())&&(i.chartsTableRef=a.first)}},inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[t.TTD],decls:95,vars:23,consts:[["fxLayout","column","fxLayoutGap","2%"],["fxFlexFill","",4,"ngIf"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.YNc(2,pa,9,4,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"span",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"span",4),t._uU(11),t.ALo(12,"dateFormat"),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.YNc(15,la,10,6,"div",1),t._uU(16,"\n\n "),t.YNc(17,da,9,4,"div",1),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"table",5,6),t._uU(31,"\n\n "),t.ynx(32,7),t._uU(33,"\n "),t.YNc(34,_a,3,3,"th",8),t._uU(35,"\n "),t.YNc(36,ma,2,3,"td",9),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,10),t._uU(40,"\n "),t.YNc(41,ga,3,3,"th",8),t._uU(42,"\n "),t.YNc(43,fa,2,2,"td",9),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,11),t._uU(47,"\n "),t.YNc(48,xa,3,3,"th",8),t._uU(49,"\n "),t.YNc(50,ha,2,1,"td",9),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,12),t._uU(54,"\n "),t.YNc(55,Aa,3,3,"th",8),t._uU(56,"\n "),t.YNc(57,Ca,2,1,"td",9),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,13),t._uU(61,"\n "),t.YNc(62,Ta,3,3,"th",8),t._uU(63,"\n "),t.YNc(64,ba,9,2,"td",9),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,14),t._uU(68,"\n "),t.YNc(69,Qa,14,6,"td",9),t._uU(70,"\n "),t.BQk(),t._uU(71,"\n\n "),t.YNc(72,Ja,1,0,"tr",15),t._uU(73,"\n "),t.YNc(74,Ra,1,0,"tr",16),t._uU(75,"\n "),t.YNc(76,ja,1,0,"tr",17),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n"),t.qZA(),t._uU(79,"\n\n"),t.TgZ(80,"div",18),t._uU(81,"\n "),t.TgZ(82,"button",19),t._uU(83,"\n "),t._UZ(84,"fa-icon",20),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t.TgZ(88,"button",21),t._uU(89),t.ALo(90,"translate"),t._UZ(91,"fa-icon",22),t._uU(92,"\n "),t.qZA(),t._uU(93,"\n"),t.qZA(),t._uU(94,"\n")),2&e&&(t.xp6(2),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(8,13,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(12,15,null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(23,17,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(null!=i.fixedDepositsAccountProductTemplate&&i.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount?"Yes":"No"),t.xp6(3),t.Q6J("dataSource",i.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsIncentivesDisplayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(86,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(90,21,"labels.buttons.Next"),"\n "))},dependencies:[x.O5,x.RF,v.BN,p.xw,p.SQ,p.Wh,p.s9,p.yH,h.lW,A.a8,U.Ic,U.fd,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,x.rS,g.X$,I.E],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,T.X$)("expandChartSlab",[(0,T.SB)("collapsed",(0,T.oB)({height:"0px",minHeight:"0"})),(0,T.SB)("expanded",(0,T.oB)({height:"*"})),(0,T.eR)("expanded <=> collapsed",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();var Ea=l(27676);function Ba(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.External Id")),t.xp6(4),t.Oqu(e.fixedDepositAccountData.externalId)}}function za(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Lock-in Period"),":"),t.xp6(4),t.Oqu(e.fixedDepositAccountData.lockinPeriodFrequency+" "+t.gM2(8,4,e.fixedDepositAccountData.lockinPeriodFrequencyType,e.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function $a(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Deposit Term"),":"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.minDepositTerm+" "+((null==e.fixedDepositsAccountProductTemplate.minDepositTermType?null:e.fixedDepositsAccountProductTemplate.minDepositTermType.value)||""))}}function Ga(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.In Multiples Of"),":"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm+" "+((null==e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType?null:e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value)||""))}}function Ha(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maximum Deposit Term")),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.maxDepositTerm+" "+((null==e.fixedDepositsAccountProductTemplate.maxDepositTermType?null:e.fixedDepositsAccountProductTemplate.maxDepositTermType.value)||""))}}function Wa(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Linked Savings Account")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositAccountData.linkAccountId,e.fixedDepositsAccountProductTemplate.savingsAccounts,"id","accountNo"))}}function Va(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Instructions")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositAccountData.maturityInstructionId,e.fixedDepositsAccountProductTemplate.maturityInstructionOptions,"id","value"))}}function Xa(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Penal Interest")," (%):"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.preClosurePenalInterest+"% ("+(null==e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType?null:e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id)+")")}}function Ka(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Withhold Tax is Applicable"),":"),t.xp6(4),t.Oqu(e.fixedDepositAccountData.withHoldTax?"Yes":"No")}}function tc(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.name)}}function nc(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function ec(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function oc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function ic(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.lnq("\n ",e.fromPeriod,"-",e.toPeriod,"\xa0",e.periodType.value,"")}}function ac(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function cc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.amountRangeFrom,"-",e.amountRangeTo,"")}}function sc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function rc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.annualInterestRate," ")}}function uc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function pc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.description," ")}}function lc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function dc(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",29),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function _c(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function mc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",26),t._uU(1,"\n "),t.TgZ(2,"button",27),t.NdJ("click",function(){const r=t.CHM(e).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===r?null:r)}),t._uU(3,"\n "),t.YNc(4,dc,5,3,"span",28),t._uU(5,"\n "),t.YNc(6,_c,5,3,"span",28),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&n){const e=o.dataIndex,i=t.oxw();t.xp6(4),t.Q6J("ngIf",i.expandChartSlabIndex!==e),t.xp6(2),t.Q6J("ngIf",i.expandChartSlabIndex===e)}}function gc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function fc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.entityType.value,"\n ")}}function xc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function hc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.attributeName.value,"\n ")}}function Ac(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function Cc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.conditionType.value),"\n ")}}function Tc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Uc(n,o){if(1&n&&(t.TgZ(0,"td",43),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("ngSwitch",e.attributeName),t.xp6(1),t.hij("\n ",e.attributeValueDesc,"\n ")}}function Zc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function bc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.incentiveType.value,"\n ")}}function Dc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Oc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function Pc(n,o){1&n&&t._UZ(0,"tr",44)}function vc(n,o){1&n&&t._UZ(0,"tr",45)}function Mc(n,o){if(1&n&&(t.TgZ(0,"table",35),t._uU(1,"\n\n "),t.ynx(2,36),t._uU(3,"\n "),t.YNc(4,gc,3,3,"th",9),t._uU(5,"\n "),t.YNc(6,fc,2,1,"td",10),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,37),t._uU(10,"\n "),t.YNc(11,xc,3,3,"th",9),t._uU(12,"\n "),t.YNc(13,hc,2,1,"td",10),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,38),t._uU(17,"\n "),t.YNc(18,Ac,3,3,"th",9),t._uU(19,"\n "),t.YNc(20,Cc,3,3,"td",10),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,39),t._uU(24,"\n "),t.YNc(25,Tc,3,3,"th",9),t._uU(26,"\n "),t.YNc(27,Uc,2,2,"td",40),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,41),t._uU(31,"\n "),t.YNc(32,Zc,3,3,"th",9),t._uU(33,"\n "),t.YNc(34,bc,2,1,"td",10),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,42),t._uU(38,"\n "),t.YNc(39,Dc,3,3,"th",9),t._uU(40,"\n "),t.YNc(41,Oc,2,1,"td",10),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,Pc,1,0,"tr",16),t._uU(45,"\n "),t.YNc(46,vc,1,0,"tr",17),t._uU(47,"\n\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("dataSource",e.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",i.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.incentivesDisplayedColumns)}}function qc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1,"\n\n "),t.TgZ(2,"div",31),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",32),t._uU(5,"\n\n "),t.TgZ(6,"h4",33),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,Mc,48,3,"table",34),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&n){const e=o.$implicit,i=o.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",i===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",e.incentives.length)}}function yc(n,o){1&n&&t._UZ(0,"tr",44)}function Fc(n,o){1&n&&t._UZ(0,"tr",45)}function wc(n,o){1&n&&t._UZ(0,"tr",46)}function Ic(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function Sc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Lc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Nc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function Yc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function kc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function Qc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function Jc(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}const Rc=function(){return[2e3]};function jc(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",e.feeOnMonthDay?t.xi3(2,1,t.DdM(4,Rc).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned","\n ")}}function Ec(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function Bc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1,"\n "),t.YNc(2,Jc,3,3,"span",28),t._uU(3,"\n "),t.YNc(4,jc,3,5,"span",28),t._uU(5,"\n "),t.YNc(6,Ec,3,3,"span",28),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value))}}function zc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function $c(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n ")}}function Gc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Hc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function Wc(n,o){1&n&&t._UZ(0,"tr",44)}function Vc(n,o){1&n&&t._UZ(0,"tr",45)}function Xc(n,o){if(1&n&&(t.TgZ(0,"div",47),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"table",35),t._uU(9,"\n\n "),t.ynx(10,48),t._uU(11,"\n "),t.YNc(12,Ic,3,3,"th",9),t._uU(13,"\n "),t.YNc(14,Sc,2,1,"td",10),t._uU(15,"\n "),t.BQk(),t._uU(16,"\n\n "),t.ynx(17,49),t._uU(18,"\n "),t.YNc(19,Lc,3,3,"th",9),t._uU(20,"\n "),t.YNc(21,Nc,2,1,"td",10),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,42),t._uU(25,"\n "),t.YNc(26,Yc,3,3,"th",9),t._uU(27,"\n "),t.YNc(28,kc,2,1,"td",10),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,50),t._uU(32,"\n "),t.YNc(33,Qc,3,3,"th",9),t._uU(34,"\n "),t.YNc(35,Bc,8,3,"td",10),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,51),t._uU(39,"\n "),t.YNc(40,zc,3,3,"th",9),t._uU(41,"\n "),t.YNc(42,$c,2,1,"td",10),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,52),t._uU(46,"\n "),t.YNc(47,Gc,3,3,"th",9),t._uU(48,"\n "),t.YNc(49,Hc,2,1,"td",10),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.YNc(52,Wc,1,0,"tr",16),t._uU(53,"\n "),t.YNc(54,Vc,1,0,"tr",17),t._uU(55,"\n\n "),t.qZA(),t._uU(56,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,4,"labels.heading.Charges")),t.xp6(5),t.Q6J("dataSource",e.fixedDepositAccountData.charges),t.xp6(44),t.Q6J("matHeaderRowDef",e.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.chargesDisplayedColumns)}}const Kc=function(){return["../"]};let st=(()=>{class n{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.submit=new t.vpe}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-preview-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountData:"fixedDepositAccountData"},outputs:{submit:"submit"},features:[t.TTD],decls:297,vars:146,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlexFill","",4,"ngIf"],["fxFlexFill","","fxLayout","column",1,"margin-b"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"span",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"span",4),t._uU(15),t.ALo(16,"find"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"dateFormat"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.YNc(30,Ba,9,4,"div",5),t._uU(31,"\n\n "),t.TgZ(32,"div",2),t._uU(33,"\n "),t.TgZ(34,"span",3),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"span",4),t._uU(39),t.ALo(40,"find"),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"h3",1),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n\n "),t._UZ(47,"mat-divider",2),t._uU(48,"\n\n "),t.TgZ(49,"div",2),t._uU(50,"\n "),t.TgZ(51,"span",3),t._uU(52),t.ALo(53,"translate"),t.qZA(),t._uU(54,"\n "),t.TgZ(55,"span",4),t._uU(56),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.TgZ(59,"div",2),t._uU(60,"\n "),t.TgZ(61,"span",3),t._uU(62),t.ALo(63,"translate"),t.qZA(),t._uU(64,"\n "),t.TgZ(65,"span",4),t._uU(66),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n\n "),t.TgZ(69,"div",2),t._uU(70,"\n "),t.TgZ(71,"span",3),t._uU(72),t.ALo(73,"translate"),t.qZA(),t._uU(74,"\n "),t.TgZ(75,"span",4),t._uU(76),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"h3",1),t._uU(80),t.ALo(81,"translate"),t.qZA(),t._uU(82,"\n\n "),t._UZ(83,"mat-divider",2),t._uU(84,"\n\n "),t.TgZ(85,"div",2),t._uU(86,"\n "),t.TgZ(87,"span",3),t._uU(88),t.ALo(89,"translate"),t.qZA(),t._uU(90,"\n "),t.TgZ(91,"span",4),t._uU(92),t.qZA(),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n\n "),t.TgZ(95,"div",2),t._uU(96,"\n "),t.TgZ(97,"span",3),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.TgZ(101,"span",4),t._uU(102),t.ALo(103,"find"),t.qZA(),t._uU(104,"\n "),t.qZA(),t._uU(105,"\n\n "),t.TgZ(106,"div",2),t._uU(107,"\n "),t.TgZ(108,"span",3),t._uU(109),t.ALo(110,"translate"),t.qZA(),t._uU(111,"\n "),t.TgZ(112,"span",4),t._uU(113),t.ALo(114,"find"),t.qZA(),t._uU(115,"\n "),t.qZA(),t._uU(116,"\n\n "),t.TgZ(117,"div",2),t._uU(118,"\n "),t.TgZ(119,"span",3),t._uU(120),t.ALo(121,"translate"),t.qZA(),t._uU(122,"\n "),t.TgZ(123,"span",4),t._uU(124),t.ALo(125,"find"),t.qZA(),t._uU(126,"\n "),t.qZA(),t._uU(127,"\n\n "),t.TgZ(128,"div",2),t._uU(129,"\n "),t.TgZ(130,"span",3),t._uU(131),t.ALo(132,"translate"),t.qZA(),t._uU(133,"\n "),t.TgZ(134,"span",4),t._uU(135),t.ALo(136,"find"),t.qZA(),t._uU(137,"\n "),t.qZA(),t._uU(138,"\n\n "),t.TgZ(139,"div",2),t._uU(140,"\n "),t.TgZ(141,"span",3),t._uU(142),t.ALo(143,"translate"),t.qZA(),t._uU(144,"\n "),t.TgZ(145,"span",4),t._uU(146),t.ALo(147,"find"),t.qZA(),t._uU(148,"\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"h3",1),t._uU(151),t.ALo(152,"translate"),t.qZA(),t._uU(153,"\n\n "),t._UZ(154,"mat-divider",2),t._uU(155,"\n\n "),t.YNc(156,za,10,9,"div",5),t._uU(157,"\n\n "),t.YNc(158,$a,9,4,"div",5),t._uU(159,"\n\n "),t.YNc(160,Ga,9,4,"div",5),t._uU(161,"\n\n "),t.YNc(162,Ha,9,4,"div",5),t._uU(163,"\n\n "),t.TgZ(164,"div",2),t._uU(165,"\n "),t.TgZ(166,"span",3),t._uU(167),t.ALo(168,"translate"),t.qZA(),t._uU(169,"\n "),t.TgZ(170,"span",4),t._uU(171),t.qZA(),t._uU(172,"\n "),t.qZA(),t._uU(173,"\n\n "),t.YNc(174,Wa,10,9,"div",5),t._uU(175,"\n\n "),t.YNc(176,Va,10,9,"div",5),t._uU(177,"\n\n "),t.TgZ(178,"div",2),t._uU(179,"\n "),t.TgZ(180,"span",3),t._uU(181),t.ALo(182,"translate"),t.qZA(),t._uU(183,"\n "),t.TgZ(184,"span",4),t._uU(185),t.qZA(),t._uU(186,"\n "),t.qZA(),t._uU(187,"\n\n "),t.YNc(188,Xa,9,4,"div",5),t._uU(189,"\n\n "),t.YNc(190,Ka,9,4,"div",5),t._uU(191,"\n\n "),t.TgZ(192,"h3",1),t._uU(193),t.ALo(194,"translate"),t.qZA(),t._uU(195,"\n\n "),t._UZ(196,"mat-divider",2),t._uU(197,"\n\n "),t.TgZ(198,"div",6),t._uU(199,"\n\n "),t.YNc(200,tc,9,4,"div",5),t._uU(201,"\n\n "),t.TgZ(202,"div",2),t._uU(203,"\n "),t.TgZ(204,"span",3),t._uU(205),t.ALo(206,"translate"),t.qZA(),t._uU(207,"\n "),t.TgZ(208,"span",4),t._uU(209),t.ALo(210,"dateFormat"),t.qZA(),t._uU(211,"\n "),t.qZA(),t._uU(212,"\n\n "),t.YNc(213,nc,10,6,"div",5),t._uU(214,"\n\n "),t.YNc(215,ec,9,4,"div",5),t._uU(216,"\n\n "),t.TgZ(217,"div",2),t._uU(218,"\n "),t.TgZ(219,"span",3),t._uU(220),t.ALo(221,"translate"),t.qZA(),t._uU(222,"\n "),t.TgZ(223,"span",4),t._uU(224),t.qZA(),t._uU(225,"\n "),t.qZA(),t._uU(226,"\n\n "),t.TgZ(227,"table",7),t._uU(228,"\n\n "),t.ynx(229,8),t._uU(230,"\n "),t.YNc(231,oc,3,3,"th",9),t._uU(232,"\n "),t.YNc(233,ic,2,3,"td",10),t._uU(234,"\n "),t.BQk(),t._uU(235,"\n\n "),t.ynx(236,11),t._uU(237,"\n "),t.YNc(238,ac,3,3,"th",9),t._uU(239,"\n "),t.YNc(240,cc,2,2,"td",10),t._uU(241,"\n "),t.BQk(),t._uU(242,"\n\n "),t.ynx(243,12),t._uU(244,"\n "),t.YNc(245,sc,3,3,"th",9),t._uU(246,"\n "),t.YNc(247,rc,2,1,"td",10),t._uU(248,"\n "),t.BQk(),t._uU(249,"\n\n "),t.ynx(250,13),t._uU(251,"\n "),t.YNc(252,uc,3,3,"th",9),t._uU(253,"\n "),t.YNc(254,pc,2,1,"td",10),t._uU(255,"\n "),t.BQk(),t._uU(256,"\n\n "),t.ynx(257,14),t._uU(258,"\n "),t.YNc(259,lc,3,3,"th",9),t._uU(260,"\n "),t.YNc(261,mc,9,2,"td",10),t._uU(262,"\n "),t.BQk(),t._uU(263,"\n\n "),t.ynx(264,15),t._uU(265,"\n "),t.YNc(266,qc,14,6,"td",10),t._uU(267,"\n "),t.BQk(),t._uU(268,"\n\n "),t.YNc(269,yc,1,0,"tr",16),t._uU(270,"\n "),t.YNc(271,Fc,1,0,"tr",17),t._uU(272,"\n "),t.YNc(273,wc,1,0,"tr",18),t._uU(274,"\n\n "),t.qZA(),t._uU(275,"\n\n "),t.qZA(),t._uU(276,"\n\n "),t.YNc(277,Xc,57,6,"div",19),t._uU(278,"\n\n"),t.qZA(),t._uU(279,"\n\n"),t.TgZ(280,"div",20),t._uU(281,"\n "),t.TgZ(282,"button",21),t._uU(283,"\n "),t._UZ(284,"fa-icon",22),t._uU(285),t.ALo(286,"translate"),t.qZA(),t._uU(287,"\n "),t.TgZ(288,"button",23),t._uU(289),t.ALo(290,"translate"),t.qZA(),t._uU(291,"\n "),t.TgZ(292,"button",24),t.NdJ("click",function(){return i.submit.emit()}),t._uU(293),t.ALo(294,"translate"),t.qZA(),t._uU(295,"\n"),t.qZA(),t._uU(296,"\n")),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,58,"labels.heading.Details")),t.xp6(8),t.Oqu(t.lcZ(12,60,"labels.inputs.Product")),t.xp6(4),t.Oqu(t.gM2(16,62,i.fixedDepositAccountData.productId,i.fixedDepositsAccountTemplate.productOptions,"id","name")),t.xp6(7),t.Oqu(t.lcZ(23,67,"labels.inputs.Submitted On")),t.xp6(4),t.Oqu(t.lcZ(27,69,i.fixedDepositAccountData.submittedOnDate)),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountData.externalId),t.xp6(5),t.Oqu(t.lcZ(36,71,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(t.gM2(40,73,i.fixedDepositAccountData.fieldOfficerId,i.fixedDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")||"Unassigned"),t.xp6(5),t.Oqu(t.lcZ(45,78,"labels.heading.Currency")),t.xp6(8),t.Oqu(t.lcZ(53,80,"labels.inputs.Currency")),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.currency.code),t.xp6(6),t.Oqu(t.lcZ(63,82,"labels.inputs.Currency Multiple")),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.currency.inMultiplesOf),t.xp6(6),t.Oqu(t.lcZ(73,84,"labels.inputs.Decimal Places")),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.currency.decimalPlaces),t.xp6(4),t.Oqu(t.lcZ(81,86,"labels.heading.Terms")),t.xp6(8),t.hij("",t.lcZ(89,88,"labels.inputs.Fixed Deposit Amount"),":"),t.xp6(4),t.Oqu(i.fixedDepositAccountData.depositAmount),t.xp6(6),t.hij("",t.lcZ(99,90,"labels.inputs.Deposit Period"),":"),t.xp6(4),t.Oqu(i.fixedDepositAccountData.depositPeriod+" "+t.gM2(103,92,i.fixedDepositAccountData.depositPeriodFrequencyId,i.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(110,97,"labels.inputs.Interest Compounding Period"),":"),t.xp6(4),t.Oqu(t.gM2(114,99,i.fixedDepositAccountData.interestCompoundingPeriodType,i.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(121,104,"labels.inputs.Interest Posting Period"),":"),t.xp6(4),t.Oqu(t.gM2(125,106,i.fixedDepositAccountData.interestPostingPeriodType,i.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(132,111,"labels.inputs.Interest Calculated using"),":"),t.xp6(4),t.Oqu(t.gM2(136,113,i.fixedDepositAccountData.interestCalculationType,i.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(143,118,"labels.inputs.Days in Year"),":"),t.xp6(4),t.Oqu(t.gM2(147,120,i.fixedDepositAccountData.interestCalculationDaysInYearType,i.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(5),t.Oqu(t.lcZ(152,125,"labels.heading.Settings")),t.xp6(5),t.Q6J("ngIf",i.fixedDepositAccountData.lockinPeriodFrequency),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.minDepositTerm),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.maxDepositTerm),t.xp6(5),t.hij("",t.lcZ(168,127,"labels.inputs.Transfer Interest to Savings Account"),"?"),t.xp6(4),t.Oqu(i.fixedDepositAccountData.transferInterestToSavings?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",i.fixedDepositAccountData.transferInterestToSavings),t.xp6(2),t.Q6J("ngIf",i.fixedDepositAccountData.maturityInstructionId),t.xp6(5),t.hij("",t.lcZ(182,129,"labels.inputs.Apply Penal Interest (less)"),":"),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.preClosurePenalApplicable?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.preClosurePenalApplicable),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.withHoldTax),t.xp6(3),t.Oqu(t.lcZ(194,131,"labels.heading.Interest Rate Chart")),t.xp6(7),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(206,133,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(210,135,null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(221,137,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(null!=i.fixedDepositsAccountProductTemplate&&i.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount?"Yes":"No"),t.xp6(3),t.Q6J("dataSource",i.interestRateChartData),t.xp6(42),t.Q6J("matHeaderRowDef",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsIncentivesDisplayedColumns),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountData.charges.length),t.xp6(8),t.hij("\n ",t.lcZ(286,139,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(145,Kc)),t.xp6(1),t.hij("\n ",t.lcZ(290,141,"labels.buttons.Cancel"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(294,143,"labels.buttons.Submit"),"\n "))},dependencies:[x.O5,x.RF,v.BN,p.xw,p.SQ,p.Wh,p.s9,p.yH,h.lW,A.a8,nt.d,U.fd,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,d.rH,x.rS,g.X$,Ea.Z,I.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,T.X$)("expandChartSlab",[(0,T.SB)("collapsed",(0,T.oB)({height:"0px",minHeight:"0"})),(0,T.SB)("expanded",(0,T.oB)({height:"*"})),(0,T.eR)("expanded <=> collapsed",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();function ts(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function ns(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function es(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function os(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function is(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function as(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function cs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function ss(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function rs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function us(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function ps(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function ls(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,ps,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-fixed-deposit-account-preview-step",18),t.NdJ("submit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",e.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}let ds=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.router=i,this.dateUtils=a,this.fixedDepositsService=r,this.settingsService=c,this.route.data.subscribe(m=>{this.fixedDepositsAccountTemplate=m.fixedDepositsAccountTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValid(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid}get fixedDepositAccount(){return{...this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails,...this.fixedDepositAccountTermsStep.fixedDepositAccountTerms,...this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings,...this.fixedDepositAccountChargesStep.fixedDepositAccountCharges}}submit(){const e=this.settingsService.language.code,i=this.settingsService.dateFormat,a="dd MMMM",r={...this.fixedDepositAccount,clientId:this.fixedDepositsAccountTemplate.clientId,charges:this.fixedDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,i),feeOnMonthDay:c.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(c.feeOnMonthDay),a),feeInterval:c.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,i),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:i,monthDayFormat:a,locale:e};this.fixedDepositsService.createFixedDepositAccount(r).subscribe(c=>{this.router.navigate(["../",c.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0),t.Y36(P.L),t.Y36(b),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-fixed-deposit-account"]],viewQuery:function(e,i){if(1&e&&(t.Gf(G,7),t.Gf(H,7),t.Gf(W,7),t.Gf(V,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.fixedDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["fixedDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData","submit"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,ts,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,ns,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,es,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,os,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,is,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,as,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-fixed-deposit-account-details-step",10),t.NdJ("fixedDepositsAccountProductTemplate",function(r){return i.setTemplate(r)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,cs,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-fixed-deposit-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,ss,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-fixed-deposit-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,rs,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-fixed-deposit-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,us,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-fixed-deposit-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,ls,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",i.fixedDepositAccountDetailsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountTermsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountSettingsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",i.fixedDepositAccountFormValid),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountFormValid))},dependencies:[x.O5,v.BN,U.C0,U.VY,U.Vq,U.z9,G,H,V,W,ct,st,g.X$]}),n})();function _s(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function ms(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function gs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function fs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function xs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function hs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function As(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function Cs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function Ts(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function Us(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function Zs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function bs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,Zs,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-fixed-deposit-account-preview-step",18),t.NdJ("submit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",e.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}let Ds=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.router=i,this.dateUtils=a,this.fixedDepositsService=r,this.settingsService=c,this.route.data.subscribe(m=>{this.fixedDepositsAccountAndTemplate=m.fixedDepositsAccountAndTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e,this.currency=this.fixedDepositsAccountAndTemplate.currency}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValidAndNotPristine(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid&&(!this.fixedDepositAccountDetailsForm.pristine||!this.fixedDepositAccountTermsForm.pristine||!this.fixedDepositAccountSettingsForm.pristine||!this.fixedDepositAccountChargesStep.pristine)}get fixedDepositAccount(){return{...this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails,...this.fixedDepositAccountTermsStep.fixedDepositAccountTerms,...this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings,...this.fixedDepositAccountChargesStep?.fixedDepositAccountCharges}}submit(){const e=this.settingsService.language.code,i=this.settingsService.dateFormat,a="dd MMMM",r={...this.fixedDepositAccount,clientId:this.fixedDepositsAccountAndTemplate.clientId,charges:this.fixedDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,i),feeOnMonthDay:c.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(c.feeOnMonthDay),a),feeInterval:c.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,i),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:i,monthDayFormat:a,locale:e};this.fixedDepositsService.updateFixedDepositAccount(this.fixedDepositsAccountAndTemplate.id,r).subscribe(c=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0),t.Y36(P.L),t.Y36(b),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-fixed-deposit-account"]],viewQuery:function(e,i){if(1&e&&(t.Gf(G,7),t.Gf(H,7),t.Gf(W,7),t.Gf(V,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.fixedDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["fixedDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData","submit"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,_s,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,ms,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,gs,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,fs,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,xs,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,hs,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-fixed-deposit-account-details-step",10),t.NdJ("fixedDepositsAccountProductTemplate",function(r){return i.setTemplate(r)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,As,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-fixed-deposit-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,Cs,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-fixed-deposit-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,Ts,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-fixed-deposit-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,Us,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-fixed-deposit-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,bs,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",i.fixedDepositAccountDetailsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountTermsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountSettingsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",i.fixedDepositAccountFormValidAndNotPristine),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountFormValidAndNotPristine))},dependencies:[x.O5,v.BN,U.C0,U.VY,U.Vq,U.z9,G,H,V,W,ct,st,g.X$]}),n})(),et=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountData(i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var rt=l(89),ut=l(96545);let pt=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.parent.paramMap.get("fixedDepositAccountId"),a=e.paramMap.get("id");return this.fixedDepositsService.getFixedDepositsAccountTransaction(i,a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,i){this.savingsService=e,this.fixedDepositsService=i}resolve(e){const i=e.paramMap.get("name"),a=e.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId");switch(i){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(a);case"Close":return this.fixedDepositsService.getFixedDepositsAccountClosureTemplate(a);default:return}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(S.d),t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),dt=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.parent.parent.paramMap.get("clientId");return this.fixedDepositsService.getFixedDepositsAccountTemplate(i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),_t=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountAndTemplate(i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Os=l(5510);function Ps(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",7),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("externalId",e.fixedDepositsAccountData.externalId)}}function vs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function Ms(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Closed On")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.fixedDepositsAccountData.timeline.closedOnDate))}}function qs(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Tax Group")),t.xp6(4),t.Oqu(e.fixedDepositsAccountData.taxGroup.name)}}function ys(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Instructions")),t.xp6(4),t.Oqu(e.fixedDepositsAccountData.onAccountClosure.value)}}function Fs(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Pre-cloure Penal")),t.xp6(4),t.AsE("",e.fixedDepositsAccountData.preClosurePenalInterest," % on ",e.fixedDepositsAccountData.preClosurePenalInterestOnType.value,"")}}function ws(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",8),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Deposits")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function Is(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",8),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Withdrawals")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function Ss(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",8),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function Ls(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",2),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",8),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",8),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.YNc(32,ws,10,9,"tr",3),t._uU(33,"\n "),t.YNc(34,Is,10,9,"tr",3),t._uU(35,"\n "),t.YNc(36,Ss,10,9,"tr",3),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.heading.Performance History")),t.xp6(10),t.Oqu(t.lcZ(14,10,"labels.inputs.Principal Amount")),t.xp6(4),t.Oqu(t.gM2(18,12,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,17,"labels.inputs.Maturity Amount")),t.xp6(4),t.Oqu(t.gM2(29,19,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(4),t.Q6J("ngIf",e.fixedDepositsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsAccountData.summary.totalInterestEarned>=0)}}function Ns(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div"),t._uU(2,"\n "),t.TgZ(3,"h4",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td",8),t._uU(18),t.ALo(19,"currency"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"tr"),t._uU(23,"\n "),t.TgZ(24,"td"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"td",8),t._uU(29),t.ALo(30,"currency"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n ")),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,5,"labels.heading.Other Details")),t.xp6(10),t.Oqu(t.lcZ(15,7,"labels.inputs.Principal Amount")),t.xp6(4),t.Oqu(t.gM2(19,9,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(26,14,"labels.inputs.Maturity Amount")),t.xp6(4),t.Oqu(t.gM2(30,16,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2"))}}const ks=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:ds,resolve:{fixedDepositsAccountTemplate:dt}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:et},children:[{path:"",component:Lt,resolve:{fixedDepositsAccountData:et,savingsDatatables:ut.N},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:(()=>{class n{constructor(e,i){this.route=e,this.router=i,this.route.parent.data.subscribe(a=>{this.fixedDepositsAccountData=a.fixedDepositsAccountData,this.currency=this.fixedDepositsAccountData.currency}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-general-tab"]],decls:155,vars:58,consts:[["fxLayout","row","fxLayoutGap","2%",1,"fixed-deposits-account-tables"],["fxFlex","49%","fxLayout","column","fxLayoutGap","4%"],[1,"table-headers"],[4,"ngIf"],["fxFlex","49%"],[4,"ngIf","ngIfElse"],["otherDetails",""],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(e,i){if(1&e&&(t._uU(0,"\n"),t.TgZ(1,"div",0),t._uU(2,"\n\n "),t.TgZ(3,"div",1),t._uU(4,"\n\n "),t.TgZ(5,"div"),t._uU(6,"\n "),t.TgZ(7,"h4",2),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.TgZ(11,"table"),t._uU(12,"\n "),t.TgZ(13,"tbody"),t._uU(14,"\n "),t.TgZ(15,"tr"),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"td"),t._uU(22,"\n "),t.YNc(23,Ps,4,1,"span",3),t._uU(24,"\n "),t.YNc(25,vs,3,3,"span",3),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n "),t.TgZ(29,"tr"),t._uU(30,"\n "),t.TgZ(31,"td"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"td"),t._uU(36),t.ALo(37,"dateFormat"),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.YNc(40,Ms,10,6,"tr",3),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td"),t._uU(59),t.ALo(60,"dateFormat"),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"tr"),t._uU(64,"\n "),t.TgZ(65,"td"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t._uU(68,"\n "),t.TgZ(69,"td"),t._uU(70),t.qZA(),t._uU(71,"\n "),t.qZA(),t._uU(72,"\n "),t.YNc(73,qs,9,4,"tr",3),t._uU(74,"\n "),t.YNc(75,ys,9,4,"tr",3),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n "),t.qZA(),t._uU(79,"\n\n "),t.TgZ(80,"div"),t._uU(81,"\n "),t.TgZ(82,"h4",2),t._uU(83),t.ALo(84,"translate"),t.qZA(),t._uU(85,"\n "),t.TgZ(86,"table"),t._uU(87,"\n "),t.TgZ(88,"tbody"),t._uU(89,"\n "),t.TgZ(90,"tr"),t._uU(91,"\n "),t.TgZ(92,"td"),t._uU(93),t.ALo(94,"translate"),t.qZA(),t._uU(95,"\n "),t.TgZ(96,"td"),t._uU(97),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n "),t.TgZ(100,"tr"),t._uU(101,"\n "),t.TgZ(102,"td"),t._uU(103),t.ALo(104,"translate"),t.qZA(),t._uU(105,"\n "),t.TgZ(106,"td"),t._uU(107),t.qZA(),t._uU(108,"\n "),t.qZA(),t._uU(109,"\n "),t.TgZ(110,"tr"),t._uU(111,"\n "),t.TgZ(112,"td"),t._uU(113),t.ALo(114,"translate"),t.qZA(),t._uU(115,"\n "),t.TgZ(116,"td"),t._uU(117),t.qZA(),t._uU(118,"\n "),t.qZA(),t._uU(119,"\n "),t.TgZ(120,"tr"),t._uU(121,"\n "),t.TgZ(122,"td"),t._uU(123),t.ALo(124,"translate"),t.qZA(),t._uU(125,"\n "),t.TgZ(126,"td"),t._uU(127),t.qZA(),t._uU(128,"\n "),t.qZA(),t._uU(129,"\n "),t.TgZ(130,"tr"),t._uU(131,"\n "),t.TgZ(132,"td"),t._uU(133),t.ALo(134,"translate"),t.qZA(),t._uU(135,"\n "),t.TgZ(136,"td"),t._uU(137),t.qZA(),t._uU(138,"\n "),t.qZA(),t._uU(139,"\n "),t.YNc(140,Fs,9,5,"tr",3),t._uU(141,"\n "),t.qZA(),t._uU(142,"\n "),t.qZA(),t._uU(143,"\n "),t.qZA(),t._uU(144,"\n\n "),t.qZA(),t._uU(145,"\n\n "),t.TgZ(146,"div",4),t._uU(147,"\n\n "),t.YNc(148,Ls,40,24,"div",5),t._uU(149,"\n\n "),t.YNc(150,Ns,36,21,"ng-template",null,6,t.W1O),t._uU(152,"\n\n "),t.qZA(),t._uU(153,"\n\n"),t.qZA(),t._uU(154,"\n")),2&e){const a=t.MAs(151);t.xp6(8),t.Oqu(t.lcZ(9,30,"labels.heading.Fixed Deposit Details")),t.xp6(10),t.Oqu(t.lcZ(19,32,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",i.fixedDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!i.fixedDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(33,34,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.timeline.activatedOnDate?t.lcZ(37,36,i.fixedDepositsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(4),t.Q6J("ngIf",i.fixedDepositsAccountData.timeline.closedOnDate),t.xp6(5),t.Oqu(t.lcZ(46,38,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.fieldOfficerName?i.fixedDepositsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(56,40,"labels.inputs.Maturity Date")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.maturityDate?t.lcZ(60,42,i.fixedDepositsAccountData.maturityDate):"N/A"),t.xp6(7),t.Oqu(t.lcZ(67,44,"labels.inputs.Deposit Period")),t.xp6(4),t.AsE("",i.fixedDepositsAccountData.depositPeriod,"\xa0",i.fixedDepositsAccountData.depositPeriodFrequency.value,""),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.withHoldTax),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountData.onAccountClosure),t.xp6(8),t.Oqu(t.lcZ(84,46,"labels.heading.Interest Details")),t.xp6(10),t.Oqu(t.lcZ(94,48,"labels.inputs.Interest Rate")),t.xp6(4),t.hij("",i.fixedDepositsAccountData.nominalAnnualInterestRate,"%"),t.xp6(6),t.Oqu(t.lcZ(104,50,"labels.inputs.Interest Compounding Period")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(114,52,"labels.inputs.Interest Posting Period")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(124,54,"labels.inputs.Interest Calculated Using")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestCalculationType.value),t.xp6(6),t.Oqu(t.lcZ(134,56,"labels.inputs.No. of Days in Year")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.preClosurePenalApplicable),t.xp6(8),t.Q6J("ngIf",!i.fixedDepositsAccountData.status.rejected&&!i.fixedDepositsAccountData.status.submittedAndPendingApproval)("ngIfElse",a)}},dependencies:[x.O5,p.xw,p.SQ,p.yH,Os.e,x.H9,g.X$,I.E],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]}),n})(),data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:gn,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:In,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:Ce,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:Ee,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:ze,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:rt.X}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ds,resolve:{fixedDepositsAccountAndTemplate:_t}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>l.e("default-src_app_account-transfers_account-transfers_module_ts").then(l.bind(l,69193)).then(n=>n.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:fi,resolve:{fixedDepositsAccountTransaction:pt}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:Wo,resolve:{fixedDepositsAccountActionData:lt}}]}]}];let Qs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[et,rt.X,ut.N,pt,lt,dt,_t],imports:[d.Bz.forChild(ks),d.Bz]}),n})(),Js=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[q.m,E.D,X.o,Qs]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_deposits_fixed-deposits_fixed-deposits_module_ts","src_app_account-transfers_account-transfers_service_ts"],{35023:(gt,j,l)=>{l.d(j,{o:()=>X});var q=l(80529),E=l(94650);let X=(()=>{class d{constructor(t){this.http=t}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){const _=(new q.LE).set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:_})}updateStandingInstructionsData(t,_){const h=(new q.LE).set("command","update");return this.http.put(`/standinginstructions/${t}`,_,{params:h})}getStandingInstructionsTemplate(t,_,h,g){let O=(new q.LE).set("fromAccountType",h).set("fromClientId",t).set("fromOfficeId",_);if(g){const y=Object.getOwnPropertyNames(g);for(let F=0;F{l.r(j),l.d(j,{FixedDepositsModule:()=>Rs});var q=l(87734),E=l(35503),X=l(78434),d=l(83689),Q=l(13450),t=l(94650),_=l(65412),h=l(4859),g=l(49274);const O=function(){return{confirm:!0}};let y=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"labels.heading.Calculate Interest")),t.xp6(6),t.hij("",t.lcZ(8,7,"labels.text.Are you sure you want to calculate interest")," ?"),t.xp6(7),t.Oqu(t.lcZ(15,9,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(13,O)),t.xp6(1),t.Oqu(t.lcZ(19,11,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();const F=function(){return{confirm:!0}};let B=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"labels.heading.Post Interest")),t.xp6(6),t.hij("",t.lcZ(8,7,"labels.text.Are you sure you want to post interest")," ?"),t.xp6(7),t.Oqu(t.lcZ(15,9,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(13,F)),t.xp6(1),t.Oqu(t.lcZ(19,11,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();const ft=function(){return{confirm:!0}};let ot=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so),t.Y36(_.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:23,vars:20,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n"),t.qZA(),t._uU(11,"\n"),t.TgZ(12,"mat-dialog-actions",2),t._uU(13,"\n "),t.TgZ(14,"button",3),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"button",4),t._uU(19),t.ALo(20,"translate"),t.qZA(),t._uU(21,"\n"),t.qZA(),t._uU(22,"\n")),2&e&&(t.xp6(1),t.AsE("",i.data.isEnable?"Enable":"Disable"," ",t.lcZ(2,9,"labels.heading.Withhold Tax"),""),t.xp6(6),t.lnq("",t.lcZ(8,11,"labels.text.Are you sure you want to")," ",i.data.isEnable?"enable":"disable"," ",t.lcZ(9,13,"labels.text.withhold tax for this account")," ?"),t.xp6(8),t.Oqu(t.lcZ(16,15,"labels.buttons.Cancel")),t.xp6(3),t.s9C("color",i.data.isEnable?"accent":"warn"),t.Q6J("mat-dialog-close",t.DdM(19,ft)),t.xp6(1),t.Oqu(t.lcZ(20,17,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();class xt{constructor(o){this.setOptions(o),this.setButtons(o)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(o){switch(o){case"Active":this.buttonsArray=[{name:"Premature Close",icon:"fa fa-arrow-left"},{name:"Calculate Interest",icon:"fa fa-table"},{name:"Undo Activation",icon:"fa fa-undo"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right"},{name:"Calculate Interest",icon:"fa fa-table"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-pencil "},{name:"Approve",icon:"fa fa-check"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo"},{name:"Activate",icon:"fa fa-check"}];break;default:this.buttonsArray=[]}}setOptions(o){switch(o){case"Active":case"Matured":this.optionArray=[{name:"Post Interest"},{name:"Add Charge"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject"},{name:"Withdraw By Client"},{name:"Add Charge"},{name:"Delete"}];break;default:this.optionArray=[]}}addOption(o){this.optionArray.push(o)}}var w=l(80529);let b=(()=>{class n{constructor(e){this.http=e}getFixedDepositsAccountData(e){const i=(new w.LE).set("associations","all");return this.http.get(`/fixeddepositaccounts/${e}`,{params:i})}deleteFixedDepositsAccount(e){return this.http.delete(`/fixeddepositaccounts/${e}`)}executeFixedDepositsAccountCommand(e,i,a){const r=(new w.LE).set("command",i);return this.http.post(`/fixeddepositaccounts/${e}`,a,{params:r})}getFixedDepositsAccountTransaction(e,i){return this.http.get(`/fixeddepositaccounts/${e}/transactions/${i}`)}executeFixedDepositsAccountTransactionsCommand(e,i,a,r){const c=(new w.LE).set("command",i);return this.http.post(`/fixeddepositaccounts/${e}/transactions/${r}`,a,{params:c})}getFixedDepositsAccountClosureTemplate(e){const i=(new w.LE).set("command","close");return this.http.get(`/fixeddepositaccounts/${e}/template`,{params:i})}getFixedDepositsAccountTemplate(e,i){let a=(new w.LE).set("clientId",e);return a=i?a.set("productId",i):a,this.http.get("/fixeddepositaccounts/template",{params:a})}getFixedDepositsAccountAndTemplate(e){const i=(new w.LE).set("associations","charges,+linkedAccount").set("template","true");return this.http.get(`/fixeddepositaccounts/${e}`,{params:i})}createFixedDepositAccount(e){return this.http.post("/fixeddepositaccounts",e)}updateFixedDepositAccount(e,i){return this.http.put(`/fixeddepositaccounts/${e}`,i)}getStandingInstructions(e,i,a,r,c){const m=(new w.LE).set("clientId",e).set("clientName",i).set("fromAccountId",a).set("fromAccountType","2").set("locale",r).set("dateFormat",c);return this.http.get("/standinginstructions",{params:m})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(w.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var S=l(59349),x=l(36895),v=l(92216),p=l(1576),K=l(55829),A=l(73546),ht=l(97392),At=l(96338),tt=l(28255),it=l(3848),J=l(10266),Ct=l(15705),z=l(30998),Tt=l(87197);function Ut(n,o){if(1&n&&(t.TgZ(0,"span",26),t._uU(1,"\n "),t._UZ(2,"mifosx-account-number",8),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("accountNo",e.fixedDepositsAccountData.clientAccountNo)}}function Zt(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table",9),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",27),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",27),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,5,"labels.heading.Account Overview")," "),t.xp6(10),t.Oqu(t.lcZ(14,7,"labels.inputs.Current Balance")),t.xp6(4),t.Oqu(t.gM2(18,9,e.fixedDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,14,"labels.inputs.Deposit Amount")),t.xp6(4),t.Oqu(t.gM2(29,16,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2"))}}function bt(n,o){if(1&n){const e=t.EpF();t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",28),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.doAction(r.name))}),t._uU(3,"\n "),t._UZ(4,"i",29),t._uU(5),t.qZA(),t._uU(6,"\n "),t.BQk()}if(2&n){const e=o.$implicit;t.xp6(4),t.s9C("ngClass",e.icon),t.xp6(1),t.hij(" ",e.name,"")}}function Dt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t._uU(1,"\n "),t.TgZ(2,"button",28),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw(2);return t.KtG(c.doAction(r.name))}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(3),t.Oqu(e.name)}}function Ot(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",30),t._uU(3,"More"),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"mat-menu",null,31),t._uU(7,"\n "),t.YNc(8,Dt,5,1,"span",18),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(6),t.Q6J("ngForOf",i.buttonConfig.options)}}const Pt=function(){return["./transactions"]};function vt(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.TgZ(2,"a",21,32),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.qZA()),2&n){const e=t.MAs(3);t.xp6(2),t.Q6J("routerLink",t.DdM(5,Pt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,3,"labels.inputs.Transactions"),"\n ")}}const Mt=function(){return["./standing-instructions"]};function qt(n,o){if(1&n&&(t.TgZ(0,"a",21,33),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Mt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Standing Instructions"),"\n ")}}const yt=function(n){return["./datatables",n]};function Ft(n,o){if(1&n&&(t.TgZ(0,"a",21,35),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),i=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,yt,i.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",i.registeredTableName,"\n ")}}function wt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Ft,3,5,"a",34),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const It=function(){return["./general"]},St=function(){return["./interest-rate-chart"]},Lt=function(){return["./charges"]};let Nt=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.router=i,this.fixedDepositsService=a,this.savingsService=r,this.dialog=c,this.showTransactions=!1,this.route.data.subscribe(m=>{this.fixedDepositsAccountData=m.fixedDepositsAccountData,this.savingsDatatables=m.savingsDatatables,this.currency=this.fixedDepositsAccountData.currency,this.showTransactions=m.fixedDepositsAccountData.status.id>=300}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){const e=this.fixedDepositsAccountData.status.value;this.buttonConfig=new xt(e),this.fixedDepositsAccountData.taxGroup&&"Active"===e&&this.buttonConfig.addOption(this.fixedDepositsAccountData.withHoldTax?{name:"Disable Withhold Tax"}:{name:"Enable Withhold Tax"})}reload(){const i=this.router.url;this.router.navigateByUrl(`/clients/${this.fixedDepositsAccountData.clientId}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}doAction(e){switch(e){case"Approve":case"Reject":case"Activate":case"Close":case"Undo Approval":case"Undo Activation":case"Add Charge":case"Withdraw By Client":case"Premature Close":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteFixedDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax()}}deleteFixedDepositsAccount(){this.dialog.open(Q.F,{data:{deleteContext:`fixed deposit account with id: ${this.fixedDepositsAccountData.id}`}}).afterClosed().subscribe(i=>{i.delete&&this.fixedDepositsService.deleteFixedDepositsAccount(this.fixedDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(y).afterClosed().subscribe(i=>{i.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(B).afterClosed().subscribe(i=>{i.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(ot,{data:{isEnable:!0}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(ot,{data:{isEnable:!1}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0),t.Y36(b),t.Y36(S.d),t.Y36(_.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-view"]],decls:95,vars:46,consts:[[1,"account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],["fxFlex","60%"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["fxFlex","auto"],["fxFlex","5%"],["mat-icon-button","","aria-label","Fixed Deposit account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngIf"],[1,"m-l-10"],[1,"r-amount"],["mat-menu-item","",3,"click"],[3,"ngClass"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(e,i){if(1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t.ALo(11,"translate"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",5),t._uU(16,"\n "),t.TgZ(17,"mat-card-title"),t._uU(18,"\n\n "),t.TgZ(19,"div",6),t._uU(20,"\n "),t.TgZ(21,"h3"),t._uU(22,"\n "),t._UZ(23,"i",7),t.ALo(24,"statusLookup"),t._uU(25),t.ALo(26,"translate"),t._UZ(27,"mifosx-account-number",8),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n "),t.TgZ(30,"span",9),t._uU(31),t.ALo(32,"translate"),t.ALo(33,"translate"),t.YNc(34,Ut,4,1,"span",10),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,Zt,34,21,"div",11),t._uU(39,"\n\n "),t._UZ(40,"span",12),t._uU(41,"\n\n "),t.TgZ(42,"div",13),t._uU(43,"\n "),t.TgZ(44,"button",14),t._uU(45,"\n "),t.TgZ(46,"mat-icon",15),t._uU(47,"\n "),t._UZ(48,"fa-icon",16),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n\n "),t.TgZ(55,"mat-menu",null,17),t._uU(57,"\n "),t.YNc(58,bt,7,2,"ng-container",18),t._uU(59,"\n\n "),t.YNc(60,Ot,11,2,"ng-container",11),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n "),t.TgZ(65,"mat-card-content",19),t._uU(66,"\n\n "),t.TgZ(67,"nav",20),t._uU(68,"\n "),t.TgZ(69,"a",21,22),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"a",21,23),t._uU(76),t.ALo(77,"translate"),t.qZA(),t._uU(78,"\n "),t.YNc(79,vt,7,6,"span",11),t._uU(80,"\n "),t.TgZ(81,"a",21,24),t._uU(83),t.ALo(84,"translate"),t.qZA(),t._uU(85,"\n "),t.YNc(86,qt,4,6,"a",25),t._uU(87,"\n "),t.YNc(88,wt,4,1,"ng-container",18),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n\n "),t._UZ(91,"router-outlet"),t._uU(92,"\n\n "),t.qZA(),t._uU(93,"\n\n"),t.qZA(),t._uU(94,"\n")),2&e){const a=t.MAs(56),r=t.MAs(70),c=t.MAs(75),m=t.MAs(82);t.xp6(10),t.s9C("matTooltip",t.lcZ(11,27,"tooltips.Fixed Deposits Account")),t.Q6J("src","assets/images/fd_account_placeholder.png",t.LSH),t.xp6(13),t.Q6J("ngClass",t.lcZ(24,29,i.fixedDepositsAccountData.status.code))("matTooltip",i.fixedDepositsAccountData.status.value),t.xp6(2),t.AsE("\n ",t.lcZ(26,31,"labels.inputs.Fixed Deposit Product")," : ",i.fixedDepositsAccountData.depositProductName,"\n "),t.xp6(2),t.s9C("accountNo",i.fixedDepositsAccountData.accountNo),t.xp6(4),t.lnq("\n ",t.lcZ(32,33,"labels.text."+i.entityType)," ",t.lcZ(33,35,"labels.inputs.name"),": ",i.fixedDepositsAccountData.clientName||i.fixedDepositsAccountData.groupName,"\n "),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.clientAccountNo),t.xp6(4),t.Q6J("ngIf",!i.fixedDepositsAccountData.status.rejected&&!i.fixedDepositsAccountData.status.submittedAndPendingApproval),t.xp6(6),t.Q6J("matMenuTriggerFor",a),t.xp6(14),t.Q6J("ngForOf",i.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",i.buttonConfig.options.length),t.xp6(9),t.Q6J("routerLink",t.DdM(43,It))("active",r.isActive),t.xp6(2),t.hij("\n ",t.lcZ(72,37,"labels.inputs.General"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(44,St))("active",c.isActive),t.xp6(2),t.hij("\n ",t.lcZ(77,39,"labels.inputs.Interest Rate Chart"),"\n "),t.xp6(3),t.Q6J("ngIf",i.showTransactions),t.xp6(2),t.Q6J("routerLink",t.DdM(45,Lt))("active",m.isActive),t.xp6(2),t.hij("\n ",t.lcZ(84,41,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.clientId),t.xp6(2),t.Q6J("ngForOf",i.savingsDatatables)}},dependencies:[x.mk,x.sg,x.O5,v.BN,p.xw,p.yH,K.oO,h.lW,A.a8,A.dk,A.C1,A.dn,A.n5,A.nc,ht.Hw,At.Nh,tt.VK,tt.OP,tt.p6,it.BU,it.Nj,J.gM,Ct.t,z.A,d.lC,d.yS,d.Od,x.H9,g.X$,Tt.F]}),n})();var T=l(37340),u=l(30671);function Yt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function kt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.lnq("\n ",e.fromPeriod,"-",e.toPeriod,"\xa0",e.periodType.value,"")}}function Qt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Jt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.amountRangeFrom,"-",e.amountRangeTo,"")}}function Rt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function jt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.annualInterestRate," ")}}function Et(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Bt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.description," ")}}function zt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function $t(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",21),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function Gt(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",22),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function Ht(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",18),t._uU(1,"\n "),t.TgZ(2,"button",19),t.NdJ("click",function(){const r=t.CHM(e).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===r?null:r)}),t._uU(3,"\n "),t.YNc(4,$t,5,3,"span",20),t._uU(5,"\n "),t.YNc(6,Gt,5,3,"span",20),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&n){const e=o.dataIndex,i=t.oxw();t.xp6(4),t.Q6J("ngIf",i.expandChartSlabIndex!==e),t.xp6(2),t.Q6J("ngIf",i.expandChartSlabIndex===e)}}function Wt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Vt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.entityType.value,"\n ")}}function Xt(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Kt(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.attributeName.value,"\n ")}}function tn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function nn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.conditionType.value),"\n ")}}function en(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function on(n,o){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("ngSwitch",e.attributeName),t.xp6(1),t.hij("\n ",e.attributeValueDesc,"\n ")}}function an(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function cn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.incentiveType.value,"\n ")}}function sn(n,o){1&n&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function rn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function un(n,o){1&n&&t._UZ(0,"tr",36)}function pn(n,o){1&n&&t._UZ(0,"tr",37)}function ln(n,o){if(1&n&&(t.TgZ(0,"table",27),t._uU(1,"\n\n "),t.ynx(2,28),t._uU(3,"\n "),t.YNc(4,Wt,3,3,"th",7),t._uU(5,"\n "),t.YNc(6,Vt,2,1,"td",8),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,29),t._uU(10,"\n "),t.YNc(11,Xt,3,3,"th",7),t._uU(12,"\n "),t.YNc(13,Kt,2,1,"td",8),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,30),t._uU(17,"\n "),t.YNc(18,tn,3,3,"th",7),t._uU(19,"\n "),t.YNc(20,nn,3,3,"td",8),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,31),t._uU(24,"\n "),t.YNc(25,en,3,3,"th",7),t._uU(26,"\n "),t.YNc(27,on,2,2,"td",32),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,33),t._uU(31,"\n "),t.YNc(32,an,3,3,"th",7),t._uU(33,"\n "),t.YNc(34,cn,2,1,"td",8),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,34),t._uU(38,"\n "),t.YNc(39,sn,3,3,"th",7),t._uU(40,"\n "),t.YNc(41,rn,2,1,"td",8),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,un,1,0,"tr",14),t._uU(45,"\n "),t.YNc(46,pn,1,0,"tr",15),t._uU(47,"\n\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("dataSource",e.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",i.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.incentivesDisplayedColumns)}}function dn(n,o){if(1&n&&(t.TgZ(0,"td",18),t._uU(1,"\n\n "),t.TgZ(2,"div",23),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",24),t._uU(5,"\n\n "),t.TgZ(6,"h4",25),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,ln,48,3,"table",26),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&n){const e=o.$implicit,i=o.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",i===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",null==e.incentives?null:e.incentives.length)}}function _n(n,o){1&n&&t._UZ(0,"tr",36)}function mn(n,o){1&n&&t._UZ(0,"tr",37)}function gn(n,o){1&n&&t._UZ(0,"tr",38)}let fn=(()=>{class n{constructor(e){this.route=e,this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(i=>{this.interestRateChartData=i.fixedDepositsAccountData.accountChart.chartSlabs})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-interest-rate-chart-tab"]],decls:66,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayoutAlign","start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4,5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,Yt,3,3,"th",7),t._uU(20,"\n "),t.YNc(21,kt,2,3,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,Qt,3,3,"th",7),t._uU(27,"\n "),t.YNc(28,Jt,2,2,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,10),t._uU(32,"\n "),t.YNc(33,Rt,3,3,"th",7),t._uU(34,"\n "),t.YNc(35,jt,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,11),t._uU(39,"\n "),t.YNc(40,Et,3,3,"th",7),t._uU(41,"\n "),t.YNc(42,Bt,2,1,"td",8),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,12),t._uU(46,"\n "),t.YNc(47,zt,3,3,"th",7),t._uU(48,"\n "),t.YNc(49,Ht,9,2,"td",8),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,13),t._uU(53,"\n "),t.YNc(54,dn,14,6,"td",8),t._uU(55,"\n "),t.BQk(),t._uU(56,"\n\n "),t.YNc(57,_n,1,0,"tr",14),t._uU(58,"\n "),t.YNc(59,mn,1,0,"tr",15),t._uU(60,"\n "),t.YNc(61,gn,1,0,"tr",16),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n"),t.qZA(),t._uU(65,"\n")),2&e&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.heading.All Interest Rates")),t.xp6(7),t.Q6J("dataSource",i.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsIncentivesDisplayedColumns))},dependencies:[x.O5,x.RF,v.BN,p.xw,p.Wh,p.s9,p.yH,h.lW,A.a8,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,x.rS,g.X$],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,T.X$)("expandChartSlab",[(0,T.SB)("collapsed",(0,T.oB)({height:"0px",minHeight:"0"})),(0,T.SB)("expanded",(0,T.oB)({height:"*"})),(0,T.eR)("expanded <=> collapsed",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();var s=l(24006),at=l(56709),I=l(35769);function xn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",18),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.hideAccruals())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hideAccrualsParam),t.xp6(1),t.hij("\n ",t.lcZ(4,2,"labels.inputs.Hide Accruals"),"")}}function hn(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.ID")," "))}function An(n,o){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Cn(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Date")," "))}function Tn(n,o){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function Un(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Type")," "))}function Zn(n,o){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.transactionType.value," ")}}function bn(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Debit")," "))}function Dn(n,o){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=o.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",i.isDebit(e.transactionType)?e.amount:"N/A"," ")}}function On(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Credit")," "))}function Pn(n,o){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=o.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",i.isDebit(e.transactionType)?"N/A":e.amount," ")}}function vn(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Balance")," "))}function Mn(n,o){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.runningBalance," ")}}function qn(n,o){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}const yn=function(n){return[n,"reciept"]},Fn=function(n){return["/","journal-entry","view",n]};function wn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.routeEdit(a))}),t._uU(3,"\n "),t._UZ(4,"i",24),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"button",25),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.routeEdit(a))}),t._uU(8,"\n "),t._UZ(9,"i",26),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("routerLink",t.VKq(2,yn,e.id)),t.xp6(5),t.Q6J("routerLink",t.VKq(4,Fn,"S"+e.id))}}function In(n,o){1&n&&t._UZ(0,"tr",27)}function Sn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"tr",28),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.showTransactions(r))}),t.qZA()}}let Ln=(()=>{class n{constructor(e,i){this.route=e,this.router=i,this.displayedColumns=["id","transactionDate","transactionType","debit","credit","balance","actions"],this.route.parent.data.subscribe(a=>{this.transactionsData=a.fixedDepositsAccountData.transactions,this.tempTransaction=this.transactionsData,this.status=a.fixedDepositsAccountData.status.value})}ngOnInit(){this.hideAccrualsParam=new s.p4(!1),this.dataSource=new u.by(this.transactionsData),this.tempTransaction.forEach(e=>{this.isAccrual(e.transactionType)&&(this.tempTransaction=this.removeItem(this.tempTransaction,e))})}removeItem(e,i){return e.filter(a=>a!==i)}checkStatus(){return"Active"===this.status||"Closed"===this.status||"Transfer in progress"===this.status||"Transfer on hold"===this.status||"Premature Closed"===this.status||"Matured"===this.status}isDebit(e){return!0===e.withdrawal||!0===e.feeDeduction||!0===e.overdraftInterest||!0===e.withholdTax}showTransactions(e){this.router.navigate(e.transfer?[`account-transfers/account-transfers/${e.transfer.id}`]:[e.id],{relativeTo:this.route})}transactionColor(e){return e.reversed?"strike":this.isAccrual(e.transactionType)?"accrual":""}isAccrual(e){return e.accrual}hideAccruals(){this.dataSource=new u.by(this.hideAccrualsParam.value?this.transactionsData:this.tempTransaction)}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-transactions-tab"]],decls:74,vars:7,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-20"],["class","action-button m-b-20","fxLayout","row","fxLayoutGap","20px",4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutGap","20px",1,"action-button","m-b-20"],[1,"accruals",3,"formControl","click"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"center"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","View Reciept",1,"fa","fa-file"],["mat-raised-button","","color","primary","matTooltip","View Journal Entries","matTooltipPosition","left",1,"account-action-button",3,"routerLink","click"],[1,"fa","fa-arrow-circle-right"],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"h3"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.YNc(13,xn,6,4,"div",4),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"table",5),t._uU(17,"\n\n "),t.ynx(18,6),t._uU(19,"\n "),t.YNc(20,hn,3,3,"th",7),t._uU(21,"\n "),t.YNc(22,An,2,1,"td",8),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,9),t._uU(26,"\n "),t.YNc(27,Cn,3,3,"th",7),t._uU(28,"\n "),t.YNc(29,Tn,3,3,"td",8),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,10),t._uU(33,"\n "),t.YNc(34,Un,3,3,"th",7),t._uU(35,"\n "),t.YNc(36,Zn,2,1,"td",8),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,11),t._uU(40,"\n "),t.YNc(41,bn,3,3,"th",7),t._uU(42,"\n "),t.YNc(43,Dn,2,1,"td",8),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,12),t._uU(47,"\n "),t.YNc(48,On,3,3,"th",7),t._uU(49,"\n "),t.YNc(50,Pn,2,1,"td",8),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,13),t._uU(54,"\n "),t.YNc(55,vn,3,3,"th",7),t._uU(56,"\n "),t.YNc(57,Mn,2,1,"td",8),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,14),t._uU(61,"\n "),t.YNc(62,qn,3,3,"th",7),t._uU(63,"\n "),t.YNc(64,wn,12,6,"td",15),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.YNc(67,In,1,0,"tr",16),t._uU(68,"\n "),t.YNc(69,Sn,1,0,"tr",17),t._uU(70,"\n\n "),t.qZA(),t._uU(71,"\n\n "),t.qZA(),t._uU(72,"\n\n"),t.qZA(),t._uU(73,"\n")),2&e&&(t.xp6(9),t.Oqu(t.lcZ(10,5,"labels.heading.All Transactions")),t.xp6(4),t.Q6J("ngIf",i.checkStatus()),t.xp6(3),t.Q6J("dataSource",i.dataSource),t.xp6(51),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,at.oG,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,J.gM,s.JJ,s.oH,d.rH,g.X$,I.E],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#0f36e4}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#0f36e4b3;border:1px solid #091f84;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#0f36e4}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#00ce00}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;color:#000}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .linked[_ngcontent-%COMP%]{color:#0f36e4}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .accrual[_ngcontent-%COMP%]{color:#999}.active[_ngcontent-%COMP%]{background-color:#00ce00;height:4px}.linked[_ngcontent-%COMP%]{background-color:#0f36e4;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]}),n})();var D=l(99639),R=l(34417);const Nn=function(){return{confirm:!0}};let Yn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so),t.Y36(_.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-waive-charge-dialog"]],decls:22,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"labels.heading.Waive Charge")),t.xp6(6),t.AsE("",t.lcZ(8,8,"labels.text.Are you sure you want to waive charge with id"),": ",i.data.id," ?"),t.xp6(7),t.Oqu(t.lcZ(15,10,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(14,Nn)),t.xp6(1),t.Oqu(t.lcZ(19,12,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();const kn=function(){return{confirm:!0}};let Qn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.so),t.Y36(_.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-inactivate-charge-dialog"]],decls:22,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"labels.heading.Inactivate Charge")),t.xp6(6),t.AsE("",t.lcZ(8,8,"labels.text.Are you sure you want to inactivate charge with id"),": ",i.data.id," ?"),t.xp6(7),t.Oqu(t.lcZ(15,10,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(14,kn)),t.xp6(1),t.Oqu(t.lcZ(19,12,"labels.buttons.Confirm")))},dependencies:[h.lW,_.ZT,_.uh,_.xY,_.H8,g.X$]}),n})();var $=l(68830),ct=l(23107),P=l(73426);const Jn=["chargesTable"];function Rn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.toggleCharges())}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij("\n ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges","")}}function jn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function En(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function Bn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Fee/Penalty")," "))}function zn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",!0===e.penalty?"Penalty":"Fee"," ")}}function $n(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Payment Due At")," "))}function Gn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeTimeType.value," ")}}function Hn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due As Of")," "))}function Wn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.dueDate)," ")}}function Vn(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repeats On")," "))}const Xn=function(){return[2e3]};function Kn(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.feeOnMonthDay?t.xi3(2,1,t.DdM(4,Xn).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function te(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Calculation Type")," "))}function ne(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeCalculationType.value," ")}}function ee(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due")," "))}function oe(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amount," ")}}function ie(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Paid")," "))}function ae(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amountPaid," ")}}function ce(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Waived")," "))}function se(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amountWaived," ")}}function re(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Outstanding")," "))}function ue(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE(" ",e.currency.displaySymbol,"\xa0",e.amountOutstanding," ")}}function pe(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function le(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.editCharge(r))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",30),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Edit Charge"))}function de(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.deleteCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",32),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Delete Charge"))}function _e(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,le,5,3,"button",27),t._uU(3,"\n "),t.YNc(4,de,5,3,"button",28),t._uU(5,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function me(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.payCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",33),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Pay Charge"))}function ge(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.waiveCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",34),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Waive Charge"))}function fe(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(3).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.inactivateCharge(r.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",35),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Inactivate Charge"))}function xe(n,o){1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,fe,5,3,"button",27),t._uU(3,"\n "),t.BQk()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function he(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,me,5,3,"button",27),t._uU(3,"\n "),t.YNc(4,ge,5,3,"button",27),t._uU(5,"\n "),t.YNc(6,xe,4,1,"ng-container",26),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",i.isRecurringCharge(e))}}function Ae(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1,"\n "),t.YNc(2,_e,6,2,"span",26),t._uU(3,"\n "),t.YNc(4,he,8,3,"span",26),t._uU(5,"\n "),t.qZA()),2&n){const e=o.$implicit,i=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===i.fixedDepositsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Active"===i.fixedDepositsAccountData.status.value&&0!==e.amountOutstanding)}}function Ce(n,o){1&n&&t._UZ(0,"tr",36)}function Te(n,o){1&n&&t._UZ(0,"tr",37)}let Ue=(()=>{class n{constructor(e,i,a,r,c,m){this.savingsService=e,this.route=i,this.dateUtils=a,this.router=r,this.dialog=c,this.settingsService=m,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(Z=>{this.fixedDepositsAccountData=Z.fixedDepositsAccountData,this.chargesData=this.fixedDepositsAccountData.charges})}ngOnInit(){const e=this.chargesData?this.chargesData.filter(i=>i.isActive):[];this.dataSource=new u.by(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){const e=this.chargesData.filter(i=>!i.isActive);this.dataSource.data=e}else{const e=this.chargesData.filter(i=>i.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){const i=[new $.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new ct.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(R.E,{data:{title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const m=this.settingsService.language.code,Z=this.settingsService.dateFormat,k={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,Z),dateFormat:Z,locale:m};this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"paycharge",k,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(Yn,{data:{id:e}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(Qn,{data:{id:e}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){const i=[new $.M({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})];this.dialog.open(R.E,{data:{title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const k={...c.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.fixedDepositsAccountData.id,k,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(Q.F,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.fixedDepositsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value}routeEdit(e){e.stopPropagation()}reload(){const i=this.router.url;this.router.navigateByUrl(`/clients/${this.fixedDepositsAccountData.clientId}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.d),t.Y36(d.gz),t.Y36(P.L),t.Y36(d.F0),t.Y36(_.uw),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-charges-tab"]],viewQuery:function(e,i){if(1&e&&t.Gf(Jn,7),2&e){let a;t.iGM(a=t.CRH())&&(i.chargesTableRef=a.first)}},decls:103,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20",4,"ngIf"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip","click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"matTooltip","click"],[1,"fa","fa-trash"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,Rn,5,1,"div",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",4),t._uU(15,"\n\n "),t.TgZ(16,"table",5,6),t._uU(18,"\n\n "),t.ynx(19,7),t._uU(20,"\n "),t.YNc(21,jn,3,3,"th",8),t._uU(22,"\n "),t.YNc(23,En,2,1,"td",9),t._uU(24,"\n "),t.BQk(),t._uU(25,"\n\n "),t.ynx(26,10),t._uU(27,"\n "),t.YNc(28,Bn,3,3,"th",8),t._uU(29,"\n "),t.YNc(30,zn,2,1,"td",9),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,$n,3,3,"th",8),t._uU(36,"\n "),t.YNc(37,Gn,2,1,"td",9),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,Hn,3,3,"th",8),t._uU(43,"\n "),t.YNc(44,Wn,3,3,"td",9),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,Vn,3,3,"th",8),t._uU(50,"\n "),t.YNc(51,Kn,3,5,"td",9),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,te,3,3,"th",8),t._uU(57,"\n "),t.YNc(58,ne,2,1,"td",9),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,ee,3,3,"th",8),t._uU(64,"\n "),t.YNc(65,oe,2,2,"td",9),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,ie,3,3,"th",8),t._uU(71,"\n "),t.YNc(72,ae,2,2,"td",9),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.ynx(75,17),t._uU(76,"\n "),t.YNc(77,ce,3,3,"th",8),t._uU(78,"\n "),t.YNc(79,se,2,2,"td",9),t._uU(80,"\n "),t.BQk(),t._uU(81,"\n\n "),t.ynx(82,18),t._uU(83,"\n "),t.YNc(84,re,3,3,"th",8),t._uU(85,"\n "),t.YNc(86,ue,2,2,"td",9),t._uU(87,"\n "),t.BQk(),t._uU(88,"\n\n "),t.ynx(89,19),t._uU(90,"\n "),t.YNc(91,pe,3,3,"th",8),t._uU(92,"\n "),t.YNc(93,Ae,6,2,"td",9),t._uU(94,"\n "),t.BQk(),t._uU(95,"\n\n "),t.YNc(96,Ce,1,0,"tr",20),t._uU(97,"\n "),t.YNc(98,Te,1,0,"tr",21),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n "),t.qZA(),t._uU(101,"\n\n"),t.qZA(),t._uU(102,"\n")),2&e&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.heading.All Charges")),t.xp6(4),t.Q6J("ngIf",i.chargesData),t.xp6(5),t.Q6J("dataSource",i.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[x.O5,p.xw,p.Wh,h.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,J.gM,z.A,g.X$,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})();var Ze=l(35023);const be=["instructionsTable"];function De(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client")," "))}function Oe(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromClient.displayName,"-",e.fromClient.id,"")}}function Pe(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.From Account")," "))}function ve(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromAccount.accountNo," (",e.fromAccountType.value,")")}}function Me(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Beneficiary")," "))}function qe(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e.toClient.displayName)}}function ye(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.To Account")," "))}function Fe(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.toAccount.accountNo," (",e.toAccountType.value,")")}}function we(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Ie(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.instructionType.value,"/",e.amount,"")}}function Se(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Validity")," "))}function Le(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,e.validFrom)," to ",t.lcZ(3,4,e.validTill),"")}}function Ne(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Ye(n,o){1&n&&(t.TgZ(0,"button",20),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",21),t._uU(4,"\n "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Edit Standing Instruction"))}function ke(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ye,5,3,"button",19),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Qe(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2).$implicit,r=t.oxw();return t.KtG(r.deleteStandingInstruction(a.id))}),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",24),t._uU(4,"\n "),t.qZA()}2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.Delete Standing Instruction"))}function Je(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Qe,5,3,"button",22),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Re(n,o){1&n&&(t.TgZ(0,"button",20),t.ALo(1,"translate"),t._uU(2,"\n "),t._UZ(3,"i",25),t._uU(4,"\n "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"tooltips.View Standing Instruction"))}function je(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,ke,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,Je,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,Re,5,3,"button",19),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Ee(n,o){1&n&&t._UZ(0,"tr",26)}function Be(n,o){1&n&&t._UZ(0,"tr",27)}let ze=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.fixedDepositsService=i,this.dialog=a,this.accountTransfersService=r,this.settingsService=c,this.dataSource=new u.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(m=>{this.fixedDepositsData=m.fixedDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.fixedDepositsService.getStandingInstructions(this.fixedDepositsData.clientId,this.fixedDepositsData.clientName,this.fixedDepositsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(m=>{this.instructionsData=m.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(Q.F,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(b),t.Y36(_.uw),t.Y36(Ze.o),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(e,i){if(1&e&&t.Gf(be,7),2&e){let a;t.iGM(a=t.CRH())&&(i.instructionTableRef=a.first)}},decls:70,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"matTooltip","click"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n\n "),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"table",3,4),t._uU(13,"\n\n "),t.ynx(14,5),t._uU(15,"\n "),t.YNc(16,De,3,3,"th",6),t._uU(17,"\n "),t.YNc(18,Oe,2,2,"td",7),t._uU(19,"\n "),t.BQk(),t._uU(20,"\n\n "),t.ynx(21,8),t._uU(22,"\n "),t.YNc(23,Pe,3,3,"th",6),t._uU(24,"\n "),t.YNc(25,ve,2,2,"td",7),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n "),t.ynx(28,9),t._uU(29,"\n "),t.YNc(30,Me,3,3,"th",6),t._uU(31,"\n "),t.YNc(32,qe,2,1,"td",7),t._uU(33,"\n "),t.BQk(),t._uU(34,"\n\n "),t.ynx(35,10),t._uU(36,"\n "),t.YNc(37,ye,3,3,"th",6),t._uU(38,"\n "),t.YNc(39,Fe,2,2,"td",7),t._uU(40,"\n "),t.BQk(),t._uU(41,"\n\n "),t.ynx(42,11),t._uU(43,"\n "),t.YNc(44,we,3,3,"th",6),t._uU(45,"\n "),t.YNc(46,Ie,2,2,"td",7),t._uU(47,"\n "),t.BQk(),t._uU(48,"\n\n "),t.ynx(49,12),t._uU(50,"\n "),t.YNc(51,Se,3,3,"th",6),t._uU(52,"\n "),t.YNc(53,Le,4,6,"td",7),t._uU(54,"\n "),t.BQk(),t._uU(55,"\n\n "),t.ynx(56,13),t._uU(57,"\n "),t.YNc(58,Ne,3,3,"th",6),t._uU(59,"\n "),t.YNc(60,je,8,3,"td",7),t._uU(61,"\n "),t.BQk(),t._uU(62,"\n\n "),t.YNc(63,Ee,1,0,"tr",14),t._uU(64,"\n "),t.YNc(65,Be,1,0,"tr",15),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n "),t.qZA(),t._uU(68,"\n\n"),t.qZA(),t._uU(69,"\n")),2&e&&(t.xp6(5),t.Oqu(t.lcZ(6,4,"labels.heading.All Standing Instructions")),t.xp6(6),t.Q6J("dataSource",i.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[x.O5,h.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,J.gM,z.A,g.X$,I.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})();var $e=l(45063);let Ge=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("fixedDepositAccountId"),this.route.data.subscribe(i=>{this.entityDatatable=i.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Fixed Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&e&&(t.xp6(2),t.Q6J("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[$e.j]}),n})();var C=l(99602),f=l(59549),Y=l(39349),M=l(284);function He(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const We=function(){return["../../"]};let Ve=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveFixedDepositsAccountForm()}createApproveFixedDepositsAccountForm(){this.approveFixedDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.approveFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(this.approveFixedDepositsAccountForm.value.approvedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"approve",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-approve-fixed-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,He,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.approveFixedDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.approveFixedDepositsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,We)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.approveFixedDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Xe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ke=function(){return["../../"]};let to=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectFixedDepositsAccountForm()}createRejectFixedDepositsAccountForm(){this.rejectFixedDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.rejectFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(this.rejectFixedDepositsAccountForm.value.rejectedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"reject",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-reject-fixed-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Xe,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.rejectFixedDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.rejectFixedDepositsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ke)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.rejectFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function no(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const eo=function(){return["../../"]};let oo=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.savingsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateFixedDepositsAccountForm()}createActivateFixedDepositsAccountForm(){this.activateFixedDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",s.kI.required]})}submit(){const e=this.activateFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(this.activateFixedDepositsAccountForm.value.activatedOnDate,a));const c={...e,dateFormat:a,locale:i};this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(S.d),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-activate-fixed-deposits-account"]],decls:39,vars:18,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(19);return t.KtG(c.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,no,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const a=t.MAs(19);t.xp6(4),t.Q6J("formGroup",i.activateFixedDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.activateFixedDepositsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,eo)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.activateFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,p.yH,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();const io=function(){return["../../"]};let ao=(()=>{class n{constructor(e,i,a,r,c){this.formBuilder=e,this.savingsService=i,this.fixedDepositsService=a,this.route=r,this.router=c,this.undoCommand="undoapproval",this.undoAction=this.route.snapshot.params.name,"Undo Activation"===this.undoAction&&(this.undoCommand="undoactivate"),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.createUndoApprovalFixedDepositsAccountForm()}createUndoApprovalFixedDepositsAccountForm(){this.undoApprovalFixedDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){const e={...this.undoApprovalFixedDepositsAccountForm.value};"Undo Activation"===this.undoAction?this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})}):this.savingsService.executeSavingsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(S.d),t.Y36(b),t.Y36(d.gz),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-approval-fixed-deposits-account"]],decls:32,vars:13,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",i.undoApprovalFixedDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,io)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.undoApprovalFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[p.xw,p.SQ,p.Wh,p.yH,h.lW,A.a8,A.dn,A.hq,f.KE,f.hX,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function co(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const so=function(){return["../../"]};let ro=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawFixedDepositsAccountForm()}createWithdrawFixedDepositsAccountForm(){this.withdrawFixedDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.withdrawFixedDepositsAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawFixedDepositsAccountForm.value.withdrawnOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"withdrawnByApplicant",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-withdraw-by-client-fixed-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,co,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.withdrawFixedDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.withdrawFixedDepositsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,so)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.withdrawFixedDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[x.O5,p.xw,p.SQ,p.Wh,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();var L=l(3238),N=l(84385);function uo(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name+" ("+e.currency.name+")","\n ")}}function po(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function lo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function _o(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function mo(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function go(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function fo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,go,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),i=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",i.fixedDepositsChargeForm.controls.dueDate.hasError("required"))}}function xo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ho(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,xo,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),i=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",i.fixedDepositsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function Ao(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Co(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,lo,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,_o,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,mo,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,fo,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,ho,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,Ao,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",e.fixedDepositsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",e.fixedDepositsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsChargeForm.contains("feeInterval"))}}const To=function(){return["../../"]};let Uo=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.route=i,this.router=a,this.dateUtils=r,this.savingsService=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(Z=>{this.savingsChargeOptions=Z.fixedDepositsAccountActionData.chargeOptions}),this.fixedDepositAccountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFixedDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.fixedDepositsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(i=>{this.chargeDetails=i;const a=i.chargeTimeType.id;("Withdrawal Fee"===i.chargeTimeType.value||"Saving No Activity Fee"===i.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===i.chargeTimeType.value||"Monthly Fee"===i.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.removeControl("dueDate"):this.fixedDepositsChargeForm.addControl("dueDate",new s.p4("",s.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.addControl("feeOnMonthDay",new s.p4("",s.kI.required)):this.fixedDepositsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===a.value?this.fixedDepositsChargeForm.addControl("feeInterval",new s.p4(i.feeInterval,s.kI.required)):this.fixedDepositsChargeForm.removeControl("feeInterval"),this.fixedDepositsChargeForm.patchValue({amount:i.amount,chargeCalculationType:i.chargeCalculationType.id,chargeTimeType:i.chargeTimeType.id})})})}createFixedDepositsChargeForm(){this.fixedDepositsChargeForm=this.formBuilder.group({chargeId:["",s.kI.required],amount:["",s.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const e=this.fixedDepositsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const i="MMMM-dd";e.monthDayFormat=i,e.feeOnMonthDay&&(e.feeOnMonthDay=this.dateUtils.formatDate(this.fixedDepositsChargeForm.value.feeOnMonthDay,i))}else{const i=this.settingsService.dateFormat;e.dateFormat=i,e.dueDate&&(e.dueDate=this.dateUtils.formatDate(this.fixedDepositsChargeForm.value.dueDate,i))}this.savingsService.createSavingsCharge(this.fixedDepositAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(d.gz),t.Y36(d.F0),t.Y36(P.L),t.Y36(S.d),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-add-charge-fixed-deposits-account"]],decls:42,vars:16,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,uo,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,po,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Co,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",i.fixedDepositsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",i.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",i.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,To)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.fixedDepositsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[x.sg,x.O5,p.xw,p.SQ,p.Wh,L.ey,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,M.Nt,N.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function Zo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Premature Close Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function bo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",11),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Maturity Amount")))}function Do(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Oo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Account action")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Po(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",12),t._uU(7,"\n "),t.YNc(8,Do,2,2,"mat-option",13),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,Oo,8,9,"mat-error",7),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Action")),t.xp6(5),t.Q6J("ngForOf",e.onAccountClosureOptions),t.xp6(3),t.Q6J("ngIf",e.prematureCloseAccountForm.controls.onAccountClosureId.hasError("required"))}}function vo(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function Mo(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transfer to savings account")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function qo(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",15),t._uU(7,"\n "),t.YNc(8,vo,2,2,"mat-option",13),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,Mo,8,9,"mat-error",7),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Transfer to Savings")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(3),t.Q6J("ngIf",e.prematureCloseAccountForm.controls.toSavingsAccountId.hasError("required"))}}function yo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transfer Description")))}function Fo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"textarea",17),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Note")))}const wo=function(){return["../../"]};let Io=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isSubmitted=!1,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPrematureCloseAccountForm(),this.buildDependencies()}createPrematureCloseAccountForm(){this.prematureCloseAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required]})}buildDependencies(){this.prematureCloseAccountForm.get("closedOnDate").valueChanges.subscribe(e=>{this.isSubmitted||this.calculatePrematureAmount(e)})}calculatePrematureAmount(e){const i=this.settingsService.language.code,a=this.settingsService.dateFormat,r={closedOnDate:this.dateUtils.formatDate(e,a),dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"calculatePrematureAmount",r).subscribe(c=>{this.savingsAccountsData=c.savingsAccounts,this.onAccountClosureOptions=c.onAccountClosureOptions,this.prematureCloseAccountForm.addControl("maturityAmount",new s.p4({value:"",disabled:!0})),this.prematureCloseAccountForm.addControl("onAccountClosureId",new s.p4("",s.kI.required)),this.prematureCloseAccountForm.addControl("note",new s.p4("")),this.prematureCloseAccountForm.get("maturityAmount").patchValue(c.maturityAmount),this.addTransferDetails()})}addTransferDetails(){this.prematureCloseAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{200===e?(this.prematureCloseAccountForm.addControl("toSavingsAccountId",new s.p4("",s.kI.required)),this.prematureCloseAccountForm.addControl("transferDescription",new s.p4(""))):(this.prematureCloseAccountForm.removeControl("toSavingsAccountId"),this.prematureCloseAccountForm.removeControl("transferDescription"))})}submit(){const e=this.prematureCloseAccountForm.value;this.isSubmitted=!0;const i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.prematureCloseAccountForm.value.closedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"prematureClose",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-premature-close-fixed-deposits-account"]],decls:52,vars:23,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Zo,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.YNc(26,bo,8,3,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,Po,13,5,"mat-form-field",7),t._uU(29,"\n\n "),t.YNc(30,qo,13,5,"mat-form-field",7),t._uU(31,"\n\n "),t.YNc(32,yo,8,3,"mat-form-field",7),t._uU(33,"\n\n "),t.YNc(34,Fo,8,3,"mat-form-field",7),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-card-actions",8),t._uU(39,"\n "),t.TgZ(40,"button",9),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"button",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n "),t.qZA(),t._uU(50,"\n\n"),t.qZA(),t._uU(51,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.prematureCloseAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,16,"labels.inputs.Premature Close Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.prematureCloseAccountForm.controls.closedOnDate.hasError("required")),t.xp6(3),t.Q6J("ngIf",i.prematureCloseAccountForm.controls.maturityAmount),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("onAccountClosureId")),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("toSavingsAccountId")),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("transferDescription")),t.xp6(2),t.Q6J("ngIf",i.prematureCloseAccountForm.contains("note")),t.xp6(6),t.Q6J("routerLink",t.DdM(22,wo)),t.xp6(1),t.Oqu(t.lcZ(42,18,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.prematureCloseAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(46,20,"labels.buttons.Confirm"))}},dependencies:[x.sg,x.O5,p.xw,p.SQ,p.Wh,L.ey,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,N.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function So(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Lo(n,o){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function No(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Account action")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Yo(n,o){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function ko(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transfer to savings account")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Qo(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",16),t._uU(7,"\n "),t.YNc(8,Yo,2,2,"mat-option",10),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,ko,8,9,"mat-error",7),t._uU(12,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Transfer to Savings")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(3),t.Q6J("ngIf",e.closeOnMaturityAccountForm.controls.toSavingsAccountId.hasError("required"))}}function Jo(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",17),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transfer Description")))}const Ro=function(){return["../../"]};let jo=(()=>{class n{constructor(e,i,a,r,c,m){this.formBuilder=e,this.fixedDepositsService=i,this.dateUtils=a,this.route=r,this.router=c,this.settingsService=m,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(Z=>{this.savingsAccountsData=Z.fixedDepositsAccountActionData.savingsAccounts,this.onAccountClosureOptions=Z.fixedDepositsAccountActionData.onAccountClosureOptions,this.maturityAmount=Z.fixedDepositsAccountActionData.maturityAmount}),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseOnMaturityAccountForm(),this.addTransferDetails()}createCloseOnMaturityAccountForm(){this.closeOnMaturityAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",s.kI.required],note:[""]})}addTransferDetails(){this.closeOnMaturityAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{200===e?(this.closeOnMaturityAccountForm.addControl("toSavingsAccountId",new s.p4("",s.kI.required)),this.closeOnMaturityAccountForm.addControl("transferDescription",new s.p4(""))):(this.closeOnMaturityAccountForm.removeControl("toSavingsAccountId"),this.closeOnMaturityAccountForm.removeControl("transferDescription"))})}submit(){const e=this.closeOnMaturityAccountForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.closeOnMaturityAccountForm.value.closedOnDate,a));const c={...e,dateFormat:a,locale:i};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"close",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(P.L),t.Y36(d.gz),t.Y36(d.F0),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-close-fixed-deposits-account"]],decls:78,vars:31,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],[3,"value"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return i.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,So,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"input",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.TgZ(35,"mat-form-field"),t._uU(36,"\n "),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.TgZ(41,"mat-select",9),t._uU(42,"\n "),t.YNc(43,Lo,2,2,"mat-option",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.YNc(46,No,8,9,"mat-error",7),t._uU(47,"\n "),t.qZA(),t._uU(48,"\n\n "),t.YNc(49,Qo,13,5,"mat-form-field",7),t._uU(50,"\n\n "),t.YNc(51,Jo,8,3,"mat-form-field",7),t._uU(52,"\n\n "),t.TgZ(53,"mat-form-field"),t._uU(54,"\n "),t.TgZ(55,"mat-label"),t._uU(56),t.ALo(57,"translate"),t.qZA(),t._uU(58,"\n "),t._UZ(59,"textarea",11),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n\n "),t.qZA(),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"mat-card-actions",12),t._uU(65,"\n "),t.TgZ(66,"button",13),t._uU(67),t.ALo(68,"translate"),t.qZA(),t._uU(69,"\n "),t.TgZ(70,"button",14),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.qZA(),t._uU(74,"\n\n "),t.qZA(),t._uU(75,"\n\n "),t.qZA(),t._uU(76,"\n\n"),t.qZA(),t._uU(77,"\n")}if(2&e){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",i.closeOnMaturityAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,18,"labels.inputs.Closed On Date")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",i.closeOnMaturityAccountForm.controls.closedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,20,"labels.inputs.Maturity Amount")),t.xp6(9),t.Oqu(t.lcZ(39,22,"labels.inputs.Action")),t.xp6(5),t.Q6J("ngForOf",i.onAccountClosureOptions),t.xp6(3),t.Q6J("ngIf",i.closeOnMaturityAccountForm.controls.onAccountClosureId.hasError("required")),t.xp6(3),t.Q6J("ngIf",i.closeOnMaturityAccountForm.contains("toSavingsAccountId")),t.xp6(2),t.Q6J("ngIf",i.closeOnMaturityAccountForm.contains("transferDescription")),t.xp6(5),t.Oqu(t.lcZ(57,24,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(30,Ro)),t.xp6(1),t.Oqu(t.lcZ(68,26,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!i.closeOnMaturityAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(72,28,"labels.buttons.Confirm"))}},dependencies:[x.sg,x.O5,p.xw,p.SQ,p.Wh,L.ey,h.lW,A.a8,A.dn,A.hq,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,Y.IC,M.Nt,N.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,d.rH,g.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Eo(n,o){1&n&&t._UZ(0,"mifosx-approve-fixed-deposits-account")}function Bo(n,o){1&n&&t._UZ(0,"mifosx-reject-fixed-deposits-account")}function zo(n,o){1&n&&t._UZ(0,"mifosx-activate-fixed-deposits-account")}function $o(n,o){1&n&&t._UZ(0,"mifosx-undo-approval-fixed-deposits-account")}function Go(n,o){1&n&&t._UZ(0,"mifosx-withdraw-by-client-fixed-deposits-account")}function Ho(n,o){1&n&&t._UZ(0,"mifosx-add-charge-fixed-deposits-account")}function Wo(n,o){1&n&&t._UZ(0,"mifosx-premature-close-fixed-deposits-account")}function Vo(n,o){1&n&&t._UZ(0,"mifosx-close-fixed-deposits-account")}let Xo=(()=>{class n{constructor(e){this.route=e,this.actions={Approve:!1,Reject:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Undo Activation":!1,"Add Charge":!1,"Premature Close":!1,"Withdraw By Client":!1},this.actions[this.route.snapshot.params.name]=!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposits-account-actions"]],decls:16,vars:8,consts:[[4,"ngIf"]],template:function(e,i){1&e&&(t.YNc(0,Eo,1,0,"mifosx-approve-fixed-deposits-account",0),t._uU(1,"\n"),t.YNc(2,Bo,1,0,"mifosx-reject-fixed-deposits-account",0),t._uU(3,"\n"),t.YNc(4,zo,1,0,"mifosx-activate-fixed-deposits-account",0),t._uU(5,"\n"),t.YNc(6,$o,1,0,"mifosx-undo-approval-fixed-deposits-account",0),t._uU(7,"\n"),t.YNc(8,Go,1,0,"mifosx-withdraw-by-client-fixed-deposits-account",0),t._uU(9,"\n"),t.YNc(10,Ho,1,0,"mifosx-add-charge-fixed-deposits-account",0),t._uU(11,"\n"),t.YNc(12,Wo,1,0,"mifosx-premature-close-fixed-deposits-account",0),t._uU(13,"\n"),t.YNc(14,Vo,1,0,"mifosx-close-fixed-deposits-account",0),t._uU(15,"\n")),2&e&&(t.Q6J("ngIf",i.actions.Approve),t.xp6(2),t.Q6J("ngIf",i.actions.Reject),t.xp6(2),t.Q6J("ngIf",i.actions.Activate),t.xp6(2),t.Q6J("ngIf",i.actions["Undo Approval"]||i.actions["Undo Activation"]),t.xp6(2),t.Q6J("ngIf",i.actions["Withdraw By Client"]),t.xp6(2),t.Q6J("ngIf",i.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",i.actions["Premature Close"]),t.xp6(2),t.Q6J("ngIf",i.actions.Close))},dependencies:[x.O5,Ve,to,oo,ao,ro,Uo,Io,jo]}),n})();var Ko=l(29243);function ti(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",13),t._uU(3,"Undo\n "),t.qZA()}}function ni(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,ti,4,0,"button",11),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function ei(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Note"),"\n "))}function oi(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("\n ",e.transactionData.note,"\n ")}}function ii(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Payment Type"),"\n "))}function ai(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.paymentType.name,"\n ")}}function ci(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Account No"),".\n "))}function si(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.accountNumber,"\n ")}}function ri(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Cheque Number"),"\n "))}function ui(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.checkNumber,"\n ")}}function pi(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Routing Code"),"\n "))}function li(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.routingCode,"\n ")}}function di(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Receipt No"),".\n "))}function _i(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.receiptNumber,"\n ")}}function mi(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Bank No"),".\n "))}function gi(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("\n ",e.transactionData.paymentDetailData.bankNumber,"\n ")}}function fi(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n\n "),t.YNc(2,ii,3,3,"div",7),t._uU(3,"\n\n "),t.YNc(4,ai,2,1,"div",8),t._uU(5,"\n\n "),t.YNc(6,ci,3,3,"div",7),t._uU(7,"\n\n "),t.YNc(8,si,2,1,"div",8),t._uU(9,"\n\n "),t.YNc(10,ri,3,3,"div",7),t._uU(11,"\n\n "),t.YNc(12,ui,2,1,"div",8),t._uU(13,"\n\n "),t.YNc(14,pi,3,3,"div",7),t._uU(15,"\n\n "),t.YNc(16,li,2,1,"div",8),t._uU(17,"\n\n "),t.YNc(18,di,3,3,"div",7),t._uU(19,"\n\n "),t.YNc(20,_i,2,1,"div",8),t._uU(21,"\n\n "),t.YNc(22,mi,3,3,"div",7),t._uU(23,"\n\n "),t.YNc(24,gi,2,1,"div",8),t._uU(25,"\n\n "),t.BQk()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.bankNumber),t.xp6(2),t.Q6J("ngIf",e.transactionData.paymentDetailData.bankNumber)}}const xi=function(){return["../"]};let hi=(()=>{class n{constructor(e,i,a,r,c,m){this.savingsService=e,this.route=i,this.dateUtils=a,this.router=r,this.dialog=c,this.settingsService=m,this.route.data.subscribe(Z=>{this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId,this.transactionData=Z.fixedDepositsAccountTransaction})}transactionColor(){return this.transactionData.manuallyReversed?"undo":"active"}allowUndo(){return!1}undoTransaction(){this.dialog.open(Ko.z).afterClosed().subscribe(i=>{if(i.confirm){const a=this.settingsService.language.code,r=this.settingsService.dateFormat,c={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),r),transactionAmount:0,dateFormat:r,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",c,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.d),t.Y36(d.gz),t.Y36(P.L),t.Y36(d.F0),t.Y36(_.uw),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-transaction"]],decls:70,vars:37,consts:[["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","100%",3,"ngClass"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxFlex","50%","class","mat-body-strong",4,"ngIf"],["fxFlex","50%",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,ni,4,1,"span",1),t._uU(3,"\n"),t.qZA(),t._uU(4,"\n"),t.TgZ(5,"div",2),t._uU(6,"\n\n "),t.TgZ(7,"mat-card"),t._uU(8,"\n\n "),t.TgZ(9,"mat-card-content"),t._uU(10,"\n\n "),t.TgZ(11,"div",3),t._uU(12,"\n "),t.TgZ(13,"div",4),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",6),t._uU(21),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"div",5),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"div",6),t._uU(28),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",6),t._uU(35),t.ALo(36,"dateFormat"),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"div",5),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"div",6),t._uU(43),t.qZA(),t._uU(44,"\n\n "),t.TgZ(45,"div",5),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n\n "),t.TgZ(49,"div",6),t._uU(50),t.ALo(51,"currency"),t.qZA(),t._uU(52,"\n\n "),t.YNc(53,ei,3,3,"div",7),t._uU(54,"\n\n "),t.YNc(55,oi,2,1,"div",8),t._uU(56,"\n\n "),t.YNc(57,fi,26,12,"ng-container",1),t._uU(58,"\n\n "),t.qZA(),t._uU(59,"\n\n "),t.TgZ(60,"div",9),t._uU(61,"\n "),t.TgZ(62,"button",10),t._uU(63),t.ALo(64,"translate"),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.qZA(),t._uU(68,"\n\n"),t.qZA(),t._uU(69,"\n")),2&e&&(t.xp6(2),t.Q6J("ngIf",i.allowUndo()),t.xp6(11),t.Q6J("ngClass",i.transactionColor()),t.xp6(4),t.hij("\n ",t.lcZ(18,17,"labels.inputs.Transaction Id"),"\n "),t.xp6(4),t.hij("\n ",i.transactionData.id,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(25,19,"labels.inputs.Type"),"\n "),t.xp6(4),t.hij("\n ",i.transactionData.transactionType.value,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(32,21,"labels.inputs.Transaction Date"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(36,23,i.transactionData.date),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(40,25,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",i.transactionData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(47,27,"labels.inputs.Amount"),"\n "),t.xp6(4),t.hij("\n ",t.gM2(51,29,i.transactionData.amount,i.transactionData.currency.code,"symbol-narrow","1.2-2"),"\n "),t.xp6(3),t.Q6J("ngIf",i.transactionData.note),t.xp6(2),t.Q6J("ngIf",i.transactionData.note),t.xp6(2),t.Q6J("ngIf",i.transactionData.paymentDetailData),t.xp6(5),t.Q6J("routerLink",t.DdM(36,xi)),t.xp6(1),t.Oqu(t.lcZ(64,34,"Back")))},dependencies:[x.mk,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.yH,K.oO,h.lW,A.a8,A.dn,z.A,d.rH,x.H9,g.X$,I.E],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#0f36e4}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#0f36e4b3;border:1px solid #091f84;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#0f36e4}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#00ce00}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.transaction-relation[_ngcontent-%COMP%]{background-color:#d7dada}.active[_ngcontent-%COMP%]{background-color:#00ce00;height:4px}.linked[_ngcontent-%COMP%]{background-color:#0f36e4;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]}),n})();var U=l(58425);function Ai(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ci(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.TgZ(13,"mat-error"),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.TgZ(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),i=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.inputs.Submitted On")),t.xp6(3),t.Q6J("min",i.minDate)("max",i.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(6),t.AsE("\n ",t.lcZ(15,10,"labels.inputs.Submission Date")," ",t.lcZ(16,12,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(19,14,"labels.commons.required"))}}function Ti(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function Ui(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",17),t._uU(7,"\n "),t.YNc(8,Ti,2,2,"mat-option",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Field Officer")),t.xp6(5),t.Q6J("ngForOf",e.fieldOfficerData)}}function Zi(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",18),t.ALo(7,"translate"),t._uU(8,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.External id")),t.xp6(3),t.s9C("matTooltip",t.lcZ(7,4,"tooltips.Provides an external id")))}let G=(()=>{class n{constructor(e,i,a){this.formBuilder=e,this.fixedDepositsService=i,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.fixedDepositsAccountProductTemplate=new t.vpe,this.createFixedDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.fixedDepositsAccountTemplate&&(this.productData=this.fixedDepositsAccountTemplate.productOptions,this.fixedDepositsAccountTemplate.depositProductId&&this.fixedDepositAccountDetailsForm.patchValue({productId:this.fixedDepositsAccountTemplate.depositProductId,submittedOnDate:this.fixedDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.fixedDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.fixedDepositsAccountTemplate.externalId||""}))}createFixedDepositsAccountDetailsForm(){this.fixedDepositAccountDetailsForm=this.formBuilder.group({productId:["",s.kI.required],submittedOnDate:["",s.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const e=this.fixedDepositsAccountTemplate.clientId;this.fixedDepositAccountDetailsForm.get("productId").valueChanges.subscribe(i=>{this.fixedDepositsService.getFixedDepositsAccountTemplate(e,i).subscribe(a=>{this.fixedDepositsAccountProductTemplate.emit(a),this.isProductSelected=!0,this.fieldOfficerData=a.fieldOfficerOptions,!this.isFieldOfficerPatched&&this.fixedDepositsAccountTemplate.fieldOfficerId?(this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.fixedDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get fixedDepositAccountDetails(){const e=this.fixedDepositAccountDetailsForm.value;for(const i in e)""===e[i]&&delete e[i];return e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(b),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-details-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate"},outputs:{fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},decls:48,vars:23,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,Ai,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,Ci,22,16,"mat-form-field",5),t._uU(26,"\n\n "),t.YNc(27,Ui,11,4,"mat-form-field",6),t._uU(28,"\n\n "),t.YNc(29,Zi,9,6,"mat-form-field",6),t._uU(30,"\n\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",7),t._uU(33,"\n "),t.TgZ(34,"button",8),t._uU(35,"\n "),t._UZ(36,"fa-icon",9),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"button",10),t._uU(41),t.ALo(42,"translate"),t._UZ(43,"fa-icon",11),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n"),t.qZA(),t._uU(47,"\n")),2&e&&(t.Q6J("formGroup",i.fixedDepositAccountDetailsForm),t.xp6(7),t.Oqu(t.lcZ(8,11,"labels.inputs.Product Name")),t.xp6(5),t.Q6J("ngForOf",i.productData),t.xp6(4),t.AsE("\n ",t.lcZ(17,13,"labels.inputs.Product Name")," ",t.lcZ(18,15,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,17,"labels.commons.required")),t.xp6(5),t.Q6J("ngIf",i.isProductSelected),t.xp6(2),t.Q6J("ngIf",i.isProductSelected),t.xp6(2),t.Q6J("ngIf",i.isProductSelected),t.xp6(8),t.hij("\n ",t.lcZ(38,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(42,21,"labels.buttons.Next"),"\n "))},dependencies:[x.sg,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.yH,L.ey,h.lW,C.Mq,C.hl,C.nW,f.TO,f.KE,f.hX,f.R9,M.Nt,N.gD,U.Ic,U.fd,J.gM,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,g.X$],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var nt=l(44850);function bi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Di(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Oi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Pi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function vi(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}let H=(()=>{class n{constructor(e,i){this.formBuilder=e,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createFixedDepositsAccountTermsForm()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&this.setOptions()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate.id&&this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountTemplate.depositAmount,depositPeriod:this.fixedDepositsAccountTemplate.depositPeriod,depositPeriodFrequencyId:this.fixedDepositsAccountTemplate.depositPeriodFrequency.id})}createFixedDepositsAccountTermsForm(){this.fixedDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",s.kI.required],interestPostingPeriodType:["",s.kI.required],interestCalculationType:["",s.kI.required],interestCalculationDaysInYearType:["",s.kI.required],depositAmount:["",s.kI.required],depositPeriod:["",s.kI.required],depositPeriodFrequencyId:["",s.kI.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.fixedDepositsAccountTemplate.id||this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountProductTemplate.depositAmount,depositPeriod:this.fixedDepositsAccountProductTemplate.minDepositTerm,depositPeriodFrequencyId:this.fixedDepositsAccountProductTemplate.minDepositTermType.id})}get fixedDepositAccountTerms(){const e=this.fixedDepositAccountTermsForm.value;for(const i in e)""===e[i]&&delete e[i];return e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-terms-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[t.TTD],decls:166,vars:96,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["type","number","matInput","","formControlName","depositAmount","required",""],["fxFlex","48%","fxHide.lt-md",""],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","98%"],["formControlName","interestCompoundingPeriodType","required",""],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t._UZ(10,"input",3),t._uU(11,"\n "),t.TgZ(12,"mat-error"),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.TgZ(16,"strong"),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t._UZ(22,"span",4),t._uU(23,"\n\n "),t.TgZ(24,"mat-form-field",2),t._uU(25,"\n "),t.TgZ(26,"mat-label"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t._UZ(30,"input",5),t._uU(31,"\n "),t.TgZ(32,"mat-error"),t._uU(33),t.ALo(34,"translate"),t.ALo(35,"translate"),t.TgZ(36,"strong"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"mat-form-field",2),t._uU(43,"\n "),t.TgZ(44,"mat-label"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"mat-select",6),t._uU(49,"\n "),t.YNc(50,bi,2,2,"mat-option",7),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"mat-error"),t._uU(54),t.ALo(55,"translate"),t.ALo(56,"translate"),t.TgZ(57,"strong"),t._uU(58),t.ALo(59,"translate"),t.qZA(),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n\n "),t._UZ(63,"mat-divider",8),t._uU(64,"\n\n "),t.TgZ(65,"mat-form-field",2),t._uU(66,"\n "),t.TgZ(67,"mat-label"),t._uU(68),t.ALo(69,"translate"),t.qZA(),t._uU(70,"\n "),t.TgZ(71,"mat-select",9),t._uU(72,"\n "),t.YNc(73,Di,2,2,"mat-option",7),t._uU(74,"\n "),t.qZA(),t._uU(75,"\n "),t.TgZ(76,"mat-error"),t._uU(77),t.ALo(78,"translate"),t.ALo(79,"translate"),t.TgZ(80,"strong"),t._uU(81),t.ALo(82,"translate"),t.qZA(),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n "),t.qZA(),t._uU(85,"\n\n "),t.TgZ(86,"mat-form-field",2),t._uU(87,"\n "),t.TgZ(88,"mat-label"),t._uU(89),t.ALo(90,"translate"),t.qZA(),t._uU(91,"\n "),t.TgZ(92,"mat-select",10),t._uU(93,"\n "),t.YNc(94,Oi,2,2,"mat-option",7),t._uU(95,"\n "),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"mat-error"),t._uU(98),t.ALo(99,"translate"),t.ALo(100,"translate"),t.TgZ(101,"strong"),t._uU(102),t.ALo(103,"translate"),t.qZA(),t._uU(104,"\n "),t.qZA(),t._uU(105,"\n "),t.qZA(),t._uU(106,"\n\n "),t.TgZ(107,"mat-form-field",2),t._uU(108,"\n "),t.TgZ(109,"mat-label"),t._uU(110),t.ALo(111,"translate"),t.qZA(),t._uU(112,"\n "),t.TgZ(113,"mat-select",11),t._uU(114,"\n "),t.YNc(115,Pi,2,2,"mat-option",7),t._uU(116,"\n "),t.qZA(),t._uU(117,"\n "),t.TgZ(118,"mat-error"),t._uU(119),t.ALo(120,"translate"),t.ALo(121,"translate"),t.TgZ(122,"strong"),t._uU(123),t.ALo(124,"translate"),t.qZA(),t._uU(125,"\n "),t.qZA(),t._uU(126,"\n "),t.qZA(),t._uU(127,"\n\n "),t.TgZ(128,"mat-form-field",2),t._uU(129,"\n "),t.TgZ(130,"mat-label"),t._uU(131),t.ALo(132,"translate"),t.qZA(),t._uU(133,"\n "),t.TgZ(134,"mat-select",12),t._uU(135,"\n "),t.YNc(136,vi,2,2,"mat-option",7),t._uU(137,"\n "),t.qZA(),t._uU(138,"\n "),t.TgZ(139,"mat-error"),t._uU(140),t.ALo(141,"translate"),t.ALo(142,"translate"),t.TgZ(143,"strong"),t._uU(144),t.ALo(145,"translate"),t.qZA(),t._uU(146,"\n "),t.qZA(),t._uU(147,"\n "),t.qZA(),t._uU(148,"\n\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"div",13),t._uU(151,"\n "),t.TgZ(152,"button",14),t._uU(153,"\n "),t._UZ(154,"fa-icon",15),t._uU(155),t.ALo(156,"translate"),t.qZA(),t._uU(157,"\n "),t.TgZ(158,"button",16),t._uU(159),t.ALo(160,"translate"),t._UZ(161,"fa-icon",17),t._uU(162,"\n "),t.qZA(),t._uU(163,"\n "),t.qZA(),t._uU(164,"\n\n"),t.qZA(),t._uU(165,"\n")),2&e&&(t.Q6J("formGroup",i.fixedDepositAccountTermsForm),t.xp6(7),t.Oqu(t.lcZ(8,36,"labels.inputs.Deposit Amount")),t.xp6(6),t.AsE("\n ",t.lcZ(14,38,"labels.inputs.Fixed Deposit Amount")," ",t.lcZ(15,40,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(18,42,"labels.commons.required")),t.xp6(10),t.Oqu(t.lcZ(28,44,"labels.inputs.Deposit Period")),t.xp6(6),t.AsE("\n ",t.lcZ(34,46,"labels.inputs.Deposit Period")," ",t.lcZ(35,48,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(38,50,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(46,52,"labels.inputs.Deposit Period Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(55,54,"labels.inputs.Deposit Period Type")," ",t.lcZ(56,56,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(59,58,"labels.commons.required")),t.xp6(10),t.Oqu(t.lcZ(69,60,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Q6J("ngForOf",i.interestCompoundingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(78,62,"labels.inputs.Interest Compounding Period")," ",t.lcZ(79,64,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(82,66,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(90,68,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Q6J("ngForOf",i.interestPostingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(99,70,"labels.inputs.Interest Posting Period")," ",t.lcZ(100,72,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(103,74,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(111,76,"labels.inputs.Interest Calculated using")),t.xp6(5),t.Q6J("ngForOf",i.interestCalculationTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(120,78,"labels.inputs.Interest Calculated using")," ",t.lcZ(121,80,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(124,82,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(132,84,"labels.inputs.Days in Year")),t.xp6(5),t.Q6J("ngForOf",i.interestCalculationDaysInYearTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(141,86,"labels.inputs.Days in Year")," ",t.lcZ(142,88,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(145,90,"labels.commons.required")),t.xp6(11),t.hij("\n ",t.lcZ(156,92,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(160,94,"labels.buttons.Next"),"\n "))},dependencies:[x.sg,v.BN,p.xw,p.SQ,p.Wh,p.yH,K.b8,L.ey,h.lW,nt.d,f.TO,f.KE,f.hX,M.Nt,N.gD,U.Ic,U.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,g.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();function Mi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function qi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function yi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Fi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function wi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function Ii(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",29),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",30),t._uU(7,"\n "),t.YNc(8,wi,2,2,"mat-option",6),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.TgZ(11,"mat-error"),t._uU(12),t.ALo(13,"translate"),t.ALo(14,"translate"),t.TgZ(15,"strong"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"labels.inputs.Linked Savings Account")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(4),t.AsE("\n ",t.lcZ(13,7,"labels.inputs.Linked Savings Account")," ",t.lcZ(14,9,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(17,11,"labels.commons.required"))}}function Si(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Li(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.accountNo,"\n ")}}function Ni(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",29),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",31),t._uU(7,"\n "),t.YNc(8,Li,2,2,"mat-option",6),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.TgZ(11,"mat-error"),t._uU(12),t.ALo(13,"translate"),t.ALo(14,"translate"),t.TgZ(15,"strong"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"labels.inputs.Transfer to savings account")),t.xp6(5),t.Q6J("ngForOf",e.savingsAccountsData),t.xp6(4),t.AsE("\n ",t.lcZ(13,7,"labels.inputs.Transfer to savings account")," ",t.lcZ(14,9,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(17,11,"labels.commons.required"))}}function Yi(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ki(n,o){1&n&&(t.TgZ(0,"mat-form-field",34),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",35),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Tax Group")))}function Qi(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n\n "),t._UZ(2,"mat-divider",13),t._uU(3,"\n\n "),t.TgZ(4,"mat-checkbox",32),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n\n "),t.YNc(8,ki,8,3,"mat-form-field",33),t._uU(9,"\n\n "),t.BQk()),2&n){const e=t.oxw();t.xp6(5),t.hij("\n ",t.lcZ(6,2,"labels.inputs.Is Withhold Tax Applicable"),"?\n "),t.xp6(3),t.Q6J("ngIf",e.fixedDepositAccountSettingsForm.controls.taxGroupId)}}let W=(()=>{class n{constructor(e,i){this.formBuilder=e,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createFixedDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.fixedDepositAccountSettingsForm.patchValue({minDepositTerm:this.fixedDepositsAccountProductTemplate.minDepositTerm,minDepositTermTypeId:this.fixedDepositsAccountProductTemplate.minDepositTermType?this.fixedDepositsAccountProductTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType?this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.id:"",maxDepositTerm:this.fixedDepositsAccountProductTemplate.maxDepositTerm,maxDepositTermTypeId:this.fixedDepositsAccountProductTemplate.maxDepositTermType?this.fixedDepositsAccountProductTemplate.maxDepositTermType.id:"",preClosurePenalApplicable:this.fixedDepositsAccountProductTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.fixedDepositsAccountProductTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType?this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id:"",maturityInstructionId:this.fixedDepositsAccountProductTemplate.maturityInstructionId}),this.fixedDepositsAccountProductTemplate.withHoldTax?(this.fixedDepositAccountSettingsForm.addControl("withHoldTax",new s.p4(!1)),this.fixedDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("taxGroupId",new s.p4({value:"",disabled:!0})),this.fixedDepositAccountSettingsForm.get("taxGroupId").patchValue(this.fixedDepositsAccountProductTemplate.taxGroup&&this.fixedDepositsAccountProductTemplate.taxGroup.name)):this.fixedDepositAccountSettingsForm.removeControl("taxGroupId")}),this.fixedDepositAccountSettingsForm.get("withHoldTax").patchValue(this.fixedDepositsAccountTemplate.withHoldTax)):this.fixedDepositAccountSettingsForm.removeControl("withHoldTax"),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate&&this.fixedDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.fixedDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType&&this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType.id,transferInterestToSavings:this.fixedDepositsAccountTemplate.transferInterestToSavings})}createFixedDepositAccountSettingsForm(){this.fixedDepositAccountSettingsForm=this.formBuilder.group({lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],transferInterestToSavings:[!1],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],maturityInstructionId:[""]})}buildDependencies(){this.fixedDepositAccountSettingsForm.get("transferInterestToSavings").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("linkAccountId",new s.p4("",s.kI.required)),this.fixedDepositAccountSettingsForm.get("linkAccountId").patchValue(this.fixedDepositsAccountTemplate.linkedAccount&&this.fixedDepositsAccountTemplate.linkedAccount.id)):this.fixedDepositAccountSettingsForm.removeControl("linkAccountId")}),this.fixedDepositAccountSettingsForm.get("maturityInstructionId").valueChanges.subscribe(e=>{e>100?(this.fixedDepositAccountSettingsForm.addControl("transferToSavingsId",new s.p4("",s.kI.required)),this.fixedDepositAccountSettingsForm.get("transferToSavingsId").patchValue(this.fixedDepositsAccountTemplate.transferToSavingsId&&this.fixedDepositsAccountTemplate.transferToSavingsId.id)):this.fixedDepositAccountSettingsForm.removeControl("transferToSavingsId")})}setOptions(){this.lockinPeriodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.savingsAccountsData=this.fixedDepositsAccountProductTemplate.savingsAccounts,this.preClosurePenalInterestOnTypeData=this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnTypeOptions,this.maturityInstructionOptions=this.fixedDepositsAccountProductTemplate.maturityInstructionOptions}get fixedDepositAccountSettings(){const e=this.fixedDepositAccountSettingsForm.getRawValue();for(const i in e)(""===e[i]||"taxGroupId"===i)&&delete e[i];return e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-settings-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[t.TTD],decls:200,vars:91,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","98%",1,"mat-h4"],["fxFlex","48%"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value",4,"ngFor","ngForOf"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],["fxFlex","98%"],["fxFlex","23%",1,"mat-h3"],["fxFlex","32%","labelPosition","before","formControlName","transferInterestToSavings",1,"margin-b"],["fxFlex","48%","class","margin-b",4,"ngIf"],["formControlName","maturityInstructionId"],["fxFlex","23%",1,"mat-h4"],["fxFlex","73%","labelPosition","before","formControlName","preClosurePenalApplicable",1,"margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",1,"margin-b"],["formControlName","linkAccountId","required",""],["formControlName","transferToSavingsId","required",""],["fxFlex","48%","labelPosition","before","formControlName","withHoldTax",1,"margin-p"],["fxFlex","48%","class","p-b-25",4,"ngIf"],["fxFlex","48%",1,"p-b-25"],["matInput","","formControlName","taxGroupId"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"h4",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",4),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"mat-form-field",3),t._uU(18,"\n "),t.TgZ(19,"mat-label"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.TgZ(23,"mat-select",5),t._uU(24,"\n "),t.YNc(25,Mi,2,2,"mat-option",6),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"h4",2),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n\n "),t.TgZ(33,"mat-form-field",3),t._uU(34,"\n "),t.TgZ(35,"mat-label"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38,"\n "),t._UZ(39,"input",7),t._uU(40,"\n "),t.TgZ(41,"mat-error"),t._uU(42),t.ALo(43,"translate"),t.ALo(44,"translate"),t.TgZ(45,"strong"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.TgZ(51,"mat-form-field",3),t._uU(52,"\n "),t.TgZ(53,"mat-label"),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"mat-select",8),t._uU(58,"\n "),t.YNc(59,qi,2,2,"mat-option",6),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.TgZ(62,"mat-error"),t._uU(63),t.ALo(64,"translate"),t.ALo(65,"translate"),t.TgZ(66,"strong"),t._uU(67),t.ALo(68,"translate"),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.TgZ(72,"h4",2),t._uU(73),t.ALo(74,"translate"),t.qZA(),t._uU(75,"\n\n "),t.TgZ(76,"mat-form-field",3),t._uU(77,"\n "),t.TgZ(78,"mat-label"),t._uU(79),t.ALo(80,"translate"),t.qZA(),t._uU(81,"\n "),t._UZ(82,"input",9),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n\n "),t.TgZ(85,"mat-form-field",3),t._uU(86,"\n "),t.TgZ(87,"mat-label"),t._uU(88),t.ALo(89,"translate"),t.qZA(),t._uU(90,"\n "),t.TgZ(91,"mat-select",10),t._uU(92,"\n "),t.YNc(93,yi,2,2,"mat-option",6),t._uU(94,"\n "),t.qZA(),t._uU(95,"\n "),t.qZA(),t._uU(96,"\n\n "),t.TgZ(97,"h4",2),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n\n "),t.TgZ(101,"mat-form-field",3),t._uU(102,"\n "),t.TgZ(103,"mat-label"),t._uU(104),t.ALo(105,"translate"),t.qZA(),t._uU(106,"\n "),t._UZ(107,"input",11),t._uU(108,"\n "),t.qZA(),t._uU(109,"\n\n "),t.TgZ(110,"mat-form-field",3),t._uU(111,"\n "),t.TgZ(112,"mat-label"),t._uU(113),t.ALo(114,"translate"),t.qZA(),t._uU(115,"\n "),t.TgZ(116,"mat-select",12),t._uU(117,"\n "),t.YNc(118,Fi,2,2,"mat-option",6),t._uU(119,"\n "),t.qZA(),t._uU(120,"\n "),t.qZA(),t._uU(121,"\n\n "),t._UZ(122,"mat-divider",13),t._uU(123,"\n\n "),t.TgZ(124,"h3",14),t._uU(125),t.ALo(126,"translate"),t.qZA(),t._uU(127,"\n\n "),t.TgZ(128,"mat-checkbox",15),t._uU(129),t.ALo(130,"translate"),t.qZA(),t._uU(131,"\n\n "),t.YNc(132,Ii,20,13,"mat-form-field",16),t._uU(133,"\n\n "),t._UZ(134,"mat-divider",13),t._uU(135,"\n\n "),t.TgZ(136,"mat-form-field",3),t._uU(137,"\n "),t.TgZ(138,"mat-label"),t._uU(139),t.ALo(140,"translate"),t.qZA(),t._uU(141,"\n "),t.TgZ(142,"mat-select",17),t._uU(143,"\n "),t.YNc(144,Si,2,2,"mat-option",6),t._uU(145,"\n "),t.qZA(),t._uU(146,"\n "),t.qZA(),t._uU(147,"\n\n "),t.YNc(148,Ni,20,13,"mat-form-field",16),t._uU(149,"\n\n "),t._UZ(150,"mat-divider",13),t._uU(151,"\n\n "),t.TgZ(152,"h4",18),t._uU(153),t.ALo(154,"translate"),t.qZA(),t._uU(155,"\n\n "),t.TgZ(156,"mat-checkbox",19),t._uU(157),t.ALo(158,"translate"),t.qZA(),t._uU(159,"\n\n "),t.TgZ(160,"mat-form-field",3),t._uU(161,"\n "),t.TgZ(162,"mat-label"),t._uU(163),t.ALo(164,"translate"),t.qZA(),t._uU(165,"\n "),t._UZ(166,"input",20),t._uU(167,"\n "),t.qZA(),t._uU(168,"\n\n "),t.TgZ(169,"mat-form-field",3),t._uU(170,"\n "),t.TgZ(171,"mat-label"),t._uU(172),t.ALo(173,"translate"),t.qZA(),t._uU(174,"\n "),t.TgZ(175,"mat-select",21),t._uU(176,"\n "),t.YNc(177,Yi,2,2,"mat-option",6),t._uU(178,"\n "),t.qZA(),t._uU(179,"\n "),t.qZA(),t._uU(180,"\n\n "),t.YNc(181,Qi,10,4,"ng-container",22),t._uU(182,"\n\n "),t.qZA(),t._uU(183,"\n\n "),t.TgZ(184,"div",23),t._uU(185,"\n "),t.TgZ(186,"button",24),t._uU(187,"\n "),t._UZ(188,"fa-icon",25),t._uU(189),t.ALo(190,"translate"),t.qZA(),t._uU(191,"\n "),t.TgZ(192,"button",26),t._uU(193),t.ALo(194,"translate"),t._UZ(195,"fa-icon",27),t._uU(196,"\n "),t.qZA(),t._uU(197,"\n "),t.qZA(),t._uU(198,"\n\n"),t.qZA(),t._uU(199,"\n")),2&e&&(t.Q6J("formGroup",i.fixedDepositAccountSettingsForm),t.xp6(5),t.Oqu(t.lcZ(6,37,"labels.heading.Lock-in Period")),t.xp6(6),t.Oqu(t.lcZ(12,39,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(21,41,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",i.lockinPeriodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(31,43,"labels.heading.Minimum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(37,45,"labels.inputs.Frequency")),t.xp6(6),t.AsE("\n ",t.lcZ(43,47,"labels.inputs.Minimum Deposit Term Frequency")," ",t.lcZ(44,49,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(47,51,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(55,53,"labels.inputs.Frequency Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(64,55,"labels.inputs.Minimum Deposit Term Frequency Type")," ",t.lcZ(65,57,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(68,59,"labels.commons.required")),t.xp6(6),t.Oqu(t.lcZ(74,61,"labels.heading.And thereafter, in Multiples of")),t.xp6(6),t.Oqu(t.lcZ(80,63,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(89,65,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(99,67,"labels.heading.Maximum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(105,69,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(114,71,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",i.periodFrequencyTypeData),t.xp6(7),t.Oqu(t.lcZ(126,73,"labels.heading.Interest Transfer")),t.xp6(4),t.hij("\n ",t.lcZ(130,75,"labels.inputs.Transfer Interest to Linked Savings Account"),"?\n "),t.xp6(3),t.Q6J("ngIf",i.fixedDepositAccountSettingsForm.contains("linkAccountId")),t.xp6(7),t.Oqu(t.lcZ(140,77,"labels.inputs.Maturity Instructions")),t.xp6(5),t.Q6J("ngForOf",i.maturityInstructionOptions),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountSettingsForm.contains("transferToSavingsId")),t.xp6(5),t.Oqu(t.lcZ(154,79,"labels.heading.For Pre-mature closure")),t.xp6(4),t.hij("\n ",t.lcZ(158,81,"labels.inputs.Apply Penal Interest (less)"),"\n "),t.xp6(6),t.hij("",t.lcZ(164,83,"labels.inputs.Penal Interest")," (%)"),t.xp6(9),t.Oqu(t.lcZ(173,85,"labels.inputs.Period")),t.xp6(5),t.Q6J("ngForOf",i.preClosurePenalInterestOnTypeData),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountSettingsForm.controls.withHoldTax),t.xp6(8),t.hij("\n ",t.lcZ(190,87,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(194,89,"labels.buttons.Next"),"\n "))},dependencies:[x.sg,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.yH,L.ey,h.lW,at.oG,nt.d,f.TO,f.KE,f.hX,M.Nt,N.gD,U.Ic,U.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,g.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-p[_ngcontent-%COMP%]{margin-top:1.7em}"]}),n})();function Ji(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ri(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function ji(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Ei(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Bi(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function zi(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function $i(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",26),t._uU(1),t.TgZ(2,"button",27),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.editChargeAmount(r))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",28),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function Gi(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Hi(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function Wi(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function Vi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned*","\n ")}}const Xi=function(){return[2e3]};function Ki(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",e.feeOnMonthDay?t.xi3(2,1,t.DdM(4,Xi).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned","\n ")}}function ta(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function na(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,r=t.oxw();return t.KtG(r.editChargeDate(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function ea(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1,"\n "),t.YNc(2,Vi,3,3,"span",29),t._uU(3,"\n "),t.YNc(4,Ki,3,5,"span",29),t._uU(5,"\n "),t.YNc(6,ta,3,3,"span",29),t._uU(7,"\n "),t.YNc(8,na,4,0,"button",30),t._uU(9,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value)}}function oa(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function ia(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,r=t.oxw();return t.KtG(r.editChargeFeeInterval(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function aa(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,ia,4,0,"button",30),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n "),t.xp6(1),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value)}}function ca(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function sa(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",26),t._uU(1,"\n "),t.TgZ(2,"button",31),t.NdJ("click",function(){const r=t.CHM(e).$implicit,c=t.oxw();return t.KtG(c.deleteCharge(r))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",32),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function ra(n,o){1&n&&t._UZ(0,"tr",33)}function ua(n,o){1&n&&t._UZ(0,"tr",34)}let V=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dateUtils=i,this.settingsService=a,this.currency=null,this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.isChargesPatched=!1,this.pristine=!0}ngOnInit(){this.chargesDataSource=[],this.fixedDepositsAccountTemplate.id&&this.fixedDepositsAccountTemplate.charges&&(this.chargesDataSource=this.fixedDepositsAccountTemplate.charges.map(e=>({...e,id:e.chargeId}))||[])}ngOnChanges(){null==this.currency&&(this.fixedDepositsAccountTemplate.currency?this.currency=this.fixedDepositsAccountTemplate.currency:this.fixedDepositsAccountProductTemplate&&this.fixedDepositsAccountProductTemplate.currency&&(this.currency=this.fixedDepositsAccountProductTemplate.currency)),this.fixedDepositsAccountProductTemplate&&(this.chargeData=this.fixedDepositsAccountProductTemplate.chargeOptions.filter(e=>e.currency.code===this.currency.code))}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){const i=[new $.M({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})];this.dialog.open(R.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const m={...e,amount:c.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,m),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){const i=[new ct.d({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(R.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){let m;const k=this.dateUtils.formatDate(c.data.value.date,this.settingsService.dateFormat);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":m={...e,dueDate:k};break;case"Annual Fee":m={...e,feeOnMonthDay:k}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,m),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){const i=[new $.M({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})];this.dialog.open(R.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:i}}).afterClosed().subscribe(c=>{if(c.data){const m={...e,feeInterval:c.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,m),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get fixedDepositAccountCharges(){return{charges:this.chargesDataSource}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_.uw),t.Y36(P.L),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-charges-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountFormValid:"fixedDepositAccountFormValid"},features:[t.TTD],decls:96,vars:19,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-select",null,2),t._uU(10,"\n "),t.YNc(11,Ji,2,2,"mat-option",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",4),t._uU(16,"\n "),t.TgZ(17,"button",5),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(9);return t.KtG(i.addCharge(c))}),t._uU(18,"\n "),t._UZ(19,"fa-icon",6),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"table",7),t._uU(25,"\n\n "),t.ynx(26,8),t._uU(27,"\n "),t.YNc(28,Ri,3,3,"th",9),t._uU(29,"\n "),t.YNc(30,ji,2,1,"td",10),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,Ei,3,3,"th",9),t._uU(36,"\n "),t.YNc(37,Bi,2,1,"td",10),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,zi,3,3,"th",9),t._uU(43,"\n "),t.YNc(44,$i,7,1,"td",10),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,Gi,3,3,"th",9),t._uU(50,"\n "),t.YNc(51,Hi,2,1,"td",10),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,Wi,3,3,"th",9),t._uU(57,"\n "),t.YNc(58,ea,10,4,"td",10),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,oa,3,3,"th",9),t._uU(64,"\n "),t.YNc(65,aa,4,2,"td",10),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,ca,3,3,"th",9),t._uU(71,"\n "),t.YNc(72,sa,7,0,"td",10),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.YNc(75,ra,1,0,"tr",17),t._uU(76,"\n "),t.YNc(77,ua,1,0,"tr",18),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n"),t.qZA(),t._uU(80,"\n\n"),t.TgZ(81,"div",19),t._uU(82,"\n "),t.TgZ(83,"button",20),t._uU(84,"\n "),t._UZ(85,"fa-icon",21),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"button",22),t._uU(90),t.ALo(91,"translate"),t._UZ(92,"fa-icon",23),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n"),t.qZA(),t._uU(95,"\n")}if(2&e){const a=t.MAs(9);t.xp6(5),t.Oqu(t.lcZ(6,11,"labels.inputs.Charge")),t.xp6(6),t.Q6J("ngForOf",i.chargeData),t.xp6(6),t.Q6J("disabled",!a.value),t.xp6(3),t.hij("\n ",t.lcZ(21,13,"labels.buttons.Add"),"\n "),t.xp6(4),t.Q6J("dataSource",i.chargesDataSource)("hidden",0===i.chargesDataSource.length),t.xp6(51),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(87,15,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("disabled",!i.fixedDepositAccountFormValid),t.xp6(1),t.hij("\n ",t.lcZ(91,17,"labels.buttons.Next"),"\n ")}},dependencies:[x.sg,x.O5,v.BN,p.xw,p.SQ,p.Wh,p.XD,p.yH,L.ey,h.lW,f.KE,f.hX,N.gD,U.Ic,U.fd,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,g.X$,I.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();const pa=["chartsTable"];function la(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.accountChart.name)}}function da(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function _a(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function ma(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function ga(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.lnq("\n ",e.fromPeriod,"-",e.toPeriod,"\xa0",e.periodType.value,"")}}function fa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function xa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.amountRangeFrom,"-",e.amountRangeTo,"")}}function ha(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Aa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.annualInterestRate," ")}}function Ca(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Ta(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.description," ")}}function Ua(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Za(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",27),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function ba(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function Da(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",24),t._uU(1,"\n "),t.TgZ(2,"button",25),t.NdJ("click",function(){const r=t.CHM(e).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===r?null:r)}),t._uU(3,"\n "),t.YNc(4,Za,5,3,"span",26),t._uU(5,"\n "),t.YNc(6,ba,5,3,"span",26),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&n){const e=o.dataIndex,i=t.oxw();t.xp6(4),t.Q6J("ngIf",i.expandChartSlabIndex!==e),t.xp6(2),t.Q6J("ngIf",i.expandChartSlabIndex===e)}}function Oa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Pa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.entityType.value,"\n ")}}function va(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Ma(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.attributeName.value,"\n ")}}function qa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function ya(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.conditionType.value),"\n ")}}function Fa(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function wa(n,o){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("ngSwitch",e.attributeName),t.xp6(1),t.hij("\n ",e.attributeValueDesc,"\n ")}}function Ia(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function Sa(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.incentiveType.value,"\n ")}}function La(n,o){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Na(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function Ya(n,o){1&n&&t._UZ(0,"tr",42)}function ka(n,o){1&n&&t._UZ(0,"tr",43)}function Qa(n,o){if(1&n&&(t.TgZ(0,"table",33),t._uU(1,"\n\n "),t.ynx(2,34),t._uU(3,"\n "),t.YNc(4,Oa,3,3,"th",8),t._uU(5,"\n "),t.YNc(6,Pa,2,1,"td",9),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,35),t._uU(10,"\n "),t.YNc(11,va,3,3,"th",8),t._uU(12,"\n "),t.YNc(13,Ma,2,1,"td",9),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,36),t._uU(17,"\n "),t.YNc(18,qa,3,3,"th",8),t._uU(19,"\n "),t.YNc(20,ya,3,3,"td",9),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,37),t._uU(24,"\n "),t.YNc(25,Fa,3,3,"th",8),t._uU(26,"\n "),t.YNc(27,wa,2,2,"td",38),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,39),t._uU(31,"\n "),t.YNc(32,Ia,3,3,"th",8),t._uU(33,"\n "),t.YNc(34,Sa,2,1,"td",9),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,40),t._uU(38,"\n "),t.YNc(39,La,3,3,"th",8),t._uU(40,"\n "),t.YNc(41,Na,2,1,"td",9),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,Ya,1,0,"tr",15),t._uU(45,"\n "),t.YNc(46,ka,1,0,"tr",16),t._uU(47,"\n\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("dataSource",e.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",i.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.incentivesDisplayedColumns)}}function Ja(n,o){if(1&n&&(t.TgZ(0,"td",24),t._uU(1,"\n\n "),t.TgZ(2,"div",29),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",30),t._uU(5,"\n\n "),t.TgZ(6,"h4",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,Qa,48,3,"table",32),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&n){const e=o.$implicit,i=o.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",i===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",e.incentives.length)}}function Ra(n,o){1&n&&t._UZ(0,"tr",42)}function ja(n,o){1&n&&t._UZ(0,"tr",43)}function Ea(n,o){1&n&&t._UZ(0,"tr",44)}let st=(()=>{class n{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs,this.chartsTableRef.renderRows())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-interest-rate-chart-step"]],viewQuery:function(e,i){if(1&e&&t.Gf(pa,7),2&e){let a;t.iGM(a=t.CRH())&&(i.chartsTableRef=a.first)}},inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[t.TTD],decls:95,vars:23,consts:[["fxLayout","column","fxLayoutGap","2%"],["fxFlexFill","",4,"ngIf"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.YNc(2,la,9,4,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"span",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"span",4),t._uU(11),t.ALo(12,"dateFormat"),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.YNc(15,da,10,6,"div",1),t._uU(16,"\n\n "),t.YNc(17,_a,9,4,"div",1),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"table",5,6),t._uU(31,"\n\n "),t.ynx(32,7),t._uU(33,"\n "),t.YNc(34,ma,3,3,"th",8),t._uU(35,"\n "),t.YNc(36,ga,2,3,"td",9),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,10),t._uU(40,"\n "),t.YNc(41,fa,3,3,"th",8),t._uU(42,"\n "),t.YNc(43,xa,2,2,"td",9),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,11),t._uU(47,"\n "),t.YNc(48,ha,3,3,"th",8),t._uU(49,"\n "),t.YNc(50,Aa,2,1,"td",9),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,12),t._uU(54,"\n "),t.YNc(55,Ca,3,3,"th",8),t._uU(56,"\n "),t.YNc(57,Ta,2,1,"td",9),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,13),t._uU(61,"\n "),t.YNc(62,Ua,3,3,"th",8),t._uU(63,"\n "),t.YNc(64,Da,9,2,"td",9),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,14),t._uU(68,"\n "),t.YNc(69,Ja,14,6,"td",9),t._uU(70,"\n "),t.BQk(),t._uU(71,"\n\n "),t.YNc(72,Ra,1,0,"tr",15),t._uU(73,"\n "),t.YNc(74,ja,1,0,"tr",16),t._uU(75,"\n "),t.YNc(76,Ea,1,0,"tr",17),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n"),t.qZA(),t._uU(79,"\n\n"),t.TgZ(80,"div",18),t._uU(81,"\n "),t.TgZ(82,"button",19),t._uU(83,"\n "),t._UZ(84,"fa-icon",20),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t.TgZ(88,"button",21),t._uU(89),t.ALo(90,"translate"),t._UZ(91,"fa-icon",22),t._uU(92,"\n "),t.qZA(),t._uU(93,"\n"),t.qZA(),t._uU(94,"\n")),2&e&&(t.xp6(2),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(8,13,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(12,15,null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(23,17,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(null!=i.fixedDepositsAccountProductTemplate&&i.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount?"Yes":"No"),t.xp6(3),t.Q6J("dataSource",i.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsIncentivesDisplayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(86,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(90,21,"labels.buttons.Next"),"\n "))},dependencies:[x.O5,x.RF,v.BN,p.xw,p.SQ,p.Wh,p.s9,p.yH,h.lW,A.a8,U.Ic,U.fd,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,x.rS,g.X$,I.E],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,T.X$)("expandChartSlab",[(0,T.SB)("collapsed",(0,T.oB)({height:"0px",minHeight:"0"})),(0,T.SB)("expanded",(0,T.oB)({height:"*"})),(0,T.eR)("expanded <=> collapsed",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();var Ba=l(27676);function za(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.External Id")),t.xp6(4),t.Oqu(e.fixedDepositAccountData.externalId)}}function $a(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Lock-in Period"),":"),t.xp6(4),t.Oqu(e.fixedDepositAccountData.lockinPeriodFrequency+" "+t.gM2(8,4,e.fixedDepositAccountData.lockinPeriodFrequencyType,e.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function Ga(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Deposit Term"),":"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.minDepositTerm+" "+((null==e.fixedDepositsAccountProductTemplate.minDepositTermType?null:e.fixedDepositsAccountProductTemplate.minDepositTermType.value)||""))}}function Ha(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.In Multiples Of"),":"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm+" "+((null==e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType?null:e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value)||""))}}function Wa(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maximum Deposit Term")),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.maxDepositTerm+" "+((null==e.fixedDepositsAccountProductTemplate.maxDepositTermType?null:e.fixedDepositsAccountProductTemplate.maxDepositTermType.value)||""))}}function Va(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Linked Savings Account")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositAccountData.linkAccountId,e.fixedDepositsAccountProductTemplate.savingsAccounts,"id","accountNo"))}}function Xa(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Instructions")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositAccountData.maturityInstructionId,e.fixedDepositsAccountProductTemplate.maturityInstructionOptions,"id","value"))}}function Ka(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Penal Interest")," (%):"),t.xp6(4),t.Oqu(e.fixedDepositsAccountProductTemplate.preClosurePenalInterest+"% ("+(null==e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType?null:e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id)+")")}}function tc(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Withhold Tax is Applicable"),":"),t.xp6(4),t.Oqu(e.fixedDepositAccountData.withHoldTax?"Yes":"No")}}function nc(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.name)}}function ec(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function oc(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==e.fixedDepositsAccountProductTemplate?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function ic(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function ac(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.lnq("\n ",e.fromPeriod,"-",e.toPeriod,"\xa0",e.periodType.value,"")}}function cc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function sc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.amountRangeFrom,"-",e.amountRangeTo,"")}}function rc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function uc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.annualInterestRate," ")}}function pc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function lc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.description," ")}}function dc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function _c(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",29),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function mc(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function gc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",26),t._uU(1,"\n "),t.TgZ(2,"button",27),t.NdJ("click",function(){const r=t.CHM(e).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===r?null:r)}),t._uU(3,"\n "),t.YNc(4,_c,5,3,"span",28),t._uU(5,"\n "),t.YNc(6,mc,5,3,"span",28),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&n){const e=o.dataIndex,i=t.oxw();t.xp6(4),t.Q6J("ngIf",i.expandChartSlabIndex!==e),t.xp6(2),t.Q6J("ngIf",i.expandChartSlabIndex===e)}}function fc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function xc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.entityType.value,"\n ")}}function hc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Ac(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.attributeName.value,"\n ")}}function Cc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function Tc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.conditionType.value),"\n ")}}function Uc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Zc(n,o){if(1&n&&(t.TgZ(0,"td",43),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("ngSwitch",e.attributeName),t.xp6(1),t.hij("\n ",e.attributeValueDesc,"\n ")}}function bc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function Dc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.incentiveType.value,"\n ")}}function Oc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Pc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function vc(n,o){1&n&&t._UZ(0,"tr",44)}function Mc(n,o){1&n&&t._UZ(0,"tr",45)}function qc(n,o){if(1&n&&(t.TgZ(0,"table",35),t._uU(1,"\n\n "),t.ynx(2,36),t._uU(3,"\n "),t.YNc(4,fc,3,3,"th",9),t._uU(5,"\n "),t.YNc(6,xc,2,1,"td",10),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,37),t._uU(10,"\n "),t.YNc(11,hc,3,3,"th",9),t._uU(12,"\n "),t.YNc(13,Ac,2,1,"td",10),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,38),t._uU(17,"\n "),t.YNc(18,Cc,3,3,"th",9),t._uU(19,"\n "),t.YNc(20,Tc,3,3,"td",10),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,39),t._uU(24,"\n "),t.YNc(25,Uc,3,3,"th",9),t._uU(26,"\n "),t.YNc(27,Zc,2,2,"td",40),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,41),t._uU(31,"\n "),t.YNc(32,bc,3,3,"th",9),t._uU(33,"\n "),t.YNc(34,Dc,2,1,"td",10),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,42),t._uU(38,"\n "),t.YNc(39,Oc,3,3,"th",9),t._uU(40,"\n "),t.YNc(41,Pc,2,1,"td",10),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,vc,1,0,"tr",16),t._uU(45,"\n "),t.YNc(46,Mc,1,0,"tr",17),t._uU(47,"\n\n "),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("dataSource",e.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",i.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.incentivesDisplayedColumns)}}function yc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1,"\n\n "),t.TgZ(2,"div",31),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",32),t._uU(5,"\n\n "),t.TgZ(6,"h4",33),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,qc,48,3,"table",34),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&n){const e=o.$implicit,i=o.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",i===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",e.incentives.length)}}function Fc(n,o){1&n&&t._UZ(0,"tr",44)}function wc(n,o){1&n&&t._UZ(0,"tr",45)}function Ic(n,o){1&n&&t._UZ(0,"tr",46)}function Sc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function Lc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Nc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Yc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function kc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Qc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.amount,"\n ")}}function Jc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function Rc(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}const jc=function(){return[2e3]};function Ec(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",e.feeOnMonthDay?t.xi3(2,1,t.DdM(4,jc).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned","\n ")}}function Bc(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function zc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1,"\n "),t.YNc(2,Rc,3,3,"span",28),t._uU(3,"\n "),t.YNc(4,Ec,3,5,"span",28),t._uU(5,"\n "),t.YNc(6,Bc,3,3,"span",28),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value))}}function $c(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function Gc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n ")}}function Hc(n,o){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Wc(n,o){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function Vc(n,o){1&n&&t._UZ(0,"tr",44)}function Xc(n,o){1&n&&t._UZ(0,"tr",45)}function Kc(n,o){if(1&n&&(t.TgZ(0,"div",47),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"table",35),t._uU(9,"\n\n "),t.ynx(10,48),t._uU(11,"\n "),t.YNc(12,Sc,3,3,"th",9),t._uU(13,"\n "),t.YNc(14,Lc,2,1,"td",10),t._uU(15,"\n "),t.BQk(),t._uU(16,"\n\n "),t.ynx(17,49),t._uU(18,"\n "),t.YNc(19,Nc,3,3,"th",9),t._uU(20,"\n "),t.YNc(21,Yc,2,1,"td",10),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,42),t._uU(25,"\n "),t.YNc(26,kc,3,3,"th",9),t._uU(27,"\n "),t.YNc(28,Qc,2,1,"td",10),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,50),t._uU(32,"\n "),t.YNc(33,Jc,3,3,"th",9),t._uU(34,"\n "),t.YNc(35,zc,8,3,"td",10),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,51),t._uU(39,"\n "),t.YNc(40,$c,3,3,"th",9),t._uU(41,"\n "),t.YNc(42,Gc,2,1,"td",10),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,52),t._uU(46,"\n "),t.YNc(47,Hc,3,3,"th",9),t._uU(48,"\n "),t.YNc(49,Wc,2,1,"td",10),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.YNc(52,Vc,1,0,"tr",16),t._uU(53,"\n "),t.YNc(54,Xc,1,0,"tr",17),t._uU(55,"\n\n "),t.qZA(),t._uU(56,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,4,"labels.heading.Charges")),t.xp6(5),t.Q6J("dataSource",e.fixedDepositAccountData.charges),t.xp6(44),t.Q6J("matHeaderRowDef",e.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.chargesDisplayedColumns)}}const ts=function(){return["../"]};let rt=(()=>{class n{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.submit=new t.vpe}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-fixed-deposit-account-preview-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountData:"fixedDepositAccountData"},outputs:{submit:"submit"},features:[t.TTD],decls:297,vars:146,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlexFill","",4,"ngIf"],["fxFlexFill","","fxLayout","column",1,"margin-b"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"span",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"span",4),t._uU(15),t.ALo(16,"find"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"dateFormat"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.YNc(30,za,9,4,"div",5),t._uU(31,"\n\n "),t.TgZ(32,"div",2),t._uU(33,"\n "),t.TgZ(34,"span",3),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"span",4),t._uU(39),t.ALo(40,"find"),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"h3",1),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n\n "),t._UZ(47,"mat-divider",2),t._uU(48,"\n\n "),t.TgZ(49,"div",2),t._uU(50,"\n "),t.TgZ(51,"span",3),t._uU(52),t.ALo(53,"translate"),t.qZA(),t._uU(54,"\n "),t.TgZ(55,"span",4),t._uU(56),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.TgZ(59,"div",2),t._uU(60,"\n "),t.TgZ(61,"span",3),t._uU(62),t.ALo(63,"translate"),t.qZA(),t._uU(64,"\n "),t.TgZ(65,"span",4),t._uU(66),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n\n "),t.TgZ(69,"div",2),t._uU(70,"\n "),t.TgZ(71,"span",3),t._uU(72),t.ALo(73,"translate"),t.qZA(),t._uU(74,"\n "),t.TgZ(75,"span",4),t._uU(76),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"h3",1),t._uU(80),t.ALo(81,"translate"),t.qZA(),t._uU(82,"\n\n "),t._UZ(83,"mat-divider",2),t._uU(84,"\n\n "),t.TgZ(85,"div",2),t._uU(86,"\n "),t.TgZ(87,"span",3),t._uU(88),t.ALo(89,"translate"),t.qZA(),t._uU(90,"\n "),t.TgZ(91,"span",4),t._uU(92),t.qZA(),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n\n "),t.TgZ(95,"div",2),t._uU(96,"\n "),t.TgZ(97,"span",3),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.TgZ(101,"span",4),t._uU(102),t.ALo(103,"find"),t.qZA(),t._uU(104,"\n "),t.qZA(),t._uU(105,"\n\n "),t.TgZ(106,"div",2),t._uU(107,"\n "),t.TgZ(108,"span",3),t._uU(109),t.ALo(110,"translate"),t.qZA(),t._uU(111,"\n "),t.TgZ(112,"span",4),t._uU(113),t.ALo(114,"find"),t.qZA(),t._uU(115,"\n "),t.qZA(),t._uU(116,"\n\n "),t.TgZ(117,"div",2),t._uU(118,"\n "),t.TgZ(119,"span",3),t._uU(120),t.ALo(121,"translate"),t.qZA(),t._uU(122,"\n "),t.TgZ(123,"span",4),t._uU(124),t.ALo(125,"find"),t.qZA(),t._uU(126,"\n "),t.qZA(),t._uU(127,"\n\n "),t.TgZ(128,"div",2),t._uU(129,"\n "),t.TgZ(130,"span",3),t._uU(131),t.ALo(132,"translate"),t.qZA(),t._uU(133,"\n "),t.TgZ(134,"span",4),t._uU(135),t.ALo(136,"find"),t.qZA(),t._uU(137,"\n "),t.qZA(),t._uU(138,"\n\n "),t.TgZ(139,"div",2),t._uU(140,"\n "),t.TgZ(141,"span",3),t._uU(142),t.ALo(143,"translate"),t.qZA(),t._uU(144,"\n "),t.TgZ(145,"span",4),t._uU(146),t.ALo(147,"find"),t.qZA(),t._uU(148,"\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"h3",1),t._uU(151),t.ALo(152,"translate"),t.qZA(),t._uU(153,"\n\n "),t._UZ(154,"mat-divider",2),t._uU(155,"\n\n "),t.YNc(156,$a,10,9,"div",5),t._uU(157,"\n\n "),t.YNc(158,Ga,9,4,"div",5),t._uU(159,"\n\n "),t.YNc(160,Ha,9,4,"div",5),t._uU(161,"\n\n "),t.YNc(162,Wa,9,4,"div",5),t._uU(163,"\n\n "),t.TgZ(164,"div",2),t._uU(165,"\n "),t.TgZ(166,"span",3),t._uU(167),t.ALo(168,"translate"),t.qZA(),t._uU(169,"\n "),t.TgZ(170,"span",4),t._uU(171),t.qZA(),t._uU(172,"\n "),t.qZA(),t._uU(173,"\n\n "),t.YNc(174,Va,10,9,"div",5),t._uU(175,"\n\n "),t.YNc(176,Xa,10,9,"div",5),t._uU(177,"\n\n "),t.TgZ(178,"div",2),t._uU(179,"\n "),t.TgZ(180,"span",3),t._uU(181),t.ALo(182,"translate"),t.qZA(),t._uU(183,"\n "),t.TgZ(184,"span",4),t._uU(185),t.qZA(),t._uU(186,"\n "),t.qZA(),t._uU(187,"\n\n "),t.YNc(188,Ka,9,4,"div",5),t._uU(189,"\n\n "),t.YNc(190,tc,9,4,"div",5),t._uU(191,"\n\n "),t.TgZ(192,"h3",1),t._uU(193),t.ALo(194,"translate"),t.qZA(),t._uU(195,"\n\n "),t._UZ(196,"mat-divider",2),t._uU(197,"\n\n "),t.TgZ(198,"div",6),t._uU(199,"\n\n "),t.YNc(200,nc,9,4,"div",5),t._uU(201,"\n\n "),t.TgZ(202,"div",2),t._uU(203,"\n "),t.TgZ(204,"span",3),t._uU(205),t.ALo(206,"translate"),t.qZA(),t._uU(207,"\n "),t.TgZ(208,"span",4),t._uU(209),t.ALo(210,"dateFormat"),t.qZA(),t._uU(211,"\n "),t.qZA(),t._uU(212,"\n\n "),t.YNc(213,ec,10,6,"div",5),t._uU(214,"\n\n "),t.YNc(215,oc,9,4,"div",5),t._uU(216,"\n\n "),t.TgZ(217,"div",2),t._uU(218,"\n "),t.TgZ(219,"span",3),t._uU(220),t.ALo(221,"translate"),t.qZA(),t._uU(222,"\n "),t.TgZ(223,"span",4),t._uU(224),t.qZA(),t._uU(225,"\n "),t.qZA(),t._uU(226,"\n\n "),t.TgZ(227,"table",7),t._uU(228,"\n\n "),t.ynx(229,8),t._uU(230,"\n "),t.YNc(231,ic,3,3,"th",9),t._uU(232,"\n "),t.YNc(233,ac,2,3,"td",10),t._uU(234,"\n "),t.BQk(),t._uU(235,"\n\n "),t.ynx(236,11),t._uU(237,"\n "),t.YNc(238,cc,3,3,"th",9),t._uU(239,"\n "),t.YNc(240,sc,2,2,"td",10),t._uU(241,"\n "),t.BQk(),t._uU(242,"\n\n "),t.ynx(243,12),t._uU(244,"\n "),t.YNc(245,rc,3,3,"th",9),t._uU(246,"\n "),t.YNc(247,uc,2,1,"td",10),t._uU(248,"\n "),t.BQk(),t._uU(249,"\n\n "),t.ynx(250,13),t._uU(251,"\n "),t.YNc(252,pc,3,3,"th",9),t._uU(253,"\n "),t.YNc(254,lc,2,1,"td",10),t._uU(255,"\n "),t.BQk(),t._uU(256,"\n\n "),t.ynx(257,14),t._uU(258,"\n "),t.YNc(259,dc,3,3,"th",9),t._uU(260,"\n "),t.YNc(261,gc,9,2,"td",10),t._uU(262,"\n "),t.BQk(),t._uU(263,"\n\n "),t.ynx(264,15),t._uU(265,"\n "),t.YNc(266,yc,14,6,"td",10),t._uU(267,"\n "),t.BQk(),t._uU(268,"\n\n "),t.YNc(269,Fc,1,0,"tr",16),t._uU(270,"\n "),t.YNc(271,wc,1,0,"tr",17),t._uU(272,"\n "),t.YNc(273,Ic,1,0,"tr",18),t._uU(274,"\n\n "),t.qZA(),t._uU(275,"\n\n "),t.qZA(),t._uU(276,"\n\n "),t.YNc(277,Kc,57,6,"div",19),t._uU(278,"\n\n"),t.qZA(),t._uU(279,"\n\n"),t.TgZ(280,"div",20),t._uU(281,"\n "),t.TgZ(282,"button",21),t._uU(283,"\n "),t._UZ(284,"fa-icon",22),t._uU(285),t.ALo(286,"translate"),t.qZA(),t._uU(287,"\n "),t.TgZ(288,"button",23),t._uU(289),t.ALo(290,"translate"),t.qZA(),t._uU(291,"\n "),t.TgZ(292,"button",24),t.NdJ("click",function(){return i.submit.emit()}),t._uU(293),t.ALo(294,"translate"),t.qZA(),t._uU(295,"\n"),t.qZA(),t._uU(296,"\n")),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,58,"labels.heading.Details")),t.xp6(8),t.Oqu(t.lcZ(12,60,"labels.inputs.Product")),t.xp6(4),t.Oqu(t.gM2(16,62,i.fixedDepositAccountData.productId,i.fixedDepositsAccountTemplate.productOptions,"id","name")),t.xp6(7),t.Oqu(t.lcZ(23,67,"labels.inputs.Submitted On")),t.xp6(4),t.Oqu(t.lcZ(27,69,i.fixedDepositAccountData.submittedOnDate)),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountData.externalId),t.xp6(5),t.Oqu(t.lcZ(36,71,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(t.gM2(40,73,i.fixedDepositAccountData.fieldOfficerId,i.fixedDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")||"Unassigned"),t.xp6(5),t.Oqu(t.lcZ(45,78,"labels.heading.Currency")),t.xp6(8),t.Oqu(t.lcZ(53,80,"labels.inputs.Currency")),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.currency.code),t.xp6(6),t.Oqu(t.lcZ(63,82,"labels.inputs.Currency Multiple")),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.currency.inMultiplesOf),t.xp6(6),t.Oqu(t.lcZ(73,84,"labels.inputs.Decimal Places")),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.currency.decimalPlaces),t.xp6(4),t.Oqu(t.lcZ(81,86,"labels.heading.Terms")),t.xp6(8),t.hij("",t.lcZ(89,88,"labels.inputs.Fixed Deposit Amount"),":"),t.xp6(4),t.Oqu(i.fixedDepositAccountData.depositAmount),t.xp6(6),t.hij("",t.lcZ(99,90,"labels.inputs.Deposit Period"),":"),t.xp6(4),t.Oqu(i.fixedDepositAccountData.depositPeriod+" "+t.gM2(103,92,i.fixedDepositAccountData.depositPeriodFrequencyId,i.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(110,97,"labels.inputs.Interest Compounding Period"),":"),t.xp6(4),t.Oqu(t.gM2(114,99,i.fixedDepositAccountData.interestCompoundingPeriodType,i.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(121,104,"labels.inputs.Interest Posting Period"),":"),t.xp6(4),t.Oqu(t.gM2(125,106,i.fixedDepositAccountData.interestPostingPeriodType,i.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(132,111,"labels.inputs.Interest Calculated using"),":"),t.xp6(4),t.Oqu(t.gM2(136,113,i.fixedDepositAccountData.interestCalculationType,i.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(143,118,"labels.inputs.Days in Year"),":"),t.xp6(4),t.Oqu(t.gM2(147,120,i.fixedDepositAccountData.interestCalculationDaysInYearType,i.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(5),t.Oqu(t.lcZ(152,125,"labels.heading.Settings")),t.xp6(5),t.Q6J("ngIf",i.fixedDepositAccountData.lockinPeriodFrequency),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.minDepositTerm),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.maxDepositTerm),t.xp6(5),t.hij("",t.lcZ(168,127,"labels.inputs.Transfer Interest to Savings Account"),"?"),t.xp6(4),t.Oqu(i.fixedDepositAccountData.transferInterestToSavings?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",i.fixedDepositAccountData.transferInterestToSavings),t.xp6(2),t.Q6J("ngIf",i.fixedDepositAccountData.maturityInstructionId),t.xp6(5),t.hij("",t.lcZ(182,129,"labels.inputs.Apply Penal Interest (less)"),":"),t.xp6(4),t.Oqu(i.fixedDepositsAccountProductTemplate.preClosurePenalApplicable?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.preClosurePenalApplicable),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountProductTemplate.withHoldTax),t.xp6(3),t.Oqu(t.lcZ(194,131,"labels.heading.Interest Rate Chart")),t.xp6(7),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(206,133,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(210,135,null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==i.fixedDepositsAccountProductTemplate?null:i.fixedDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(221,137,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(null!=i.fixedDepositsAccountProductTemplate&&i.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount?"Yes":"No"),t.xp6(3),t.Q6J("dataSource",i.interestRateChartData),t.xp6(42),t.Q6J("matHeaderRowDef",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",i.chartSlabsIncentivesDisplayedColumns),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountData.charges.length),t.xp6(8),t.hij("\n ",t.lcZ(286,139,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(145,ts)),t.xp6(1),t.hij("\n ",t.lcZ(290,141,"labels.buttons.Cancel"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(294,143,"labels.buttons.Submit"),"\n "))},dependencies:[x.O5,x.RF,v.BN,p.xw,p.SQ,p.Wh,p.s9,p.yH,h.lW,A.a8,nt.d,U.fd,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,d.rH,x.rS,g.X$,Ba.Z,I.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,T.X$)("expandChartSlab",[(0,T.SB)("collapsed",(0,T.oB)({height:"0px",minHeight:"0"})),(0,T.SB)("expanded",(0,T.oB)({height:"*"})),(0,T.eR)("expanded <=> collapsed",(0,T.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();function ns(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function es(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function os(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function is(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function as(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function cs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function ss(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function rs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function us(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function ps(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function ls(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function ds(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,ls,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-fixed-deposit-account-preview-step",18),t.NdJ("submit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",e.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}let _s=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.router=i,this.dateUtils=a,this.fixedDepositsService=r,this.settingsService=c,this.route.data.subscribe(m=>{this.fixedDepositsAccountTemplate=m.fixedDepositsAccountTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValid(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid}get fixedDepositAccount(){return{...this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails,...this.fixedDepositAccountTermsStep.fixedDepositAccountTerms,...this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings,...this.fixedDepositAccountChargesStep.fixedDepositAccountCharges}}submit(){const e=this.settingsService.language.code,i=this.settingsService.dateFormat,a="dd MMMM",r={...this.fixedDepositAccount,clientId:this.fixedDepositsAccountTemplate.clientId,charges:this.fixedDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,i),feeOnMonthDay:c.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(c.feeOnMonthDay),a),feeInterval:c.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,i),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:i,monthDayFormat:a,locale:e};this.fixedDepositsService.createFixedDepositAccount(r).subscribe(c=>{this.router.navigate(["../",c.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0),t.Y36(P.L),t.Y36(b),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-fixed-deposit-account"]],viewQuery:function(e,i){if(1&e&&(t.Gf(G,7),t.Gf(H,7),t.Gf(W,7),t.Gf(V,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.fixedDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["fixedDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData","submit"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,ns,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,es,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,os,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,is,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,as,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,cs,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-fixed-deposit-account-details-step",10),t.NdJ("fixedDepositsAccountProductTemplate",function(r){return i.setTemplate(r)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,ss,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-fixed-deposit-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,rs,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-fixed-deposit-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,us,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-fixed-deposit-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,ps,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-fixed-deposit-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,ds,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",i.fixedDepositAccountDetailsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountTermsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountSettingsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",i.fixedDepositAccountFormValid),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountFormValid))},dependencies:[x.O5,v.BN,U.C0,U.VY,U.Vq,U.z9,G,H,V,W,st,rt,g.X$]}),n})();function ms(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function gs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function fs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function xs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function hs(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function As(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function Cs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function Ts(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function Us(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function Zs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function bs(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function Ds(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,bs,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-fixed-deposit-account-preview-step",18),t.NdJ("submit",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",e.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}let Os=(()=>{class n{constructor(e,i,a,r,c){this.route=e,this.router=i,this.dateUtils=a,this.fixedDepositsService=r,this.settingsService=c,this.route.data.subscribe(m=>{this.fixedDepositsAccountAndTemplate=m.fixedDepositsAccountAndTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e,this.currency=this.fixedDepositsAccountAndTemplate.currency}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValidAndNotPristine(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid&&(!this.fixedDepositAccountDetailsForm.pristine||!this.fixedDepositAccountTermsForm.pristine||!this.fixedDepositAccountSettingsForm.pristine||!this.fixedDepositAccountChargesStep.pristine)}get fixedDepositAccount(){return{...this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails,...this.fixedDepositAccountTermsStep.fixedDepositAccountTerms,...this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings,...this.fixedDepositAccountChargesStep?.fixedDepositAccountCharges}}submit(){const e=this.settingsService.language.code,i=this.settingsService.dateFormat,a="dd MMMM",r={...this.fixedDepositAccount,clientId:this.fixedDepositsAccountAndTemplate.clientId,charges:this.fixedDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,i),feeOnMonthDay:c.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(c.feeOnMonthDay),a),feeInterval:c.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,i),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:i,monthDayFormat:a,locale:e};this.fixedDepositsService.updateFixedDepositAccount(this.fixedDepositsAccountAndTemplate.id,r).subscribe(c=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0),t.Y36(P.L),t.Y36(b),t.Y36(D.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-fixed-deposit-account"]],viewQuery:function(e,i){if(1&e&&(t.Gf(G,7),t.Gf(H,7),t.Gf(W,7),t.Gf(V,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.fixedDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(i.fixedDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["fixedDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData","submit"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,ms,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,gs,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,fs,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,xs,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,hs,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,As,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-fixed-deposit-account-details-step",10),t.NdJ("fixedDepositsAccountProductTemplate",function(r){return i.setTemplate(r)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,Cs,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-fixed-deposit-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,Ts,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-fixed-deposit-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,Us,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-fixed-deposit-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,Zs,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-fixed-deposit-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,Ds,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",i.fixedDepositAccountDetailsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountTermsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",i.fixedDepositAccountSettingsForm),t.xp6(4),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate),t.xp6(8),t.Q6J("fixedDepositsAccountTemplate",i.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",i.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",i.fixedDepositAccountFormValidAndNotPristine),t.xp6(4),t.Q6J("ngIf",i.fixedDepositAccountFormValidAndNotPristine))},dependencies:[x.O5,v.BN,U.C0,U.VY,U.Vq,U.z9,G,H,V,W,st,rt,g.X$]}),n})(),et=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountData(i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var ut=l(89),pt=l(96545);let lt=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.parent.paramMap.get("fixedDepositAccountId"),a=e.paramMap.get("id");return this.fixedDepositsService.getFixedDepositsAccountTransaction(i,a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),dt=(()=>{class n{constructor(e,i){this.savingsService=e,this.fixedDepositsService=i}resolve(e){const i=e.paramMap.get("name"),a=e.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId");switch(i){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(a);case"Close":return this.fixedDepositsService.getFixedDepositsAccountClosureTemplate(a);default:return}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(S.d),t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),_t=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.parent.parent.paramMap.get("clientId");return this.fixedDepositsService.getFixedDepositsAccountTemplate(i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),mt=(()=>{class n{constructor(e){this.fixedDepositsService=e}resolve(e){const i=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountAndTemplate(i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Ps=l(5510);function vs(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",7),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("externalId",e.fixedDepositsAccountData.externalId)}}function Ms(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function qs(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Closed On")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.fixedDepositsAccountData.timeline.closedOnDate))}}function ys(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Tax Group")),t.xp6(4),t.Oqu(e.fixedDepositsAccountData.taxGroup.name)}}function Fs(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Instructions")),t.xp6(4),t.Oqu(e.fixedDepositsAccountData.onAccountClosure.value)}}function ws(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Pre-cloure Penal")),t.xp6(4),t.AsE("",e.fixedDepositsAccountData.preClosurePenalInterest," % on ",e.fixedDepositsAccountData.preClosurePenalInterestOnType.value,"")}}function Is(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",8),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Deposits")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function Ss(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",8),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Withdrawals")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function Ls(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",8),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.fixedDepositsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function Ns(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",2),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",8),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",8),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.YNc(32,Is,10,9,"tr",3),t._uU(33,"\n "),t.YNc(34,Ss,10,9,"tr",3),t._uU(35,"\n "),t.YNc(36,Ls,10,9,"tr",3),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.heading.Performance History")),t.xp6(10),t.Oqu(t.lcZ(14,10,"labels.inputs.Principal Amount")),t.xp6(4),t.Oqu(t.gM2(18,12,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,17,"labels.inputs.Maturity Amount")),t.xp6(4),t.Oqu(t.gM2(29,19,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(4),t.Q6J("ngIf",e.fixedDepositsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",e.fixedDepositsAccountData.summary.totalInterestEarned>=0)}}function Ys(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div"),t._uU(2,"\n "),t.TgZ(3,"h4",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td",8),t._uU(18),t.ALo(19,"currency"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"tr"),t._uU(23,"\n "),t.TgZ(24,"td"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"td",8),t._uU(29),t.ALo(30,"currency"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n ")),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,5,"labels.heading.Other Details")),t.xp6(10),t.Oqu(t.lcZ(15,7,"labels.inputs.Principal Amount")),t.xp6(4),t.Oqu(t.gM2(19,9,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(26,14,"labels.inputs.Maturity Amount")),t.xp6(4),t.Oqu(t.gM2(30,16,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2"))}}const Qs=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:_s,resolve:{fixedDepositsAccountTemplate:_t}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:et},children:[{path:"",component:Nt,resolve:{fixedDepositsAccountData:et,savingsDatatables:pt.N},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:(()=>{class n{constructor(e,i){this.route=e,this.router=i,this.route.parent.data.subscribe(a=>{this.fixedDepositsAccountData=a.fixedDepositsAccountData,this.currency=this.fixedDepositsAccountData.currency}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.gz),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-general-tab"]],decls:155,vars:58,consts:[["fxLayout","row","fxLayoutGap","2%",1,"fixed-deposits-account-tables"],["fxFlex","49%","fxLayout","column","fxLayoutGap","4%"],[1,"table-headers"],[4,"ngIf"],["fxFlex","49%"],[4,"ngIf","ngIfElse"],["otherDetails",""],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(e,i){if(1&e&&(t._uU(0,"\n"),t.TgZ(1,"div",0),t._uU(2,"\n\n "),t.TgZ(3,"div",1),t._uU(4,"\n\n "),t.TgZ(5,"div"),t._uU(6,"\n "),t.TgZ(7,"h4",2),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.TgZ(11,"table"),t._uU(12,"\n "),t.TgZ(13,"tbody"),t._uU(14,"\n "),t.TgZ(15,"tr"),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"td"),t._uU(22,"\n "),t.YNc(23,vs,4,1,"span",3),t._uU(24,"\n "),t.YNc(25,Ms,3,3,"span",3),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n "),t.TgZ(29,"tr"),t._uU(30,"\n "),t.TgZ(31,"td"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"td"),t._uU(36),t.ALo(37,"dateFormat"),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.YNc(40,qs,10,6,"tr",3),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td"),t._uU(59),t.ALo(60,"dateFormat"),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"tr"),t._uU(64,"\n "),t.TgZ(65,"td"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t._uU(68,"\n "),t.TgZ(69,"td"),t._uU(70),t.qZA(),t._uU(71,"\n "),t.qZA(),t._uU(72,"\n "),t.YNc(73,ys,9,4,"tr",3),t._uU(74,"\n "),t.YNc(75,Fs,9,4,"tr",3),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n "),t.qZA(),t._uU(79,"\n\n "),t.TgZ(80,"div"),t._uU(81,"\n "),t.TgZ(82,"h4",2),t._uU(83),t.ALo(84,"translate"),t.qZA(),t._uU(85,"\n "),t.TgZ(86,"table"),t._uU(87,"\n "),t.TgZ(88,"tbody"),t._uU(89,"\n "),t.TgZ(90,"tr"),t._uU(91,"\n "),t.TgZ(92,"td"),t._uU(93),t.ALo(94,"translate"),t.qZA(),t._uU(95,"\n "),t.TgZ(96,"td"),t._uU(97),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n "),t.TgZ(100,"tr"),t._uU(101,"\n "),t.TgZ(102,"td"),t._uU(103),t.ALo(104,"translate"),t.qZA(),t._uU(105,"\n "),t.TgZ(106,"td"),t._uU(107),t.qZA(),t._uU(108,"\n "),t.qZA(),t._uU(109,"\n "),t.TgZ(110,"tr"),t._uU(111,"\n "),t.TgZ(112,"td"),t._uU(113),t.ALo(114,"translate"),t.qZA(),t._uU(115,"\n "),t.TgZ(116,"td"),t._uU(117),t.qZA(),t._uU(118,"\n "),t.qZA(),t._uU(119,"\n "),t.TgZ(120,"tr"),t._uU(121,"\n "),t.TgZ(122,"td"),t._uU(123),t.ALo(124,"translate"),t.qZA(),t._uU(125,"\n "),t.TgZ(126,"td"),t._uU(127),t.qZA(),t._uU(128,"\n "),t.qZA(),t._uU(129,"\n "),t.TgZ(130,"tr"),t._uU(131,"\n "),t.TgZ(132,"td"),t._uU(133),t.ALo(134,"translate"),t.qZA(),t._uU(135,"\n "),t.TgZ(136,"td"),t._uU(137),t.qZA(),t._uU(138,"\n "),t.qZA(),t._uU(139,"\n "),t.YNc(140,ws,9,5,"tr",3),t._uU(141,"\n "),t.qZA(),t._uU(142,"\n "),t.qZA(),t._uU(143,"\n "),t.qZA(),t._uU(144,"\n\n "),t.qZA(),t._uU(145,"\n\n "),t.TgZ(146,"div",4),t._uU(147,"\n\n "),t.YNc(148,Ns,40,24,"div",5),t._uU(149,"\n\n "),t.YNc(150,Ys,36,21,"ng-template",null,6,t.W1O),t._uU(152,"\n\n "),t.qZA(),t._uU(153,"\n\n"),t.qZA(),t._uU(154,"\n")),2&e){const a=t.MAs(151);t.xp6(8),t.Oqu(t.lcZ(9,30,"labels.heading.Fixed Deposit Details")),t.xp6(10),t.Oqu(t.lcZ(19,32,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",i.fixedDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!i.fixedDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(33,34,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.timeline.activatedOnDate?t.lcZ(37,36,i.fixedDepositsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(4),t.Q6J("ngIf",i.fixedDepositsAccountData.timeline.closedOnDate),t.xp6(5),t.Oqu(t.lcZ(46,38,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.fieldOfficerName?i.fixedDepositsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(56,40,"labels.inputs.Maturity Date")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.maturityDate?t.lcZ(60,42,i.fixedDepositsAccountData.maturityDate):"N/A"),t.xp6(7),t.Oqu(t.lcZ(67,44,"labels.inputs.Deposit Period")),t.xp6(4),t.AsE("",i.fixedDepositsAccountData.depositPeriod,"\xa0",i.fixedDepositsAccountData.depositPeriodFrequency.value,""),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.withHoldTax),t.xp6(2),t.Q6J("ngIf",i.fixedDepositsAccountData.onAccountClosure),t.xp6(8),t.Oqu(t.lcZ(84,46,"labels.heading.Interest Details")),t.xp6(10),t.Oqu(t.lcZ(94,48,"labels.inputs.Interest Rate")),t.xp6(4),t.hij("",i.fixedDepositsAccountData.nominalAnnualInterestRate,"%"),t.xp6(6),t.Oqu(t.lcZ(104,50,"labels.inputs.Interest Compounding Period")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(114,52,"labels.inputs.Interest Posting Period")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(124,54,"labels.inputs.Interest Calculated Using")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestCalculationType.value),t.xp6(6),t.Oqu(t.lcZ(134,56,"labels.inputs.No. of Days in Year")),t.xp6(4),t.Oqu(i.fixedDepositsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",i.fixedDepositsAccountData.preClosurePenalApplicable),t.xp6(8),t.Q6J("ngIf",!i.fixedDepositsAccountData.status.rejected&&!i.fixedDepositsAccountData.status.submittedAndPendingApproval)("ngIfElse",a)}},dependencies:[x.O5,p.xw,p.SQ,p.yH,Ps.e,x.H9,g.X$,I.E],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]}),n})(),data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:fn,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:Ln,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:Ue,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:ze,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:Ge,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ut.X}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Os,resolve:{fixedDepositsAccountAndTemplate:mt}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>l.e("default-src_app_account-transfers_account-transfers_module_ts").then(l.bind(l,69193)).then(n=>n.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:hi,resolve:{fixedDepositsAccountTransaction:lt}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:Xo,resolve:{fixedDepositsAccountActionData:dt}}]}]}];let Js=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[et,ut.X,pt.N,lt,dt,_t,mt],imports:[d.Bz.forChild(Qs),d.Bz]}),n})(),Rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[q.m,E.D,X.o,Js]}),n})()}}]); \ No newline at end of file diff --git a/src_app_deposits_recurring-deposits_recurring-deposits_module_ts.js b/src_app_deposits_recurring-deposits_recurring-deposits_module_ts.js index ff71c24c7d..4c1227c372 100644 --- a/src_app_deposits_recurring-deposits_recurring-deposits_module_ts.js +++ b/src_app_deposits_recurring-deposits_recurring-deposits_module_ts.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_deposits_recurring-deposits_recurring-deposits_module_ts","src_app_account-transfers_account-transfers_service_ts"],{35023:(mt,k,m)=>{m.d(k,{o:()=>F});var l=m(80529),M=m(94650);let F=(()=>{class q{constructor(_){this.http=_}getStandingInstructionsData(_){return this.http.get(`/standinginstructions/${_}`)}getStandingInstructionsDataAndTemplate(_){const T=(new l.LE).set("associations","template");return this.http.get(`/standinginstructions/${_}`,{params:T})}updateStandingInstructionsData(_,T){const R=(new l.LE).set("command","update");return this.http.put(`/standinginstructions/${_}`,T,{params:R})}getStandingInstructionsTemplate(_,T,R,C){let D=(new l.LE).set("fromAccountType",R).set("fromClientId",_).set("fromOfficeId",T);if(C){const Z=Object.getOwnPropertyNames(C);for(let O=0;O{m.r(k),m.d(k,{RecurringDepositsModule:()=>Ts});var l=m(83689);class M{constructor(i){this.setOptions(i),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(i){switch(i){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;default:this.optionArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}}var F=m(13450),q=m(65412),t=m(94650),_=m(4859),T=m(49274);const R=function(){return{confirm:!0}};let C=(()=>{class e{constructor(n,o){this.dialogRef=n,this.data=o}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(q.so),t.Y36(q.WI))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:20,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){1&n&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12),t.ALo(13,"translate"),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"button",4),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n"),t.qZA(),t._uU(19,"\n")),2&n&&(t.xp6(1),t.Oqu(o.data.heading),t.xp6(5),t.Oqu(o.data.dialogContext),t.xp6(6),t.Oqu(t.lcZ(13,5,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(9,R)),t.xp6(1),t.Oqu(t.lcZ(17,7,"labels.buttons.Confirm")))},dependencies:[_.lW,q.ZT,q.uh,q.xY,q.H8,T.X$]}),e})();var D=m(80529);let Z=(()=>{class e{constructor(n){this.http=n}getRecurringDepositsAccountData(n){const o=(new D.LE).set("associations","all");return this.http.get(`/recurringdepositaccounts/${n}`,{params:o})}getStandingInstructions(n,o,a,s,c){const d=(new D.LE).set("clientId",n).set("clientName",o).set("fromAccountId",a).set("fromAccountType","2").set("locale",s).set("dateFormat",c);return this.http.get("/standinginstructions",{params:d})}getRecurringDepositsAccountTemplate(n,o){let a=(new D.LE).set("clientId",n);return a=o?a.set("productId",o):a,this.http.get("/recurringdepositaccounts/template",{params:a})}createRecurringDepositAccount(n){return this.http.post("/recurringdepositaccounts",n)}executeRecurringDepositsAccountCommand(n,o,a){const s=(new D.LE).set("command",o);return this.http.post("deposit"===o||"withdrawal"===o?`/recurringdepositaccounts/${n}/transactions`:`/recurringdepositaccounts/${n}`,a,{params:s})}deleteRecurringDepositsAccount(n){return this.http.delete(`/recurringdepositaccounts/${n}`)}getRecurringDepositsAccountAndTemplate(n){const o=(new D.LE).set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${n}`,{params:o})}updateRecurringDepositAccount(n,o){return this.http.put(`/recurringdepositaccounts/${n}`,o)}getRecurringDepositAccountActionResource(n,o){const a=(new D.LE).set("command",o);return this.http.get(`/recurringdepositaccounts/${n}/template`,{params:a})}getRecurringDepositAccountTransactionTemplateResource(n,o){const a=(new D.LE).set("command",o);return this.http.get(`/recurringdepositaccounts/${n}/transactions/template`,{params:a})}getRecurringDepositsAccountTransaction(n,o){return this.http.get(`/recurringdepositaccounts/${n}/transactions/${o}`)}getRecurringDepositsAccountTransactionTemplate(n,o){const a=(new D.LE).set("template","true");return this.http.get(`/recurringdepositaccounts/${n}/transactions/${o}`,{params:a})}executeRecurringDepositsAccountTransactionsCommand(n,o,a,s){const c=(new D.LE).set("command",o);return this.http.post(`/recurringdepositaccounts/${n}/transactions/${s}`,a,{params:c})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(D.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var O=m(59349),A=m(36895),S=m(92216),u=m(1576),z=m(55829),f=m(73546),_t=m(97392),gt=m(96338),V=m(28255),X=m(3848),j=m(10266),dt=m(15705),E=m(30998),At=m(87197);function Tt(e,i){if(1&e&&(t.TgZ(0,"span",25),t._uU(1,"\n "),t._UZ(2,"mifosx-account-number",8),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(2),t.s9C("accountNo",n.recurringDepositsAccountData.clientAccountNo)}}function ft(e,i){if(1&e&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table",9),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",26),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",26),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"tr"),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"td",26),t._uU(39),t.ALo(40,"number"),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,7,"labels.heading.Account Overview")," "),t.xp6(10),t.Oqu(t.lcZ(14,9,"labels.inputs.Current Balance")),t.xp6(4),t.Oqu(t.gM2(18,11,n.recurringDepositsAccountData.summary.accountBalance,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,16,"labels.inputs.Deposit Amount")),t.xp6(4),t.Oqu(t.gM2(29,18,n.recurringDepositsAccountData.depositAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(36,23,"labels.inputs.Deposit Period")),t.xp6(4),t.Oqu(t.lcZ(40,25,n.recurringDepositsAccountData.depositPeriod))}}function Ut(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.doAction(a.name))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon",29),t._uU(3,"\n "),t._UZ(4,"fa-icon",30),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.qZA()}if(2&e){const n=t.oxw().$implicit;t.xp6(4),t.s9C("icon",n.icon),t.xp6(4),t.hij(" ",t.lcZ(9,2,"labels.menus."+n.name)," ")}}function Zt(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Ut,11,4,"button",27),t._uU(3,"\n "),t.BQk()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",n.taskPermissionName)}}function ht(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw(2);return t.KtG(s.doAction(a.name))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.menus."+n.name))}}function Dt(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,ht,3,3,"button",27),t._uU(3,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",n.taskPermissionName)}}function xt(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",31),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-menu",null,32),t._uU(8,"\n "),t.YNc(9,Dt,4,1,"span",18),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.BQk()),2&e){const n=t.MAs(7),o=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",n),t.xp6(1),t.Oqu(t.lcZ(4,3,"labels.menus.More")),t.xp6(6),t.Q6J("ngForOf",o.buttonConfig.options)}}const Ct=function(){return["./transactions"]};function bt(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"a",21,33),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.BQk()),2&e){const n=t.MAs(3);t.xp6(2),t.Q6J("routerLink",t.DdM(5,Ct))("active",n.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,3,"labels.inputs.Transactions"),"\n ")}}const qt=function(){return["./standing-instructions-tab"]};function vt(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"a",21,34),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.BQk()),2&e){const n=t.MAs(3);t.xp6(2),t.Q6J("routerLink",t.DdM(5,qt))("active",n.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,3,"labels.inputs.Standing Instructions"),"\n ")}}const yt=function(e){return["./datatables",e]};function Rt(e,i){if(1&e&&(t.TgZ(0,"a",21,36),t._uU(2),t.qZA()),2&e){const n=t.MAs(1),o=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,yt,o.registeredTableName))("active",n.isActive),t.xp6(2),t.hij("\n ",o.registeredTableName,"\n ")}}function It(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Rt,3,5,"a",35),t._uU(3,"\n "),t.BQk()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+n.registeredTableName)}}const St=function(){return["./general"]},Nt=function(){return["./interest-rate-chart"]},Ot=function(){return["./charges"]};let wt=(()=>{class e{constructor(n,o,a,s,c,d){this.route=n,this.router=o,this.recurringDepositsService=a,this.savingsService=s,this.dialog=c,this.translateService=d,this.route.data.subscribe(h=>{this.recurringDepositsAccountData=h.recurringDepositsAccountData,this.charges=this.recurringDepositsAccountData.charges,this.savingsDatatables=h.savingsDatatables,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=null!=h.recurringDepositsAccountData.maturityDate,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")})}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){this.buttonConfig=new M(this.recurringDepositsAccountData.status.value),this.recurringDepositsAccountData.clientId&&"Matured"===this.recurringDepositsAccountData.status.value&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.recurringDepositsAccountData.charges&&"Matured"===this.recurringDepositsAccountData.status.value&&this.charges.forEach(o=>{"Annual fee - INR"===o.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.recurringDepositsAccountData.clientId&&"Active"===this.recurringDepositsAccountData.status.value&&(!0===this.recurringDepositsAccountData.allowWithdrawal&&this.buttonConfig.addOption({name:"Withdrawal",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.charges&&this.charges.forEach(o=>{"Annual fee - INR"===o.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.isprematureAllowed||this.buttonConfig.addButton({name:"Close",icon:"arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.taxGroup&&this.buttonConfig.addOption(this.recurringDepositsAccountData.withHoldTax?{name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}:{name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}))}reload(){const o=this.router.url;this.router.navigateByUrl(`/clients/${this.recurringDepositsAccountData.clientId}/recurringdeposits`,{skipLocationChange:!0}).then(()=>this.router.navigate([o]))}doAction(n){switch(n){case"Activate":case"Approve":case"Reject":case"Undo Approval":case"Add Charge":case"Withdrawn by client":case"Premature Close":case"Close":case"Deposit":case"Withdrawal":this.router.navigate([`actions/${n}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit-recurring-deposit-account"],{relativeTo:this.route});break;case"Delete":this.deleteRecurringDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax()}}deleteRecurringDepositsAccount(){this.dialog.open(F.F,{data:{deleteContext:`Recurring deposit account with id: ${this.recurringDepositsAccountData.id}`}}).afterClosed().subscribe(o=>{o.delete&&this.recurringDepositsService.deleteRecurringDepositsAccount(this.recurringDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Calculate Interest"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to calculate interest ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Post Interest"),dialogContext:this.translateService.instant("lables.dialogContext.Are you sure you want to post interest ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Enable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Enable withhold tax for this account ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Disable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Disable withhold tax for this account ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z),t.Y36(O.d),t.Y36(q.uw),t.Y36(T.sK))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-view"]],decls:94,vars:43,consts:[[1,"account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","","matTooltip","Recurring Deposits Account",1,"profile-image",3,"src"],[1,"mat-typography","account-card-title"],["fxFlex","60%"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["fxFlex","auto"],["fxFlex","5%"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],[1,"m-l-10"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(n,o){if(1&n&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",5),t._uU(15,"\n "),t.TgZ(16,"mat-card-title"),t._uU(17,"\n "),t.TgZ(18,"div",6),t._uU(19,"\n "),t.TgZ(20,"h3"),t._uU(21,"\n "),t._UZ(22,"i",7),t.ALo(23,"statusLookup"),t._uU(24),t.ALo(25,"translate"),t._UZ(26,"mifosx-account-number",8),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n "),t.TgZ(29,"span",9),t._uU(30),t.ALo(31,"translate"),t.ALo(32,"translate"),t.YNc(33,Tt,4,1,"span",10),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,ft,45,27,"div",11),t._uU(38,"\n\n "),t._UZ(39,"span",12),t._uU(40,"\n\n "),t.TgZ(41,"div",13),t._uU(42,"\n "),t.TgZ(43,"button",14),t._uU(44,"\n "),t.TgZ(45,"mat-icon",15),t._uU(46,"\n "),t._UZ(47,"fa-icon",16),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n\n "),t.qZA(),t._uU(53,"\n\n "),t.TgZ(54,"mat-menu",null,17),t._uU(56,"\n "),t.YNc(57,Zt,4,1,"ng-container",18),t._uU(58,"\n\n "),t.YNc(59,xt,12,5,"ng-container",11),t._uU(60,"\n\n "),t.qZA(),t._uU(61,"\n\n "),t.qZA(),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"mat-card-content",19),t._uU(65,"\n\n "),t.TgZ(66,"nav",20),t._uU(67,"\n "),t.TgZ(68,"a",21,22),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"a",21,23),t._uU(75),t.ALo(76,"translate"),t.qZA(),t._uU(77,"\n "),t.YNc(78,bt,7,6,"ng-container",11),t._uU(79,"\n "),t.TgZ(80,"a",21,24),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.YNc(85,vt,7,6,"ng-container",11),t._uU(86,"\n "),t.YNc(87,It,4,1,"ng-container",18),t._uU(88,"\n "),t.qZA(),t._uU(89,"\n\n "),t._UZ(90,"router-outlet"),t._uU(91,"\n\n "),t.qZA(),t._uU(92,"\n\n"),t.qZA(),t._uU(93,"\n")),2&n){const a=t.MAs(55),s=t.MAs(69),c=t.MAs(74),d=t.MAs(81);t.xp6(10),t.Q6J("src","assets/images/recurring-deposits_account_placeholder.png",t.LSH),t.xp6(12),t.Q6J("ngClass",t.lcZ(23,26,o.recurringDepositsAccountData.status.code))("matTooltip",o.recurringDepositsAccountData.status.value),t.xp6(2),t.AsE("\n ",t.lcZ(25,28,"labels.inputs.Recurring Deposit")," : ",o.recurringDepositsAccountData.depositProductName,"\n "),t.xp6(2),t.s9C("accountNo",o.recurringDepositsAccountData.accountNo),t.xp6(4),t.lnq("\n ",t.lcZ(31,30,"labels.text."+o.entityType)," ",t.lcZ(32,32,"labels.inputs.name"),":\n ",o.recurringDepositsAccountData.clientName||o.recurringDepositsAccountData.groupName,"\n "),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsAccountData.clientAccountNo),t.xp6(4),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(6),t.Q6J("matMenuTriggerFor",a),t.xp6(14),t.Q6J("ngForOf",o.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",o.buttonConfig.options.length),t.xp6(9),t.Q6J("routerLink",t.DdM(40,St))("active",s.isActive),t.xp6(2),t.hij("\n ",t.lcZ(71,34,"labels.inputs.General"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(41,Nt))("active",c.isActive),t.xp6(2),t.hij("\n ",t.lcZ(76,36,"labels.inputs.Interest Rate Chart"),"\n "),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsAccountData.transactions),t.xp6(2),t.Q6J("routerLink",t.DdM(42,Ot))("active",d.isActive),t.xp6(2),t.hij("\n ",t.lcZ(83,38,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsAccountData.clientId),t.xp6(2),t.Q6J("ngForOf",o.savingsDatatables)}},dependencies:[A.mk,A.sg,A.O5,S.BN,u.xw,u.yH,z.oO,_.lW,f.a8,f.dk,f.C1,f.dn,f.n5,f.nc,_t.Hw,gt.Nh,V.VK,V.OP,V.p6,X.BU,X.Nj,j.gM,dt.t,E.A,l.lC,l.yS,l.Od,A.JJ,A.H9,T.X$,At.F]}),e})();var x=m(37340),p=m(30671);function Lt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function Pt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.lnq("\n ",n.fromPeriod,"-",n.toPeriod,"\xa0",n.periodType.value,"")}}function Ft(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Yt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.amountRangeFrom,"-",n.amountRangeTo,"")}}function Qt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Jt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.annualInterestRate," ")}}function kt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Mt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.description," ")}}function jt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Et(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",21),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function Gt(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",22),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function Bt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",18),t._uU(1,"\n "),t.TgZ(2,"button",19),t.NdJ("click",function(){const s=t.CHM(n).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===s?null:s)}),t._uU(3,"\n "),t.YNc(4,Et,5,3,"span",20),t._uU(5,"\n "),t.YNc(6,Gt,5,3,"span",20),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&e){const n=i.dataIndex,o=t.oxw();t.xp6(4),t.Q6J("ngIf",o.expandChartSlabIndex!==n),t.xp6(2),t.Q6J("ngIf",o.expandChartSlabIndex===n)}}function $t(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Ht(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.entityType.value,"\n ")}}function Wt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Vt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.attributeName.value,"\n ")}}function zt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function Xt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.conditionType.value),"\n ")}}function Kt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function te(e,i){if(1&e&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngSwitch",n.attributeName),t.xp6(1),t.hij("\n ",n.attributeValueDesc,"\n ")}}function ee(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function ne(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.incentiveType.value,"\n ")}}function ie(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function oe(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function ae(e,i){1&e&&t._UZ(0,"tr",36)}function re(e,i){1&e&&t._UZ(0,"tr",37)}function ce(e,i){if(1&e&&(t.TgZ(0,"table",27),t._uU(1,"\n\n "),t.ynx(2,28),t._uU(3,"\n "),t.YNc(4,$t,3,3,"th",7),t._uU(5,"\n "),t.YNc(6,Ht,2,1,"td",8),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,29),t._uU(10,"\n "),t.YNc(11,Wt,3,3,"th",7),t._uU(12,"\n "),t.YNc(13,Vt,2,1,"td",8),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,30),t._uU(17,"\n "),t.YNc(18,zt,3,3,"th",7),t._uU(19,"\n "),t.YNc(20,Xt,3,3,"td",8),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,31),t._uU(24,"\n "),t.YNc(25,Kt,3,3,"th",7),t._uU(26,"\n "),t.YNc(27,te,2,2,"td",32),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,33),t._uU(31,"\n "),t.YNc(32,ee,3,3,"th",7),t._uU(33,"\n "),t.YNc(34,ne,2,1,"td",8),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,34),t._uU(38,"\n "),t.YNc(39,ie,3,3,"th",7),t._uU(40,"\n "),t.YNc(41,oe,2,1,"td",8),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,ae,1,0,"tr",14),t._uU(45,"\n "),t.YNc(46,re,1,0,"tr",15),t._uU(47,"\n\n "),t.qZA()),2&e){const n=t.oxw().$implicit,o=t.oxw();t.Q6J("dataSource",n.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",o.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.incentivesDisplayedColumns)}}function se(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1,"\n\n "),t.TgZ(2,"div",23),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",24),t._uU(5,"\n\n "),t.TgZ(6,"h4",25),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,ce,48,3,"table",26),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&e){const n=i.$implicit,o=i.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",o===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",null==n.incentives?null:n.incentives.length)}}function ue(e,i){1&e&&t._UZ(0,"tr",36)}function pe(e,i){1&e&&t._UZ(0,"tr",37)}function le(e,i){1&e&&t._UZ(0,"tr",38)}let me=(()=>{class e{constructor(n){this.route=n,this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(o=>{this.interestRateChartData=o.recurringDepositsAccountData.accountChart.chartSlabs})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-interest-rate-chart-tab"]],decls:66,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayoutAlign","start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4,5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,Lt,3,3,"th",7),t._uU(20,"\n "),t.YNc(21,Pt,2,3,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,Ft,3,3,"th",7),t._uU(27,"\n "),t.YNc(28,Yt,2,2,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,10),t._uU(32,"\n "),t.YNc(33,Qt,3,3,"th",7),t._uU(34,"\n "),t.YNc(35,Jt,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,11),t._uU(39,"\n "),t.YNc(40,kt,3,3,"th",7),t._uU(41,"\n "),t.YNc(42,Mt,2,1,"td",8),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,12),t._uU(46,"\n "),t.YNc(47,jt,3,3,"th",7),t._uU(48,"\n "),t.YNc(49,Bt,9,2,"td",8),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,13),t._uU(53,"\n "),t.YNc(54,se,14,6,"td",8),t._uU(55,"\n "),t.BQk(),t._uU(56,"\n\n "),t.YNc(57,ue,1,0,"tr",14),t._uU(58,"\n "),t.YNc(59,pe,1,0,"tr",15),t._uU(60,"\n "),t.YNc(61,le,1,0,"tr",16),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n"),t.qZA(),t._uU(65,"\n")),2&n&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.heading.All Interest Rates")),t.xp6(7),t.Q6J("dataSource",o.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsIncentivesDisplayedColumns))},dependencies:[A.O5,A.RF,S.BN,u.xw,u.Wh,u.s9,u.yH,_.lW,f.a8,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,A.rS,T.X$],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,x.X$)("expandChartSlab",[(0,x.SB)("collapsed",(0,x.oB)({height:"0px",minHeight:"0"})),(0,x.SB)("expanded",(0,x.oB)({height:"*"})),(0,x.eR)("expanded <=> collapsed",(0,x.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e})();var w=m(35769);function _e(e,i){1&e&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.ID")," "))}const Y=function(e){return{strike:e}};function ge(e,i){if(1&e&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij(" ",n.id," ")}}function de(e,i){1&e&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Date")," "))}function Ae(e,i){if(1&e&&(t.TgZ(0,"td",14),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(4,Y,n.reversed)),t.xp6(1),t.hij(" ",t.lcZ(2,2,n.date)," ")}}function Te(e,i){1&e&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Type")," "))}function fe(e,i){if(1&e&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij(" ",n.transactionType.value," ")}}function Ue(e,i){1&e&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Debit")," "))}function Ze(e,i){if(1&e&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&e){const n=i.$implicit,o=t.oxw();t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij("\n ",o.isDebit(n.transactionType)?n.amount:"N/A"," ")}}function he(e,i){1&e&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Credit")," "))}function De(e,i){if(1&e&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&e){const n=i.$implicit,o=t.oxw();t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij("\n ",o.isDebit(n.transactionType)?"N/A":n.amount," ")}}function xe(e,i){1&e&&(t.TgZ(0,"th",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Balance")," "))}function Ce(e,i){if(1&e&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij(" ",n.runningBalance," ")}}function be(e,i){1&e&&t._UZ(0,"tr",15)}function qe(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"tr",16),t.NdJ("click",function(){const s=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.showTransactions(s))}),t.qZA()}}let ve=(()=>{class e{constructor(n,o){this.route=n,this.router=o,this.displayedColumns=["id","transactionDate","transactionType","debit","credit","balance"],this.route.parent.data.subscribe(a=>{this.transactionsData=a.recurringDepositsAccountData.transactions,this.status=a.recurringDepositsAccountData.status.value})}ngOnInit(){this.dataSource=new p.by(this.transactionsData)}isDebit(n){return!0===n.withdrawal||!0===n.feeDeduction||!0===n.overdraftInterest||!0===n.withholdTax}showTransactions(n){this.router.navigate(n.transfer?[`account-transfers/account-transfers/${n.transfer.id}`]:[n.id],{relativeTo:this.route})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-transactions-tab"]],decls:55,vars:3,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["matColumnDef","credit"],["matColumnDef","balance"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"table",2),t._uU(5,"\n\n "),t.ynx(6,3),t._uU(7,"\n "),t.YNc(8,_e,3,3,"th",4),t._uU(9,"\n "),t.YNc(10,ge,2,4,"td",5),t._uU(11,"\n "),t.BQk(),t._uU(12,"\n\n "),t.ynx(13,6),t._uU(14,"\n "),t.YNc(15,de,3,3,"th",4),t._uU(16,"\n "),t.YNc(17,Ae,3,6,"td",5),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t.ynx(20,7),t._uU(21,"\n "),t.YNc(22,Te,3,3,"th",4),t._uU(23,"\n "),t.YNc(24,fe,2,4,"td",5),t._uU(25,"\n "),t.BQk(),t._uU(26,"\n\n "),t.ynx(27,8),t._uU(28,"\n "),t.YNc(29,Ue,3,3,"th",4),t._uU(30,"\n "),t.YNc(31,Ze,2,4,"td",5),t._uU(32,"\n "),t.BQk(),t._uU(33,"\n\n "),t.ynx(34,9),t._uU(35,"\n "),t.YNc(36,he,3,3,"th",4),t._uU(37,"\n "),t.YNc(38,De,2,4,"td",5),t._uU(39,"\n "),t.BQk(),t._uU(40,"\n\n "),t.ynx(41,10),t._uU(42,"\n "),t.YNc(43,xe,3,3,"th",4),t._uU(44,"\n "),t.YNc(45,Ce,2,4,"td",5),t._uU(46,"\n "),t.BQk(),t._uU(47,"\n\n "),t.YNc(48,be,1,0,"tr",11),t._uU(49,"\n "),t.YNc(50,qe,1,0,"tr",12),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n "),t.qZA(),t._uU(53,"\n\n"),t.qZA(),t._uU(54,"\n")),2&n&&(t.xp6(4),t.Q6J("dataSource",o.dataSource),t.xp6(44),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[A.mk,z.oO,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,T.X$,w.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}"]}),e})();var v=m(99639),ye=m(35023);const Re=["instructionsTable"];function Ie(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client")," "))}function Se(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.fromClient.displayName,"-",n.fromClient.id,"\n ")}}function Ne(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.From Account")," "))}function Oe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.fromAccount.accountNo,"\n (",n.fromAccountType.value,")")}}function we(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Beneficiary")," "))}function Le(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.Oqu(n.toClient.displayName)}}function Pe(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.To Account")," "))}function Fe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.toAccount.accountNo,"\n (",n.toAccountType.value,")")}}function Ye(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Qe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.instructionType.value,"/",n.amount,"")}}function Je(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Validity")," "))}function ke(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,n.validFrom)," to ",t.lcZ(3,4,n.validTill),"\n ")}}function Me(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}const je=function(e){return["../","standing-instructions",e,"edit"]};function Ee(e,i){if(1&e&&(t.TgZ(0,"button",21),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2).$implicit;t.Q6J("routerLink",t.VKq(1,je,n.id))}}function Ge(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ee,4,3,"button",20),t._uU(3,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Be(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2).$implicit,s=t.oxw();return t.KtG(s.deleteStandingInstruction(a.id))}),t._uU(1,"\n "),t._UZ(2,"i",25),t._uU(3,"\n "),t.qZA()}}function $e(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Be,4,0,"button",23),t._uU(3,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}const He=function(e){return["../","standing-instructions",e,"view"]};function We(e,i){if(1&e&&(t.TgZ(0,"button",26),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,He,n.id))}}function Ve(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,Ge,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,$e,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,We,4,3,"button",19),t._uU(7,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==n.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==n.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function ze(e,i){1&e&&t._UZ(0,"tr",28)}function Xe(e,i){1&e&&t._UZ(0,"tr",29)}let Ke=(()=>{class e{constructor(n,o,a,s,c){this.route=n,this.recurringDepositsService=o,this.dialog=a,this.accountTransfersService=s,this.settingsService=c,this.dataSource=new p.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(d=>{this.recurringDepositsData=d.recurringDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.recurringDepositsService.getStandingInstructions(this.recurringDepositsData.clientId,this.recurringDepositsData.clientName,this.recurringDepositsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(d=>{this.instructionsData=d.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(n){this.dialog.open(F.F,{data:{deleteContext:`standing instruction id: ${n}`}}).afterClosed().subscribe(a=>{a.delete&&this.accountTransfersService.deleteStandingInstrucions(n).subscribe(()=>{})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(Z),t.Y36(q.uw),t.Y36(ye.o),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(n,o){if(1&n&&t.Gf(Re,7),2&n){let a;t.iGM(a=t.CRH())&&(o.instructionTableRef=a.first)}},decls:70,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","View Standing Instruction",3,"routerLink",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",1,"account-action-button",3,"routerLink"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",1,"account-action-button",3,"click"],[1,"fa","fa-times"],["mat-raised-button","","color","primary","matTooltip","View Standing Instruction",1,"account-action-button",3,"routerLink"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n\n "),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"table",3,4),t._uU(13,"\n\n "),t.ynx(14,5),t._uU(15,"\n "),t.YNc(16,Ie,3,3,"th",6),t._uU(17,"\n "),t.YNc(18,Se,2,2,"td",7),t._uU(19,"\n "),t.BQk(),t._uU(20,"\n\n "),t.ynx(21,8),t._uU(22,"\n "),t.YNc(23,Ne,3,3,"th",6),t._uU(24,"\n "),t.YNc(25,Oe,2,2,"td",7),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n "),t.ynx(28,9),t._uU(29,"\n "),t.YNc(30,we,3,3,"th",6),t._uU(31,"\n "),t.YNc(32,Le,2,1,"td",7),t._uU(33,"\n "),t.BQk(),t._uU(34,"\n\n "),t.ynx(35,10),t._uU(36,"\n "),t.YNc(37,Pe,3,3,"th",6),t._uU(38,"\n "),t.YNc(39,Fe,2,2,"td",7),t._uU(40,"\n "),t.BQk(),t._uU(41,"\n\n "),t.ynx(42,11),t._uU(43,"\n "),t.YNc(44,Ye,3,3,"th",6),t._uU(45,"\n "),t.YNc(46,Qe,2,2,"td",7),t._uU(47,"\n "),t.BQk(),t._uU(48,"\n\n "),t.ynx(49,12),t._uU(50,"\n "),t.YNc(51,Je,3,3,"th",6),t._uU(52,"\n "),t.YNc(53,ke,4,6,"td",7),t._uU(54,"\n "),t.BQk(),t._uU(55,"\n\n "),t.ynx(56,13),t._uU(57,"\n "),t.YNc(58,Me,3,3,"th",6),t._uU(59,"\n "),t.YNc(60,Ve,8,3,"td",7),t._uU(61,"\n "),t.BQk(),t._uU(62,"\n\n "),t.YNc(63,ze,1,0,"tr",14),t._uU(64,"\n "),t.YNc(65,Xe,1,0,"tr",15),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n "),t.qZA(),t._uU(68,"\n\n"),t.qZA(),t._uU(69,"\n")),2&n&&(t.xp6(5),t.Oqu(t.lcZ(6,4,"labels.heading.All Standing Instructions")),t.xp6(6),t.Q6J("dataSource",o.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[A.O5,_.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,j.gM,E.A,l.rH,T.X$,w.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),e})();var J=m(34417),G=m(68830),K=m(23107),I=m(73426);const tn=["chargesTable"];function en(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function nn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.name," ")}}function on(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Fee/Penalty")," "))}function an(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",!0===n.penalty?"Penalty":"Fee"," ")}}function rn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Payment Due At")," "))}function cn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.chargeTimeType.value," ")}}function sn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due As Of")," "))}function un(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,n.dueDate)," ")}}function pn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repeats On")," "))}const ln=function(){return[2e3]};function mn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.feeOnMonthDay?t.xi3(2,1,t.DdM(4,ln).concat(n.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function _n(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Calculation Type")," "))}function gn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.chargeCalculationType.value," ")}}function dn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due")," "))}function An(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amount," ")}}function Tn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Paid")," "))}function fn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amountPaid," ")}}function Un(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Waived")," "))}function Zn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amountWaived," ")}}function hn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Outstanding")," "))}function Dn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amountOutstanding," ")}}function xn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Cn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.editCharge(s))}),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA()}}function bn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.deleteCharge(s.id))}),t._uU(1,"\n "),t._UZ(2,"i",29),t._uU(3,"\n "),t.qZA()}}function qn(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Cn,4,0,"button",24),t._uU(3,"\n "),t.YNc(4,bn,4,0,"button",25),t._uU(5,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function vn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(3).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.payCharge(s.id))}),t._uU(1,"\n "),t._UZ(2,"i",33),t._uU(3,"\n "),t.qZA()}}function yn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(3).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.waiveCharge(s.id))}),t._uU(1,"\n "),t._UZ(2,"i",35),t._uU(3,"\n "),t.qZA()}}function Rn(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,vn,4,0,"button",30),t._uU(3,"\n "),t.YNc(4,yn,4,0,"button",31),t._uU(5,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"))}function In(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Rn,6,2,"span",23),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf","Monthly Fee"==n.chargeTimeType.value||"Annual Fee"==n.chargeTimeType.value||"Specified due date"==n.chargeTimeType.value)}}function Sn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1,"\n "),t.YNc(2,qn,6,2,"span",23),t._uU(3,"\n "),t.YNc(4,In,4,1,"span",23),t._uU(5,"\n "),t.qZA()),2&e){const n=i.$implicit,o=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===o.recurringDepositsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"!==o.recurringDepositsAccountData.status.value&&0!==n.amountOutstanding)}}function Nn(e,i){1&e&&t._UZ(0,"tr",36)}function On(e,i){1&e&&t._UZ(0,"tr",37)}let wn=(()=>{class e{constructor(n,o,a,s,c,d,h){this.route=n,this.savingsService=o,this.dateUtils=a,this.router=s,this.dialog=c,this.translateService=d,this.settingsService=h,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(y=>{this.recurringDepositsAccountData=y.recurringDepositsAccountData,this.chargesData=this.recurringDepositsAccountData.charges})}ngOnInit(){const n=this.chargesData?this.chargesData.filter(o=>o.isActive):[];this.dataSource=new p.by(n)}payCharge(n){const o=[new G.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new K.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(J.E,{data:{title:`Pay Charge ${n}`,layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const d=this.settingsService.language.code,h=this.settingsService.dateFormat,y={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,h),dateFormat:h,locale:d};this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"paycharge",y,n).subscribe(()=>{this.reload()})}})}waiveCharge(n){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id: ")+`${n} ?`}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"waive",{},n).subscribe(()=>{this.reload()})})}editCharge(n){const o=[new G.M({controlName:"amount",label:"Amount",value:n.amount||n.amountOrPercentage,type:"number",required:!0})];this.dialog.open(J.E,{data:{title:`Edit Charge ${n.id}`,layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const y={...c.data.value,dateFormat:"dd MMMM yyyy",locale:"en"};this.savingsService.editSavingsAccountCharge(this.recurringDepositsAccountData.id,y,n.id).subscribe(()=>{this.reload()})}})}deleteCharge(n){this.dialog.open(F.F,{data:{deleteContext:`charge id:${n}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.recurringDepositsAccountData.id,n).subscribe(()=>{this.reload()})})}routeEdit(n){n.stopPropagation()}reload(){const o=this.router.url;this.router.navigateByUrl(`/clients/${this.recurringDepositsAccountData.clientId}/recurringdeposits`,{skipLocationChange:!0}).then(()=>this.router.navigate([o]))}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(O.d),t.Y36(I.L),t.Y36(l.F0),t.Y36(q.uw),t.Y36(T.sK),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-charges-tab"]],viewQuery:function(n,o){if(1&n&&t.Gf(tn,7),2&n){let a;t.iGM(a=t.CRH())&&(o.chargesTableRef=a.first)}},decls:101,vars:6,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Charge",1,"account-action-button",3,"click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn","matTooltip","Delete Charge",1,"account-action-button",3,"click"],[1,"fa","fa-trash"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Pay Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Waive Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Pay Charge",1,"account-action-button",3,"click"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary","matTooltip","Waive Charge",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4,5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,en,3,3,"th",7),t._uU(20,"\n "),t.YNc(21,nn,2,1,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,on,3,3,"th",7),t._uU(27,"\n "),t.YNc(28,an,2,1,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,10),t._uU(32,"\n "),t.YNc(33,rn,3,3,"th",7),t._uU(34,"\n "),t.YNc(35,cn,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,11),t._uU(39,"\n "),t.YNc(40,sn,3,3,"th",7),t._uU(41,"\n "),t.YNc(42,un,3,3,"td",8),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,12),t._uU(46,"\n "),t.YNc(47,pn,3,3,"th",7),t._uU(48,"\n "),t.YNc(49,mn,3,5,"td",8),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,13),t._uU(53,"\n "),t.YNc(54,_n,3,3,"th",7),t._uU(55,"\n "),t.YNc(56,gn,2,1,"td",8),t._uU(57,"\n "),t.BQk(),t._uU(58,"\n\n "),t.ynx(59,14),t._uU(60,"\n "),t.YNc(61,dn,3,3,"th",7),t._uU(62,"\n "),t.YNc(63,An,2,2,"td",8),t._uU(64,"\n "),t.BQk(),t._uU(65,"\n\n "),t.ynx(66,15),t._uU(67,"\n "),t.YNc(68,Tn,3,3,"th",7),t._uU(69,"\n "),t.YNc(70,fn,2,2,"td",8),t._uU(71,"\n "),t.BQk(),t._uU(72,"\n\n "),t.ynx(73,16),t._uU(74,"\n "),t.YNc(75,Un,3,3,"th",7),t._uU(76,"\n "),t.YNc(77,Zn,2,2,"td",8),t._uU(78,"\n "),t.BQk(),t._uU(79,"\n\n "),t.ynx(80,17),t._uU(81,"\n "),t.YNc(82,hn,3,3,"th",7),t._uU(83,"\n "),t.YNc(84,Dn,2,2,"td",8),t._uU(85,"\n "),t.BQk(),t._uU(86,"\n\n "),t.ynx(87,18),t._uU(88,"\n "),t.YNc(89,xn,3,3,"th",7),t._uU(90,"\n "),t.YNc(91,Sn,6,2,"td",8),t._uU(92,"\n "),t.BQk(),t._uU(93,"\n\n "),t.YNc(94,Nn,1,0,"tr",19),t._uU(95,"\n "),t.YNc(96,On,1,0,"tr",20),t._uU(97,"\n\n "),t.qZA(),t._uU(98,"\n\n "),t.qZA(),t._uU(99,"\n\n"),t.qZA(),t._uU(100,"\n")),2&n&&(t.xp6(7),t.Oqu(t.lcZ(8,4,"labels.heading.All Charges")),t.xp6(7),t.Q6J("dataSource",o.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[A.O5,u.xw,u.Wh,_.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,j.gM,E.A,T.X$,w.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),e})();var Ln=m(45063);let Pn=(()=>{class e{constructor(n){this.route=n,this.entityId=this.route.parent.parent.snapshot.paramMap.get("recurringDepositAccountId"),this.route.data.subscribe(o=>{this.entityDatatable=o.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Recurring Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&n&&(t.xp6(2),t.Q6J("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[Ln.j]}),e})();var r=m(24006),L=m(3238),U=m(99602),g=m(59549),N=m(284),P=m(84385),b=m(58425);function Fn(e,i){if(1&e&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function Yn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.TgZ(13,"mat-error"),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.TgZ(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA()}if(2&e){const n=t.MAs(11),o=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.inputs.Submitted On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(6),t.AsE("\n ",t.lcZ(15,10,"labels.inputs.Submission Date")," ",t.lcZ(16,12,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(19,14,"labels.commons.required"))}}function Qn(e,i){if(1&e&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.displayName,"\n ")}}function Jn(e,i){if(1&e&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",17),t._uU(7,"\n "),t.YNc(8,Qn,2,2,"mat-option",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Field Officer")),t.xp6(5),t.Q6J("ngForOf",n.fieldOfficerData)}}function kn(e,i){1&e&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",18),t.ALo(7,"translate"),t._uU(8,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.External id")),t.xp6(3),t.s9C("matTooltip",t.lcZ(7,4,"tooltips.Provides an external id")))}let B=(()=>{class e{constructor(n,o,a){this.formBuilder=n,this.recurringDepositsService=o,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.recurringDepositsAccountProductTemplate=new t.vpe,this.createRecurringDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.recurringDepositsAccountTemplate&&(this.productData=this.recurringDepositsAccountTemplate.productOptions,this.recurringDepositsAccountTemplate.depositProductId&&this.recurringDepositAccountDetailsForm.patchValue({productId:this.recurringDepositsAccountTemplate.depositProductId,submittedOnDate:this.recurringDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.recurringDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.recurringDepositsAccountTemplate.externalId}))}createRecurringDepositsAccountDetailsForm(){this.recurringDepositAccountDetailsForm=this.formBuilder.group({productId:["",r.kI.required],submittedOnDate:["",r.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const n=this.recurringDepositsAccountTemplate.clientId;this.recurringDepositAccountDetailsForm.get("productId").valueChanges.subscribe(o=>{this.recurringDepositsService.getRecurringDepositsAccountTemplate(n,o).subscribe(a=>{this.recurringDepositsAccountProductTemplate.emit(a),this.fieldOfficerData=a.fieldOfficerOptions,this.isProductSelected=!0,!this.isFieldOfficerPatched&&this.recurringDepositsAccountTemplate.fieldOfficerId?(this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.recurringDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get recurringDepositAccountDetails(){return this.recurringDepositAccountDetailsForm.value}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-details-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate"},outputs:{recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},decls:48,vars:23,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(n,o){1&n&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,Fn,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,Yn,22,16,"mat-form-field",5),t._uU(26,"\n\n "),t.YNc(27,Jn,11,4,"mat-form-field",6),t._uU(28,"\n\n "),t.YNc(29,kn,9,6,"mat-form-field",6),t._uU(30,"\n\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",7),t._uU(33,"\n "),t.TgZ(34,"button",8),t._uU(35,"\n "),t._UZ(36,"fa-icon",9),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"button",10),t._uU(41),t.ALo(42,"translate"),t._UZ(43,"fa-icon",11),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n"),t.qZA(),t._uU(47,"\n")),2&n&&(t.Q6J("formGroup",o.recurringDepositAccountDetailsForm),t.xp6(7),t.Oqu(t.lcZ(8,11,"labels.inputs.Product Name")),t.xp6(5),t.Q6J("ngForOf",o.productData),t.xp6(4),t.AsE("\n ",t.lcZ(17,13,"labels.inputs.Product Name")," ",t.lcZ(18,15,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,17,"labels.commons.required")),t.xp6(5),t.Q6J("ngIf",o.isProductSelected),t.xp6(2),t.Q6J("ngIf",o.isProductSelected),t.xp6(2),t.Q6J("ngIf",o.isProductSelected),t.xp6(8),t.hij("\n ",t.lcZ(38,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(42,21,"labels.buttons.Next"),"\n "))},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.yH,L.ey,_.lW,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,b.Ic,b.fd,j.gM,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,T.X$],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),e})();function Mn(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function jn(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function En(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Gn(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}let $=(()=>{class e{constructor(n,o){this.formBuilder=n,this.settingsService=o,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createRecurringDepositsAccountTermsForm()}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&this.setOptions()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate.id&&this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountTemplate.interestCalculationDaysInYearType.id})}createRecurringDepositsAccountTermsForm(){this.recurringDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",r.kI.required],interestPostingPeriodType:["",r.kI.required],interestCalculationType:["",r.kI.required],interestCalculationDaysInYearType:["",r.kI.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.recurringDepositsAccountTemplate.id||this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearType.id})}get recurringDepositAccountTerms(){return this.recurringDepositAccountTermsForm.value}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-terms-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[t.TTD],decls:105,vars:59,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","interestCompoundingPeriodType","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"]],template:function(n,o){1&n&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,Mn,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field",2),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",5),t._uU(32,"\n "),t.YNc(33,jn,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.TgZ(36,"mat-error"),t._uU(37),t.ALo(38,"translate"),t.ALo(39,"translate"),t.TgZ(40,"strong"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.TgZ(46,"mat-form-field",2),t._uU(47,"\n "),t.TgZ(48,"mat-label"),t._uU(49),t.ALo(50,"translate"),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"mat-select",6),t._uU(53,"\n "),t.YNc(54,En,2,2,"mat-option",4),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"mat-error"),t._uU(58),t.ALo(59,"translate"),t.ALo(60,"translate"),t.TgZ(61,"strong"),t._uU(62),t.ALo(63,"translate"),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"mat-form-field",2),t._uU(68,"\n "),t.TgZ(69,"mat-label"),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"mat-select",7),t._uU(74,"\n "),t.YNc(75,Gn,2,2,"mat-option",4),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.TgZ(78,"mat-error"),t._uU(79),t.ALo(80,"translate"),t.ALo(81,"translate"),t.TgZ(82,"strong"),t._uU(83),t.ALo(84,"translate"),t.qZA(),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n "),t.qZA(),t._uU(87,"\n\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",8),t._uU(90,"\n "),t.TgZ(91,"button",9),t._uU(92,"\n "),t._UZ(93,"fa-icon",10),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"button",11),t._uU(98),t.ALo(99,"translate"),t._UZ(100,"fa-icon",12),t._uU(101,"\n "),t.qZA(),t._uU(102,"\n "),t.qZA(),t._uU(103,"\n\n"),t.qZA(),t._uU(104,"\n")),2&n&&(t.Q6J("formGroup",o.recurringDepositAccountTermsForm),t.xp6(7),t.Oqu(t.lcZ(8,23,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Q6J("ngForOf",o.interestCompoundingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(17,25,"labels.inputs.Interest Compounding Period")," ",t.lcZ(18,27,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,29,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(29,31,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Q6J("ngForOf",o.interestPostingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(38,33,"labels.inputs.Interest Posting Period")," ",t.lcZ(39,35,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(42,37,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(50,39,"labels.inputs.Interest Calculated using")),t.xp6(5),t.Q6J("ngForOf",o.interestCalculationTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(59,41,"labels.inputs.Interest Calculated using")," ",t.lcZ(60,43,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(63,45,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(71,47,"labels.inputs.Days in Year")),t.xp6(5),t.Q6J("ngForOf",o.interestCalculationDaysInYearTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(80,49,"labels.inputs.Days in Year")," ",t.lcZ(81,51,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(84,53,"labels.commons.required")),t.xp6(11),t.hij("\n ",t.lcZ(95,55,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(99,57,"labels.buttons.Next"),"\n "))},dependencies:[A.sg,S.BN,u.xw,u.SQ,u.Wh,u.yH,L.ey,_.lW,g.TO,g.KE,g.hX,P.gD,b.Ic,b.fd,r._Y,r.JJ,r.JL,r.Q7,r.sg,r.u,T.X$]}),e})();var Bn=m(56709),tt=m(44850);function $n(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Hn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Wn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Vn(e,i){if(1&e){const n=t.EpF();t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"mat-form-field",32),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(13);return t.KtG(a.open())}),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",33),t._uU(9,"\n "),t._UZ(10,"mat-datepicker-toggle",34),t._uU(11,"\n "),t._UZ(12,"mat-datepicker",null,35),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"h4",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",6),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",36),t._uU(27,"\n "),t.TgZ(28,"mat-error"),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"translate"),t.TgZ(32,"strong"),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-form-field",6),t._uU(39,"\n "),t.TgZ(40,"mat-label"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"mat-select",37),t._uU(45,"\n "),t.YNc(46,Wn,2,2,"mat-option",9),t._uU(47,"\n "),t.qZA(),t._uU(48,"\n "),t.TgZ(49,"mat-error"),t._uU(50),t.ALo(51,"translate"),t.ALo(52,"translate"),t.TgZ(53,"strong"),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n "),t.BQk()}if(2&e){const n=t.MAs(13),o=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,15,"labels.inputs.Deposit Start Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(7),t.Oqu(t.lcZ(18,17,"labels.heading.Deposit Frequency")),t.xp6(6),t.Oqu(t.lcZ(24,19,"labels.inputs.Deposit Frequency")),t.xp6(6),t.AsE("\n ",t.lcZ(30,21,"labels.inputs.Deposit Frequency")," ",t.lcZ(31,23,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(34,25,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(42,27,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(51,29,"labels.inputs.Deposit Frequency Type")," ",t.lcZ(52,31,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(55,33,"labels.commons.required"))}}function zn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Xn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Kn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ti(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ei(e,i){1&e&&(t.TgZ(0,"mat-form-field",6),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",40),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Tax Group")))}function ni(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"h4",5),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t.TgZ(6,"mat-checkbox",38),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,ei,8,3,"mat-form-field",39),t._uU(11,"\n "),t.BQk()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.heading.Tax Group")),t.xp6(4),t.hij("\n ",t.lcZ(8,5,"labels.inputs.Is Withhold Tax Applicable"),"?\n "),t.xp6(3),t.Q6J("ngIf",n.recurringDepositAccountSettingsForm.controls.taxGroupId)}}let H=(()=>{class e{constructor(n,o){this.formBuilder=n,this.settingsService=o,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createRecurringDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.recurringDepositAccountSettingsForm.patchValue({isMandatoryDeposit:this.recurringDepositsAccountProductTemplate.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:this.recurringDepositsAccountProductTemplate.adjustAdvanceTowardsFuturePayments,allowWithdrawal:this.recurringDepositsAccountProductTemplate.allowWithdrawal,lockinPeriodFrequency:this.recurringDepositsAccountProductTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyType?this.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyType.id:"",minDepositTerm:this.recurringDepositsAccountProductTemplate.minDepositTerm,minDepositTermTypeId:this.recurringDepositsAccountProductTemplate.minDepositTermType?this.recurringDepositsAccountProductTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType?this.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType.id:"",maxDepositTerm:this.recurringDepositsAccountProductTemplate.maxDepositTerm,maxDepositTermTypeId:this.recurringDepositsAccountProductTemplate.maxDepositTermType?this.recurringDepositsAccountProductTemplate.maxDepositTermType.id:"",preClosurePenalApplicable:this.recurringDepositsAccountProductTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.recurringDepositsAccountProductTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.recurringDepositsAccountProductTemplate.preClosurePenalInterestOnType?this.recurringDepositsAccountProductTemplate.preClosurePenalInterestOnType.id:"",minBalanceForInterestCalculation:this.recurringDepositsAccountProductTemplate.minBalanceForInterestCalculation,depositPeriod:this.recurringDepositsAccountProductTemplate.minDepositTerm,depositPeriodFrequencyId:this.recurringDepositsAccountProductTemplate.minDepositTermType.id}),this.recurringDepositsAccountProductTemplate.withHoldTax?(this.recurringDepositAccountSettingsForm.addControl("withHoldTax",new r.p4(!1)),this.recurringDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(n=>{n?(this.recurringDepositAccountSettingsForm.addControl("taxGroupId",new r.p4({value:"",disabled:!0})),this.recurringDepositAccountSettingsForm.get("taxGroupId").patchValue(this.recurringDepositsAccountProductTemplate.taxGroup&&this.recurringDepositsAccountProductTemplate.taxGroup.name)):this.recurringDepositAccountSettingsForm.removeControl("taxGroupId")}),this.recurringDepositAccountSettingsForm.get("withHoldTax").patchValue(this.recurringDepositsAccountTemplate.withHoldTax)):this.recurringDepositAccountSettingsForm.removeControl("withHoldTax"),this.taxGroup=this.recurringDepositsAccountProductTemplate.taxGroup,this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate&&this.recurringDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.recurringDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType&&this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType.id,mandatoryRecommendedDepositAmount:this.recurringDepositsAccountTemplate.mandatoryRecommendedDepositAmount})}createRecurringDepositAccountSettingsForm(){this.recurringDepositAccountSettingsForm=this.formBuilder.group({isMandatoryDeposit:[""],adjustAdvanceTowardsFuturePayments:[""],allowWithdrawal:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],mandatoryRecommendedDepositAmount:["",r.kI.required],depositPeriod:["",r.kI.required],depositPeriodFrequencyId:["",r.kI.required],isCalendarInherited:[""],expectedFirstDepositOnDate:[""],recurringFrequency:["",r.kI.required],recurringFrequencyType:["",r.kI.required],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.recurringDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.preClosurePenalInterestOnTypeData=this.recurringDepositsAccountProductTemplate.preClosurePenalInterestOnTypeOptions}buildDependencies(){this.recurringDepositAccountSettingsForm.get("isCalendarInherited").valueChanges.subscribe(n=>{n?(this.recurringDepositAccountSettingsForm.removeControl("expectedFirstDepositOnDate"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequency"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequencyType")):(this.recurringDepositAccountSettingsForm.addControl("expectedFirstDepositOnDate",new r.p4),this.recurringDepositAccountSettingsForm.addControl("recurringFrequency",new r.p4("")),this.recurringDepositAccountSettingsForm.addControl("recurringFrequencyType",new r.p4("")))})}get recurringDepositAccountSettings(){return this.recurringDepositAccountSettingsForm.value}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-settings-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[t.TTD],decls:249,vars:120,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%","labelPosition","before","formControlName","isMandatoryDeposit",1,"margin-v"],["fxFlex","48%","labelPosition","before","formControlName","adjustAdvanceTowardsFuturePayments",1,"margin-v"],["fxFlex","48%","labelPosition","before","formControlName","allowWithdrawal",1,"margin-v"],["fxFlex","98%",1,"mat-h4"],["fxFlex","48%"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value",4,"ngFor","ngForOf"],["type","number","matInput","","formControlName","mandatoryRecommendedDepositAmount","required",""],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],["fxFlex","48%","labelPosition","before","formControlName","isCalendarInherited",1,"margin-v"],[4,"ngIf"],["fxFlex","98%"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],["fxFlex","73%","labelPosition","before","formControlName","preClosurePenalApplicable",1,"margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","expectedFirstDepositOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["expectedFirstDepositOnDatePicker",""],["type","number","matInput","","formControlName","recurringFrequency","required",""],["formControlName","recurringFrequencyType","required",""],["fxFlex","48%","labelPosition","before","formControlName","withHoldTax",1,"margin-v"],["fxFlex","48%",4,"ngIf"],["type","text","matInput","","formControlName","taxGroupId"]],template:function(n,o){1&n&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-checkbox",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"mat-checkbox",3),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"mat-checkbox",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"h4",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",6),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",7),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field",6),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"mat-select",8),t._uU(36,"\n "),t.YNc(37,$n,2,2,"mat-option",9),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.TgZ(41,"h4",5),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n\n "),t.TgZ(45,"mat-form-field",6),t._uU(46,"\n "),t.TgZ(47,"mat-label"),t._uU(48),t.ALo(49,"translate"),t.qZA(),t._uU(50,"\n "),t._UZ(51,"input",10),t._uU(52,"\n "),t.TgZ(53,"mat-error"),t._uU(54),t.ALo(55,"translate"),t.ALo(56,"translate"),t.TgZ(57,"strong"),t._uU(58),t.ALo(59,"translate"),t.qZA(),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n\n "),t.TgZ(63,"h4",5),t._uU(64),t.ALo(65,"translate"),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"mat-form-field",6),t._uU(68,"\n "),t.TgZ(69,"mat-label"),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t._UZ(73,"input",11),t._uU(74,"\n "),t.qZA(),t._uU(75,"\n\n "),t.TgZ(76,"mat-form-field",6),t._uU(77,"\n "),t.TgZ(78,"mat-label"),t._uU(79),t.ALo(80,"translate"),t.qZA(),t._uU(81,"\n "),t.TgZ(82,"mat-select",12),t._uU(83,"\n "),t.YNc(84,Hn,2,2,"mat-option",9),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n "),t.qZA(),t._uU(87,"\n\n "),t.TgZ(88,"mat-checkbox",13),t._uU(89),t.ALo(90,"translate"),t.qZA(),t._uU(91,"\n\n "),t.YNc(92,Vn,59,35,"ng-container",14),t._uU(93,"\n\n\n "),t._UZ(94,"mat-divider",15),t._uU(95,"\n\n "),t.TgZ(96,"h4",5),t._uU(97),t.ALo(98,"translate"),t.qZA(),t._uU(99,"\n\n "),t.TgZ(100,"mat-form-field",6),t._uU(101,"\n "),t.TgZ(102,"mat-label"),t._uU(103),t.ALo(104,"translate"),t.qZA(),t._uU(105,"\n "),t._UZ(106,"input",16),t._uU(107,"\n "),t.TgZ(108,"mat-error"),t._uU(109),t.ALo(110,"translate"),t.ALo(111,"translate"),t.TgZ(112,"strong"),t._uU(113),t.ALo(114,"translate"),t.qZA(),t._uU(115,"\n "),t.qZA(),t._uU(116,"\n "),t.qZA(),t._uU(117,"\n\n "),t.TgZ(118,"mat-form-field",6),t._uU(119,"\n "),t.TgZ(120,"mat-label"),t._uU(121),t.ALo(122,"translate"),t.qZA(),t._uU(123,"\n "),t.TgZ(124,"mat-select",17),t._uU(125,"\n "),t.YNc(126,zn,2,2,"mat-option",9),t._uU(127,"\n "),t.qZA(),t._uU(128,"\n "),t.TgZ(129,"mat-error"),t._uU(130),t.ALo(131,"translate"),t.ALo(132,"translate"),t.TgZ(133,"strong"),t._uU(134),t.ALo(135,"translate"),t.qZA(),t._uU(136,"\n "),t.qZA(),t._uU(137,"\n "),t.qZA(),t._uU(138,"\n\n "),t.TgZ(139,"h4",5),t._uU(140),t.ALo(141,"translate"),t.qZA(),t._uU(142,"\n\n "),t.TgZ(143,"mat-form-field",6),t._uU(144,"\n "),t.TgZ(145,"mat-label"),t._uU(146),t.ALo(147,"translate"),t.qZA(),t._uU(148,"\n "),t._UZ(149,"input",18),t._uU(150,"\n "),t.qZA(),t._uU(151,"\n\n "),t.TgZ(152,"mat-form-field",6),t._uU(153,"\n "),t.TgZ(154,"mat-label"),t._uU(155),t.ALo(156,"translate"),t.qZA(),t._uU(157,"\n "),t.TgZ(158,"mat-select",19),t._uU(159,"\n "),t.YNc(160,Xn,2,2,"mat-option",9),t._uU(161,"\n "),t.qZA(),t._uU(162,"\n "),t.qZA(),t._uU(163,"\n\n "),t.TgZ(164,"h4",5),t._uU(165),t.ALo(166,"translate"),t.qZA(),t._uU(167,"\n\n "),t.TgZ(168,"mat-form-field",6),t._uU(169,"\n "),t.TgZ(170,"mat-label"),t._uU(171),t.ALo(172,"translate"),t.qZA(),t._uU(173,"\n "),t._UZ(174,"input",20),t._uU(175,"\n "),t.qZA(),t._uU(176,"\n\n "),t.TgZ(177,"mat-form-field",6),t._uU(178,"\n "),t.TgZ(179,"mat-label"),t._uU(180),t.ALo(181,"translate"),t.qZA(),t._uU(182,"\n "),t.TgZ(183,"mat-select",21),t._uU(184,"\n "),t.YNc(185,Kn,2,2,"mat-option",9),t._uU(186,"\n "),t.qZA(),t._uU(187,"\n "),t.qZA(),t._uU(188,"\n\n "),t._UZ(189,"mat-divider",15),t._uU(190,"\n\n "),t.TgZ(191,"h4",5),t._uU(192),t.ALo(193,"translate"),t.qZA(),t._uU(194,"\n\n "),t.TgZ(195,"mat-checkbox",22),t._uU(196),t.ALo(197,"translate"),t.qZA(),t._uU(198,"\n\n "),t.TgZ(199,"mat-form-field",6),t._uU(200,"\n "),t.TgZ(201,"mat-label"),t._uU(202),t.ALo(203,"translate"),t.qZA(),t._uU(204,"\n "),t._UZ(205,"input",23),t._uU(206,"\n "),t.qZA(),t._uU(207,"\n\n "),t.TgZ(208,"mat-form-field",6),t._uU(209,"\n "),t.TgZ(210,"mat-label"),t._uU(211),t.ALo(212,"translate"),t.qZA(),t._uU(213,"\n "),t.TgZ(214,"mat-select",24),t._uU(215,"\n "),t.YNc(216,ti,2,2,"mat-option",9),t._uU(217,"\n "),t.qZA(),t._uU(218,"\n "),t.qZA(),t._uU(219,"\n\n "),t._uU(220,"\n\n "),t.TgZ(221,"mat-form-field",6),t._uU(222,"\n "),t.TgZ(223,"mat-label"),t._uU(224),t.ALo(225,"translate"),t.qZA(),t._uU(226,"\n "),t._UZ(227,"input",25),t._uU(228,"\n "),t.qZA(),t._uU(229,"\n\n "),t.YNc(230,ni,12,7,"ng-container",14),t._uU(231,"\n\n "),t.qZA(),t._uU(232,"\n\n "),t.TgZ(233,"div",26),t._uU(234,"\n "),t.TgZ(235,"button",27),t._uU(236,"\n "),t._UZ(237,"fa-icon",28),t._uU(238),t.ALo(239,"translate"),t.qZA(),t._uU(240,"\n "),t.TgZ(241,"button",29),t._uU(242),t.ALo(243,"translate"),t._UZ(244,"fa-icon",30),t._uU(245,"\n "),t.qZA(),t._uU(246,"\n "),t.qZA(),t._uU(247,"\n\n"),t.qZA(),t._uU(248,"\n")),2&n&&(t.Q6J("formGroup",o.recurringDepositAccountSettingsForm),t.xp6(5),t.hij("\n ",t.lcZ(6,46,"labels.inputs.Is Mandatory Deposit"),"?\n "),t.xp6(4),t.hij("\n ",t.lcZ(10,48,"labels.inputs.Adjust advance payments toward future installments"),"?\n "),t.xp6(4),t.hij("\n ",t.lcZ(14,50,"labels.inputs.Allow Withdrawals"),"?\n "),t.xp6(4),t.Oqu(t.lcZ(18,52,"labels.heading.Lock-in Period")),t.xp6(6),t.Oqu(t.lcZ(24,54,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(33,56,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.lockinPeriodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(43,58,"labels.heading.Recurring Deposit Details")),t.xp6(6),t.Oqu(t.lcZ(49,60,"labels.inputs.Recurring Deposit Amount")),t.xp6(6),t.AsE("\n ",t.lcZ(55,62,"labels.inputs.Recurring Deposit Amount")," ",t.lcZ(56,64,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(59,66,"labels.commons.required")),t.xp6(6),t.Oqu(t.lcZ(65,68,"labels.heading.Deposit Period")),t.xp6(6),t.Oqu(t.lcZ(71,70,"labels.inputs.Deposit Period")),t.xp6(9),t.Oqu(t.lcZ(80,72,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(5),t.hij("\n ",t.lcZ(90,74,"labels.inputs.Deposit Frequency Same as Group/Center meeting"),"\n "),t.xp6(3),t.Q6J("ngIf",!o.recurringDepositAccountSettingsForm.value.isCalendarInherited),t.xp6(5),t.Oqu(t.lcZ(98,76,"labels.heading.Minimum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(104,78,"labels.inputs.Frequency")),t.xp6(6),t.AsE("\n ",t.lcZ(110,80,"labels.inputs.Minimum Deposit Term Frequency")," ",t.lcZ(111,82,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(114,84,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(122,86,"labels.inputs.Frequency Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(131,88,"labels.inputs.Minimum Deposit Term Frequency Type")," ",t.lcZ(132,90,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(135,92,"labels.commons.required")),t.xp6(6),t.Oqu(t.lcZ(141,94,"labels.heading.And thereafter, in Multiples of")),t.xp6(6),t.Oqu(t.lcZ(147,96,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(156,98,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(166,100,"labels.heading.Maximum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(172,102,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(181,104,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(7),t.Oqu(t.lcZ(193,106,"labels.heading.For Pre-mature closure")),t.xp6(4),t.hij("\n ",t.lcZ(197,108,"labels.inputs.Apply Penal Interest (less)"),"\n "),t.xp6(6),t.hij("",t.lcZ(203,110,"labels.inputs.Penal Interest")," (%)"),t.xp6(9),t.Oqu(t.lcZ(212,112,"labels.inputs.Period")),t.xp6(5),t.Q6J("ngForOf",o.preClosurePenalInterestOnTypeData),t.xp6(8),t.Oqu(t.lcZ(225,114,"labels.inputs.Minimum Balance For Interest Calculation")),t.xp6(6),t.Q6J("ngIf",o.taxGroup),t.xp6(8),t.hij("\n ",t.lcZ(239,116,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(243,118,"labels.buttons.Next"),"\n "))},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.yH,L.ey,_.lW,Bn.oG,U.Mq,U.hl,U.nW,tt.d,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,b.Ic,b.fd,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,T.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),e})();function ii(e,i){if(1&e&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function oi(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function ai(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.name+", "+n.currency.displaySymbol,"\n ")}}function ri(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function ci(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeCalculationType.value,"\n ")}}function si(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function ui(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",26),t._uU(1),t.TgZ(2,"button",27),t.NdJ("click",function(){const s=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.editChargeAmount(s))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",28),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}if(2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function pi(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function li(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeTimeType.value,"\n ")}}function mi(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function _i(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.dueDate)||"Unassigned","\n ")}}function gi(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.feeOnMonthDay)||"Unassigned","\n ")}}function di(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function Ai(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.editChargeDate(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function Ti(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1,"\n "),t.YNc(2,_i,3,3,"span",29),t._uU(3,"\n "),t.YNc(4,gi,3,3,"span",29),t._uU(5,"\n "),t.YNc(6,di,3,3,"span",29),t._uU(7,"\n "),t.YNc(8,Ai,4,0,"button",30),t._uU(9,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value||"Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value||"Specified due date"===n.chargeTimeType.value)}}function fi(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function Ui(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.editChargeFeeInterval(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function Zi(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,Ui,4,0,"button",30),t._uU(3,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.feeInterval||"Not Provided","\n "),t.xp6(1),t.Q6J("ngIf","Weekly Fee"===n.chargeTimeType.value||"Monthly Fee"===n.chargeTimeType.value)}}function hi(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Di(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",26),t._uU(1,"\n "),t.TgZ(2,"button",31),t.NdJ("click",function(){const s=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.deleteCharge(s))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",32),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function xi(e,i){1&e&&t._UZ(0,"tr",33)}function Ci(e,i){1&e&&t._UZ(0,"tr",34)}let W=(()=>{class e{constructor(n,o,a){this.dialog=n,this.dateUtils=o,this.settingsService=a,this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.pristine=!0,this.isChargesPatched=!1,this.currency=null}ngOnInit(){this.chargesDataSource=[],this.recurringDepositsAccountTemplate.id&&this.recurringDepositsAccountTemplate.charges&&(this.chargesDataSource=this.recurringDepositsAccountTemplate.charges.map(n=>({...n,id:n.chargeId}))||[])}ngOnChanges(){null==this.currency&&(this.recurringDepositsAccountTemplate.currency?this.currency=this.recurringDepositsAccountTemplate.currency:this.recurringDepositsAccountProductTemplate&&this.recurringDepositsAccountProductTemplate.currency&&(this.currency=this.recurringDepositsAccountProductTemplate.currency)),this.recurringDepositsAccountProductTemplate&&(this.chargeData=this.recurringDepositsAccountProductTemplate.chargeOptions.filter(n=>n.currency.code===this.currency.code))}addCharge(n){this.chargesDataSource=this.chargesDataSource.concat([n.value]),n.value="",this.pristine=!1}editChargeAmount(n){const o=[new G.M({controlName:"amount",label:"Amount",value:n.amount,type:"number",required:!1})];this.dialog.open(J.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const d={...n,amount:c.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(n){const o=[new K.d({controlName:"date",label:"Date",value:n.dueDate||n.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(J.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){let d;const y=this.dateUtils.formatDate(c.data.value.date,this.settingsService.dateFormat);switch(n.chargeTimeType.value){case"Specified due date":case"Weekly Fee":d={...n,dueDate:y};break;case"Annual Fee":d={...n,feeOnMonthDay:y}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(n){const o=[new G.M({controlName:"feeInterval",label:"Fee Interval",value:n.feeInterval,type:"text",required:!1})];this.dialog.open(J.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const d={...n,feeInterval:c.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(n){this.dialog.open(F.F,{data:{deleteContext:`charge ${n.name}`}}).afterClosed().subscribe(a=>{a.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get recurringDepositAccountCharges(){return{charges:this.chargesDataSource}}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(q.uw),t.Y36(I.L),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-charges-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",currencyCode:"currencyCode",recurringDepositAccountFormValid:"recurringDepositAccountFormValid"},features:[t.TTD],decls:96,vars:19,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-select",null,2),t._uU(10,"\n "),t.YNc(11,ii,2,2,"mat-option",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",4),t._uU(16,"\n "),t.TgZ(17,"button",5),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(9);return t.KtG(o.addCharge(c))}),t._uU(18,"\n "),t._UZ(19,"fa-icon",6),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"table",7),t._uU(25,"\n\n "),t.ynx(26,8),t._uU(27,"\n "),t.YNc(28,oi,3,3,"th",9),t._uU(29,"\n "),t.YNc(30,ai,2,1,"td",10),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,ri,3,3,"th",9),t._uU(36,"\n "),t.YNc(37,ci,2,1,"td",10),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,si,3,3,"th",9),t._uU(43,"\n "),t.YNc(44,ui,7,1,"td",10),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,pi,3,3,"th",9),t._uU(50,"\n "),t.YNc(51,li,2,1,"td",10),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,mi,3,3,"th",9),t._uU(57,"\n "),t.YNc(58,Ti,10,4,"td",10),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,fi,3,3,"th",9),t._uU(64,"\n "),t.YNc(65,Zi,4,2,"td",10),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,hi,3,3,"th",9),t._uU(71,"\n "),t.YNc(72,Di,7,0,"td",10),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.YNc(75,xi,1,0,"tr",17),t._uU(76,"\n "),t.YNc(77,Ci,1,0,"tr",18),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n"),t.qZA(),t._uU(80,"\n\n"),t.TgZ(81,"div",19),t._uU(82,"\n "),t.TgZ(83,"button",20),t._uU(84,"\n "),t._UZ(85,"fa-icon",21),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"button",22),t._uU(90),t.ALo(91,"translate"),t._UZ(92,"fa-icon",23),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n"),t.qZA(),t._uU(95,"\n")}if(2&n){const a=t.MAs(9);t.xp6(5),t.Oqu(t.lcZ(6,11,"labels.inputs.Charge")),t.xp6(6),t.Q6J("ngForOf",o.chargeData),t.xp6(6),t.Q6J("disabled",!a.value),t.xp6(3),t.hij("\n ",t.lcZ(21,13,"labels.buttons.Add"),"\n "),t.xp6(4),t.Q6J("dataSource",o.chargesDataSource)("hidden",0===o.chargesDataSource.length),t.xp6(51),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(87,15,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("disabled",!o.recurringDepositAccountFormValid),t.xp6(1),t.hij("\n ",t.lcZ(91,17,"labels.buttons.Next"),"\n ")}},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.XD,u.yH,L.ey,_.lW,g.KE,g.hX,P.gD,b.Ic,b.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,T.X$,w.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),e})();var et=m(30637);const bi=["chartsTable"];function qi(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(n.recurringDepositsAccountProductTemplate.accountChart.name)}}function vi(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function yi(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.description)}}function Ri(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function Ii(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.lnq("\n ",n.fromPeriod,"-",n.toPeriod,"\xa0",n.periodType.value,"")}}function Si(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Ni(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.amountRangeFrom,"-",n.amountRangeTo,"")}}function Oi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function wi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.annualInterestRate," ")}}function Li(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Pi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.description," ")}}function Fi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Yi(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",27),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function Qi(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function Ji(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",24),t._uU(1,"\n "),t.TgZ(2,"button",25),t.NdJ("click",function(){const s=t.CHM(n).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===s?null:s)}),t._uU(3,"\n "),t.YNc(4,Yi,5,3,"span",26),t._uU(5,"\n "),t.YNc(6,Qi,5,3,"span",26),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&e){const n=i.dataIndex,o=t.oxw();t.xp6(4),t.Q6J("ngIf",o.expandChartSlabIndex!==n),t.xp6(2),t.Q6J("ngIf",o.expandChartSlabIndex===n)}}function ki(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Mi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.entityType.value,"\n ")}}function ji(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Ei(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.attributeName.value,"\n ")}}function Gi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function Bi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.conditionType.value),"\n ")}}function $i(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Hi(e,i){if(1&e&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngSwitch",n.attributeName),t.xp6(1),t.hij("\n ",n.attributeValueDesc,"\n ")}}function Wi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function Vi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.incentiveType.value,"\n ")}}function zi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Xi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function Ki(e,i){1&e&&t._UZ(0,"tr",42)}function to(e,i){1&e&&t._UZ(0,"tr",43)}function eo(e,i){if(1&e&&(t.TgZ(0,"table",33),t._uU(1,"\n\n "),t.ynx(2,34),t._uU(3,"\n "),t.YNc(4,ki,3,3,"th",8),t._uU(5,"\n "),t.YNc(6,Mi,2,1,"td",9),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,35),t._uU(10,"\n "),t.YNc(11,ji,3,3,"th",8),t._uU(12,"\n "),t.YNc(13,Ei,2,1,"td",9),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,36),t._uU(17,"\n "),t.YNc(18,Gi,3,3,"th",8),t._uU(19,"\n "),t.YNc(20,Bi,3,3,"td",9),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,37),t._uU(24,"\n "),t.YNc(25,$i,3,3,"th",8),t._uU(26,"\n "),t.YNc(27,Hi,2,2,"td",38),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,39),t._uU(31,"\n "),t.YNc(32,Wi,3,3,"th",8),t._uU(33,"\n "),t.YNc(34,Vi,2,1,"td",9),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,40),t._uU(38,"\n "),t.YNc(39,zi,3,3,"th",8),t._uU(40,"\n "),t.YNc(41,Xi,2,1,"td",9),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,Ki,1,0,"tr",15),t._uU(45,"\n "),t.YNc(46,to,1,0,"tr",16),t._uU(47,"\n\n "),t.qZA()),2&e){const n=t.oxw().$implicit,o=t.oxw();t.Q6J("dataSource",n.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",o.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.incentivesDisplayedColumns)}}function no(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1,"\n\n "),t.TgZ(2,"div",29),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",30),t._uU(5,"\n\n "),t.TgZ(6,"h4",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,eo,48,3,"table",32),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&e){const n=i.$implicit,o=i.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",o===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",n.incentives.length)}}function io(e,i){1&e&&t._UZ(0,"tr",42)}function oo(e,i){1&e&&t._UZ(0,"tr",43)}function ao(e,i){1&e&&t._UZ(0,"tr",44)}let nt=(()=>{class e{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}ngOnInit(){this.interestRateChartData=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-interest-rate-chart-step"]],viewQuery:function(n,o){if(1&n&&t.Gf(bi,7),2&n){let a;t.iGM(a=t.CRH())&&(o.chartsTableRef=a.first)}},inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[t.TTD],decls:96,vars:25,consts:[["fxLayout","column","fxLayoutGap","2%"],["fxFlexFill","",4,"ngIf"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.YNc(2,qi,9,4,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"span",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"span",4),t._uU(11),t.ALo(12,"dateFormat"),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.YNc(15,vi,10,6,"div",1),t._uU(16,"\n\n "),t.YNc(17,yi,9,4,"div",1),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"yesNo"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"table",5,6),t._uU(32,"\n\n "),t.ynx(33,7),t._uU(34,"\n "),t.YNc(35,Ri,3,3,"th",8),t._uU(36,"\n "),t.YNc(37,Ii,2,3,"td",9),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,10),t._uU(41,"\n "),t.YNc(42,Si,3,3,"th",8),t._uU(43,"\n "),t.YNc(44,Ni,2,2,"td",9),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,11),t._uU(48,"\n "),t.YNc(49,Oi,3,3,"th",8),t._uU(50,"\n "),t.YNc(51,wi,2,1,"td",9),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,12),t._uU(55,"\n "),t.YNc(56,Li,3,3,"th",8),t._uU(57,"\n "),t.YNc(58,Pi,2,1,"td",9),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,13),t._uU(62,"\n "),t.YNc(63,Fi,3,3,"th",8),t._uU(64,"\n "),t.YNc(65,Ji,9,2,"td",9),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,14),t._uU(69,"\n "),t.YNc(70,no,14,6,"td",9),t._uU(71,"\n "),t.BQk(),t._uU(72,"\n\n "),t.YNc(73,io,1,0,"tr",15),t._uU(74,"\n "),t.YNc(75,oo,1,0,"tr",16),t._uU(76,"\n "),t.YNc(77,ao,1,0,"tr",17),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n"),t.qZA(),t._uU(80,"\n\n"),t.TgZ(81,"div",18),t._uU(82,"\n "),t.TgZ(83,"button",19),t._uU(84,"\n "),t._UZ(85,"fa-icon",20),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"button",21),t._uU(90),t.ALo(91,"translate"),t._UZ(92,"fa-icon",22),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n"),t.qZA(),t._uU(95,"\n")),2&n&&(t.xp6(2),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(8,13,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(12,15,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(23,17,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(t.lcZ(27,19,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),t.xp6(4),t.Q6J("dataSource",o.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsIncentivesDisplayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(87,21,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(91,23,"labels.buttons.Next"),"\n "))},dependencies:[A.O5,A.RF,S.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,_.lW,f.a8,b.Ic,b.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,A.rS,T.X$,w.E,et.D],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,x.X$)("expandChartSlab",[(0,x.SB)("collapsed",(0,x.oB)({height:"0px",minHeight:"0"})),(0,x.SB)("expanded",(0,x.oB)({height:"*"})),(0,x.eR)("expanded <=> collapsed",(0,x.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e})();var ro=m(27676),co=m(39122);function so(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Lock-in Period"),":"),t.xp6(4),t.Oqu(n.recurringDepositAccountData.lockinPeriodFrequency+" "+t.gM2(8,4,n.recurringDepositAccountData.lockinPeriodFrequencyType,n.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function uo(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Recurring Deposit Amount"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,n.recurringDepositAccountData.mandatoryRecommendedDepositAmount))}}function po(e,i){if(1&e&&(t.TgZ(0,"span",4),t._uU(1),t.ALo(2,"find"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.recurringDepositAccountData.recurringFrequency+" "+t.gM2(2,1,n.recurringDepositAccountData.recurringFrequencyType,n.recurringDepositsAccountProductTemplate.periodFrequencyTypeData,"id","value"))}}function lo(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"div",2),t._uU(3,"\n "),t.TgZ(4,"span",3),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"span",4),t._uU(9),t.ALo(10,"dateFormat"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"div",2),t._uU(14,"\n "),t.TgZ(15,"span",3),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.YNc(19,po,3,6,"span",26),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.BQk()),2&e){const n=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,4,"labels.inputs.Deposit Start Date"),":"),t.xp6(4),t.Oqu(t.lcZ(10,6,n.recurringDepositAccountData.expectedFirstDepositOnDate)),t.xp6(7),t.hij("",t.lcZ(17,8,"labels.inputs.Deposit Frequency"),":"),t.xp6(3),t.Q6J("ngIf",n.recurringDepositAccountData.recurringFrequency)}}function mo(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.name)}}function _o(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function go(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.description)}}function Ao(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function To(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.lnq("\n ",n.fromPeriod,"-",n.toPeriod,"\xa0",n.periodType.value,"")}}function fo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Uo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.amountRangeFrom,"-",n.amountRangeTo,"")}}function Zo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function ho(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.annualInterestRate," ")}}function Do(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function xo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.description," ")}}function Co(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function bo(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function qo(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",31),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function vo(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"button",29),t.NdJ("click",function(){const s=t.CHM(n).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===s?null:s)}),t._uU(3,"\n "),t.YNc(4,bo,5,3,"span",6),t._uU(5,"\n "),t.YNc(6,qo,5,3,"span",6),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&e){const n=i.dataIndex,o=t.oxw();t.xp6(4),t.Q6J("ngIf",o.expandChartSlabIndex!==n),t.xp6(2),t.Q6J("ngIf",o.expandChartSlabIndex===n)}}function yo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Ro(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.entityType.value,"\n ")}}function Io(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function So(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.attributeName.value,"\n ")}}function No(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function Oo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.conditionType.value),"\n ")}}function wo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Lo(e,i){if(1&e&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngSwitch",n.attributeName),t.xp6(1),t.hij("\n ",n.attributeValueDesc,"\n ")}}function Po(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function Fo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.incentiveType.value,"\n ")}}function Yo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Qo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function Jo(e,i){1&e&&t._UZ(0,"tr",45)}function ko(e,i){1&e&&t._UZ(0,"tr",46)}function Mo(e,i){if(1&e&&(t.TgZ(0,"table",36),t._uU(1,"\n\n "),t.ynx(2,37),t._uU(3,"\n "),t.YNc(4,yo,3,3,"th",10),t._uU(5,"\n "),t.YNc(6,Ro,2,1,"td",11),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,38),t._uU(10,"\n "),t.YNc(11,Io,3,3,"th",10),t._uU(12,"\n "),t.YNc(13,So,2,1,"td",11),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,39),t._uU(17,"\n "),t.YNc(18,No,3,3,"th",10),t._uU(19,"\n "),t.YNc(20,Oo,3,3,"td",11),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,40),t._uU(24,"\n "),t.YNc(25,wo,3,3,"th",10),t._uU(26,"\n "),t.YNc(27,Lo,2,2,"td",41),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,42),t._uU(31,"\n "),t.YNc(32,Po,3,3,"th",10),t._uU(33,"\n "),t.YNc(34,Fo,2,1,"td",11),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,43),t._uU(38,"\n "),t.YNc(39,Yo,3,3,"th",10),t._uU(40,"\n "),t.YNc(41,Qo,2,1,"td",11),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,Jo,1,0,"tr",17),t._uU(45,"\n "),t.YNc(46,ko,1,0,"tr",18),t._uU(47,"\n\n "),t.qZA()),2&e){const n=t.oxw().$implicit,o=t.oxw();t.Q6J("dataSource",n.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",o.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.incentivesDisplayedColumns)}}function jo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1,"\n\n "),t.TgZ(2,"div",32),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",33),t._uU(5,"\n\n "),t.TgZ(6,"h4",34),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,Mo,48,3,"table",35),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&e){const n=i.$implicit,o=i.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",o===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",n.incentives.length)}}function Eo(e,i){1&e&&t._UZ(0,"tr",45)}function Go(e,i){1&e&&t._UZ(0,"tr",46)}function Bo(e,i){1&e&&t._UZ(0,"tr",47)}function $o(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function Ho(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.name+", "+n.currency.displaySymbol,"\n ")}}function Wo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Vo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeCalculationType.value,"\n ")}}function zo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Xo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function Ko(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function ta(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.dueDate)||"Unassigned","\n ")}}function ea(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.feeOnMonthDay)||"Unassigned","\n ")}}function na(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function ia(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,ta,3,3,"span",6),t._uU(3,"\n "),t.YNc(4,ea,3,3,"span",6),t._uU(5,"\n "),t.YNc(6,na,3,3,"span",6),t._uU(7,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value||"Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value))}}function oa(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function aa(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.feeInterval||"Not Provided","\n ")}}function ra(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function ca(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeTimeType.value,"\n ")}}function sa(e,i){1&e&&t._UZ(0,"tr",45)}function ua(e,i){1&e&&t._UZ(0,"tr",46)}function pa(e,i){if(1&e&&(t.TgZ(0,"div",48),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"table",36),t._uU(9,"\n\n "),t.ynx(10,49),t._uU(11,"\n "),t.YNc(12,$o,3,3,"th",10),t._uU(13,"\n "),t.YNc(14,Ho,2,1,"td",11),t._uU(15,"\n "),t.BQk(),t._uU(16,"\n\n "),t.ynx(17,50),t._uU(18,"\n "),t.YNc(19,Wo,3,3,"th",10),t._uU(20,"\n "),t.YNc(21,Vo,2,1,"td",11),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,43),t._uU(25,"\n "),t.YNc(26,zo,3,3,"th",10),t._uU(27,"\n "),t.YNc(28,Xo,2,1,"td",11),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,51),t._uU(32,"\n "),t.YNc(33,Ko,3,3,"th",10),t._uU(34,"\n "),t.YNc(35,ia,8,3,"td",11),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,52),t._uU(39,"\n "),t.YNc(40,oa,3,3,"th",10),t._uU(41,"\n "),t.YNc(42,aa,2,1,"td",11),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,53),t._uU(46,"\n "),t.YNc(47,ra,3,3,"th",10),t._uU(48,"\n "),t.YNc(49,ca,2,1,"td",11),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.YNc(52,sa,1,0,"tr",17),t._uU(53,"\n "),t.YNc(54,ua,1,0,"tr",18),t._uU(55,"\n\n "),t.qZA(),t._uU(56,"\n\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,4,"labels.heading.Charges")),t.xp6(5),t.Q6J("dataSource",n.recurringDepositAccountData.charges),t.xp6(44),t.Q6J("matHeaderRowDef",n.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",n.chargesDisplayedColumns)}}const la=function(){return["../"]};let it=(()=>{class e{constructor(){this.submit=new t.vpe,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-preview-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",recurringDepositAccountData:"recurringDepositAccountData"},outputs:{submit:"submit"},features:[t.TTD],decls:296,vars:146,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlexFill","",4,"ngIf"],[4,"ngIf"],["fxFlexFill","","fxLayout","column",1,"margin-b"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["fxFlex","60%",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"span",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"span",4),t._uU(15),t.ALo(16,"find"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"dateFormat"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"div",2),t._uU(31,"\n "),t.TgZ(32,"span",3),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n "),t.TgZ(36,"span",4),t._uU(37),t.ALo(38,"find"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.TgZ(41,"h3",1),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n\n "),t._UZ(45,"mat-divider",2),t._uU(46,"\n\n "),t.TgZ(47,"div",2),t._uU(48,"\n "),t.TgZ(49,"span",3),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"span",4),t._uU(54),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n\n "),t.TgZ(57,"div",2),t._uU(58,"\n "),t.TgZ(59,"span",3),t._uU(60),t.ALo(61,"translate"),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"span",4),t._uU(64),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"div",2),t._uU(68,"\n "),t.TgZ(69,"span",3),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"span",4),t._uU(74),t.qZA(),t._uU(75,"\n "),t.qZA(),t._uU(76,"\n\n "),t.TgZ(77,"h3",1),t._uU(78),t.ALo(79,"translate"),t.qZA(),t._uU(80,"\n "),t._UZ(81,"mat-divider",2),t._uU(82,"\n\n "),t.TgZ(83,"div",2),t._uU(84,"\n "),t.TgZ(85,"span",3),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"span",4),t._uU(90),t.ALo(91,"find"),t.qZA(),t._uU(92,"\n "),t.qZA(),t._uU(93,"\n\n "),t.TgZ(94,"div",2),t._uU(95,"\n "),t.TgZ(96,"span",3),t._uU(97),t.ALo(98,"translate"),t.qZA(),t._uU(99,"\n "),t.TgZ(100,"span",4),t._uU(101),t.ALo(102,"find"),t.qZA(),t._uU(103,"\n "),t.qZA(),t._uU(104,"\n\n "),t.TgZ(105,"div",2),t._uU(106,"\n "),t.TgZ(107,"span",3),t._uU(108),t.ALo(109,"translate"),t.qZA(),t._uU(110,"\n "),t.TgZ(111,"span",4),t._uU(112),t.ALo(113,"find"),t.qZA(),t._uU(114,"\n "),t.qZA(),t._uU(115,"\n\n "),t.TgZ(116,"div",2),t._uU(117,"\n "),t.TgZ(118,"span",3),t._uU(119),t.ALo(120,"translate"),t.qZA(),t._uU(121,"\n "),t.TgZ(122,"span",4),t._uU(123),t.ALo(124,"find"),t.qZA(),t._uU(125,"\n "),t.qZA(),t._uU(126,"\n\n "),t.TgZ(127,"h3",1),t._uU(128),t.ALo(129,"translate"),t.qZA(),t._uU(130,"\n\n "),t._UZ(131,"mat-divider",2),t._uU(132,"\n\n "),t.YNc(133,so,10,9,"div",5),t._uU(134,"\n\n "),t.YNc(135,uo,10,6,"div",5),t._uU(136,"\n\n "),t.TgZ(137,"div",2),t._uU(138,"\n "),t.TgZ(139,"span",3),t._uU(140),t.ALo(141,"translate"),t.qZA(),t._uU(142,"\n "),t.TgZ(143,"span",4),t._uU(144),t.ALo(145,"find"),t.qZA(),t._uU(146,"\n "),t.qZA(),t._uU(147,"\n\n "),t.TgZ(148,"div",2),t._uU(149,"\n "),t.TgZ(150,"span",3),t._uU(151),t.ALo(152,"translate"),t.qZA(),t._uU(153,"\n "),t.TgZ(154,"span",4),t._uU(155),t.qZA(),t._uU(156,"\n "),t.qZA(),t._uU(157,"\n\n "),t.YNc(158,lo,22,10,"ng-container",6),t._uU(159,"\n\n\n "),t.TgZ(160,"div",2),t._uU(161,"\n "),t.TgZ(162,"span",3),t._uU(163),t.ALo(164,"translate"),t.qZA(),t._uU(165,"\n "),t.TgZ(166,"span",4),t._uU(167),t.qZA(),t._uU(168,"\n "),t.qZA(),t._uU(169,"\n\n "),t.TgZ(170,"div",2),t._uU(171,"\n "),t.TgZ(172,"span",3),t._uU(173),t.ALo(174,"translate"),t.qZA(),t._uU(175,"\n "),t.TgZ(176,"span",4),t._uU(177),t.qZA(),t._uU(178,"\n "),t.qZA(),t._uU(179,"\n\n "),t.TgZ(180,"div",2),t._uU(181,"\n "),t.TgZ(182,"span",3),t._uU(183),t.ALo(184,"translate"),t.qZA(),t._uU(185,"\n "),t.TgZ(186,"span",4),t._uU(187),t.qZA(),t._uU(188,"\n "),t.qZA(),t._uU(189,"\n\n\n "),t.TgZ(190,"h3",1),t._uU(191),t.ALo(192,"translate"),t.qZA(),t._uU(193,"\n\n "),t._UZ(194,"mat-divider",2),t._uU(195,"\n\n "),t.TgZ(196,"div",7),t._uU(197,"\n\n "),t.YNc(198,mo,9,4,"div",5),t._uU(199,"\n\n "),t.TgZ(200,"div",2),t._uU(201,"\n "),t.TgZ(202,"span",3),t._uU(203),t.ALo(204,"translate"),t.qZA(),t._uU(205,"\n "),t.TgZ(206,"span",4),t._uU(207),t.ALo(208,"dateFormat"),t.qZA(),t._uU(209,"\n "),t.qZA(),t._uU(210,"\n\n "),t.YNc(211,_o,10,6,"div",5),t._uU(212,"\n\n "),t.YNc(213,go,9,4,"div",5),t._uU(214,"\n\n "),t.TgZ(215,"div",2),t._uU(216,"\n "),t.TgZ(217,"span",3),t._uU(218),t.ALo(219,"translate"),t.qZA(),t._uU(220,"\n "),t.TgZ(221,"span",4),t._uU(222),t.ALo(223,"yesNo"),t.qZA(),t._uU(224,"\n "),t.qZA(),t._uU(225,"\n\n "),t.TgZ(226,"table",8),t._uU(227,"\n\n "),t.ynx(228,9),t._uU(229,"\n "),t.YNc(230,Ao,3,3,"th",10),t._uU(231,"\n "),t.YNc(232,To,2,3,"td",11),t._uU(233,"\n "),t.BQk(),t._uU(234,"\n\n "),t.ynx(235,12),t._uU(236,"\n "),t.YNc(237,fo,3,3,"th",10),t._uU(238,"\n "),t.YNc(239,Uo,2,2,"td",11),t._uU(240,"\n "),t.BQk(),t._uU(241,"\n\n "),t.ynx(242,13),t._uU(243,"\n "),t.YNc(244,Zo,3,3,"th",10),t._uU(245,"\n "),t.YNc(246,ho,2,1,"td",11),t._uU(247,"\n "),t.BQk(),t._uU(248,"\n\n "),t.ynx(249,14),t._uU(250,"\n "),t.YNc(251,Do,3,3,"th",10),t._uU(252,"\n "),t.YNc(253,xo,2,1,"td",11),t._uU(254,"\n "),t.BQk(),t._uU(255,"\n\n "),t.ynx(256,15),t._uU(257,"\n "),t.YNc(258,Co,3,3,"th",10),t._uU(259,"\n "),t.YNc(260,vo,9,2,"td",11),t._uU(261,"\n "),t.BQk(),t._uU(262,"\n\n "),t.ynx(263,16),t._uU(264,"\n "),t.YNc(265,jo,14,6,"td",11),t._uU(266,"\n "),t.BQk(),t._uU(267,"\n\n "),t.YNc(268,Eo,1,0,"tr",17),t._uU(269,"\n "),t.YNc(270,Go,1,0,"tr",18),t._uU(271,"\n "),t.YNc(272,Bo,1,0,"tr",19),t._uU(273,"\n\n "),t.qZA(),t._uU(274,"\n\n "),t.qZA(),t._uU(275,"\n\n "),t.YNc(276,pa,57,6,"div",20),t._uU(277,"\n\n"),t.qZA(),t._uU(278,"\n\n"),t.TgZ(279,"div",21),t._uU(280,"\n "),t.TgZ(281,"button",22),t._uU(282,"\n "),t._UZ(283,"fa-icon",23),t._uU(284),t.ALo(285,"translate"),t.qZA(),t._uU(286,"\n "),t.TgZ(287,"button",24),t._uU(288),t.ALo(289,"translate"),t.qZA(),t._uU(290,"\n "),t.TgZ(291,"button",25),t.NdJ("click",function(){return o.submit.emit()}),t._uU(292),t.ALo(293,"translate"),t.qZA(),t._uU(294,"\n"),t.qZA(),t._uU(295,"\n")),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,54,"labels.heading.Details")),t.xp6(8),t.Oqu(t.lcZ(12,56,"labels.inputs.Product")),t.xp6(4),t.Oqu(t.gM2(16,58,o.recurringDepositAccountData.productId,o.recurringDepositsAccountTemplate.productOptions,"id","name")),t.xp6(7),t.Oqu(t.lcZ(23,63,"labels.inputs.Submitted On")),t.xp6(4),t.Oqu(t.lcZ(27,65,o.recurringDepositAccountData.submittedOnDate)),t.xp6(7),t.Oqu(t.lcZ(34,67,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(t.gM2(38,69,o.recurringDepositAccountData.fieldOfficerId,o.recurringDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),t.xp6(5),t.Oqu(t.lcZ(43,74,"labels.heading.Currency")),t.xp6(8),t.Oqu(t.lcZ(51,76,"labels.inputs.Currency")),t.xp6(4),t.Oqu(o.recurringDepositsAccountProductTemplate.currency.code),t.xp6(6),t.Oqu(t.lcZ(61,78,"labels.inputs.Decimal Places")),t.xp6(4),t.Oqu(o.recurringDepositsAccountProductTemplate.currency.decimalPlaces),t.xp6(6),t.Oqu(t.lcZ(71,80,"labels.inputs.Currency In Multiples Of")),t.xp6(4),t.Oqu(o.recurringDepositsAccountProductTemplate.currency.inMultiplesOf),t.xp6(4),t.Oqu(t.lcZ(79,82,"labels.heading.Terms")),t.xp6(8),t.hij("",t.lcZ(87,84,"labels.inputs.Interest Compounding Period"),":"),t.xp6(4),t.Oqu(t.gM2(91,86,o.recurringDepositAccountData.interestCompoundingPeriodType,o.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(98,91,"labels.inputs.Interest Posting Period"),":"),t.xp6(4),t.Oqu(t.gM2(102,93,o.recurringDepositAccountData.interestPostingPeriodType,o.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(109,98,"labels.inputs.Interest Calculated using"),":"),t.xp6(4),t.Oqu(t.gM2(113,100,o.recurringDepositAccountData.interestCalculationType,o.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(120,105,"labels.inputs.Days in Year"),":"),t.xp6(4),t.Oqu(t.gM2(124,107,o.recurringDepositAccountData.interestCalculationDaysInYearType,o.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(5),t.Oqu(t.lcZ(129,112,"labels.heading.Settings")),t.xp6(5),t.Q6J("ngIf",o.recurringDepositAccountData.lockinPeriodFrequency),t.xp6(2),t.Q6J("ngIf",o.recurringDepositAccountData.mandatoryRecommendedDepositAmount),t.xp6(5),t.hij("",t.lcZ(141,114,"labels.inputs.Deposit Period"),":"),t.xp6(4),t.Oqu(o.recurringDepositAccountData.depositPeriod+" "+t.gM2(145,116,o.recurringDepositAccountData.depositPeriodFrequencyId,o.recurringDepositsAccountProductTemplate.periodFrequencyTypeData,"id","value")),t.xp6(7),t.hij("",t.lcZ(152,121,"labels.inputs.Deposit Frequency Same as Group/Center meeting"),":"),t.xp6(4),t.Oqu(!0===o.recurringDepositsAccountProductTemplate.isCalendarInherited?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",!o.recurringDepositsAccountProductTemplate.isCalendarInherited),t.xp6(5),t.hij("",t.lcZ(164,123,"labels.inputs.Minimum Deposit Term"),":"),t.xp6(4),t.Oqu((o.recurringDepositsAccountProductTemplate.minDepositTerm?o.recurringDepositsAccountProductTemplate.minDepositTerm:"")+" "+(o.recurringDepositsAccountProductTemplate.minDepositTermType?o.recurringDepositsAccountProductTemplate.minDepositTermType.value:"")),t.xp6(6),t.hij("",t.lcZ(174,125,"labels.inputs.In Multiples Of"),":"),t.xp6(4),t.Oqu((o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm?o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm:"")+" "+(o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType?o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value:"")),t.xp6(6),t.Oqu(t.lcZ(184,127,"labels.inputs.Maximum Deposit Term")),t.xp6(4),t.Oqu((o.recurringDepositsAccountProductTemplate.maxDepositTerm?o.recurringDepositsAccountProductTemplate.maxDepositTerm:"")+" "+(o.recurringDepositsAccountProductTemplate.maxDepositTermType?o.recurringDepositsAccountProductTemplate.maxDepositTermType.value:"")),t.xp6(4),t.Oqu(t.lcZ(192,129,"labels.inputs.Interest Rate Chart")),t.xp6(7),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(204,131,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(208,133,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(219,135,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(t.lcZ(223,137,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),t.xp6(4),t.Q6J("dataSource",o.interestRateChartData),t.xp6(42),t.Q6J("matHeaderRowDef",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsIncentivesDisplayedColumns),t.xp6(4),t.Q6J("ngIf",o.recurringDepositAccountData.charges.length),t.xp6(8),t.hij("\n ",t.lcZ(285,139,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(145,la)),t.xp6(1),t.hij("\n ",t.lcZ(289,141,"labels.buttons.Cancel"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(293,143,"labels.buttons.Submit"),"\n "))},dependencies:[A.O5,A.RF,S.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,_.lW,f.a8,tt.d,b.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,l.rH,A.rS,T.X$,ro.Z,w.E,co.w,et.D],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,x.X$)("expandChartSlab",[(0,x.SB)("collapsed",(0,x.oB)({height:"0px",minHeight:"0"})),(0,x.SB)("expanded",(0,x.oB)({height:"*"})),(0,x.eR)("expanded <=> collapsed",(0,x.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e})();function ma(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function _a(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function ga(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function da(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Aa(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Ta(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function fa(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function Ua(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function Za(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function ha(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function Da(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function xa(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,Da,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-recurring-deposits-account-preview-step",18),t.NdJ("submit",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&e){const n=t.oxw();t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",n.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",n.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",n.recurringDepositAccountData)}}let Ca=(()=>{class e{constructor(n,o,a,s,c){this.route=n,this.router=o,this.dateUtils=a,this.recurringDepositsService=s,this.settingsService=c,this.route.data.subscribe(d=>{this.recurringDepositsAccountTemplate=d.recurringDepositsAccountTemplate})}setTemplate(n){this.recurringDepositsAccountProductTemplate=n}ngOnInit(){}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValid(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid}get recurringDepositAccountData(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}get recurringDepositAccount(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}submit(){const n=this.settingsService.language.code,o=this.settingsService.dateFormat,s={...this.recurringDepositAccount,clientId:this.recurringDepositsAccountTemplate.clientId,charges:this.recurringDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,o),feeOnMonthDay:c.feeOnMonthDay,feeInterval:c.feeInterval})),isCalendarInherited:!!this.recurringDepositAccount.recurringDepositAccount&&this.recurringDepositAccount.recurringDepositAccount,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,o),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,o),dateFormat:o,monthDayFormat:"dd MMMM",locale:n};this.recurringDepositsService.createRecurringDepositAccount(s).subscribe(c=>{this.router.navigate(["../",c.resourceId],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-create-recurring-deposits-account"]],viewQuery:function(n,o){if(1&n&&(t.Gf(B,7),t.Gf($,7),t.Gf(H,7),t.Gf(W,7)),2&n){let a;t.iGM(a=t.CRH())&&(o.recurringDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["recurringDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData","submit"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n "),t.YNc(5,ma,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,_a,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,ga,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,da,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Aa,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,Ta,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-recurring-deposits-account-details-step",10),t.NdJ("recurringDepositsAccountProductTemplate",function(s){return o.setTemplate(s)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,fa,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-recurring-deposits-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,Ua,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-recurring-deposits-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,Za,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-recurring-deposits-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,ha,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-recurring-deposits-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,xa,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&n&&(t.xp6(15),t.Q6J("stepControl",o.recurringDepositAccountDetailsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountTermsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountSettingsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",o.recurringDepositAccountFormValid),t.xp6(4),t.Q6J("ngIf",o.recurringDepositAccountFormValid))},dependencies:[A.O5,S.BN,b.C0,b.VY,b.Vq,b.z9,B,$,H,nt,W,it,T.X$]}),e})();function ba(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const qa=function(){return["../../"]};let va=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateRecurringDepositsAccountForm()}createActivateRecurringDepositsAccountForm(){this.activateRecurringDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",r.kI.required]})}submit(){const n=this.activateRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.activatedOnDate instanceof Date&&(n.activatedOnDate=this.dateUtils.formatDate(this.activateRecurringDepositsAccountForm.value.activatedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"activate",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-activate-recurring-deposits-account"]],decls:39,vars:18,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(19);return t.KtG(c.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,ba,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&n){const a=t.MAs(19);t.xp6(4),t.Q6J("formGroup",o.activateRecurringDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.activateRecurringDepositsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,qa)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.activateRecurringDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();var Q=m(39349);const ya=function(){return["../../"]};let Ra=(()=>{class e{constructor(n,o,a,s){this.formBuilder=n,this.recurringDepositsService=o,this.route=a,this.router=s,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.createUndoApprovalRecurringDepositsAccountForm()}createUndoApprovalRecurringDepositsAccountForm(){this.undoApprovalRecurringDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){const n={...this.undoApprovalRecurringDepositsAccountForm.value};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"undoapproval",n).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(l.gz),t.Y36(l.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-undo-approval-recurring-deposits-account"]],decls:32,vars:13,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&n&&(t.xp6(4),t.Q6J("formGroup",o.undoApprovalRecurringDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,ya)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.undoApprovalRecurringDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[u.xw,u.SQ,u.Wh,u.yH,_.lW,f.a8,f.dn,f.hq,g.KE,g.hX,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Ia(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Sa=function(){return["../../"]};let Na=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveRecurringDepositsAccountForm()}createApproveRecurringDepositsAccountForm(){this.approveRecurringDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",r.kI.required],note:[""]})}submit(){const n=this.approveRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.approvedOnDate instanceof Date&&(n.approvedOnDate=this.dateUtils.formatDate(this.approveRecurringDepositsAccountForm.value.approvedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"approve",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-approve-recurring-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Ia,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.approveRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.approveRecurringDepositsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Sa)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.approveRecurringDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Oa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const wa=function(){return["../../"]};let La=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectRecurringDepositsAccountForm()}createRejectRecurringDepositsAccountForm(){this.rejectRecurringDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",r.kI.required],note:[""]})}submit(){const n=this.rejectRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.rejectedOnDate instanceof Date&&(n.rejectedOnDate=this.dateUtils.formatDate(this.rejectRecurringDepositsAccountForm.value.rejectedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"reject",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-reject-recurring-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Oa,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.rejectRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.rejectRecurringDepositsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,wa)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.rejectRecurringDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Pa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Fa=function(){return["../../"]};let Ya=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawRecurringDepositsAccountForm()}createWithdrawRecurringDepositsAccountForm(){this.withdrawRecurringDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",r.kI.required],note:[""]})}submit(){const n=this.withdrawRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.withdrawnOnDate instanceof Date&&(n.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawRecurringDepositsAccountForm.value.withdrawnOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"withdrawnByApplicant",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-withdraw-by-client-recurring-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Pa,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.withdrawRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.withdrawRecurringDepositsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Fa)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.withdrawRecurringDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Qa(e,i){if(1&e&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name+" ("+n.currency.name+")","\n ")}}function Ja(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ka(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ma(e,i){if(1&e&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ja(e,i){if(1&e&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Ea(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ga(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,Ea,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&e){const n=t.MAs(11),o=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(5),t.Q6J("ngIf",o.recurringDepositsChargeForm.controls.dueDate.hasError("required"))}}function Ba(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function $a(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,Ba,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&e){const n=t.MAs(11),o=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(5),t.Q6J("ngIf",o.recurringDepositsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function Ha(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Wa(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,ka,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,Ma,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,ja,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,Ga,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,$a,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,Ha,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",n.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",n.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsChargeForm.contains("feeInterval"))}}const Va=function(){return["../../"]};let za=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.savingsService=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(h=>{this.savingsChargeOptions=h.recurringDepositsAccountActionData.chargeOptions}),this.recurringDepositAccountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRecurringDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.recurringDepositsChargeForm.controls.chargeId.valueChanges.subscribe(n=>{this.savingsService.getChargeTemplate(n).subscribe(o=>{this.chargeDetails=o;const a=o.chargeTimeType.id;("Withdrawal Fee"===o.chargeTimeType.value||"Saving No Activity Fee"===o.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===o.chargeTimeType.value||"Monthly Fee"===o.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.removeControl("dueDate"):this.recurringDepositsChargeForm.addControl("dueDate",new r.p4("",r.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.addControl("feeOnMonthDay",new r.p4("",r.kI.required)):this.recurringDepositsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===a.value?this.recurringDepositsChargeForm.addControl("feeInterval",new r.p4(o.feeInterval,r.kI.required)):this.recurringDepositsChargeForm.removeControl("feeInterval"),this.recurringDepositsChargeForm.patchValue({amount:o.amount,chargeCalculationType:o.chargeCalculationType.id,chargeTimeType:o.chargeTimeType.id})})})}createRecurringDepositsChargeForm(){this.recurringDepositsChargeForm=this.formBuilder.group({chargeId:["",r.kI.required],amount:["",r.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const n=this.recurringDepositsChargeForm.value;if(n.locale=this.settingsService.language.code,n.feeInterval||(n.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const o="MMMM-dd";n.monthDayFormat=o,n.feeOnMonthDay&&(n.feeOnMonthDay=this.dateUtils.formatDate(this.recurringDepositsChargeForm.value.feeOnMonthDay,o))}else{const o=this.settingsService.dateFormat;n.dateFormat=o,n.dueDate&&(n.dueDate=this.dateUtils.formatDate(this.recurringDepositsChargeForm.value.dueDate,o))}this.savingsService.createSavingsCharge(this.recurringDepositAccountId,"charges",n).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(O.d),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-add-charge-recurring-deposits-account"]],decls:42,vars:16,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,Qa,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,Ja,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Wa,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&n&&(t.xp6(4),t.Q6J("formGroup",o.recurringDepositsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",o.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",o.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,Va)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.recurringDepositsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,L.ey,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),e})();function Xa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ka=function(){return["../../"]};let tr=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createprematureCloseRecurringDepositsAccountForm()}createprematureCloseRecurringDepositsAccountForm(){this.prematureCloseRecurringDepositsAccountForm=this.formBuilder.group({closedOnDate:["",r.kI.required]})}submit(){const n=this.prematureCloseRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.closedOnDate instanceof Date&&(n.closedOnDate=this.dateUtils.formatDate(this.prematureCloseRecurringDepositsAccountForm.value.closedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"prematureClose",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-premature-close-recurring-deposit-account"]],decls:42,vars:18,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Xa,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"mat-card-actions",8),t._uU(29,"\n "),t.TgZ(30,"button",9),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"button",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.prematureCloseRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,11,"labels.inputs.Closed On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.prematureCloseRecurringDepositsAccountForm.controls.closedOnDate.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(17,Ka)),t.xp6(1),t.Oqu(t.lcZ(32,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.prematureCloseRecurringDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(36,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function er(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function nr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Maturity Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ir(e,i){if(1&e&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function or(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Action")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ar(e,i){if(1&e&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function rr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Payment Type")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function cr(e,i){1&e&&(t.TgZ(0,"button",22),t._uU(1,"\n "),t._UZ(2,"i",23),t._uU(3,"\n "),t.qZA())}function sr(e,i){1&e&&(t.TgZ(0,"button",22),t._uU(1,"\n "),t._UZ(2,"i",24),t._uU(3,"\n "),t.qZA())}function ur(e,i){1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",25),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t.TgZ(11,"mat-form-field"),t._uU(12,"\n "),t.TgZ(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",26),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field"),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",27),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field"),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t._UZ(35,"input",28),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-form-field"),t._uU(39,"\n "),t.TgZ(40,"mat-label"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t._UZ(44,"input",29),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.BQk()),2&e&&(t.xp6(5),t.hij(" ",t.lcZ(6,5,"labels.inputs.Account")," #"),t.xp6(9),t.hij("",t.lcZ(15,7,"labels.inputs.Cheque")," #"),t.xp6(9),t.Oqu(t.lcZ(24,9,"labels.inputs.Routing Code")),t.xp6(9),t.hij("",t.lcZ(33,11,"labels.inputs.Reciept")," #"),t.xp6(9),t.hij("",t.lcZ(42,13,"labels.inputs.Bank")," #"))}const pr=function(){return["../general"]};let lr=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.recurringDepositsService=c,this.settingsService=d,this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(h=>{this.maturityAmount=h.recurringDepositsAccountActionData.maturityAmount,this.onAccountClosureOptions=h.recurringDepositsAccountActionData.onAccountClosureOptions,this.paymentTypes=h.recurringDepositsAccountActionData.paymentTypeOptions,this.title=h.recurringDepositsAccountActionData.maturityAmount?"Recurring Deposit Closure on Maturity":"Recurring Deposit Closure"}),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createcloseRecurringDepositForm()}createcloseRecurringDepositForm(){this.closeRecurringDepositForm=this.formBuilder.group({closedOnDate:[new Date,r.kI.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",r.kI.required],paymentTypeId:["",r.kI.required],accountNumber:"",chequeNumber:"",routingCode:"",receiptNumber:"",bankNumber:"",note:""})}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}submit(){const n=this.closeRecurringDepositForm.value,a=this.settingsService.dateFormat,s=this.settingsService.language.code;n.closedOnDate instanceof Date&&(n.closedOnDate=this.dateUtils.formatDate(this.closeRecurringDepositForm.value.closedOnDate,a));const c={...n,dateFormat:a,locale:s};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"close",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-close-recurring-deposits-account"]],decls:109,vars:42,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["fxFlexFill","",1,"mat-h3"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["matInput","","required","","formControlName","maturityAmount"],["formControlName","onAccountClosureId","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","paymentTypeId","required",""],["fxFlexFill",""],["fxFlex","25%"],["fxFlex","75%",1,"expandcollapsebutton",3,"click"],["mat-raised-button","","color","primary",4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["mat-raised-button","","color","primary"],[1,"fa","fa-minus"],[1,"fa","fa-plus"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","chequeNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"h3",3),t._uU(11),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field",4),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(24);return t.KtG(c.open())}),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t._UZ(19,"input",5),t._uU(20,"\n "),t._UZ(21,"mat-datepicker-toggle",6),t._uU(22,"\n "),t._UZ(23,"mat-datepicker",null,7),t._uU(25,"\n "),t.YNc(26,er,8,9,"mat-error",8),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field"),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t._UZ(35,"input",9),t._uU(36,"\n "),t.YNc(37,nr,8,9,"mat-error",8),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-form-field"),t._uU(41,"\n "),t.TgZ(42,"mat-label"),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"mat-select",10),t._uU(47,"\n "),t.YNc(48,ir,2,2,"mat-option",11),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.YNc(51,or,8,9,"mat-error",8),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.TgZ(54,"mat-form-field"),t._uU(55,"\n "),t.TgZ(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t._uU(59,"\n "),t.TgZ(60,"mat-select",12),t._uU(61,"\n "),t.YNc(62,ar,2,2,"mat-option",11),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.YNc(65,rr,8,9,"mat-error",8),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"div",13),t._uU(69,"\n "),t.TgZ(70,"span",14),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"span",15),t.NdJ("click",function(){return o.toggleDisplay()}),t._uU(75,"\n "),t.YNc(76,cr,4,0,"button",16),t._uU(77,"\n "),t.YNc(78,sr,4,0,"button",16),t._uU(79,"\n "),t.qZA(),t._uU(80,"\n "),t.qZA(),t._uU(81,"\n\n "),t.YNc(82,ur,47,15,"ng-container",8),t._uU(83,"\n\n "),t.TgZ(84,"mat-form-field"),t._uU(85,"\n "),t.TgZ(86,"mat-label"),t._uU(87),t.ALo(88,"translate"),t.qZA(),t._uU(89,"\n "),t._UZ(90,"textarea",17),t._uU(91,"\n "),t.qZA(),t._uU(92,"\n\n "),t.qZA(),t._uU(93,"\n\n "),t.qZA(),t._uU(94,"\n\n "),t.TgZ(95,"mat-card-actions",18),t._uU(96,"\n "),t.TgZ(97,"button",19),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.TgZ(101,"button",20),t._uU(102),t.ALo(103,"translate"),t.qZA(),t._uU(104,"\n "),t.qZA(),t._uU(105,"\n\n "),t.qZA(),t._uU(106,"\n\n "),t.qZA(),t._uU(107,"\n\n"),t.qZA(),t._uU(108,"\n")}if(2&n){const a=t.MAs(24);t.xp6(4),t.Q6J("formGroup",o.closeRecurringDepositForm),t.xp6(7),t.Oqu(o.title),t.xp6(5),t.Oqu(t.lcZ(17,25,"labels.inputs.Closed On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.closedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(33,27,"labels.inputs.Maturity Amount")),t.xp6(5),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.maturityAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(44,29,"labels.inputs.Action")),t.xp6(5),t.Q6J("ngForOf",o.onAccountClosureOptions),t.xp6(3),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.onAccountClosureId.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(58,31,"labels.inputs.Payment Type Id")),t.xp6(5),t.Q6J("ngForOf",o.paymentTypes),t.xp6(3),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.paymentTypeId.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(72,33,"labels.inputs.Show Payment Details")),t.xp6(5),t.Q6J("ngIf",o.showPaymentDetails),t.xp6(2),t.Q6J("ngIf",!o.showPaymentDetails),t.xp6(4),t.Q6J("ngIf",o.showPaymentDetails),t.xp6(5),t.Oqu(t.lcZ(88,35,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(41,pr)),t.xp6(1),t.Oqu(t.lcZ(99,37,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.closeRecurringDepositForm.valid),t.xp6(1),t.Oqu(t.lcZ(103,39,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,L.ey,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,P.gD,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}"]}),e})();var mr=m(90455);function _r(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function gr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function dr(e,i){if(1&e&&(t.TgZ(0,"mat-option",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function Ar(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Payment Type")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Tr(e,i){1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",23),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t.TgZ(11,"mat-form-field"),t._uU(12,"\n "),t.TgZ(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",24),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field"),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",25),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field"),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t._UZ(35,"input",26),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-form-field"),t._uU(39,"\n "),t.TgZ(40,"mat-label"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t._UZ(44,"input",27),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.BQk()),2&e&&(t.xp6(5),t.hij(" ",t.lcZ(6,5,"labels.inputs.Account")," #"),t.xp6(9),t.hij("",t.lcZ(15,7,"labels.inputs.Cheque")," #"),t.xp6(9),t.Oqu(t.lcZ(24,9,"labels.inputs.Routing Code")),t.xp6(9),t.hij("",t.lcZ(33,11,"labels.inputs.Reciept")," #"),t.xp6(9),t.hij("",t.lcZ(42,13,"labels.inputs.Bank")," #"))}const fr=function(){return["../../general"]};let Ur=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.recurringDepositsService=c,this.settingsService=d,this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(y=>{this.transactionAmount=y.recurringDepositsAccountActionData.amount,this.paymentTypes=y.recurringDepositsAccountActionData.paymentTypeOptions,y.recurringDepositsAccountActionData.outstandingChargeAmount&&y.recurringDepositsAccountActionData.outstandingChargeAmount>0&&(this.outstandingChargeAmount=y.recurringDepositsAccountActionData.outstandingChargeAmount,this.transactionAmount=this.transactionAmount+this.outstandingChargeAmount)}),this.action=this.route.snapshot.params.name.toLowerCase(),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createdepositRecurringDepositForm()}createdepositRecurringDepositForm(){this.depositRecurringDepositForm=this.formBuilder.group({transactionDate:[new Date,r.kI.required],transactionAmount:[this.transactionAmount,r.kI.required],paymentTypeId:["",r.kI.required],note:""})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.depositRecurringDepositForm.addControl("accountNumber",new r.p4("")),this.depositRecurringDepositForm.addControl("checkNumber",new r.p4("")),this.depositRecurringDepositForm.addControl("routingCode",new r.p4("")),this.depositRecurringDepositForm.addControl("receiptNumber",new r.p4("")),this.depositRecurringDepositForm.addControl("bankNumber",new r.p4(""))):(this.depositRecurringDepositForm.removeControl("accountNumber"),this.depositRecurringDepositForm.removeControl("checkNumber"),this.depositRecurringDepositForm.removeControl("routingCode"),this.depositRecurringDepositForm.removeControl("receiptNumber"),this.depositRecurringDepositForm.removeControl("bankNumber"))}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}submit(){const n=this.depositRecurringDepositForm.value,o=this.settingsService.dateFormat,a=this.settingsService.language.code;n.transactionDate instanceof Date&&(n.transactionDate=this.dateUtils.formatDate(this.depositRecurringDepositForm.value.transactionDate,o));const c={...n,dateFormat:o,locale:a};delete c.note,this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,this.action,c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-deposit-recurring-deposits-account"]],inputs:{currency:"currency"},decls:99,vars:36,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],[4,"ngIf"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],["fxFlex","auto"],["type","number","matInput","","required","","formControlName","transactionAmount",1,"right-input"],["formControlName","paymentTypeId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,_r,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field",8),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"span",9),t._uU(33),t.qZA(),t._uU(34,"\n "),t._UZ(35,"span",10),t._uU(36,"\n "),t._UZ(37,"input",11),t._uU(38,"\n "),t.YNc(39,gr,8,9,"mat-error",7),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"mat-form-field"),t._uU(43,"\n "),t.TgZ(44,"mat-label"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"mat-select",12),t._uU(49,"\n "),t.YNc(50,dr,2,2,"mat-option",13),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.YNc(53,Ar,8,9,"mat-error",7),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"div",14),t._uU(57,"\n "),t.TgZ(58,"span",15),t.NdJ("click",function(){return o.addPaymentDetails()}),t._uU(59,"\n "),t.TgZ(60,"mat-slide-toggle"),t._uU(61,"\n "),t.TgZ(62,"div",16),t._uU(63,"\n "),t.TgZ(64,"span",17),t._uU(65),t.ALo(66,"translate"),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.YNc(72,Tr,47,15,"ng-container",7),t._uU(73,"\n\n "),t.TgZ(74,"mat-form-field"),t._uU(75,"\n "),t.TgZ(76,"mat-label"),t._uU(77),t.ALo(78,"translate"),t.qZA(),t._uU(79,"\n "),t._UZ(80,"textarea",18),t._uU(81,"\n "),t.qZA(),t._uU(82,"\n\n "),t.qZA(),t._uU(83,"\n\n "),t.qZA(),t._uU(84,"\n\n "),t.TgZ(85,"mat-card-actions",19),t._uU(86,"\n "),t.TgZ(87,"button",20),t._uU(88),t.ALo(89,"translate"),t.qZA(),t._uU(90,"\n "),t.TgZ(91,"button",21),t._uU(92),t.ALo(93,"translate"),t.qZA(),t._uU(94,"\n "),t.qZA(),t._uU(95,"\n\n "),t.qZA(),t._uU(96,"\n\n "),t.qZA(),t._uU(97,"\n\n"),t.qZA(),t._uU(98,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.depositRecurringDepositForm),t.xp6(9),t.Oqu(t.lcZ(14,21,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.depositRecurringDepositForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,23,"labels.inputs.Transaction Amount")),t.xp6(4),t.Oqu(o.currency.code),t.xp6(6),t.Q6J("ngIf",o.depositRecurringDepositForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(46,25,"labels.inputs.Payment Type Id")),t.xp6(5),t.Q6J("ngForOf",o.paymentTypes),t.xp6(3),t.Q6J("ngIf",o.depositRecurringDepositForm.controls.paymentTypeId.hasError("required")),t.xp6(9),t.Q6J("className",o.showPaymentDetails?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(66,27,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",o.showPaymentDetails),t.xp6(5),t.Oqu(t.lcZ(78,29,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(35,fr)),t.xp6(1),t.Oqu(t.lcZ(89,31,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.depositRecurringDepositForm.valid),t.xp6(1),t.Oqu(t.lcZ(93,33,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,L.ey,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,P.gD,mr.Rr,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]}),e})();function Zr(e,i){1&e&&t._UZ(0,"mifosx-activate-recurring-deposits-account")}function hr(e,i){1&e&&t._UZ(0,"mifosx-undo-approval-recurring-deposits-account")}function Dr(e,i){1&e&&t._UZ(0,"mifosx-approve-recurring-deposits-account")}function xr(e,i){1&e&&t._UZ(0,"mifosx-reject-recurring-deposits-account")}function Cr(e,i){1&e&&t._UZ(0,"mifosx-withdraw-by-client-recurring-deposits-account")}function br(e,i){1&e&&t._UZ(0,"mifosx-add-charge-recurring-deposits-account")}function qr(e,i){1&e&&t._UZ(0,"mifosx-premature-close-recurring-deposit-account")}function vr(e,i){1&e&&t._UZ(0,"mifosx-close-recurring-deposits-account")}function yr(e,i){if(1&e&&t._UZ(0,"mifosx-deposit-recurring-deposits-account",2),2&e){const n=t.oxw();t.Q6J("currency",n.currency)}}let Rr=(()=>{class e{constructor(n){this.route=n,this.actions={Activate:!1,"Undo Approval":!1,Approve:!1,Reject:!1,"Withdrawn by client":!1,"Add Charge":!1,"Premature Close":!1,Close:!1,Deposit:!1,Withdrawal:!1},this.route.data.subscribe(a=>{a.recurringDepositsAccountActionData&&(this.currency=a.recurringDepositsAccountActionData.currency)}),this.actions[this.route.snapshot.params.name]=!0}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-actions"]],decls:18,vars:9,consts:[[4,"ngIf"],[3,"currency",4,"ngIf"],[3,"currency"]],template:function(n,o){1&n&&(t.YNc(0,Zr,1,0,"mifosx-activate-recurring-deposits-account",0),t._uU(1,"\n"),t.YNc(2,hr,1,0,"mifosx-undo-approval-recurring-deposits-account",0),t._uU(3,"\n"),t.YNc(4,Dr,1,0,"mifosx-approve-recurring-deposits-account",0),t._uU(5,"\n"),t.YNc(6,xr,1,0,"mifosx-reject-recurring-deposits-account",0),t._uU(7,"\n"),t.YNc(8,Cr,1,0,"mifosx-withdraw-by-client-recurring-deposits-account",0),t._uU(9,"\n"),t.YNc(10,br,1,0,"mifosx-add-charge-recurring-deposits-account",0),t._uU(11,"\n"),t.YNc(12,qr,1,0,"mifosx-premature-close-recurring-deposit-account",0),t._uU(13,"\n"),t.YNc(14,vr,1,0,"mifosx-close-recurring-deposits-account",0),t._uU(15,"\n"),t.YNc(16,yr,1,1,"mifosx-deposit-recurring-deposits-account",1),t._uU(17,"\n")),2&n&&(t.Q6J("ngIf",o.actions.Activate),t.xp6(2),t.Q6J("ngIf",o.actions["Undo Approval"]),t.xp6(2),t.Q6J("ngIf",o.actions.Approve),t.xp6(2),t.Q6J("ngIf",o.actions.Reject),t.xp6(2),t.Q6J("ngIf",o.actions["Withdrawn by client"]),t.xp6(2),t.Q6J("ngIf",o.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",o.actions["Premature Close"]),t.xp6(2),t.Q6J("ngIf",o.actions.Close),t.xp6(2),t.Q6J("ngIf",o.actions.Deposit||o.actions.Withdrawal))},dependencies:[A.O5,va,Ra,Na,La,Ya,za,tr,lr,Ur]}),e})();function Ir(e,i){1&e&&(t.TgZ(0,"button",12),t._uU(1,"\n "),t._UZ(2,"fa-icon",13),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.Q6J("routerLink","edit"),t.xp6(3),t.hij("",t.lcZ(4,2,"labels.buttons.Edit"),"\n "))}function Sr(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ir,5,4,"button",11),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!("Transfer"==n.transactionData.transactionType.value||"true"==n.transactionData.reversed))}}function Nr(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",15),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&e&&(t.xp6(3),t.hij("",t.lcZ(4,1,"labels.buttons.Undo"),"\n "))}function Or(e,i){1&e&&(t.TgZ(0,"div",8),t._uU(1,"\n "),t.YNc(2,Sr,4,1,"span",9),t._uU(3,"\n "),t.YNc(4,Nr,5,3,"button",10),t._uU(5,"\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"),t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function wr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Note"),"\n "))}function Lr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.hij("\n ",n.transactionData.note,"\n ")}}function Pr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Payment Type"),"\n "))}function Fr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.paymentType.name,"\n ")}}function Yr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Account No"),".\n "))}function Qr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.accountNumber,"\n ")}}function Jr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Cheque Number"),"\n "))}function kr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.checkNumber,"\n ")}}function Mr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Routing Code"),"\n "))}function jr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.routingCode,"\n ")}}function Er(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Receipt No"),".\n "))}function Gr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.receiptNumber,"\n ")}}function Br(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Bank No"),".\n "))}function $r(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.bankNumber,"\n ")}}function Hr(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n\n "),t.YNc(2,Pr,3,3,"div",5),t._uU(3,"\n\n "),t.YNc(4,Fr,2,1,"div",6),t._uU(5,"\n\n "),t.YNc(6,Yr,3,3,"div",5),t._uU(7,"\n\n "),t.YNc(8,Qr,2,1,"div",6),t._uU(9,"\n\n "),t.YNc(10,Jr,3,3,"div",5),t._uU(11,"\n\n "),t.YNc(12,kr,2,1,"div",6),t._uU(13,"\n\n "),t.YNc(14,Mr,3,3,"div",5),t._uU(15,"\n\n "),t.YNc(16,jr,2,1,"div",6),t._uU(17,"\n\n "),t.YNc(18,Er,3,3,"div",5),t._uU(19,"\n\n "),t.YNc(20,Gr,2,1,"div",6),t._uU(21,"\n\n "),t.YNc(22,Br,3,3,"div",5),t._uU(23,"\n\n "),t.YNc(24,$r,2,1,"div",6),t._uU(25,"\n\n "),t.BQk()),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.bankNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.bankNumber)}}let Wr=(()=>{class e{constructor(n,o,a,s,c,d,h){this.recurringDepositsService=n,this.route=o,this.dateUtils=a,this.router=s,this.dialog=c,this.translateService=d,this.settingsService=h,this.route.data.subscribe(y=>{this.transactionData=y.recurringDepositsAccountTransaction})}undoTransaction(){const n=this.route.parent.snapshot.params.recurringDepositAccountId;this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to undo this transaction ?")}}).afterClosed().subscribe(a=>{if(a.confirm){const s=this.settingsService.language.code,c=this.settingsService.dateFormat,d={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),c),transactionAmount:0,dateFormat:c,locale:s};this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(n,"undo",d,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(Z),t.Y36(l.gz),t.Y36(I.L),t.Y36(l.F0),t.Y36(q.uw),t.Y36(T.sK),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-view-transaction"]],decls:56,vars:26,consts:[["fxLayoutAlign","end","class","container m-b-20","fxLayoutGap","2%",4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxFlex","50%","class","mat-body-strong",4,"ngIf"],["fxFlex","50%",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(n,o){1&n&&(t.YNc(0,Or,6,2,"div",0),t._uU(1,"\n\n"),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card"),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"div",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",4),t._uU(15),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"div",3),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n\n "),t.TgZ(21,"div",4),t._uU(22),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"div",3),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",4),t._uU(29),t.ALo(30,"dateFormat"),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",3),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n\n "),t.TgZ(36,"div",4),t._uU(37),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"div",3),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",4),t._uU(44),t.qZA(),t._uU(45,"\n\n "),t.YNc(46,wr,3,3,"div",5),t._uU(47,"\n\n "),t.YNc(48,Lr,2,1,"div",6),t._uU(49,"\n\n "),t.YNc(50,Hr,26,12,"ng-container",7),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n"),t.qZA(),t._uU(55,"\n")),2&n&&(t.Q6J("ngIf",!o.transactionData.reversed),t.xp6(11),t.hij("\n ",t.lcZ(12,14,"labels.inputs.Transaction Id"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.id,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(19,16,"labels.inputs.Type"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.transactionType.value,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(26,18,"labels.inputs.Transaction Date"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(30,20,o.transactionData.date),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(34,22,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(41,24,"labels.inputs.Amount"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.amount,"\n "),t.xp6(2),t.Q6J("ngIf",o.transactionData.note),t.xp6(2),t.Q6J("ngIf",o.transactionData.note),t.xp6(2),t.Q6J("ngIf",o.transactionData.paymentDetailData))},dependencies:[A.O5,S.BN,u.xw,u.SQ,u.Wh,u.yH,_.lW,f.a8,f.dn,E.A,l.rH,T.X$,w.E],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),e})();function Vr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function zr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Xr(e,i){if(1&e&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function Kr(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function tc(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",20),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function ec(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function nc(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",22),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function ic(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",23),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}const oc=function(){return["../"]};let ac=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.recurringDepositsService=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(h=>{this.transactionTemplateData=h.recurringDepositsAccountTransactionTemplate,this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.recurringDepositAccountId=this.route.parent.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",r.kI.required],transactionAmount:["",r.kI.required],paymentTypeId:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.editTransactionForm.addControl("accountNumber",new r.p4("")),this.editTransactionForm.addControl("checkNumber",new r.p4("")),this.editTransactionForm.addControl("routingCode",new r.p4("")),this.editTransactionForm.addControl("receiptNumber",new r.p4("")),this.editTransactionForm.addControl("bankNumber",new r.p4(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){const n=this.editTransactionForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.transactionDate instanceof Date&&(n.transactionDate=this.dateUtils.formatDate(this.editTransactionForm.value.transactionDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(this.recurringDepositAccountId,"modify",c,this.transactionTemplateData.id).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-edit-transaction"]],decls:84,vars:35,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","transactionAmount","required","","matInput",""],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column"],["fxFlexAlign","center"],["type","button","mat-mini-fab","","color","primary",3,"click"],["size","lg",3,"icon"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content",2),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(19);return t.KtG(c.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",4),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",5),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,6),t._uU(20,"\n "),t.YNc(21,Vr,8,9,"mat-error",7),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"mat-form-field"),t._uU(25,"\n "),t.TgZ(26,"mat-label"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t._UZ(30,"input",8),t._uU(31,"\n "),t.YNc(32,zr,8,9,"mat-error",7),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.TgZ(35,"mat-form-field"),t._uU(36,"\n "),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.TgZ(41,"mat-select",9),t._uU(42,"\n "),t.YNc(43,Xr,2,2,"mat-option",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"div",11),t._uU(48,"\n "),t.TgZ(49,"mat-label",12),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"button",13),t.NdJ("click",function(){return o.addPaymentDetails()}),t._uU(54,"\n "),t._UZ(55,"fa-icon",14),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.YNc(59,Kr,8,3,"mat-form-field",7),t._uU(60,"\n\n "),t.YNc(61,tc,8,3,"mat-form-field",7),t._uU(62,"\n\n "),t.YNc(63,ec,8,3,"mat-form-field",7),t._uU(64,"\n\n "),t.YNc(65,nc,8,3,"mat-form-field",7),t._uU(66,"\n\n "),t.YNc(67,ic,8,3,"mat-form-field",7),t._uU(68,"\n\n "),t.TgZ(69,"mat-card-actions",15),t._uU(70,"\n "),t.TgZ(71,"button",16),t._uU(72),t.ALo(73,"translate"),t.qZA(),t._uU(74,"\n "),t.TgZ(75,"button",17),t._uU(76),t.ALo(77,"translate"),t.qZA(),t._uU(78,"\n "),t.qZA(),t._uU(79,"\n\n "),t.qZA(),t._uU(80,"\n\n "),t.qZA(),t._uU(81,"\n\n "),t.qZA(),t._uU(82,"\n\n"),t.qZA(),t._uU(83,"\n")}if(2&n){const a=t.MAs(19);t.xp6(4),t.Q6J("formGroup",o.editTransactionForm),t.xp6(7),t.Oqu(t.lcZ(12,22,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.editTransactionForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(28,24,"labels.inputs.Transaction Amount")),t.xp6(5),t.Q6J("ngIf",o.editTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(39,26,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",o.paymentTypeOptions),t.xp6(7),t.Oqu(t.lcZ(51,28,"labels.inputs.Show Payment Details")),t.xp6(5),t.Q6J("icon",o.addPaymentDetailsFlag?"minus-circle":"plus-circle"),t.xp6(4),t.Q6J("ngIf",o.editTransactionForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.bankNumber),t.xp6(4),t.Q6J("routerLink",t.DdM(34,oc)),t.xp6(1),t.Oqu(t.lcZ(73,30,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.editTransactionForm.valid),t.xp6(1),t.Oqu(t.lcZ(77,32,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.XD,L.ey,_.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),e})(),rc=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),ot=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var at=m(89),rt=m(96545);let ct=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.parent.paramMap.get("clientId");return this.recurringDepositsService.getRecurringDepositsAccountTemplate(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),st=(()=>{class e{constructor(n,o){this.savingsService=n,this.recurringDepositsService=o}resolve(n){const o=n.paramMap.get("name"),a=n.paramMap.get("recurringDepositAccountId")||n.parent.parent.paramMap.get("recurringDepositAccountId");switch(o){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(a);case"Close":return this.recurringDepositsService.getRecurringDepositAccountActionResource(a,"close");case"Deposit":case"Withdrawal":return this.recurringDepositsService.getRecurringDepositAccountTransactionTemplateResource(a,o.toLocaleLowerCase());default:return}}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(O.d),t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();function cc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function sc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function uc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function pc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function lc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function mc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function _c(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function gc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function dc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function Ac(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function Tc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function fc(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,Tc,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-recurring-deposits-account-preview-step",18),t.NdJ("submit",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&e){const n=t.oxw();t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",n.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",n.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",n.recurringDepositAccountData)}}let Uc=(()=>{class e{constructor(n,o,a,s,c){this.route=n,this.router=o,this.dateUtils=a,this.recurringDepositsService=s,this.settingsService=c,this.route.data.subscribe(d=>{this.recurringDepositsAccountAndTemplate=d.recurringDepositsAccountAndTemplate})}setTemplate(n){this.recurringDepositsAccountProductTemplate=n}ngOnInit(){}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValidAndNotPristine(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid&&(!this.recurringDepositAccountDetailsForm.pristine||!this.recurringDepositAccountTermsForm.pristine||!this.recurringDepositAccountSettingsForm.pristine||!this.recurringDepositAccountChargesStep.pristine)}get recurringDepositAccountData(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}get recurringDepositAccount(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}submit(){const n=this.settingsService.language.code,o=this.settingsService.dateFormat,s={...this.recurringDepositAccount,clientId:this.recurringDepositsAccountAndTemplate.clientId,charges:this.recurringDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,o),feeOnMonthDay:c.feeOnMonthDay,feeInterval:c.feeInterval})),isCalendarInherited:!!this.recurringDepositAccount.recurringDepositAccount&&this.recurringDepositAccount.recurringDepositAccount,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,o),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,o),dateFormat:o,monthDayFormat:"dd MMMM",locale:n};this.recurringDepositsService.updateRecurringDepositAccount(this.recurringDepositsAccountAndTemplate.id,s).subscribe(c=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-edit-recurring-deposit-account"]],viewQuery:function(n,o){if(1&n&&(t.Gf(B,7),t.Gf($,7),t.Gf(H,7),t.Gf(W,7)),2&n){let a;t.iGM(a=t.CRH())&&(o.recurringDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["recurringDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData","submit"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n "),t.YNc(5,cc,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,sc,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,uc,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,pc,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,lc,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,mc,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-recurring-deposits-account-details-step",10),t.NdJ("recurringDepositsAccountProductTemplate",function(s){return o.setTemplate(s)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,_c,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-recurring-deposits-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,gc,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-recurring-deposits-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,dc,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-recurring-deposits-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,Ac,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-recurring-deposits-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,fc,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&n&&(t.xp6(15),t.Q6J("stepControl",o.recurringDepositAccountDetailsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountTermsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountSettingsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",o.recurringDepositAccountFormValidAndNotPristine),t.xp6(4),t.Q6J("ngIf",o.recurringDepositAccountFormValidAndNotPristine))},dependencies:[A.O5,S.BN,b.C0,b.VY,b.Vq,b.z9,B,$,H,nt,W,it,T.X$]}),e})(),ut=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountAndTemplate(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),pt=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.paramMap.get("recurringDepositAccountId"),a=n.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransaction(o,a)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),lt=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.paramMap.get("recurringDepositAccountId"),a=n.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransactionTemplate(o,a)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var Zc=m(5510);function hc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",5),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.s9C("externalId",n.recurringDepositsAccountData.externalId)}}function Dc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function xc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Unassigned")))}function Cc(e,i){1&e&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Closed on Date"),""))}function bc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.YNc(2,Cc,3,3,"td",4),t._uU(3,"\n "),t.TgZ(4,"td")(5,"span"),t._uU(6),t.ALo(7,"dateFormat"),t.qZA()(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.timeline.closedOnDate),t.xp6(4),t.Oqu(t.lcZ(7,2,n.recurringDepositsAccountData.timeline.closedOnDate))}}function qc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Balance Required For Interest Calculation"),""),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.minBalanceForInterestCalculation)}}function vc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Witdhold Tax Group")," "),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.taxGroup.name)}}function yc(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"h4",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17,"\n "),t.YNc(18,hc,4,1,"span",4),t._uU(19,"\n "),t.YNc(20,Dc,3,3,"span",4),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"tr"),t._uU(25,"\n "),t.TgZ(26,"td"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.YNc(32,xc,3,3,"span",4),t.qZA(),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"tr"),t._uU(36,"\n "),t.TgZ(37,"td"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.TgZ(41,"td"),t._uU(42),t.ALo(43,"dateFormat"),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"tr"),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.ALo(50,"translate"),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"td")(53,"span"),t._uU(54),t.ALo(55,"dateFormat"),t.qZA()(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.YNc(58,bc,9,4,"tr",4),t._uU(59,"\n "),t.TgZ(60,"tr"),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"tr"),t._uU(64,"\n "),t.TgZ(65,"td")(66,"span"),t._uU(67),t.qZA()(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.YNc(70,qc,10,4,"tr",4),t._uU(71,"\n "),t.YNc(72,vc,10,4,"tr",4),t._uU(73,"\n "),t.qZA(),t._uU(74,"\n "),t.qZA(),t._uU(75,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,16,"labels.inputs.Account Details")),t.xp6(10),t.Oqu(t.lcZ(14,18,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(28,20,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(n.recurringDepositsAccountData.fieldOfficerName),t.xp6(1),t.Q6J("ngIf",!n.recurringDepositsAccountData.fieldOfficerName),t.xp6(6),t.Oqu(t.lcZ(39,22,"labels.inputs.Activation date")),t.xp6(4),t.Oqu(t.lcZ(43,24,n.recurringDepositsAccountData.timeline.activatedOnDate)),t.xp6(7),t.Oqu(t.lcZ(50,26,"labels.inputs.Maturity Date")),t.xp6(5),t.Oqu(t.lcZ(55,28,n.recurringDepositsAccountData.maturityDate)),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.timeline.closedOnDate||n.recurringDepositsAccountData.summary.totalWitddrawals),t.xp6(9),t.AsE("",n.recurringDepositsAccountData.recurringFrequency,"\n \xa0",n.recurringDepositsAccountData.recurringFrequencyType.value,"\n "),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.minBalanceForInterestCalculation),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.witdHoldTax)}}function Rc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",5),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.s9C("externalId",n.recurringDepositsAccountData.externalId)}}function Ic(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function Sc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalDeposits,n.currency.code,"symbol-narrow","1.2-2"))}}function Nc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function Oc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalWithdrawals,n.currency.code,"symbol-narrow","1.2-2"))}}function wc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function Lc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6)(7,"span"),t._uU(8),t.ALo(9,"currency"),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned")),t.xp6(5),t.Oqu(t.gM2(9,4,n.recurringDepositsAccountData.summary.totalInterestEarned,n.currency.code,"symbol-narrow","1.2-2"))}}function Pc(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"h4",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17,"\n "),t.YNc(18,Rc,4,1,"span",4),t._uU(19,"\n "),t.YNc(20,Ic,3,3,"span",4),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"tr"),t._uU(25,"\n "),t.TgZ(26,"td"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t.TgZ(30,"td",6),t._uU(31,"\n "),t.TgZ(32,"span"),t._uU(33),t.ALo(34,"currency"),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"tr"),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"td",6),t._uU(45,"\n "),t.TgZ(46,"span"),t._uU(47),t.ALo(48,"currency"),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td",6),t._uU(59,"\n "),t.TgZ(60,"span"),t._uU(61),t.ALo(62,"currency"),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n "),t.TgZ(66,"tr"),t._uU(67,"\n "),t.TgZ(68,"td"),t._uU(69),t.ALo(70,"translate"),t.qZA(),t._uU(71,"\n "),t.TgZ(72,"td",6),t.YNc(73,Sc,3,6,"span",4),t._uU(74,"\n "),t.YNc(75,Nc,3,6,"span",4),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n "),t.TgZ(79,"tr"),t._uU(80,"\n "),t.TgZ(81,"td"),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.TgZ(85,"td",6),t.YNc(86,Oc,3,6,"span",4),t._uU(87,"\n "),t.YNc(88,wc,3,6,"span",4),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n "),t.qZA(),t._uU(91,"\n\n "),t.YNc(92,Lc,12,9,"tr",4),t._uU(93,"\n\n "),t.qZA(),t._uU(94,"\n "),t.qZA(),t._uU(95,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,17,"labels.heading.Performance History")),t.xp6(10),t.Oqu(t.lcZ(14,19,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(28,21,"labels.inputs.Principal Amount")),t.xp6(6),t.Oqu(t.gM2(34,23,n.recurringDepositsAccountData.depositAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(8),t.Oqu(t.lcZ(42,28,"labels.inputs.Maturity Amount")),t.xp6(6),t.Oqu(t.gM2(48,30,n.recurringDepositsAccountData.maturityAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(8),t.Oqu(t.lcZ(56,35,"labels.inputs.Recurring Deposit Amount")),t.xp6(6),t.Oqu(t.gM2(62,37,null==n.recurringDepositsAccountData?null:n.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(8),t.Oqu(t.lcZ(70,42,"labels.inputs.Deposits till Date")),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(7),t.Oqu(t.lcZ(83,44,"labels.inputs.Withdrwals till Date")),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestEarned>=0)}}function Fc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",5),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.s9C("externalId",n.recurringDepositsAccountData.externalId)}}function Yc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function Qc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Activated")))}function Jc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.YNc(3,Qc,3,3,"span",4),t._uU(4,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("",t.lcZ(2,2,n.recurringDepositsAccountData.timeline.activatedOnDate),"\n "),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.timeline.activatedOnDate)}}function kc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Activated")))}function Mc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.YNc(3,kc,3,3,"span",4),t._uU(4,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("",t.lcZ(2,2,n.recurringDepositsAccountData.expectedFirstDepositOnDate),"\n "),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.expectedFirstDepositOnDate)}}function jc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.ALo(9,"dateFormat"),t.qZA()(),t._uU(10,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Date")),t.xp6(5),t.Oqu(t.lcZ(9,4,n.recurringDepositsAccountData.maturityDate))}}function Ec(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalDeposits,n.currency.code,"symbol-narrow","1.2-2"))}}function Gc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function Bc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,3,"labels.inputs.Interests Earned")," "),t.xp6(5),t.AsE("",n.recurringDepositsAccountData.currency.displaySymbol,"\xa0",n.recurringDepositsAccountData.summary.totalInterestEarned,"")}}function $c(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6),t._uU(7,"\n "),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"currency"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Total Withdrawls")," "),t.xp6(6),t.Oqu(t.gM2(10,4,n.recurringDepositsAccountData.summary.totalWithdrawals,n.currency.code,"symbol-narrow","1.2-2"))}}function Hc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6),t._uU(7,"\n "),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"number"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Balance Required For Interest Calculation")," "),t.xp6(6),t.Oqu(t.lcZ(10,4,n.recurringDepositsAccountData.minBalanceForInterestCalculation))}}function Wc(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"table"),t._uU(3,"\n "),t.TgZ(4,"tbody"),t._uU(5,"\n "),t.TgZ(6,"tr"),t._uU(7,"\n "),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13,"\n "),t.YNc(14,Fc,4,1,"span",4),t._uU(15,"\n "),t.YNc(16,Yc,3,3,"span",4),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.TgZ(20,"tr"),t._uU(21,"\n "),t.TgZ(22,"td"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t.TgZ(26,"td"),t._uU(27,"\n "),t.YNc(28,Jc,5,4,"span",4),t._uU(29,"\n "),t.YNc(30,Mc,5,4,"span",4),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"tr"),t._uU(35,"\n "),t.TgZ(36,"td"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41,"\n "),t.TgZ(42,"span"),t._uU(43),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.YNc(47,jc,11,6,"tr",4),t._uU(48,"\n "),t.TgZ(49,"tr"),t._uU(50,"\n "),t.TgZ(51,"td"),t._uU(52),t.ALo(53,"translate"),t.qZA(),t._uU(54,"\n "),t.TgZ(55,"td",6),t._uU(56,"\n "),t.YNc(57,Ec,3,6,"span",4),t._uU(58,"\n "),t.YNc(59,Gc,3,6,"span",4),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"tr"),t._uU(64,"\n "),t.TgZ(65,"td"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t._uU(68,"\n "),t.TgZ(69,"td",6),t._uU(70),t.ALo(71,"currency"),t.qZA(),t._uU(72,"\n "),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"tr"),t._uU(75,"\n "),t.TgZ(76,"td"),t._uU(77),t.ALo(78,"translate"),t.qZA(),t._uU(79,"\n "),t.TgZ(80,"td",6),t._uU(81),t.ALo(82,"currency"),t.qZA(),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n "),t.YNc(85,Bc,10,5,"tr",4),t._uU(86,"\n "),t.YNc(87,$c,13,9,"tr",4),t._uU(88,"\n "),t.YNc(89,Hc,13,6,"tr",4),t._uU(90,"\n "),t.qZA(),t._uU(91,"\n "),t.qZA(),t._uU(92,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,20,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(24,22,"labels.inputs.Date of Deposit")),t.xp6(5),t.Q6J("ngIf",!n.recurringDepositsAccountData.expectedFirstDepositOnDate),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.expectedFirstDepositOnDate),t.xp6(7),t.Oqu(t.lcZ(38,24,"labels.inputs.Period")),t.xp6(6),t.AsE("",n.recurringDepositsAccountData.depositPeriod,"\xa0",n.recurringDepositsAccountData.depositPeriodFrequency.value,""),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.maturityDate),t.xp6(5),t.Oqu(t.lcZ(53,26,"labels.inputs.Total Deposits")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(7),t.hij(" ",t.lcZ(67,28,"labels.inputs.Actual Available Balance"),""),t.xp6(4),t.Oqu(t.gM2(71,30,n.recurringDepositsAccountData.summary.accountBalance,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.hij(" ",t.lcZ(78,35,"labels.inputs.Recurring Deposit Amount"),""),t.xp6(4),t.hij("\n ",t.gM2(82,37,n.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,n.currency.code,"symbol-narrow","1.2-2"),"\n "),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestEarned),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.minBalanceForInterestCalculation)}}function Vc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.depositAmount,n.currency.code,"symbol-narrow","1.2-2"))}}function zc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function Xc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7,"\n "),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"currency"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Amount")),t.xp6(6),t.Oqu(t.gM2(10,4,n.recurringDepositsAccountData.maturityAmount,n.currency.code,"symbol-narrow","1.2-2"))}}function Kc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalWithdrawals,n.currency.code,"symbol-narrow","1.2-2"))}}function ts(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function es(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Closed on Date")," "),t.xp6(4),t.hij("\n ",t.lcZ(8,4,n.recurringDepositsAccountData.timeline.closedOnDate),"\n ")}}function ns(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(3);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalInterestPosted,n.currency.code,"symbol-narrow","1.2-2"))}}function is(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(3);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function os(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6),t._uU(7,"\n "),t.YNc(8,ns,3,6,"span",4),t._uU(9,"\n "),t.YNc(10,is,3,6,"span",4),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,3,"labels.inputs.Interests Posted")," "),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestPosted),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalInterestPosted)}}function as(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"table"),t._uU(3,"\n "),t.TgZ(4,"tbody"),t._uU(5,"\n "),t.TgZ(6,"tr"),t._uU(7,"\n "),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"td",6),t.YNc(13,Vc,3,6,"span",4),t._uU(14,"\n "),t.YNc(15,zc,3,6,"span",4),t._uU(16,"\n "),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"tr"),t._uU(20,"\n "),t.TgZ(21,"td"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"td"),t._uU(26,"\n "),t.TgZ(27,"span"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.YNc(32,Xc,13,9,"tr",4),t._uU(33,"\n "),t.TgZ(34,"tr"),t._uU(35,"\n "),t.TgZ(36,"td"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"td",6),t._uU(41,"\n "),t.YNc(42,Kc,3,6,"span",4),t._uU(43,"\n "),t.YNc(44,ts,3,6,"span",4),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n "),t.YNc(48,es,10,6,"tr",4),t._uU(49,"\n "),t.TgZ(50,"tr"),t._uU(51,"\n "),t.TgZ(52,"td"),t._uU(53),t.ALo(54,"translate"),t.qZA(),t._uU(55,"\n "),t.TgZ(56,"td"),t._uU(57),t.qZA(),t._uU(58,"\n "),t.qZA(),t._uU(59,"\n "),t.YNc(60,os,13,5,"tr",4),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,14,"labels.inputs.Principal Amount")),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.depositAmount),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.depositAmount),t.xp6(7),t.Oqu(t.lcZ(23,16,"labels.inputs.Rate of Interest")),t.xp6(6),t.Oqu(n.recurringDepositsAccountData.nominalAnnualInterestRate),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.maturityDate),t.xp6(5),t.hij("",t.lcZ(38,18,"labels.inputs.Total Withdrawls")," "),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.timeline.closedOnDate),t.xp6(5),t.hij(" ",t.lcZ(54,20,"labels.inputs.Deposits Frequency")," "),t.xp6(4),t.AsE("\n ",n.recurringDepositsAccountData.recurringFrequency,"\xa0",n.recurringDepositsAccountData.recurringFrequencyType.value,"\n "),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestEarned)}}function rs(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Pre-closure penal Interest (less)")),t.xp6(5),t.AsE("",n.recurringDepositsAccountData.preClosurePenalInterest," % on\n ",n.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"")}}function cs(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"h4",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",6),t._uU(17),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.TgZ(20,"tr"),t._uU(21,"\n "),t.TgZ(22,"td"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t.TgZ(26,"td")(27,"span"),t._uU(28),t.qZA()(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"tr"),t._uU(32,"\n "),t.TgZ(33,"td"),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.TgZ(37,"td")(38,"span"),t._uU(39),t.qZA()(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td")(49,"span"),t._uU(50),t.qZA()(),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"tr"),t._uU(54,"\n "),t.TgZ(55,"td"),t._uU(56),t.ALo(57,"translate"),t.qZA(),t._uU(58,"\n "),t.TgZ(59,"td")(60,"span"),t._uU(61),t.qZA()(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.YNc(64,rs,10,5,"tr",4),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,12,"labels.heading.Interest Details")),t.xp6(10),t.Oqu(t.lcZ(14,14,"labels.inputs.Interest Rate")),t.xp6(4),t.hij("",n.recurringDepositsAccountData.nominalAnnualInterestRate,"%"),t.xp6(6),t.Oqu(t.lcZ(24,16,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(35,18,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(46,20,"labels.inputs.Interest calculated using")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationType.value),t.xp6(6),t.hij("# ",t.lcZ(57,22,"labels.inputs.Days in Year"),""),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.preClosurePenalApplicable)}}function ss(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Pre-closure penal Interest (less)")),t.xp6(5),t.AsE("",n.recurringDepositsAccountData.preClosurePenalInterest," % on\n ",n.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"")}}function us(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Witdhold Tax Group")," "),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.taxGroup.name)}}function ps(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"table"),t._uU(3,"\n "),t.TgZ(4,"tbody"),t._uU(5,"\n "),t.TgZ(6,"tr"),t._uU(7,"\n "),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"td")(13,"span"),t._uU(14),t.qZA()(),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"tr"),t._uU(18,"\n "),t.TgZ(19,"td"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.TgZ(23,"td")(24,"span"),t._uU(25),t.qZA()(),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"tr"),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"td")(35,"span"),t._uU(36),t.qZA()(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"tr"),t._uU(40,"\n "),t.TgZ(41,"td"),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"td")(46,"span"),t._uU(47),t.qZA()(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.YNc(50,ss,10,5,"tr",4),t._uU(51,"\n "),t.YNc(52,us,10,4,"tr",4),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,10,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(21,12,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(32,14,"labels.inputs.Interest calculated using")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationType.value),t.xp6(6),t.hij("# ",t.lcZ(43,16,"labels.inputs.Days in Year"),""),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.preClosurePenalApplicable),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.witdHoldTax)}}const ms=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:Ca,resolve:{recurringDepositsAccountTemplate:ct}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:wt,resolve:{recurringDepositsAccountData:ot,savingsDatatables:rt.N},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:(()=>{class e{constructor(n,o){this.route=n,this.router=o,this.isprematureAllowed=!1,this.route.parent.data.subscribe(a=>{this.recurringDepositsAccountData=a.recurringDepositsAccountData,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=null!=a.recurringDepositsAccountData.maturityDate,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")})}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-general-tab"]],decls:19,vars:6,consts:[["fxLayout","row","fxLayoutGap","2%",1,"recurring-deposits-account-tables"],["fxFlex","49%",4,"ngIf"],["fxFlex","49%"],[1,"table-headers"],[4,"ngIf"],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(n,o){1&n&&(t._uU(0,"\n"),t.TgZ(1,"div",0),t._uU(2,"\n\n "),t.YNc(3,yc,76,30,"div",1),t._uU(4,"\n\n "),t.YNc(5,Pc,96,46,"div",1),t._uU(6,"\n\n "),t.YNc(7,Wc,93,42,"div",1),t._uU(8,"\n\n "),t.YNc(9,as,64,22,"div",1),t._uU(10,"\n"),t.qZA(),t._uU(11,"\n\n"),t.TgZ(12,"div",0),t._uU(13,"\n "),t.YNc(14,cs,68,24,"div",1),t._uU(15,"\n\n "),t.YNc(16,ps,56,18,"div",1),t._uU(17,"\n\n"),t.qZA(),t._uU(18,"\n")),2&n&&(t.xp6(3),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",o.recurringDepositsAccountData.status.rejected||o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",o.recurringDepositsAccountData.status.rejected||o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(5),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",o.recurringDepositsAccountData.status.rejected||o.recurringDepositsAccountData.status.submittedAndPendingApproval))},dependencies:[A.O5,u.xw,u.SQ,u.yH,Zc.e,A.JJ,A.H9,T.X$,w.E],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]}),e})(),data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:me,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:ve,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:wn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:Ke,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:Pn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:at.X}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Uc,resolve:{recurringDepositsAccountAndTemplate:ut}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Wr,resolve:{recurringDepositsAccountTransaction:pt}},{path:"edit",component:ac,resolve:{recurringDepositsAccountTransactionTemplate:lt}},{path:"account-transfers",loadChildren:()=>m.e("default-src_app_account-transfers_account-transfers_module_ts").then(m.bind(m,69193)).then(e=>e.AccountTransfersModule)}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:Rr,resolve:{recurringDepositsAccountActionData:st}}]}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>m.e("default-src_app_account-transfers_account-transfers_module_ts").then(m.bind(m,69193)).then(e=>e.AccountTransfersModule)}]}]}];let _s=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[rc,ot,at.X,rt.N,ct,st,ut,pt,lt],imports:[l.Bz.forChild(ms),l.Bz]}),e})();var gs=m(87734),ds=m(35503),As=m(78434);let Ts=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[gs.m,ds.D,As.o,_s]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_deposits_recurring-deposits_recurring-deposits_module_ts","src_app_account-transfers_account-transfers_service_ts"],{35023:(mt,k,_)=>{_.d(k,{o:()=>F});var l=_(80529),M=_(94650);let F=(()=>{class q{constructor(m){this.http=m}getStandingInstructionsData(m){return this.http.get(`/standinginstructions/${m}`)}getStandingInstructionsDataAndTemplate(m){const T=(new l.LE).set("associations","template");return this.http.get(`/standinginstructions/${m}`,{params:T})}updateStandingInstructionsData(m,T){const R=(new l.LE).set("command","update");return this.http.put(`/standinginstructions/${m}`,T,{params:R})}getStandingInstructionsTemplate(m,T,R,C){let D=(new l.LE).set("fromAccountType",R).set("fromClientId",m).set("fromOfficeId",T);if(C){const Z=Object.getOwnPropertyNames(C);for(let O=0;O{_.r(k),_.d(k,{RecurringDepositsModule:()=>fs});var l=_(83689);class M{constructor(i){this.setOptions(i),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(i){switch(i){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;default:this.optionArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}}var F=_(13450),q=_(65412),t=_(94650),m=_(4859),T=_(49274);const R=function(){return{confirm:!0}};let C=(()=>{class e{constructor(n,o){this.dialogRef=n,this.data=o}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(q.so),t.Y36(q.WI))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:20,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){1&n&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12),t.ALo(13,"translate"),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"button",4),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n"),t.qZA(),t._uU(19,"\n")),2&n&&(t.xp6(1),t.Oqu(o.data.heading),t.xp6(5),t.Oqu(o.data.dialogContext),t.xp6(6),t.Oqu(t.lcZ(13,5,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(9,R)),t.xp6(1),t.Oqu(t.lcZ(17,7,"labels.buttons.Confirm")))},dependencies:[m.lW,q.ZT,q.uh,q.xY,q.H8,T.X$]}),e})();var D=_(80529);let Z=(()=>{class e{constructor(n){this.http=n}getRecurringDepositsAccountData(n){const o=(new D.LE).set("associations","all");return this.http.get(`/recurringdepositaccounts/${n}`,{params:o})}getStandingInstructions(n,o,a,s,c){const d=(new D.LE).set("clientId",n).set("clientName",o).set("fromAccountId",a).set("fromAccountType","2").set("locale",s).set("dateFormat",c);return this.http.get("/standinginstructions",{params:d})}getRecurringDepositsAccountTemplate(n,o){let a=(new D.LE).set("clientId",n);return a=o?a.set("productId",o):a,this.http.get("/recurringdepositaccounts/template",{params:a})}createRecurringDepositAccount(n){return this.http.post("/recurringdepositaccounts",n)}executeRecurringDepositsAccountCommand(n,o,a){const s=(new D.LE).set("command",o);return this.http.post("deposit"===o||"withdrawal"===o?`/recurringdepositaccounts/${n}/transactions`:`/recurringdepositaccounts/${n}`,a,{params:s})}deleteRecurringDepositsAccount(n){return this.http.delete(`/recurringdepositaccounts/${n}`)}getRecurringDepositsAccountAndTemplate(n){const o=(new D.LE).set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${n}`,{params:o})}updateRecurringDepositAccount(n,o){return this.http.put(`/recurringdepositaccounts/${n}`,o)}getRecurringDepositAccountActionResource(n,o){const a=(new D.LE).set("command",o);return this.http.get(`/recurringdepositaccounts/${n}/template`,{params:a})}getRecurringDepositAccountTransactionTemplateResource(n,o){const a=(new D.LE).set("command",o);return this.http.get(`/recurringdepositaccounts/${n}/transactions/template`,{params:a})}getRecurringDepositsAccountTransaction(n,o){return this.http.get(`/recurringdepositaccounts/${n}/transactions/${o}`)}getRecurringDepositsAccountTransactionTemplate(n,o){const a=(new D.LE).set("template","true");return this.http.get(`/recurringdepositaccounts/${n}/transactions/${o}`,{params:a})}executeRecurringDepositsAccountTransactionsCommand(n,o,a,s){const c=(new D.LE).set("command",o);return this.http.post(`/recurringdepositaccounts/${n}/transactions/${s}`,a,{params:c})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(D.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var O=_(59349),A=_(36895),S=_(92216),u=_(1576),z=_(55829),f=_(73546),gt=_(97392),dt=_(96338),V=_(28255),X=_(3848),j=_(10266),At=_(15705),E=_(30998),Tt=_(87197);function ft(e,i){if(1&e&&(t.TgZ(0,"span",25),t._uU(1,"\n "),t._UZ(2,"mifosx-account-number",8),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(2),t.s9C("accountNo",n.recurringDepositsAccountData.clientAccountNo)}}function Ut(e,i){if(1&e&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table",9),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",26),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",26),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"tr"),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"td",26),t._uU(39),t.ALo(40,"number"),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,7,"labels.heading.Account Overview")," "),t.xp6(10),t.Oqu(t.lcZ(14,9,"labels.inputs.Current Balance")),t.xp6(4),t.Oqu(t.gM2(18,11,n.recurringDepositsAccountData.summary.accountBalance,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,16,"labels.inputs.Deposit Amount")),t.xp6(4),t.Oqu(t.gM2(29,18,n.recurringDepositsAccountData.depositAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(36,23,"labels.inputs.Deposit Period")),t.xp6(4),t.Oqu(t.lcZ(40,25,n.recurringDepositsAccountData.depositPeriod))}}function Zt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.doAction(a.name))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon",29),t._uU(3,"\n "),t._UZ(4,"fa-icon",30),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.qZA()}if(2&e){const n=t.oxw().$implicit;t.xp6(4),t.s9C("icon",n.icon),t.xp6(4),t.hij(" ",t.lcZ(9,2,"labels.menus."+n.name)," ")}}function ht(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Zt,11,4,"button",27),t._uU(3,"\n "),t.BQk()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",n.taskPermissionName)}}function Dt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw(2);return t.KtG(s.doAction(a.name))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.menus."+n.name))}}function xt(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Dt,3,3,"button",27),t._uU(3,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",n.taskPermissionName)}}function Ct(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",31),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-menu",null,32),t._uU(8,"\n "),t.YNc(9,xt,4,1,"span",18),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.BQk()),2&e){const n=t.MAs(7),o=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",n),t.xp6(1),t.Oqu(t.lcZ(4,3,"labels.menus.More")),t.xp6(6),t.Q6J("ngForOf",o.buttonConfig.options)}}const bt=function(){return["./transactions"]};function qt(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"a",21,33),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.BQk()),2&e){const n=t.MAs(3);t.xp6(2),t.Q6J("routerLink",t.DdM(5,bt))("active",n.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,3,"labels.inputs.Transactions"),"\n ")}}const vt=function(){return["./standing-instructions-tab"]};function yt(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"a",21,34),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.BQk()),2&e){const n=t.MAs(3);t.xp6(2),t.Q6J("routerLink",t.DdM(5,vt))("active",n.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,3,"labels.inputs.Standing Instructions"),"\n ")}}const Rt=function(e){return["./datatables",e]};function It(e,i){if(1&e&&(t.TgZ(0,"a",21,36),t._uU(2),t.qZA()),2&e){const n=t.MAs(1),o=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,Rt,o.registeredTableName))("active",n.isActive),t.xp6(2),t.hij("\n ",o.registeredTableName,"\n ")}}function St(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,It,3,5,"a",35),t._uU(3,"\n "),t.BQk()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+n.registeredTableName)}}const Nt=function(){return["./general"]},Ot=function(){return["./interest-rate-chart"]},wt=function(){return["./charges"]};let Lt=(()=>{class e{constructor(n,o,a,s,c,d){this.route=n,this.router=o,this.recurringDepositsService=a,this.savingsService=s,this.dialog=c,this.translateService=d,this.route.data.subscribe(h=>{this.recurringDepositsAccountData=h.recurringDepositsAccountData,this.charges=this.recurringDepositsAccountData.charges,this.savingsDatatables=h.savingsDatatables,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=null!=h.recurringDepositsAccountData.maturityDate,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")})}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){this.buttonConfig=new M(this.recurringDepositsAccountData.status.value),this.recurringDepositsAccountData.clientId&&"Matured"===this.recurringDepositsAccountData.status.value&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.recurringDepositsAccountData.charges&&"Matured"===this.recurringDepositsAccountData.status.value&&this.charges.forEach(o=>{"Annual fee - INR"===o.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.recurringDepositsAccountData.clientId&&"Active"===this.recurringDepositsAccountData.status.value&&(!0===this.recurringDepositsAccountData.allowWithdrawal&&this.buttonConfig.addOption({name:"Withdrawal",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.charges&&this.charges.forEach(o=>{"Annual fee - INR"===o.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.isprematureAllowed||this.buttonConfig.addButton({name:"Close",icon:"arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.taxGroup&&this.buttonConfig.addOption(this.recurringDepositsAccountData.withHoldTax?{name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}:{name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}))}reload(){const o=this.router.url;this.router.navigateByUrl(`/clients/${this.recurringDepositsAccountData.clientId}/recurringdeposits`,{skipLocationChange:!0}).then(()=>this.router.navigate([o]))}doAction(n){switch(n){case"Activate":case"Approve":case"Reject":case"Undo Approval":case"Add Charge":case"Withdrawn by client":case"Premature Close":case"Close":case"Deposit":case"Withdrawal":this.router.navigate([`actions/${n}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit-recurring-deposit-account"],{relativeTo:this.route});break;case"Delete":this.deleteRecurringDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax()}}deleteRecurringDepositsAccount(){this.dialog.open(F.F,{data:{deleteContext:`Recurring deposit account with id: ${this.recurringDepositsAccountData.id}`}}).afterClosed().subscribe(o=>{o.delete&&this.recurringDepositsService.deleteRecurringDepositsAccount(this.recurringDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Calculate Interest"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to calculate interest ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Post Interest"),dialogContext:this.translateService.instant("lables.dialogContext.Are you sure you want to post interest ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Enable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Enable withhold tax for this account ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Disable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Disable withhold tax for this account ?")}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z),t.Y36(O.d),t.Y36(q.uw),t.Y36(T.sK))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-view"]],decls:94,vars:43,consts:[[1,"account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","","matTooltip","Recurring Deposits Account",1,"profile-image",3,"src"],[1,"mat-typography","account-card-title"],["fxFlex","60%"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["fxFlex","auto"],["fxFlex","5%"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],[1,"m-l-10"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(n,o){if(1&n&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",5),t._uU(15,"\n "),t.TgZ(16,"mat-card-title"),t._uU(17,"\n "),t.TgZ(18,"div",6),t._uU(19,"\n "),t.TgZ(20,"h3"),t._uU(21,"\n "),t._UZ(22,"i",7),t.ALo(23,"statusLookup"),t._uU(24),t.ALo(25,"translate"),t._UZ(26,"mifosx-account-number",8),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n "),t.TgZ(29,"span",9),t._uU(30),t.ALo(31,"translate"),t.ALo(32,"translate"),t.YNc(33,ft,4,1,"span",10),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,Ut,45,27,"div",11),t._uU(38,"\n\n "),t._UZ(39,"span",12),t._uU(40,"\n\n "),t.TgZ(41,"div",13),t._uU(42,"\n "),t.TgZ(43,"button",14),t._uU(44,"\n "),t.TgZ(45,"mat-icon",15),t._uU(46,"\n "),t._UZ(47,"fa-icon",16),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n\n "),t.qZA(),t._uU(53,"\n\n "),t.TgZ(54,"mat-menu",null,17),t._uU(56,"\n "),t.YNc(57,ht,4,1,"ng-container",18),t._uU(58,"\n\n "),t.YNc(59,Ct,12,5,"ng-container",11),t._uU(60,"\n\n "),t.qZA(),t._uU(61,"\n\n "),t.qZA(),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"mat-card-content",19),t._uU(65,"\n\n "),t.TgZ(66,"nav",20),t._uU(67,"\n "),t.TgZ(68,"a",21,22),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"a",21,23),t._uU(75),t.ALo(76,"translate"),t.qZA(),t._uU(77,"\n "),t.YNc(78,qt,7,6,"ng-container",11),t._uU(79,"\n "),t.TgZ(80,"a",21,24),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.YNc(85,yt,7,6,"ng-container",11),t._uU(86,"\n "),t.YNc(87,St,4,1,"ng-container",18),t._uU(88,"\n "),t.qZA(),t._uU(89,"\n\n "),t._UZ(90,"router-outlet"),t._uU(91,"\n\n "),t.qZA(),t._uU(92,"\n\n"),t.qZA(),t._uU(93,"\n")),2&n){const a=t.MAs(55),s=t.MAs(69),c=t.MAs(74),d=t.MAs(81);t.xp6(10),t.Q6J("src","assets/images/recurring-deposits_account_placeholder.png",t.LSH),t.xp6(12),t.Q6J("ngClass",t.lcZ(23,26,o.recurringDepositsAccountData.status.code))("matTooltip",o.recurringDepositsAccountData.status.value),t.xp6(2),t.AsE("\n ",t.lcZ(25,28,"labels.inputs.Recurring Deposit")," : ",o.recurringDepositsAccountData.depositProductName,"\n "),t.xp6(2),t.s9C("accountNo",o.recurringDepositsAccountData.accountNo),t.xp6(4),t.lnq("\n ",t.lcZ(31,30,"labels.text."+o.entityType)," ",t.lcZ(32,32,"labels.inputs.name"),":\n ",o.recurringDepositsAccountData.clientName||o.recurringDepositsAccountData.groupName,"\n "),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsAccountData.clientAccountNo),t.xp6(4),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(6),t.Q6J("matMenuTriggerFor",a),t.xp6(14),t.Q6J("ngForOf",o.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",o.buttonConfig.options.length),t.xp6(9),t.Q6J("routerLink",t.DdM(40,Nt))("active",s.isActive),t.xp6(2),t.hij("\n ",t.lcZ(71,34,"labels.inputs.General"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(41,Ot))("active",c.isActive),t.xp6(2),t.hij("\n ",t.lcZ(76,36,"labels.inputs.Interest Rate Chart"),"\n "),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsAccountData.transactions),t.xp6(2),t.Q6J("routerLink",t.DdM(42,wt))("active",d.isActive),t.xp6(2),t.hij("\n ",t.lcZ(83,38,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsAccountData.clientId),t.xp6(2),t.Q6J("ngForOf",o.savingsDatatables)}},dependencies:[A.mk,A.sg,A.O5,S.BN,u.xw,u.yH,z.oO,m.lW,f.a8,f.dk,f.C1,f.dn,f.n5,f.nc,gt.Hw,dt.Nh,V.VK,V.OP,V.p6,X.BU,X.Nj,j.gM,At.t,E.A,l.lC,l.yS,l.Od,A.JJ,A.H9,T.X$,Tt.F]}),e})();var x=_(37340),p=_(30671);function Pt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function Ft(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.lnq("\n ",n.fromPeriod,"-",n.toPeriod,"\xa0",n.periodType.value,"")}}function Yt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Qt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.amountRangeFrom,"-",n.amountRangeTo,"")}}function Jt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function kt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.annualInterestRate," ")}}function Mt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function jt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.description," ")}}function Et(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Gt(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",21),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function Bt(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",22),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function $t(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",18),t._uU(1,"\n "),t.TgZ(2,"button",19),t.NdJ("click",function(){const s=t.CHM(n).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===s?null:s)}),t._uU(3,"\n "),t.YNc(4,Gt,5,3,"span",20),t._uU(5,"\n "),t.YNc(6,Bt,5,3,"span",20),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&e){const n=i.dataIndex,o=t.oxw();t.xp6(4),t.Q6J("ngIf",o.expandChartSlabIndex!==n),t.xp6(2),t.Q6J("ngIf",o.expandChartSlabIndex===n)}}function Ht(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Wt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.entityType.value,"\n ")}}function Vt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function zt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.attributeName.value,"\n ")}}function Xt(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function Kt(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.conditionType.value),"\n ")}}function te(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function ee(e,i){if(1&e&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngSwitch",n.attributeName),t.xp6(1),t.hij("\n ",n.attributeValueDesc,"\n ")}}function ne(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function ie(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.incentiveType.value,"\n ")}}function oe(e,i){1&e&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function ae(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function re(e,i){1&e&&t._UZ(0,"tr",36)}function ce(e,i){1&e&&t._UZ(0,"tr",37)}function se(e,i){if(1&e&&(t.TgZ(0,"table",27),t._uU(1,"\n\n "),t.ynx(2,28),t._uU(3,"\n "),t.YNc(4,Ht,3,3,"th",7),t._uU(5,"\n "),t.YNc(6,Wt,2,1,"td",8),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,29),t._uU(10,"\n "),t.YNc(11,Vt,3,3,"th",7),t._uU(12,"\n "),t.YNc(13,zt,2,1,"td",8),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,30),t._uU(17,"\n "),t.YNc(18,Xt,3,3,"th",7),t._uU(19,"\n "),t.YNc(20,Kt,3,3,"td",8),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,31),t._uU(24,"\n "),t.YNc(25,te,3,3,"th",7),t._uU(26,"\n "),t.YNc(27,ee,2,2,"td",32),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,33),t._uU(31,"\n "),t.YNc(32,ne,3,3,"th",7),t._uU(33,"\n "),t.YNc(34,ie,2,1,"td",8),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,34),t._uU(38,"\n "),t.YNc(39,oe,3,3,"th",7),t._uU(40,"\n "),t.YNc(41,ae,2,1,"td",8),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,re,1,0,"tr",14),t._uU(45,"\n "),t.YNc(46,ce,1,0,"tr",15),t._uU(47,"\n\n "),t.qZA()),2&e){const n=t.oxw().$implicit,o=t.oxw();t.Q6J("dataSource",n.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",o.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.incentivesDisplayedColumns)}}function ue(e,i){if(1&e&&(t.TgZ(0,"td",18),t._uU(1,"\n\n "),t.TgZ(2,"div",23),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",24),t._uU(5,"\n\n "),t.TgZ(6,"h4",25),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,se,48,3,"table",26),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&e){const n=i.$implicit,o=i.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",o===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",null==n.incentives?null:n.incentives.length)}}function pe(e,i){1&e&&t._UZ(0,"tr",36)}function le(e,i){1&e&&t._UZ(0,"tr",37)}function _e(e,i){1&e&&t._UZ(0,"tr",38)}let me=(()=>{class e{constructor(n){this.route=n,this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(o=>{this.interestRateChartData=o.recurringDepositsAccountData.accountChart.chartSlabs})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-interest-rate-chart-tab"]],decls:66,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayoutAlign","start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4,5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,Pt,3,3,"th",7),t._uU(20,"\n "),t.YNc(21,Ft,2,3,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,Yt,3,3,"th",7),t._uU(27,"\n "),t.YNc(28,Qt,2,2,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,10),t._uU(32,"\n "),t.YNc(33,Jt,3,3,"th",7),t._uU(34,"\n "),t.YNc(35,kt,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,11),t._uU(39,"\n "),t.YNc(40,Mt,3,3,"th",7),t._uU(41,"\n "),t.YNc(42,jt,2,1,"td",8),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,12),t._uU(46,"\n "),t.YNc(47,Et,3,3,"th",7),t._uU(48,"\n "),t.YNc(49,$t,9,2,"td",8),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,13),t._uU(53,"\n "),t.YNc(54,ue,14,6,"td",8),t._uU(55,"\n "),t.BQk(),t._uU(56,"\n\n "),t.YNc(57,pe,1,0,"tr",14),t._uU(58,"\n "),t.YNc(59,le,1,0,"tr",15),t._uU(60,"\n "),t.YNc(61,_e,1,0,"tr",16),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n"),t.qZA(),t._uU(65,"\n")),2&n&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.heading.All Interest Rates")),t.xp6(7),t.Q6J("dataSource",o.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsIncentivesDisplayedColumns))},dependencies:[A.O5,A.RF,S.BN,u.xw,u.Wh,u.s9,u.yH,m.lW,f.a8,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,A.rS,T.X$],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,x.X$)("expandChartSlab",[(0,x.SB)("collapsed",(0,x.oB)({height:"0px",minHeight:"0"})),(0,x.SB)("expanded",(0,x.oB)({height:"*"})),(0,x.eR)("expanded <=> collapsed",(0,x.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e})();var r=_(24006),K=_(56709),w=_(35769);function ge(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",16),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",17),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.hideAccruals())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.qZA()}if(2&e){const n=t.oxw();t.xp6(2),t.Q6J("formControl",n.hideAccrualsParam),t.xp6(1),t.hij("\n ",t.lcZ(4,2,"labels.inputs.Hide Accruals"),"")}}function de(e,i){1&e&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.ID")," "))}const Y=function(e){return{strike:e}};function Ae(e,i){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij(" ",n.id," ")}}function Te(e,i){1&e&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Date")," "))}function fe(e,i){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(4,Y,n.reversed)),t.xp6(1),t.hij(" ",t.lcZ(2,2,n.date)," ")}}function Ue(e,i){1&e&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Type")," "))}function Ze(e,i){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij(" ",n.transactionType.value," ")}}function he(e,i){1&e&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Debit")," "))}function De(e,i){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&e){const n=i.$implicit,o=t.oxw();t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij("\n ",o.isDebit(n.transactionType)?n.amount:"N/A"," ")}}function xe(e,i){1&e&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Credit")," "))}function Ce(e,i){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&e){const n=i.$implicit,o=t.oxw();t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij("\n ",o.isDebit(n.transactionType)?"N/A":n.amount," ")}}function be(e,i){1&e&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Balance")," "))}function qe(e,i){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngClass",t.VKq(2,Y,n.reversed)),t.xp6(1),t.hij(" ",n.runningBalance," ")}}function ve(e,i){1&e&&t._UZ(0,"tr",20)}function ye(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"tr",21),t.NdJ("click",function(){const s=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.showTransactions(s))}),t.qZA()}}let Re=(()=>{class e{constructor(n,o){this.route=n,this.router=o,this.displayedColumns=["id","transactionDate","transactionType","debit","credit","balance"],this.route.parent.data.subscribe(a=>{this.transactionsData=a.recurringDepositsAccountData.transactions,this.tempTransaction=this.transactionsData,this.status=a.recurringDepositsAccountData.status.value})}ngOnInit(){this.dataSource=new p.by(this.transactionsData),this.hideAccrualsParam=new r.p4(!1),this.tempTransaction.forEach(n=>{this.isAccrual(n.transactionType)&&(this.tempTransaction=this.removeItem(this.tempTransaction,n))})}removeItem(n,o){return n.filter(a=>a!==o)}isDebit(n){return!0===n.withdrawal||!0===n.feeDeduction||!0===n.overdraftInterest||!0===n.withholdTax}isAccrual(n){return n.accrual||"savingsAccountTransactionType.accrual"===n.code}hideAccruals(){this.dataSource=new p.by(this.hideAccrualsParam.value?this.transactionsData:this.tempTransaction)}checkStatus(){return"Active"===this.status||"Closed"===this.status||"Transfer in progress"===this.status||"Transfer on hold"===this.status||"Premature Closed"===this.status||"Matured"===this.status}showTransactions(n){this.router.navigate(n.transfer?[`account-transfers/account-transfers/${n.transfer.id}`]:[n.id],{relativeTo:this.route})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-transactions-tab"]],decls:67,vars:7,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-20"],["class","action-button m-b-20","fxLayout","row","fxLayoutGap","20px",4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["matColumnDef","credit"],["matColumnDef","balance"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutGap","20px",1,"action-button","m-b-20"],[1,"accruals",3,"formControl","click"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"h3"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.YNc(13,ge,6,4,"div",4),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"table",5),t._uU(17,"\n\n "),t.ynx(18,6),t._uU(19,"\n "),t.YNc(20,de,3,3,"th",7),t._uU(21,"\n "),t.YNc(22,Ae,2,4,"td",8),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,9),t._uU(26,"\n "),t.YNc(27,Te,3,3,"th",7),t._uU(28,"\n "),t.YNc(29,fe,3,6,"td",8),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,10),t._uU(33,"\n "),t.YNc(34,Ue,3,3,"th",7),t._uU(35,"\n "),t.YNc(36,Ze,2,4,"td",8),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,11),t._uU(40,"\n "),t.YNc(41,he,3,3,"th",7),t._uU(42,"\n "),t.YNc(43,De,2,4,"td",8),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,12),t._uU(47,"\n "),t.YNc(48,xe,3,3,"th",7),t._uU(49,"\n "),t.YNc(50,Ce,2,4,"td",8),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,13),t._uU(54,"\n "),t.YNc(55,be,3,3,"th",7),t._uU(56,"\n "),t.YNc(57,qe,2,4,"td",8),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.YNc(60,ve,1,0,"tr",14),t._uU(61,"\n "),t.YNc(62,ye,1,0,"tr",15),t._uU(63,"\n\n "),t.qZA(),t._uU(64,"\n\n "),t.qZA(),t._uU(65,"\n\n"),t.qZA(),t._uU(66,"\n")),2&n&&(t.xp6(9),t.Oqu(t.lcZ(10,5,"labels.heading.All Transactions")),t.xp6(4),t.Q6J("ngIf",o.checkStatus()),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(44),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[A.mk,A.O5,u.xw,u.SQ,u.Wh,z.oO,K.oG,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,r.JJ,r.oH,T.X$,w.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}"]}),e})();var v=_(99639),Ie=_(35023);const Se=["instructionsTable"];function Ne(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client")," "))}function Oe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.fromClient.displayName,"-",n.fromClient.id,"\n ")}}function we(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.From Account")," "))}function Le(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.fromAccount.accountNo,"\n (",n.fromAccountType.value,")")}}function Pe(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Beneficiary")," "))}function Fe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.Oqu(n.toClient.displayName)}}function Ye(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.To Account")," "))}function Qe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.toAccount.accountNo,"\n (",n.toAccountType.value,")")}}function Je(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function ke(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.instructionType.value,"/",n.amount,"")}}function Me(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Validity")," "))}function je(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,n.validFrom)," to ",t.lcZ(3,4,n.validTill),"\n ")}}function Ee(e,i){1&e&&(t.TgZ(0,"th",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}const Ge=function(e){return["../","standing-instructions",e,"edit"]};function Be(e,i){if(1&e&&(t.TgZ(0,"button",21),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2).$implicit;t.Q6J("routerLink",t.VKq(1,Ge,n.id))}}function $e(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Be,4,3,"button",20),t._uU(3,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function He(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2).$implicit,s=t.oxw();return t.KtG(s.deleteStandingInstruction(a.id))}),t._uU(1,"\n "),t._UZ(2,"i",25),t._uU(3,"\n "),t.qZA()}}function We(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,He,4,0,"button",23),t._uU(3,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}const Ve=function(e){return["../","standing-instructions",e,"view"]};function ze(e,i){if(1&e&&(t.TgZ(0,"button",26),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,Ve,n.id))}}function Xe(e,i){if(1&e&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,$e,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,We,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,ze,4,3,"button",19),t._uU(7,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==n.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==n.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Ke(e,i){1&e&&t._UZ(0,"tr",28)}function tn(e,i){1&e&&t._UZ(0,"tr",29)}let en=(()=>{class e{constructor(n,o,a,s,c){this.route=n,this.recurringDepositsService=o,this.dialog=a,this.accountTransfersService=s,this.settingsService=c,this.dataSource=new p.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(d=>{this.recurringDepositsData=d.recurringDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.recurringDepositsService.getStandingInstructions(this.recurringDepositsData.clientId,this.recurringDepositsData.clientName,this.recurringDepositsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(d=>{this.instructionsData=d.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(n){this.dialog.open(F.F,{data:{deleteContext:`standing instruction id: ${n}`}}).afterClosed().subscribe(a=>{a.delete&&this.accountTransfersService.deleteStandingInstrucions(n).subscribe(()=>{})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(Z),t.Y36(q.uw),t.Y36(Ie.o),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(n,o){if(1&n&&t.Gf(Se,7),2&n){let a;t.iGM(a=t.CRH())&&(o.instructionTableRef=a.first)}},decls:70,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","View Standing Instruction",3,"routerLink",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",1,"account-action-button",3,"routerLink"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",1,"account-action-button",3,"click"],[1,"fa","fa-times"],["mat-raised-button","","color","primary","matTooltip","View Standing Instruction",1,"account-action-button",3,"routerLink"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n\n "),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"table",3,4),t._uU(13,"\n\n "),t.ynx(14,5),t._uU(15,"\n "),t.YNc(16,Ne,3,3,"th",6),t._uU(17,"\n "),t.YNc(18,Oe,2,2,"td",7),t._uU(19,"\n "),t.BQk(),t._uU(20,"\n\n "),t.ynx(21,8),t._uU(22,"\n "),t.YNc(23,we,3,3,"th",6),t._uU(24,"\n "),t.YNc(25,Le,2,2,"td",7),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n "),t.ynx(28,9),t._uU(29,"\n "),t.YNc(30,Pe,3,3,"th",6),t._uU(31,"\n "),t.YNc(32,Fe,2,1,"td",7),t._uU(33,"\n "),t.BQk(),t._uU(34,"\n\n "),t.ynx(35,10),t._uU(36,"\n "),t.YNc(37,Ye,3,3,"th",6),t._uU(38,"\n "),t.YNc(39,Qe,2,2,"td",7),t._uU(40,"\n "),t.BQk(),t._uU(41,"\n\n "),t.ynx(42,11),t._uU(43,"\n "),t.YNc(44,Je,3,3,"th",6),t._uU(45,"\n "),t.YNc(46,ke,2,2,"td",7),t._uU(47,"\n "),t.BQk(),t._uU(48,"\n\n "),t.ynx(49,12),t._uU(50,"\n "),t.YNc(51,Me,3,3,"th",6),t._uU(52,"\n "),t.YNc(53,je,4,6,"td",7),t._uU(54,"\n "),t.BQk(),t._uU(55,"\n\n "),t.ynx(56,13),t._uU(57,"\n "),t.YNc(58,Ee,3,3,"th",6),t._uU(59,"\n "),t.YNc(60,Xe,8,3,"td",7),t._uU(61,"\n "),t.BQk(),t._uU(62,"\n\n "),t.YNc(63,Ke,1,0,"tr",14),t._uU(64,"\n "),t.YNc(65,tn,1,0,"tr",15),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n "),t.qZA(),t._uU(68,"\n\n"),t.qZA(),t._uU(69,"\n")),2&n&&(t.xp6(5),t.Oqu(t.lcZ(6,4,"labels.heading.All Standing Instructions")),t.xp6(6),t.Q6J("dataSource",o.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[A.O5,m.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,j.gM,E.A,l.rH,T.X$,w.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),e})();var J=_(34417),G=_(68830),tt=_(23107),I=_(73426);const nn=["chargesTable"];function on(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function an(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.name," ")}}function rn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Fee/Penalty")," "))}function cn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",!0===n.penalty?"Penalty":"Fee"," ")}}function sn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Payment Due At")," "))}function un(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.chargeTimeType.value," ")}}function pn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due As Of")," "))}function ln(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,n.dueDate)," ")}}function _n(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repeats On")," "))}const mn=function(){return[2e3]};function gn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.feeOnMonthDay?t.xi3(2,1,t.DdM(4,mn).concat(n.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function dn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Calculation Type")," "))}function An(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.chargeCalculationType.value," ")}}function Tn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due")," "))}function fn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amount," ")}}function Un(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Paid")," "))}function Zn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amountPaid," ")}}function hn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Waived")," "))}function Dn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amountWaived," ")}}function xn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Outstanding")," "))}function Cn(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE(" ",n.currency.displaySymbol,"\xa0",n.amountOutstanding," ")}}function bn(e,i){1&e&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function qn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.editCharge(s))}),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA()}}function vn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(2).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.deleteCharge(s.id))}),t._uU(1,"\n "),t._UZ(2,"i",29),t._uU(3,"\n "),t.qZA()}}function yn(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,qn,4,0,"button",24),t._uU(3,"\n "),t.YNc(4,vn,4,0,"button",25),t._uU(5,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Rn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(3).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.payCharge(s.id))}),t._uU(1,"\n "),t._UZ(2,"i",33),t._uU(3,"\n "),t.qZA()}}function In(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(3).$implicit,c=t.oxw();return c.routeEdit(a),t.KtG(c.waiveCharge(s.id))}),t._uU(1,"\n "),t._UZ(2,"i",35),t._uU(3,"\n "),t.qZA()}}function Sn(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Rn,4,0,"button",30),t._uU(3,"\n "),t.YNc(4,In,4,0,"button",31),t._uU(5,"\n "),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"))}function Nn(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Sn,6,2,"span",23),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf","Monthly Fee"==n.chargeTimeType.value||"Annual Fee"==n.chargeTimeType.value||"Specified due date"==n.chargeTimeType.value)}}function On(e,i){if(1&e&&(t.TgZ(0,"td",22),t._uU(1,"\n "),t.YNc(2,yn,6,2,"span",23),t._uU(3,"\n "),t.YNc(4,Nn,4,1,"span",23),t._uU(5,"\n "),t.qZA()),2&e){const n=i.$implicit,o=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===o.recurringDepositsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"!==o.recurringDepositsAccountData.status.value&&0!==n.amountOutstanding)}}function wn(e,i){1&e&&t._UZ(0,"tr",36)}function Ln(e,i){1&e&&t._UZ(0,"tr",37)}let Pn=(()=>{class e{constructor(n,o,a,s,c,d,h){this.route=n,this.savingsService=o,this.dateUtils=a,this.router=s,this.dialog=c,this.translateService=d,this.settingsService=h,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(y=>{this.recurringDepositsAccountData=y.recurringDepositsAccountData,this.chargesData=this.recurringDepositsAccountData.charges})}ngOnInit(){const n=this.chargesData?this.chargesData.filter(o=>o.isActive):[];this.dataSource=new p.by(n)}payCharge(n){const o=[new G.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new tt.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(J.E,{data:{title:`Pay Charge ${n}`,layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const d=this.settingsService.language.code,h=this.settingsService.dateFormat,y={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,h),dateFormat:h,locale:d};this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"paycharge",y,n).subscribe(()=>{this.reload()})}})}waiveCharge(n){this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id: ")+`${n} ?`}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"waive",{},n).subscribe(()=>{this.reload()})})}editCharge(n){const o=[new G.M({controlName:"amount",label:"Amount",value:n.amount||n.amountOrPercentage,type:"number",required:!0})];this.dialog.open(J.E,{data:{title:`Edit Charge ${n.id}`,layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const y={...c.data.value,dateFormat:"dd MMMM yyyy",locale:"en"};this.savingsService.editSavingsAccountCharge(this.recurringDepositsAccountData.id,y,n.id).subscribe(()=>{this.reload()})}})}deleteCharge(n){this.dialog.open(F.F,{data:{deleteContext:`charge id:${n}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.recurringDepositsAccountData.id,n).subscribe(()=>{this.reload()})})}routeEdit(n){n.stopPropagation()}reload(){const o=this.router.url;this.router.navigateByUrl(`/clients/${this.recurringDepositsAccountData.clientId}/recurringdeposits`,{skipLocationChange:!0}).then(()=>this.router.navigate([o]))}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(O.d),t.Y36(I.L),t.Y36(l.F0),t.Y36(q.uw),t.Y36(T.sK),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-charges-tab"]],viewQuery:function(n,o){if(1&n&&t.Gf(nn,7),2&n){let a;t.iGM(a=t.CRH())&&(o.chargesTableRef=a.first)}},decls:101,vars:6,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Charge",1,"account-action-button",3,"click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn","matTooltip","Delete Charge",1,"account-action-button",3,"click"],[1,"fa","fa-trash"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Pay Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Waive Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Pay Charge",1,"account-action-button",3,"click"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary","matTooltip","Waive Charge",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"div",3),t._uU(13,"\n\n "),t.TgZ(14,"table",4,5),t._uU(16,"\n\n "),t.ynx(17,6),t._uU(18,"\n "),t.YNc(19,on,3,3,"th",7),t._uU(20,"\n "),t.YNc(21,an,2,1,"td",8),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,9),t._uU(25,"\n "),t.YNc(26,rn,3,3,"th",7),t._uU(27,"\n "),t.YNc(28,cn,2,1,"td",8),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,10),t._uU(32,"\n "),t.YNc(33,sn,3,3,"th",7),t._uU(34,"\n "),t.YNc(35,un,2,1,"td",8),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,11),t._uU(39,"\n "),t.YNc(40,pn,3,3,"th",7),t._uU(41,"\n "),t.YNc(42,ln,3,3,"td",8),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,12),t._uU(46,"\n "),t.YNc(47,_n,3,3,"th",7),t._uU(48,"\n "),t.YNc(49,gn,3,5,"td",8),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.ynx(52,13),t._uU(53,"\n "),t.YNc(54,dn,3,3,"th",7),t._uU(55,"\n "),t.YNc(56,An,2,1,"td",8),t._uU(57,"\n "),t.BQk(),t._uU(58,"\n\n "),t.ynx(59,14),t._uU(60,"\n "),t.YNc(61,Tn,3,3,"th",7),t._uU(62,"\n "),t.YNc(63,fn,2,2,"td",8),t._uU(64,"\n "),t.BQk(),t._uU(65,"\n\n "),t.ynx(66,15),t._uU(67,"\n "),t.YNc(68,Un,3,3,"th",7),t._uU(69,"\n "),t.YNc(70,Zn,2,2,"td",8),t._uU(71,"\n "),t.BQk(),t._uU(72,"\n\n "),t.ynx(73,16),t._uU(74,"\n "),t.YNc(75,hn,3,3,"th",7),t._uU(76,"\n "),t.YNc(77,Dn,2,2,"td",8),t._uU(78,"\n "),t.BQk(),t._uU(79,"\n\n "),t.ynx(80,17),t._uU(81,"\n "),t.YNc(82,xn,3,3,"th",7),t._uU(83,"\n "),t.YNc(84,Cn,2,2,"td",8),t._uU(85,"\n "),t.BQk(),t._uU(86,"\n\n "),t.ynx(87,18),t._uU(88,"\n "),t.YNc(89,bn,3,3,"th",7),t._uU(90,"\n "),t.YNc(91,On,6,2,"td",8),t._uU(92,"\n "),t.BQk(),t._uU(93,"\n\n "),t.YNc(94,wn,1,0,"tr",19),t._uU(95,"\n "),t.YNc(96,Ln,1,0,"tr",20),t._uU(97,"\n\n "),t.qZA(),t._uU(98,"\n\n "),t.qZA(),t._uU(99,"\n\n"),t.qZA(),t._uU(100,"\n")),2&n&&(t.xp6(7),t.Oqu(t.lcZ(8,4,"labels.heading.All Charges")),t.xp6(7),t.Q6J("dataSource",o.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[A.O5,u.xw,u.Wh,m.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,j.gM,E.A,T.X$,w.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),e})();var Fn=_(45063);let Yn=(()=>{class e{constructor(n){this.route=n,this.entityId=this.route.parent.parent.snapshot.paramMap.get("recurringDepositAccountId"),this.route.data.subscribe(o=>{this.entityDatatable=o.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Recurring Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&n&&(t.xp6(2),t.Q6J("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[Fn.j]}),e})();var L=_(3238),U=_(99602),g=_(59549),N=_(284),P=_(84385),b=_(58425);function Qn(e,i){if(1&e&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function Jn(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.TgZ(13,"mat-error"),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.TgZ(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA()}if(2&e){const n=t.MAs(11),o=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.inputs.Submitted On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(6),t.AsE("\n ",t.lcZ(15,10,"labels.inputs.Submission Date")," ",t.lcZ(16,12,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(19,14,"labels.commons.required"))}}function kn(e,i){if(1&e&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.displayName,"\n ")}}function Mn(e,i){if(1&e&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",17),t._uU(7,"\n "),t.YNc(8,kn,2,2,"mat-option",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Field Officer")),t.xp6(5),t.Q6J("ngForOf",n.fieldOfficerData)}}function jn(e,i){1&e&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",18),t.ALo(7,"translate"),t._uU(8,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.External id")),t.xp6(3),t.s9C("matTooltip",t.lcZ(7,4,"tooltips.Provides an external id")))}let B=(()=>{class e{constructor(n,o,a){this.formBuilder=n,this.recurringDepositsService=o,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.recurringDepositsAccountProductTemplate=new t.vpe,this.createRecurringDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.recurringDepositsAccountTemplate&&(this.productData=this.recurringDepositsAccountTemplate.productOptions,this.recurringDepositsAccountTemplate.depositProductId&&this.recurringDepositAccountDetailsForm.patchValue({productId:this.recurringDepositsAccountTemplate.depositProductId,submittedOnDate:this.recurringDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.recurringDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.recurringDepositsAccountTemplate.externalId}))}createRecurringDepositsAccountDetailsForm(){this.recurringDepositAccountDetailsForm=this.formBuilder.group({productId:["",r.kI.required],submittedOnDate:["",r.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const n=this.recurringDepositsAccountTemplate.clientId;this.recurringDepositAccountDetailsForm.get("productId").valueChanges.subscribe(o=>{this.recurringDepositsService.getRecurringDepositsAccountTemplate(n,o).subscribe(a=>{this.recurringDepositsAccountProductTemplate.emit(a),this.fieldOfficerData=a.fieldOfficerOptions,this.isProductSelected=!0,!this.isFieldOfficerPatched&&this.recurringDepositsAccountTemplate.fieldOfficerId?(this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.recurringDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get recurringDepositAccountDetails(){return this.recurringDepositAccountDetailsForm.value}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-details-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate"},outputs:{recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},decls:48,vars:23,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(n,o){1&n&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,Qn,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,Jn,22,16,"mat-form-field",5),t._uU(26,"\n\n "),t.YNc(27,Mn,11,4,"mat-form-field",6),t._uU(28,"\n\n "),t.YNc(29,jn,9,6,"mat-form-field",6),t._uU(30,"\n\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",7),t._uU(33,"\n "),t.TgZ(34,"button",8),t._uU(35,"\n "),t._UZ(36,"fa-icon",9),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"button",10),t._uU(41),t.ALo(42,"translate"),t._UZ(43,"fa-icon",11),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n"),t.qZA(),t._uU(47,"\n")),2&n&&(t.Q6J("formGroup",o.recurringDepositAccountDetailsForm),t.xp6(7),t.Oqu(t.lcZ(8,11,"labels.inputs.Product Name")),t.xp6(5),t.Q6J("ngForOf",o.productData),t.xp6(4),t.AsE("\n ",t.lcZ(17,13,"labels.inputs.Product Name")," ",t.lcZ(18,15,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,17,"labels.commons.required")),t.xp6(5),t.Q6J("ngIf",o.isProductSelected),t.xp6(2),t.Q6J("ngIf",o.isProductSelected),t.xp6(2),t.Q6J("ngIf",o.isProductSelected),t.xp6(8),t.hij("\n ",t.lcZ(38,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(42,21,"labels.buttons.Next"),"\n "))},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.yH,L.ey,m.lW,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,b.Ic,b.fd,j.gM,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,T.X$],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),e})();function En(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Gn(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Bn(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function $n(e,i){if(1&e&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}let $=(()=>{class e{constructor(n,o){this.formBuilder=n,this.settingsService=o,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createRecurringDepositsAccountTermsForm()}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&this.setOptions()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate.id&&this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountTemplate.interestCalculationDaysInYearType.id})}createRecurringDepositsAccountTermsForm(){this.recurringDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",r.kI.required],interestPostingPeriodType:["",r.kI.required],interestCalculationType:["",r.kI.required],interestCalculationDaysInYearType:["",r.kI.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.recurringDepositsAccountTemplate.id||this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearType.id})}get recurringDepositAccountTerms(){return this.recurringDepositAccountTermsForm.value}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-terms-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[t.TTD],decls:105,vars:59,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","interestCompoundingPeriodType","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"]],template:function(n,o){1&n&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,En,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field",2),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",5),t._uU(32,"\n "),t.YNc(33,Gn,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.TgZ(36,"mat-error"),t._uU(37),t.ALo(38,"translate"),t.ALo(39,"translate"),t.TgZ(40,"strong"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.TgZ(46,"mat-form-field",2),t._uU(47,"\n "),t.TgZ(48,"mat-label"),t._uU(49),t.ALo(50,"translate"),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"mat-select",6),t._uU(53,"\n "),t.YNc(54,Bn,2,2,"mat-option",4),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.TgZ(57,"mat-error"),t._uU(58),t.ALo(59,"translate"),t.ALo(60,"translate"),t.TgZ(61,"strong"),t._uU(62),t.ALo(63,"translate"),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"mat-form-field",2),t._uU(68,"\n "),t.TgZ(69,"mat-label"),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"mat-select",7),t._uU(74,"\n "),t.YNc(75,$n,2,2,"mat-option",4),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.TgZ(78,"mat-error"),t._uU(79),t.ALo(80,"translate"),t.ALo(81,"translate"),t.TgZ(82,"strong"),t._uU(83),t.ALo(84,"translate"),t.qZA(),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n "),t.qZA(),t._uU(87,"\n\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",8),t._uU(90,"\n "),t.TgZ(91,"button",9),t._uU(92,"\n "),t._UZ(93,"fa-icon",10),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"button",11),t._uU(98),t.ALo(99,"translate"),t._UZ(100,"fa-icon",12),t._uU(101,"\n "),t.qZA(),t._uU(102,"\n "),t.qZA(),t._uU(103,"\n\n"),t.qZA(),t._uU(104,"\n")),2&n&&(t.Q6J("formGroup",o.recurringDepositAccountTermsForm),t.xp6(7),t.Oqu(t.lcZ(8,23,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Q6J("ngForOf",o.interestCompoundingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(17,25,"labels.inputs.Interest Compounding Period")," ",t.lcZ(18,27,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,29,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(29,31,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Q6J("ngForOf",o.interestPostingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(38,33,"labels.inputs.Interest Posting Period")," ",t.lcZ(39,35,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(42,37,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(50,39,"labels.inputs.Interest Calculated using")),t.xp6(5),t.Q6J("ngForOf",o.interestCalculationTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(59,41,"labels.inputs.Interest Calculated using")," ",t.lcZ(60,43,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(63,45,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(71,47,"labels.inputs.Days in Year")),t.xp6(5),t.Q6J("ngForOf",o.interestCalculationDaysInYearTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(80,49,"labels.inputs.Days in Year")," ",t.lcZ(81,51,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(84,53,"labels.commons.required")),t.xp6(11),t.hij("\n ",t.lcZ(95,55,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(99,57,"labels.buttons.Next"),"\n "))},dependencies:[A.sg,S.BN,u.xw,u.SQ,u.Wh,u.yH,L.ey,m.lW,g.TO,g.KE,g.hX,P.gD,b.Ic,b.fd,r._Y,r.JJ,r.JL,r.Q7,r.sg,r.u,T.X$]}),e})();var et=_(44850);function Hn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Wn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Vn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function zn(e,i){if(1&e){const n=t.EpF();t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"mat-form-field",32),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(13);return t.KtG(a.open())}),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",33),t._uU(9,"\n "),t._UZ(10,"mat-datepicker-toggle",34),t._uU(11,"\n "),t._UZ(12,"mat-datepicker",null,35),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"h4",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",6),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",36),t._uU(27,"\n "),t.TgZ(28,"mat-error"),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"translate"),t.TgZ(32,"strong"),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-form-field",6),t._uU(39,"\n "),t.TgZ(40,"mat-label"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"mat-select",37),t._uU(45,"\n "),t.YNc(46,Vn,2,2,"mat-option",9),t._uU(47,"\n "),t.qZA(),t._uU(48,"\n "),t.TgZ(49,"mat-error"),t._uU(50),t.ALo(51,"translate"),t.ALo(52,"translate"),t.TgZ(53,"strong"),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n "),t.BQk()}if(2&e){const n=t.MAs(13),o=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,15,"labels.inputs.Deposit Start Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(7),t.Oqu(t.lcZ(18,17,"labels.heading.Deposit Frequency")),t.xp6(6),t.Oqu(t.lcZ(24,19,"labels.inputs.Deposit Frequency")),t.xp6(6),t.AsE("\n ",t.lcZ(30,21,"labels.inputs.Deposit Frequency")," ",t.lcZ(31,23,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(34,25,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(42,27,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(51,29,"labels.inputs.Deposit Frequency Type")," ",t.lcZ(52,31,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(55,33,"labels.commons.required"))}}function Xn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Kn(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ti(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ei(e,i){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ni(e,i){1&e&&(t.TgZ(0,"mat-form-field",6),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",40),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Tax Group")))}function ii(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"h4",5),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t.TgZ(6,"mat-checkbox",38),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,ni,8,3,"mat-form-field",39),t._uU(11,"\n "),t.BQk()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.heading.Tax Group")),t.xp6(4),t.hij("\n ",t.lcZ(8,5,"labels.inputs.Is Withhold Tax Applicable"),"?\n "),t.xp6(3),t.Q6J("ngIf",n.recurringDepositAccountSettingsForm.controls.taxGroupId)}}let H=(()=>{class e{constructor(n,o){this.formBuilder=n,this.settingsService=o,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createRecurringDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.recurringDepositAccountSettingsForm.patchValue({isMandatoryDeposit:this.recurringDepositsAccountProductTemplate.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:this.recurringDepositsAccountProductTemplate.adjustAdvanceTowardsFuturePayments,allowWithdrawal:this.recurringDepositsAccountProductTemplate.allowWithdrawal,lockinPeriodFrequency:this.recurringDepositsAccountProductTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyType?this.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyType.id:"",minDepositTerm:this.recurringDepositsAccountProductTemplate.minDepositTerm,minDepositTermTypeId:this.recurringDepositsAccountProductTemplate.minDepositTermType?this.recurringDepositsAccountProductTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType?this.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType.id:"",maxDepositTerm:this.recurringDepositsAccountProductTemplate.maxDepositTerm,maxDepositTermTypeId:this.recurringDepositsAccountProductTemplate.maxDepositTermType?this.recurringDepositsAccountProductTemplate.maxDepositTermType.id:"",preClosurePenalApplicable:this.recurringDepositsAccountProductTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.recurringDepositsAccountProductTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.recurringDepositsAccountProductTemplate.preClosurePenalInterestOnType?this.recurringDepositsAccountProductTemplate.preClosurePenalInterestOnType.id:"",minBalanceForInterestCalculation:this.recurringDepositsAccountProductTemplate.minBalanceForInterestCalculation,depositPeriod:this.recurringDepositsAccountProductTemplate.minDepositTerm,depositPeriodFrequencyId:this.recurringDepositsAccountProductTemplate.minDepositTermType.id}),this.recurringDepositsAccountProductTemplate.withHoldTax?(this.recurringDepositAccountSettingsForm.addControl("withHoldTax",new r.p4(!1)),this.recurringDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(n=>{n?(this.recurringDepositAccountSettingsForm.addControl("taxGroupId",new r.p4({value:"",disabled:!0})),this.recurringDepositAccountSettingsForm.get("taxGroupId").patchValue(this.recurringDepositsAccountProductTemplate.taxGroup&&this.recurringDepositsAccountProductTemplate.taxGroup.name)):this.recurringDepositAccountSettingsForm.removeControl("taxGroupId")}),this.recurringDepositAccountSettingsForm.get("withHoldTax").patchValue(this.recurringDepositsAccountTemplate.withHoldTax)):this.recurringDepositAccountSettingsForm.removeControl("withHoldTax"),this.taxGroup=this.recurringDepositsAccountProductTemplate.taxGroup,this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate&&this.recurringDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.recurringDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType&&this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType.id,mandatoryRecommendedDepositAmount:this.recurringDepositsAccountTemplate.mandatoryRecommendedDepositAmount})}createRecurringDepositAccountSettingsForm(){this.recurringDepositAccountSettingsForm=this.formBuilder.group({isMandatoryDeposit:[""],adjustAdvanceTowardsFuturePayments:[""],allowWithdrawal:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],mandatoryRecommendedDepositAmount:["",r.kI.required],depositPeriod:["",r.kI.required],depositPeriodFrequencyId:["",r.kI.required],isCalendarInherited:[""],expectedFirstDepositOnDate:[""],recurringFrequency:["",r.kI.required],recurringFrequencyType:["",r.kI.required],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.recurringDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.preClosurePenalInterestOnTypeData=this.recurringDepositsAccountProductTemplate.preClosurePenalInterestOnTypeOptions}buildDependencies(){this.recurringDepositAccountSettingsForm.get("isCalendarInherited").valueChanges.subscribe(n=>{n?(this.recurringDepositAccountSettingsForm.removeControl("expectedFirstDepositOnDate"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequency"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequencyType")):(this.recurringDepositAccountSettingsForm.addControl("expectedFirstDepositOnDate",new r.p4),this.recurringDepositAccountSettingsForm.addControl("recurringFrequency",new r.p4("")),this.recurringDepositAccountSettingsForm.addControl("recurringFrequencyType",new r.p4("")))})}get recurringDepositAccountSettings(){return this.recurringDepositAccountSettingsForm.value}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-settings-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[t.TTD],decls:249,vars:120,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%","labelPosition","before","formControlName","isMandatoryDeposit",1,"margin-v"],["fxFlex","48%","labelPosition","before","formControlName","adjustAdvanceTowardsFuturePayments",1,"margin-v"],["fxFlex","48%","labelPosition","before","formControlName","allowWithdrawal",1,"margin-v"],["fxFlex","98%",1,"mat-h4"],["fxFlex","48%"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value",4,"ngFor","ngForOf"],["type","number","matInput","","formControlName","mandatoryRecommendedDepositAmount","required",""],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],["fxFlex","48%","labelPosition","before","formControlName","isCalendarInherited",1,"margin-v"],[4,"ngIf"],["fxFlex","98%"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],["fxFlex","73%","labelPosition","before","formControlName","preClosurePenalApplicable",1,"margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","expectedFirstDepositOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["expectedFirstDepositOnDatePicker",""],["type","number","matInput","","formControlName","recurringFrequency","required",""],["formControlName","recurringFrequencyType","required",""],["fxFlex","48%","labelPosition","before","formControlName","withHoldTax",1,"margin-v"],["fxFlex","48%",4,"ngIf"],["type","text","matInput","","formControlName","taxGroupId"]],template:function(n,o){1&n&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-checkbox",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"mat-checkbox",3),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n\n "),t.TgZ(12,"mat-checkbox",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"h4",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",6),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",7),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field",6),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"mat-select",8),t._uU(36,"\n "),t.YNc(37,Hn,2,2,"mat-option",9),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.TgZ(41,"h4",5),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n\n "),t.TgZ(45,"mat-form-field",6),t._uU(46,"\n "),t.TgZ(47,"mat-label"),t._uU(48),t.ALo(49,"translate"),t.qZA(),t._uU(50,"\n "),t._UZ(51,"input",10),t._uU(52,"\n "),t.TgZ(53,"mat-error"),t._uU(54),t.ALo(55,"translate"),t.ALo(56,"translate"),t.TgZ(57,"strong"),t._uU(58),t.ALo(59,"translate"),t.qZA(),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n\n "),t.TgZ(63,"h4",5),t._uU(64),t.ALo(65,"translate"),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"mat-form-field",6),t._uU(68,"\n "),t.TgZ(69,"mat-label"),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t._UZ(73,"input",11),t._uU(74,"\n "),t.qZA(),t._uU(75,"\n\n "),t.TgZ(76,"mat-form-field",6),t._uU(77,"\n "),t.TgZ(78,"mat-label"),t._uU(79),t.ALo(80,"translate"),t.qZA(),t._uU(81,"\n "),t.TgZ(82,"mat-select",12),t._uU(83,"\n "),t.YNc(84,Wn,2,2,"mat-option",9),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n "),t.qZA(),t._uU(87,"\n\n "),t.TgZ(88,"mat-checkbox",13),t._uU(89),t.ALo(90,"translate"),t.qZA(),t._uU(91,"\n\n "),t.YNc(92,zn,59,35,"ng-container",14),t._uU(93,"\n\n\n "),t._UZ(94,"mat-divider",15),t._uU(95,"\n\n "),t.TgZ(96,"h4",5),t._uU(97),t.ALo(98,"translate"),t.qZA(),t._uU(99,"\n\n "),t.TgZ(100,"mat-form-field",6),t._uU(101,"\n "),t.TgZ(102,"mat-label"),t._uU(103),t.ALo(104,"translate"),t.qZA(),t._uU(105,"\n "),t._UZ(106,"input",16),t._uU(107,"\n "),t.TgZ(108,"mat-error"),t._uU(109),t.ALo(110,"translate"),t.ALo(111,"translate"),t.TgZ(112,"strong"),t._uU(113),t.ALo(114,"translate"),t.qZA(),t._uU(115,"\n "),t.qZA(),t._uU(116,"\n "),t.qZA(),t._uU(117,"\n\n "),t.TgZ(118,"mat-form-field",6),t._uU(119,"\n "),t.TgZ(120,"mat-label"),t._uU(121),t.ALo(122,"translate"),t.qZA(),t._uU(123,"\n "),t.TgZ(124,"mat-select",17),t._uU(125,"\n "),t.YNc(126,Xn,2,2,"mat-option",9),t._uU(127,"\n "),t.qZA(),t._uU(128,"\n "),t.TgZ(129,"mat-error"),t._uU(130),t.ALo(131,"translate"),t.ALo(132,"translate"),t.TgZ(133,"strong"),t._uU(134),t.ALo(135,"translate"),t.qZA(),t._uU(136,"\n "),t.qZA(),t._uU(137,"\n "),t.qZA(),t._uU(138,"\n\n "),t.TgZ(139,"h4",5),t._uU(140),t.ALo(141,"translate"),t.qZA(),t._uU(142,"\n\n "),t.TgZ(143,"mat-form-field",6),t._uU(144,"\n "),t.TgZ(145,"mat-label"),t._uU(146),t.ALo(147,"translate"),t.qZA(),t._uU(148,"\n "),t._UZ(149,"input",18),t._uU(150,"\n "),t.qZA(),t._uU(151,"\n\n "),t.TgZ(152,"mat-form-field",6),t._uU(153,"\n "),t.TgZ(154,"mat-label"),t._uU(155),t.ALo(156,"translate"),t.qZA(),t._uU(157,"\n "),t.TgZ(158,"mat-select",19),t._uU(159,"\n "),t.YNc(160,Kn,2,2,"mat-option",9),t._uU(161,"\n "),t.qZA(),t._uU(162,"\n "),t.qZA(),t._uU(163,"\n\n "),t.TgZ(164,"h4",5),t._uU(165),t.ALo(166,"translate"),t.qZA(),t._uU(167,"\n\n "),t.TgZ(168,"mat-form-field",6),t._uU(169,"\n "),t.TgZ(170,"mat-label"),t._uU(171),t.ALo(172,"translate"),t.qZA(),t._uU(173,"\n "),t._UZ(174,"input",20),t._uU(175,"\n "),t.qZA(),t._uU(176,"\n\n "),t.TgZ(177,"mat-form-field",6),t._uU(178,"\n "),t.TgZ(179,"mat-label"),t._uU(180),t.ALo(181,"translate"),t.qZA(),t._uU(182,"\n "),t.TgZ(183,"mat-select",21),t._uU(184,"\n "),t.YNc(185,ti,2,2,"mat-option",9),t._uU(186,"\n "),t.qZA(),t._uU(187,"\n "),t.qZA(),t._uU(188,"\n\n "),t._UZ(189,"mat-divider",15),t._uU(190,"\n\n "),t.TgZ(191,"h4",5),t._uU(192),t.ALo(193,"translate"),t.qZA(),t._uU(194,"\n\n "),t.TgZ(195,"mat-checkbox",22),t._uU(196),t.ALo(197,"translate"),t.qZA(),t._uU(198,"\n\n "),t.TgZ(199,"mat-form-field",6),t._uU(200,"\n "),t.TgZ(201,"mat-label"),t._uU(202),t.ALo(203,"translate"),t.qZA(),t._uU(204,"\n "),t._UZ(205,"input",23),t._uU(206,"\n "),t.qZA(),t._uU(207,"\n\n "),t.TgZ(208,"mat-form-field",6),t._uU(209,"\n "),t.TgZ(210,"mat-label"),t._uU(211),t.ALo(212,"translate"),t.qZA(),t._uU(213,"\n "),t.TgZ(214,"mat-select",24),t._uU(215,"\n "),t.YNc(216,ei,2,2,"mat-option",9),t._uU(217,"\n "),t.qZA(),t._uU(218,"\n "),t.qZA(),t._uU(219,"\n\n "),t._uU(220,"\n\n "),t.TgZ(221,"mat-form-field",6),t._uU(222,"\n "),t.TgZ(223,"mat-label"),t._uU(224),t.ALo(225,"translate"),t.qZA(),t._uU(226,"\n "),t._UZ(227,"input",25),t._uU(228,"\n "),t.qZA(),t._uU(229,"\n\n "),t.YNc(230,ii,12,7,"ng-container",14),t._uU(231,"\n\n "),t.qZA(),t._uU(232,"\n\n "),t.TgZ(233,"div",26),t._uU(234,"\n "),t.TgZ(235,"button",27),t._uU(236,"\n "),t._UZ(237,"fa-icon",28),t._uU(238),t.ALo(239,"translate"),t.qZA(),t._uU(240,"\n "),t.TgZ(241,"button",29),t._uU(242),t.ALo(243,"translate"),t._UZ(244,"fa-icon",30),t._uU(245,"\n "),t.qZA(),t._uU(246,"\n "),t.qZA(),t._uU(247,"\n\n"),t.qZA(),t._uU(248,"\n")),2&n&&(t.Q6J("formGroup",o.recurringDepositAccountSettingsForm),t.xp6(5),t.hij("\n ",t.lcZ(6,46,"labels.inputs.Is Mandatory Deposit"),"?\n "),t.xp6(4),t.hij("\n ",t.lcZ(10,48,"labels.inputs.Adjust advance payments toward future installments"),"?\n "),t.xp6(4),t.hij("\n ",t.lcZ(14,50,"labels.inputs.Allow Withdrawals"),"?\n "),t.xp6(4),t.Oqu(t.lcZ(18,52,"labels.heading.Lock-in Period")),t.xp6(6),t.Oqu(t.lcZ(24,54,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(33,56,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.lockinPeriodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(43,58,"labels.heading.Recurring Deposit Details")),t.xp6(6),t.Oqu(t.lcZ(49,60,"labels.inputs.Recurring Deposit Amount")),t.xp6(6),t.AsE("\n ",t.lcZ(55,62,"labels.inputs.Recurring Deposit Amount")," ",t.lcZ(56,64,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(59,66,"labels.commons.required")),t.xp6(6),t.Oqu(t.lcZ(65,68,"labels.heading.Deposit Period")),t.xp6(6),t.Oqu(t.lcZ(71,70,"labels.inputs.Deposit Period")),t.xp6(9),t.Oqu(t.lcZ(80,72,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(5),t.hij("\n ",t.lcZ(90,74,"labels.inputs.Deposit Frequency Same as Group/Center meeting"),"\n "),t.xp6(3),t.Q6J("ngIf",!o.recurringDepositAccountSettingsForm.value.isCalendarInherited),t.xp6(5),t.Oqu(t.lcZ(98,76,"labels.heading.Minimum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(104,78,"labels.inputs.Frequency")),t.xp6(6),t.AsE("\n ",t.lcZ(110,80,"labels.inputs.Minimum Deposit Term Frequency")," ",t.lcZ(111,82,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(114,84,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(122,86,"labels.inputs.Frequency Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(131,88,"labels.inputs.Minimum Deposit Term Frequency Type")," ",t.lcZ(132,90,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(135,92,"labels.commons.required")),t.xp6(6),t.Oqu(t.lcZ(141,94,"labels.heading.And thereafter, in Multiples of")),t.xp6(6),t.Oqu(t.lcZ(147,96,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(156,98,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(5),t.Oqu(t.lcZ(166,100,"labels.heading.Maximum Deposit Term")),t.xp6(6),t.Oqu(t.lcZ(172,102,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(181,104,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",o.periodFrequencyTypeData),t.xp6(7),t.Oqu(t.lcZ(193,106,"labels.heading.For Pre-mature closure")),t.xp6(4),t.hij("\n ",t.lcZ(197,108,"labels.inputs.Apply Penal Interest (less)"),"\n "),t.xp6(6),t.hij("",t.lcZ(203,110,"labels.inputs.Penal Interest")," (%)"),t.xp6(9),t.Oqu(t.lcZ(212,112,"labels.inputs.Period")),t.xp6(5),t.Q6J("ngForOf",o.preClosurePenalInterestOnTypeData),t.xp6(8),t.Oqu(t.lcZ(225,114,"labels.inputs.Minimum Balance For Interest Calculation")),t.xp6(6),t.Q6J("ngIf",o.taxGroup),t.xp6(8),t.hij("\n ",t.lcZ(239,116,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(243,118,"labels.buttons.Next"),"\n "))},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.yH,L.ey,m.lW,K.oG,U.Mq,U.hl,U.nW,et.d,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,b.Ic,b.fd,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,T.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),e})();function oi(e,i){if(1&e&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function ai(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function ri(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.name+", "+n.currency.displaySymbol,"\n ")}}function ci(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function si(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeCalculationType.value,"\n ")}}function ui(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function pi(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",26),t._uU(1),t.TgZ(2,"button",27),t.NdJ("click",function(){const s=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.editChargeAmount(s))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",28),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}if(2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function li(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function _i(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeTimeType.value,"\n ")}}function mi(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function gi(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.dueDate)||"Unassigned","\n ")}}function di(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.feeOnMonthDay)||"Unassigned","\n ")}}function Ai(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function Ti(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.editChargeDate(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function fi(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1,"\n "),t.YNc(2,gi,3,3,"span",29),t._uU(3,"\n "),t.YNc(4,di,3,3,"span",29),t._uU(5,"\n "),t.YNc(6,Ai,3,3,"span",29),t._uU(7,"\n "),t.YNc(8,Ti,4,0,"button",30),t._uU(9,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value||"Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value||"Specified due date"===n.chargeTimeType.value)}}function Ui(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function Zi(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.editChargeFeeInterval(a))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3,"\n "),t.qZA()}}function hi(e,i){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,Zi,4,0,"button",30),t._uU(3,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.feeInterval||"Not Provided","\n "),t.xp6(1),t.Q6J("ngIf","Weekly Fee"===n.chargeTimeType.value||"Monthly Fee"===n.chargeTimeType.value)}}function Di(e,i){1&e&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function xi(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",26),t._uU(1,"\n "),t.TgZ(2,"button",31),t.NdJ("click",function(){const s=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.deleteCharge(s))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",32),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function Ci(e,i){1&e&&t._UZ(0,"tr",33)}function bi(e,i){1&e&&t._UZ(0,"tr",34)}let W=(()=>{class e{constructor(n,o,a){this.dialog=n,this.dateUtils=o,this.settingsService=a,this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.pristine=!0,this.isChargesPatched=!1,this.currency=null}ngOnInit(){this.chargesDataSource=[],this.recurringDepositsAccountTemplate.id&&this.recurringDepositsAccountTemplate.charges&&(this.chargesDataSource=this.recurringDepositsAccountTemplate.charges.map(n=>({...n,id:n.chargeId}))||[])}ngOnChanges(){null==this.currency&&(this.recurringDepositsAccountTemplate.currency?this.currency=this.recurringDepositsAccountTemplate.currency:this.recurringDepositsAccountProductTemplate&&this.recurringDepositsAccountProductTemplate.currency&&(this.currency=this.recurringDepositsAccountProductTemplate.currency)),this.recurringDepositsAccountProductTemplate&&(this.chargeData=this.recurringDepositsAccountProductTemplate.chargeOptions.filter(n=>n.currency.code===this.currency.code))}addCharge(n){this.chargesDataSource=this.chargesDataSource.concat([n.value]),n.value="",this.pristine=!1}editChargeAmount(n){const o=[new G.M({controlName:"amount",label:"Amount",value:n.amount,type:"number",required:!1})];this.dialog.open(J.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const d={...n,amount:c.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(n){const o=[new tt.d({controlName:"date",label:"Date",value:n.dueDate||n.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(J.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){let d;const y=this.dateUtils.formatDate(c.data.value.date,this.settingsService.dateFormat);switch(n.chargeTimeType.value){case"Specified due date":case"Weekly Fee":d={...n,dueDate:y};break;case"Annual Fee":d={...n,feeOnMonthDay:y}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(n){const o=[new G.M({controlName:"feeInterval",label:"Fee Interval",value:n.feeInterval,type:"text",required:!1})];this.dialog.open(J.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:o}}).afterClosed().subscribe(c=>{if(c.data){const d={...n,feeInterval:c.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(n){this.dialog.open(F.F,{data:{deleteContext:`charge ${n.name}`}}).afterClosed().subscribe(a=>{a.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(n),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get recurringDepositAccountCharges(){return{charges:this.chargesDataSource}}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(q.uw),t.Y36(I.L),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-charges-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",currencyCode:"currencyCode",recurringDepositAccountFormValid:"recurringDepositAccountFormValid"},features:[t.TTD],decls:96,vars:19,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-select",null,2),t._uU(10,"\n "),t.YNc(11,oi,2,2,"mat-option",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",4),t._uU(16,"\n "),t.TgZ(17,"button",5),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(9);return t.KtG(o.addCharge(c))}),t._uU(18,"\n "),t._UZ(19,"fa-icon",6),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"table",7),t._uU(25,"\n\n "),t.ynx(26,8),t._uU(27,"\n "),t.YNc(28,ai,3,3,"th",9),t._uU(29,"\n "),t.YNc(30,ri,2,1,"td",10),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,ci,3,3,"th",9),t._uU(36,"\n "),t.YNc(37,si,2,1,"td",10),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,ui,3,3,"th",9),t._uU(43,"\n "),t.YNc(44,pi,7,1,"td",10),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,li,3,3,"th",9),t._uU(50,"\n "),t.YNc(51,_i,2,1,"td",10),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,mi,3,3,"th",9),t._uU(57,"\n "),t.YNc(58,fi,10,4,"td",10),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,Ui,3,3,"th",9),t._uU(64,"\n "),t.YNc(65,hi,4,2,"td",10),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,Di,3,3,"th",9),t._uU(71,"\n "),t.YNc(72,xi,7,0,"td",10),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.YNc(75,Ci,1,0,"tr",17),t._uU(76,"\n "),t.YNc(77,bi,1,0,"tr",18),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n"),t.qZA(),t._uU(80,"\n\n"),t.TgZ(81,"div",19),t._uU(82,"\n "),t.TgZ(83,"button",20),t._uU(84,"\n "),t._UZ(85,"fa-icon",21),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"button",22),t._uU(90),t.ALo(91,"translate"),t._UZ(92,"fa-icon",23),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n"),t.qZA(),t._uU(95,"\n")}if(2&n){const a=t.MAs(9);t.xp6(5),t.Oqu(t.lcZ(6,11,"labels.inputs.Charge")),t.xp6(6),t.Q6J("ngForOf",o.chargeData),t.xp6(6),t.Q6J("disabled",!a.value),t.xp6(3),t.hij("\n ",t.lcZ(21,13,"labels.buttons.Add"),"\n "),t.xp6(4),t.Q6J("dataSource",o.chargesDataSource)("hidden",0===o.chargesDataSource.length),t.xp6(51),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(87,15,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("disabled",!o.recurringDepositAccountFormValid),t.xp6(1),t.hij("\n ",t.lcZ(91,17,"labels.buttons.Next"),"\n ")}},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.XD,u.yH,L.ey,m.lW,g.KE,g.hX,P.gD,b.Ic,b.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,T.X$,w.E],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),e})();var nt=_(30637);const qi=["chartsTable"];function vi(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(n.recurringDepositsAccountProductTemplate.accountChart.name)}}function yi(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function Ri(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.description)}}function Ii(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function Si(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.lnq("\n ",n.fromPeriod,"-",n.toPeriod,"\xa0",n.periodType.value,"")}}function Ni(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Oi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.amountRangeFrom,"-",n.amountRangeTo,"")}}function wi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Li(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.annualInterestRate," ")}}function Pi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Fi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.description," ")}}function Yi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Qi(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",27),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function Ji(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",28),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function ki(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",24),t._uU(1,"\n "),t.TgZ(2,"button",25),t.NdJ("click",function(){const s=t.CHM(n).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===s?null:s)}),t._uU(3,"\n "),t.YNc(4,Qi,5,3,"span",26),t._uU(5,"\n "),t.YNc(6,Ji,5,3,"span",26),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&e){const n=i.dataIndex,o=t.oxw();t.xp6(4),t.Q6J("ngIf",o.expandChartSlabIndex!==n),t.xp6(2),t.Q6J("ngIf",o.expandChartSlabIndex===n)}}function Mi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function ji(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.entityType.value,"\n ")}}function Ei(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function Gi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.attributeName.value,"\n ")}}function Bi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function $i(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.conditionType.value),"\n ")}}function Hi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Wi(e,i){if(1&e&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngSwitch",n.attributeName),t.xp6(1),t.hij("\n ",n.attributeValueDesc,"\n ")}}function Vi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function zi(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.incentiveType.value,"\n ")}}function Xi(e,i){1&e&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Ki(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function to(e,i){1&e&&t._UZ(0,"tr",42)}function eo(e,i){1&e&&t._UZ(0,"tr",43)}function no(e,i){if(1&e&&(t.TgZ(0,"table",33),t._uU(1,"\n\n "),t.ynx(2,34),t._uU(3,"\n "),t.YNc(4,Mi,3,3,"th",8),t._uU(5,"\n "),t.YNc(6,ji,2,1,"td",9),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,35),t._uU(10,"\n "),t.YNc(11,Ei,3,3,"th",8),t._uU(12,"\n "),t.YNc(13,Gi,2,1,"td",9),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,36),t._uU(17,"\n "),t.YNc(18,Bi,3,3,"th",8),t._uU(19,"\n "),t.YNc(20,$i,3,3,"td",9),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,37),t._uU(24,"\n "),t.YNc(25,Hi,3,3,"th",8),t._uU(26,"\n "),t.YNc(27,Wi,2,2,"td",38),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,39),t._uU(31,"\n "),t.YNc(32,Vi,3,3,"th",8),t._uU(33,"\n "),t.YNc(34,zi,2,1,"td",9),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,40),t._uU(38,"\n "),t.YNc(39,Xi,3,3,"th",8),t._uU(40,"\n "),t.YNc(41,Ki,2,1,"td",9),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,to,1,0,"tr",15),t._uU(45,"\n "),t.YNc(46,eo,1,0,"tr",16),t._uU(47,"\n\n "),t.qZA()),2&e){const n=t.oxw().$implicit,o=t.oxw();t.Q6J("dataSource",n.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",o.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.incentivesDisplayedColumns)}}function io(e,i){if(1&e&&(t.TgZ(0,"td",24),t._uU(1,"\n\n "),t.TgZ(2,"div",29),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",30),t._uU(5,"\n\n "),t.TgZ(6,"h4",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,no,48,3,"table",32),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&e){const n=i.$implicit,o=i.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",o===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",n.incentives.length)}}function oo(e,i){1&e&&t._UZ(0,"tr",42)}function ao(e,i){1&e&&t._UZ(0,"tr",43)}function ro(e,i){1&e&&t._UZ(0,"tr",44)}let it=(()=>{class e{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}ngOnInit(){this.interestRateChartData=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-interest-rate-chart-step"]],viewQuery:function(n,o){if(1&n&&t.Gf(qi,7),2&n){let a;t.iGM(a=t.CRH())&&(o.chartsTableRef=a.first)}},inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[t.TTD],decls:96,vars:25,consts:[["fxLayout","column","fxLayoutGap","2%"],["fxFlexFill","",4,"ngIf"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["chartsTable",""],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.YNc(2,vi,9,4,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"span",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"span",4),t._uU(11),t.ALo(12,"dateFormat"),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.YNc(15,yi,10,6,"div",1),t._uU(16,"\n\n "),t.YNc(17,Ri,9,4,"div",1),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"yesNo"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"table",5,6),t._uU(32,"\n\n "),t.ynx(33,7),t._uU(34,"\n "),t.YNc(35,Ii,3,3,"th",8),t._uU(36,"\n "),t.YNc(37,Si,2,3,"td",9),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,10),t._uU(41,"\n "),t.YNc(42,Ni,3,3,"th",8),t._uU(43,"\n "),t.YNc(44,Oi,2,2,"td",9),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,11),t._uU(48,"\n "),t.YNc(49,wi,3,3,"th",8),t._uU(50,"\n "),t.YNc(51,Li,2,1,"td",9),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,12),t._uU(55,"\n "),t.YNc(56,Pi,3,3,"th",8),t._uU(57,"\n "),t.YNc(58,Fi,2,1,"td",9),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,13),t._uU(62,"\n "),t.YNc(63,Yi,3,3,"th",8),t._uU(64,"\n "),t.YNc(65,ki,9,2,"td",9),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,14),t._uU(69,"\n "),t.YNc(70,io,14,6,"td",9),t._uU(71,"\n "),t.BQk(),t._uU(72,"\n\n "),t.YNc(73,oo,1,0,"tr",15),t._uU(74,"\n "),t.YNc(75,ao,1,0,"tr",16),t._uU(76,"\n "),t.YNc(77,ro,1,0,"tr",17),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n"),t.qZA(),t._uU(80,"\n\n"),t.TgZ(81,"div",18),t._uU(82,"\n "),t.TgZ(83,"button",19),t._uU(84,"\n "),t._UZ(85,"fa-icon",20),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"button",21),t._uU(90),t.ALo(91,"translate"),t._UZ(92,"fa-icon",22),t._uU(93,"\n "),t.qZA(),t._uU(94,"\n"),t.qZA(),t._uU(95,"\n")),2&n&&(t.xp6(2),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(8,13,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(12,15,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(23,17,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(t.lcZ(27,19,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),t.xp6(4),t.Q6J("dataSource",o.interestRateChartData),t.xp6(43),t.Q6J("matHeaderRowDef",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsIncentivesDisplayedColumns),t.xp6(9),t.hij("\n ",t.lcZ(87,21,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(91,23,"labels.buttons.Next"),"\n "))},dependencies:[A.O5,A.RF,S.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,m.lW,f.a8,b.Ic,b.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,A.rS,T.X$,w.E,nt.D],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,x.X$)("expandChartSlab",[(0,x.SB)("collapsed",(0,x.oB)({height:"0px",minHeight:"0"})),(0,x.SB)("expanded",(0,x.oB)({height:"*"})),(0,x.eR)("expanded <=> collapsed",(0,x.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e})();var co=_(27676),so=_(39122);function uo(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Lock-in Period"),":"),t.xp6(4),t.Oqu(n.recurringDepositAccountData.lockinPeriodFrequency+" "+t.gM2(8,4,n.recurringDepositAccountData.lockinPeriodFrequencyType,n.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function po(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Recurring Deposit Amount"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,n.recurringDepositAccountData.mandatoryRecommendedDepositAmount))}}function lo(e,i){if(1&e&&(t.TgZ(0,"span",4),t._uU(1),t.ALo(2,"find"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.recurringDepositAccountData.recurringFrequency+" "+t.gM2(2,1,n.recurringDepositAccountData.recurringFrequencyType,n.recurringDepositsAccountProductTemplate.periodFrequencyTypeData,"id","value"))}}function _o(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"div",2),t._uU(3,"\n "),t.TgZ(4,"span",3),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"span",4),t._uU(9),t.ALo(10,"dateFormat"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"div",2),t._uU(14,"\n "),t.TgZ(15,"span",3),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.YNc(19,lo,3,6,"span",26),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.BQk()),2&e){const n=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,4,"labels.inputs.Deposit Start Date"),":"),t.xp6(4),t.Oqu(t.lcZ(10,6,n.recurringDepositAccountData.expectedFirstDepositOnDate)),t.xp6(7),t.hij("",t.lcZ(17,8,"labels.inputs.Deposit Frequency"),":"),t.xp6(3),t.Q6J("ngIf",n.recurringDepositAccountData.recurringFrequency)}}function mo(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.name"),":"),t.xp6(4),t.Oqu(null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.name)}}function go(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.End Date"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function Ao(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Description"),":"),t.xp6(4),t.Oqu(null==n.recurringDepositsAccountProductTemplate?null:n.recurringDepositsAccountProductTemplate.accountChart.description)}}function To(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Period")," "))}function fo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.lnq("\n ",n.fromPeriod,"-",n.toPeriod,"\xa0",n.periodType.value,"")}}function Uo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount Range")," "))}function Zo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.AsE("",n.amountRangeFrom,"-",n.amountRangeTo,"")}}function ho(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Do(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.annualInterestRate," ")}}function xo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Description")," "))}function Co(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",n.description," ")}}function bo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function qo(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.View Incentives"),"\n "))}function vo(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"fa-icon",31),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.xp6(3),t.hij("\n ",t.lcZ(4,1,"labels.buttons.Hide Incentives"),"\n "))}function yo(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"button",29),t.NdJ("click",function(){const s=t.CHM(n).dataIndex,c=t.oxw();return t.KtG(c.expandChartSlabIndex=c.expandChartSlabIndex===s?null:s)}),t._uU(3,"\n "),t.YNc(4,qo,5,3,"span",6),t._uU(5,"\n "),t.YNc(6,vo,5,3,"span",6),t._uU(7,"\n "),t.qZA(),t._uU(8,"\n "),t.qZA()}if(2&e){const n=i.dataIndex,o=t.oxw();t.xp6(4),t.Q6J("ngIf",o.expandChartSlabIndex!==n),t.xp6(2),t.Q6J("ngIf",o.expandChartSlabIndex===n)}}function Ro(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Entity Type")," "))}function Io(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.entityType.value,"\n ")}}function So(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Name")," "))}function No(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.attributeName.value,"\n ")}}function Oo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Condition Type")," "))}function wo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.conditionType.value),"\n ")}}function Lo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Attribute Value")," "))}function Po(e,i){if(1&e&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("ngSwitch",n.attributeName),t.xp6(1),t.hij("\n ",n.attributeValueDesc,"\n ")}}function Fo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Incentive Type")," "))}function Yo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.incentiveType.value,"\n ")}}function Qo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Interest")," "))}function Jo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function ko(e,i){1&e&&t._UZ(0,"tr",45)}function Mo(e,i){1&e&&t._UZ(0,"tr",46)}function jo(e,i){if(1&e&&(t.TgZ(0,"table",36),t._uU(1,"\n\n "),t.ynx(2,37),t._uU(3,"\n "),t.YNc(4,Ro,3,3,"th",10),t._uU(5,"\n "),t.YNc(6,Io,2,1,"td",11),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,38),t._uU(10,"\n "),t.YNc(11,So,3,3,"th",10),t._uU(12,"\n "),t.YNc(13,No,2,1,"td",11),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,39),t._uU(17,"\n "),t.YNc(18,Oo,3,3,"th",10),t._uU(19,"\n "),t.YNc(20,wo,3,3,"td",11),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,40),t._uU(24,"\n "),t.YNc(25,Lo,3,3,"th",10),t._uU(26,"\n "),t.YNc(27,Po,2,2,"td",41),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,42),t._uU(31,"\n "),t.YNc(32,Fo,3,3,"th",10),t._uU(33,"\n "),t.YNc(34,Yo,2,1,"td",11),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,43),t._uU(38,"\n "),t.YNc(39,Qo,3,3,"th",10),t._uU(40,"\n "),t.YNc(41,Jo,2,1,"td",11),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.YNc(44,ko,1,0,"tr",17),t._uU(45,"\n "),t.YNc(46,Mo,1,0,"tr",18),t._uU(47,"\n\n "),t.qZA()),2&e){const n=t.oxw().$implicit,o=t.oxw();t.Q6J("dataSource",n.incentives),t.xp6(44),t.Q6J("matHeaderRowDef",o.incentivesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.incentivesDisplayedColumns)}}function Eo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1,"\n\n "),t.TgZ(2,"div",32),t._uU(3,"\n\n "),t.TgZ(4,"mat-card",33),t._uU(5,"\n\n "),t.TgZ(6,"h4",34),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n\n "),t.YNc(10,jo,48,3,"table",35),t._uU(11,"\n\n "),t.qZA(),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA()),2&e){const n=i.$implicit,o=i.dataIndex,a=t.oxw();t.uIk("colspan",a.chartSlabsDisplayedColumns.length),t.xp6(2),t.Q6J("@expandChartSlab",o===a.expandChartSlabIndex?"expanded":"collapsed"),t.xp6(5),t.hij("\n ",t.lcZ(8,4,"labels.heading.Incentives"),"\n "),t.xp6(3),t.Q6J("ngIf",n.incentives.length)}}function Go(e,i){1&e&&t._UZ(0,"tr",45)}function Bo(e,i){1&e&&t._UZ(0,"tr",46)}function $o(e,i){1&e&&t._UZ(0,"tr",47)}function Ho(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.name")," "))}function Wo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.name+", "+n.currency.displaySymbol,"\n ")}}function Vo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function zo(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeCalculationType.value,"\n ")}}function Xo(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Ko(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.amount,"\n ")}}function ta(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function ea(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.dueDate)||"Unassigned","\n ")}}function na(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,n.feeOnMonthDay)||"Unassigned","\n ")}}function ia(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.N/A"),"\n "))}function oa(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,ea,3,3,"span",6),t._uU(3,"\n "),t.YNc(4,na,3,3,"span",6),t._uU(5,"\n "),t.YNc(6,ia,3,3,"span",6),t._uU(7,"\n "),t.qZA()),2&e){const n=i.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===n.chargeTimeType.value||"Annual Fee"===n.chargeTimeType.value||"Specified due date"===n.chargeTimeType.value||"Weekly Fee"===n.chargeTimeType.value))}}function aa(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function ra(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.feeInterval||"Not Provided","\n ")}}function ca(e,i){1&e&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function sa(e,i){if(1&e&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij("\n ",n.chargeTimeType.value,"\n ")}}function ua(e,i){1&e&&t._UZ(0,"tr",45)}function pa(e,i){1&e&&t._UZ(0,"tr",46)}function la(e,i){if(1&e&&(t.TgZ(0,"div",48),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"table",36),t._uU(9,"\n\n "),t.ynx(10,49),t._uU(11,"\n "),t.YNc(12,Ho,3,3,"th",10),t._uU(13,"\n "),t.YNc(14,Wo,2,1,"td",11),t._uU(15,"\n "),t.BQk(),t._uU(16,"\n\n "),t.ynx(17,50),t._uU(18,"\n "),t.YNc(19,Vo,3,3,"th",10),t._uU(20,"\n "),t.YNc(21,zo,2,1,"td",11),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,43),t._uU(25,"\n "),t.YNc(26,Xo,3,3,"th",10),t._uU(27,"\n "),t.YNc(28,Ko,2,1,"td",11),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,51),t._uU(32,"\n "),t.YNc(33,ta,3,3,"th",10),t._uU(34,"\n "),t.YNc(35,oa,8,3,"td",11),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,52),t._uU(39,"\n "),t.YNc(40,aa,3,3,"th",10),t._uU(41,"\n "),t.YNc(42,ra,2,1,"td",11),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,53),t._uU(46,"\n "),t.YNc(47,ca,3,3,"th",10),t._uU(48,"\n "),t.YNc(49,sa,2,1,"td",11),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.YNc(52,ua,1,0,"tr",17),t._uU(53,"\n "),t.YNc(54,pa,1,0,"tr",18),t._uU(55,"\n\n "),t.qZA(),t._uU(56,"\n\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,4,"labels.heading.Charges")),t.xp6(5),t.Q6J("dataSource",n.recurringDepositAccountData.charges),t.xp6(44),t.Q6J("matHeaderRowDef",n.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",n.chargesDisplayedColumns)}}const _a=function(){return["../"]};let ot=(()=>{class e{constructor(){this.submit=new t.vpe,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-preview-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",recurringDepositAccountData:"recurringDepositAccountData"},outputs:{submit:"submit"},features:[t.TTD],decls:296,vars:146,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlexFill","",4,"ngIf"],[4,"ngIf"],["fxFlexFill","","fxLayout","column",1,"margin-b"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["fxFlex","60%",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],["fxLayout","row wrap","fxFlexFill","",1,"incentives"],["fxLayout","row wrap","fxFlexFill",""],["fxFlex","13%",1,"m-b-10"],["fxFlexFill","","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"span",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"span",4),t._uU(15),t.ALo(16,"find"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"dateFormat"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"div",2),t._uU(31,"\n "),t.TgZ(32,"span",3),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n "),t.TgZ(36,"span",4),t._uU(37),t.ALo(38,"find"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.TgZ(41,"h3",1),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n\n "),t._UZ(45,"mat-divider",2),t._uU(46,"\n\n "),t.TgZ(47,"div",2),t._uU(48,"\n "),t.TgZ(49,"span",3),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"span",4),t._uU(54),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n\n "),t.TgZ(57,"div",2),t._uU(58,"\n "),t.TgZ(59,"span",3),t._uU(60),t.ALo(61,"translate"),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"span",4),t._uU(64),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"div",2),t._uU(68,"\n "),t.TgZ(69,"span",3),t._uU(70),t.ALo(71,"translate"),t.qZA(),t._uU(72,"\n "),t.TgZ(73,"span",4),t._uU(74),t.qZA(),t._uU(75,"\n "),t.qZA(),t._uU(76,"\n\n "),t.TgZ(77,"h3",1),t._uU(78),t.ALo(79,"translate"),t.qZA(),t._uU(80,"\n "),t._UZ(81,"mat-divider",2),t._uU(82,"\n\n "),t.TgZ(83,"div",2),t._uU(84,"\n "),t.TgZ(85,"span",3),t._uU(86),t.ALo(87,"translate"),t.qZA(),t._uU(88,"\n "),t.TgZ(89,"span",4),t._uU(90),t.ALo(91,"find"),t.qZA(),t._uU(92,"\n "),t.qZA(),t._uU(93,"\n\n "),t.TgZ(94,"div",2),t._uU(95,"\n "),t.TgZ(96,"span",3),t._uU(97),t.ALo(98,"translate"),t.qZA(),t._uU(99,"\n "),t.TgZ(100,"span",4),t._uU(101),t.ALo(102,"find"),t.qZA(),t._uU(103,"\n "),t.qZA(),t._uU(104,"\n\n "),t.TgZ(105,"div",2),t._uU(106,"\n "),t.TgZ(107,"span",3),t._uU(108),t.ALo(109,"translate"),t.qZA(),t._uU(110,"\n "),t.TgZ(111,"span",4),t._uU(112),t.ALo(113,"find"),t.qZA(),t._uU(114,"\n "),t.qZA(),t._uU(115,"\n\n "),t.TgZ(116,"div",2),t._uU(117,"\n "),t.TgZ(118,"span",3),t._uU(119),t.ALo(120,"translate"),t.qZA(),t._uU(121,"\n "),t.TgZ(122,"span",4),t._uU(123),t.ALo(124,"find"),t.qZA(),t._uU(125,"\n "),t.qZA(),t._uU(126,"\n\n "),t.TgZ(127,"h3",1),t._uU(128),t.ALo(129,"translate"),t.qZA(),t._uU(130,"\n\n "),t._UZ(131,"mat-divider",2),t._uU(132,"\n\n "),t.YNc(133,uo,10,9,"div",5),t._uU(134,"\n\n "),t.YNc(135,po,10,6,"div",5),t._uU(136,"\n\n "),t.TgZ(137,"div",2),t._uU(138,"\n "),t.TgZ(139,"span",3),t._uU(140),t.ALo(141,"translate"),t.qZA(),t._uU(142,"\n "),t.TgZ(143,"span",4),t._uU(144),t.ALo(145,"find"),t.qZA(),t._uU(146,"\n "),t.qZA(),t._uU(147,"\n\n "),t.TgZ(148,"div",2),t._uU(149,"\n "),t.TgZ(150,"span",3),t._uU(151),t.ALo(152,"translate"),t.qZA(),t._uU(153,"\n "),t.TgZ(154,"span",4),t._uU(155),t.qZA(),t._uU(156,"\n "),t.qZA(),t._uU(157,"\n\n "),t.YNc(158,_o,22,10,"ng-container",6),t._uU(159,"\n\n\n "),t.TgZ(160,"div",2),t._uU(161,"\n "),t.TgZ(162,"span",3),t._uU(163),t.ALo(164,"translate"),t.qZA(),t._uU(165,"\n "),t.TgZ(166,"span",4),t._uU(167),t.qZA(),t._uU(168,"\n "),t.qZA(),t._uU(169,"\n\n "),t.TgZ(170,"div",2),t._uU(171,"\n "),t.TgZ(172,"span",3),t._uU(173),t.ALo(174,"translate"),t.qZA(),t._uU(175,"\n "),t.TgZ(176,"span",4),t._uU(177),t.qZA(),t._uU(178,"\n "),t.qZA(),t._uU(179,"\n\n "),t.TgZ(180,"div",2),t._uU(181,"\n "),t.TgZ(182,"span",3),t._uU(183),t.ALo(184,"translate"),t.qZA(),t._uU(185,"\n "),t.TgZ(186,"span",4),t._uU(187),t.qZA(),t._uU(188,"\n "),t.qZA(),t._uU(189,"\n\n\n "),t.TgZ(190,"h3",1),t._uU(191),t.ALo(192,"translate"),t.qZA(),t._uU(193,"\n\n "),t._UZ(194,"mat-divider",2),t._uU(195,"\n\n "),t.TgZ(196,"div",7),t._uU(197,"\n\n "),t.YNc(198,mo,9,4,"div",5),t._uU(199,"\n\n "),t.TgZ(200,"div",2),t._uU(201,"\n "),t.TgZ(202,"span",3),t._uU(203),t.ALo(204,"translate"),t.qZA(),t._uU(205,"\n "),t.TgZ(206,"span",4),t._uU(207),t.ALo(208,"dateFormat"),t.qZA(),t._uU(209,"\n "),t.qZA(),t._uU(210,"\n\n "),t.YNc(211,go,10,6,"div",5),t._uU(212,"\n\n "),t.YNc(213,Ao,9,4,"div",5),t._uU(214,"\n\n "),t.TgZ(215,"div",2),t._uU(216,"\n "),t.TgZ(217,"span",3),t._uU(218),t.ALo(219,"translate"),t.qZA(),t._uU(220,"\n "),t.TgZ(221,"span",4),t._uU(222),t.ALo(223,"yesNo"),t.qZA(),t._uU(224,"\n "),t.qZA(),t._uU(225,"\n\n "),t.TgZ(226,"table",8),t._uU(227,"\n\n "),t.ynx(228,9),t._uU(229,"\n "),t.YNc(230,To,3,3,"th",10),t._uU(231,"\n "),t.YNc(232,fo,2,3,"td",11),t._uU(233,"\n "),t.BQk(),t._uU(234,"\n\n "),t.ynx(235,12),t._uU(236,"\n "),t.YNc(237,Uo,3,3,"th",10),t._uU(238,"\n "),t.YNc(239,Zo,2,2,"td",11),t._uU(240,"\n "),t.BQk(),t._uU(241,"\n\n "),t.ynx(242,13),t._uU(243,"\n "),t.YNc(244,ho,3,3,"th",10),t._uU(245,"\n "),t.YNc(246,Do,2,1,"td",11),t._uU(247,"\n "),t.BQk(),t._uU(248,"\n\n "),t.ynx(249,14),t._uU(250,"\n "),t.YNc(251,xo,3,3,"th",10),t._uU(252,"\n "),t.YNc(253,Co,2,1,"td",11),t._uU(254,"\n "),t.BQk(),t._uU(255,"\n\n "),t.ynx(256,15),t._uU(257,"\n "),t.YNc(258,bo,3,3,"th",10),t._uU(259,"\n "),t.YNc(260,yo,9,2,"td",11),t._uU(261,"\n "),t.BQk(),t._uU(262,"\n\n "),t.ynx(263,16),t._uU(264,"\n "),t.YNc(265,Eo,14,6,"td",11),t._uU(266,"\n "),t.BQk(),t._uU(267,"\n\n "),t.YNc(268,Go,1,0,"tr",17),t._uU(269,"\n "),t.YNc(270,Bo,1,0,"tr",18),t._uU(271,"\n "),t.YNc(272,$o,1,0,"tr",19),t._uU(273,"\n\n "),t.qZA(),t._uU(274,"\n\n "),t.qZA(),t._uU(275,"\n\n "),t.YNc(276,la,57,6,"div",20),t._uU(277,"\n\n"),t.qZA(),t._uU(278,"\n\n"),t.TgZ(279,"div",21),t._uU(280,"\n "),t.TgZ(281,"button",22),t._uU(282,"\n "),t._UZ(283,"fa-icon",23),t._uU(284),t.ALo(285,"translate"),t.qZA(),t._uU(286,"\n "),t.TgZ(287,"button",24),t._uU(288),t.ALo(289,"translate"),t.qZA(),t._uU(290,"\n "),t.TgZ(291,"button",25),t.NdJ("click",function(){return o.submit.emit()}),t._uU(292),t.ALo(293,"translate"),t.qZA(),t._uU(294,"\n"),t.qZA(),t._uU(295,"\n")),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,54,"labels.heading.Details")),t.xp6(8),t.Oqu(t.lcZ(12,56,"labels.inputs.Product")),t.xp6(4),t.Oqu(t.gM2(16,58,o.recurringDepositAccountData.productId,o.recurringDepositsAccountTemplate.productOptions,"id","name")),t.xp6(7),t.Oqu(t.lcZ(23,63,"labels.inputs.Submitted On")),t.xp6(4),t.Oqu(t.lcZ(27,65,o.recurringDepositAccountData.submittedOnDate)),t.xp6(7),t.Oqu(t.lcZ(34,67,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(t.gM2(38,69,o.recurringDepositAccountData.fieldOfficerId,o.recurringDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),t.xp6(5),t.Oqu(t.lcZ(43,74,"labels.heading.Currency")),t.xp6(8),t.Oqu(t.lcZ(51,76,"labels.inputs.Currency")),t.xp6(4),t.Oqu(o.recurringDepositsAccountProductTemplate.currency.code),t.xp6(6),t.Oqu(t.lcZ(61,78,"labels.inputs.Decimal Places")),t.xp6(4),t.Oqu(o.recurringDepositsAccountProductTemplate.currency.decimalPlaces),t.xp6(6),t.Oqu(t.lcZ(71,80,"labels.inputs.Currency In Multiples Of")),t.xp6(4),t.Oqu(o.recurringDepositsAccountProductTemplate.currency.inMultiplesOf),t.xp6(4),t.Oqu(t.lcZ(79,82,"labels.heading.Terms")),t.xp6(8),t.hij("",t.lcZ(87,84,"labels.inputs.Interest Compounding Period"),":"),t.xp6(4),t.Oqu(t.gM2(91,86,o.recurringDepositAccountData.interestCompoundingPeriodType,o.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(98,91,"labels.inputs.Interest Posting Period"),":"),t.xp6(4),t.Oqu(t.gM2(102,93,o.recurringDepositAccountData.interestPostingPeriodType,o.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(109,98,"labels.inputs.Interest Calculated using"),":"),t.xp6(4),t.Oqu(t.gM2(113,100,o.recurringDepositAccountData.interestCalculationType,o.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(120,105,"labels.inputs.Days in Year"),":"),t.xp6(4),t.Oqu(t.gM2(124,107,o.recurringDepositAccountData.interestCalculationDaysInYearType,o.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(5),t.Oqu(t.lcZ(129,112,"labels.heading.Settings")),t.xp6(5),t.Q6J("ngIf",o.recurringDepositAccountData.lockinPeriodFrequency),t.xp6(2),t.Q6J("ngIf",o.recurringDepositAccountData.mandatoryRecommendedDepositAmount),t.xp6(5),t.hij("",t.lcZ(141,114,"labels.inputs.Deposit Period"),":"),t.xp6(4),t.Oqu(o.recurringDepositAccountData.depositPeriod+" "+t.gM2(145,116,o.recurringDepositAccountData.depositPeriodFrequencyId,o.recurringDepositsAccountProductTemplate.periodFrequencyTypeData,"id","value")),t.xp6(7),t.hij("",t.lcZ(152,121,"labels.inputs.Deposit Frequency Same as Group/Center meeting"),":"),t.xp6(4),t.Oqu(!0===o.recurringDepositsAccountProductTemplate.isCalendarInherited?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",!o.recurringDepositsAccountProductTemplate.isCalendarInherited),t.xp6(5),t.hij("",t.lcZ(164,123,"labels.inputs.Minimum Deposit Term"),":"),t.xp6(4),t.Oqu((o.recurringDepositsAccountProductTemplate.minDepositTerm?o.recurringDepositsAccountProductTemplate.minDepositTerm:"")+" "+(o.recurringDepositsAccountProductTemplate.minDepositTermType?o.recurringDepositsAccountProductTemplate.minDepositTermType.value:"")),t.xp6(6),t.hij("",t.lcZ(174,125,"labels.inputs.In Multiples Of"),":"),t.xp6(4),t.Oqu((o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm?o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm:"")+" "+(o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType?o.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value:"")),t.xp6(6),t.Oqu(t.lcZ(184,127,"labels.inputs.Maximum Deposit Term")),t.xp6(4),t.Oqu((o.recurringDepositsAccountProductTemplate.maxDepositTerm?o.recurringDepositsAccountProductTemplate.maxDepositTerm:"")+" "+(o.recurringDepositsAccountProductTemplate.maxDepositTermType?o.recurringDepositsAccountProductTemplate.maxDepositTermType.value:"")),t.xp6(4),t.Oqu(t.lcZ(192,129,"labels.inputs.Interest Rate Chart")),t.xp6(7),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.name),t.xp6(5),t.hij("",t.lcZ(204,131,"labels.inputs.Valid from Date"),":"),t.xp6(4),t.Oqu(t.lcZ(208,133,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.fromDate)),t.xp6(4),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.endDate),t.xp6(2),t.Q6J("ngIf",null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.description),t.xp6(5),t.hij("",t.lcZ(219,135,"labels.inputs.Primary Grouping by Amount"),":"),t.xp6(4),t.Oqu(t.lcZ(223,137,null==o.recurringDepositsAccountProductTemplate?null:o.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),t.xp6(4),t.Q6J("dataSource",o.interestRateChartData),t.xp6(42),t.Q6J("matHeaderRowDef",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",o.chartSlabsIncentivesDisplayedColumns),t.xp6(4),t.Q6J("ngIf",o.recurringDepositAccountData.charges.length),t.xp6(8),t.hij("\n ",t.lcZ(285,139,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(145,_a)),t.xp6(1),t.hij("\n ",t.lcZ(289,141,"labels.buttons.Cancel"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(293,143,"labels.buttons.Submit"),"\n "))},dependencies:[A.O5,A.RF,S.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,m.lW,f.a8,et.d,b.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,l.rH,A.rS,T.X$,co.Z,w.E,so.w,nt.D],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[(0,x.X$)("expandChartSlab",[(0,x.SB)("collapsed",(0,x.oB)({height:"0px",minHeight:"0"})),(0,x.SB)("expanded",(0,x.oB)({height:"*"})),(0,x.eR)("expanded <=> collapsed",(0,x.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e})();function ma(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function ga(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function da(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Aa(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Ta(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function fa(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function Ua(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function Za(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function ha(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function Da(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function xa(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function Ca(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,xa,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-recurring-deposits-account-preview-step",18),t.NdJ("submit",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&e){const n=t.oxw();t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",n.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",n.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",n.recurringDepositAccountData)}}let ba=(()=>{class e{constructor(n,o,a,s,c){this.route=n,this.router=o,this.dateUtils=a,this.recurringDepositsService=s,this.settingsService=c,this.route.data.subscribe(d=>{this.recurringDepositsAccountTemplate=d.recurringDepositsAccountTemplate})}setTemplate(n){this.recurringDepositsAccountProductTemplate=n}ngOnInit(){}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValid(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid}get recurringDepositAccountData(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}get recurringDepositAccount(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}submit(){const n=this.settingsService.language.code,o=this.settingsService.dateFormat,s={...this.recurringDepositAccount,clientId:this.recurringDepositsAccountTemplate.clientId,charges:this.recurringDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,o),feeOnMonthDay:c.feeOnMonthDay,feeInterval:c.feeInterval})),isCalendarInherited:!!this.recurringDepositAccount.recurringDepositAccount&&this.recurringDepositAccount.recurringDepositAccount,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,o),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,o),dateFormat:o,monthDayFormat:"dd MMMM",locale:n};this.recurringDepositsService.createRecurringDepositAccount(s).subscribe(c=>{this.router.navigate(["../",c.resourceId],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-create-recurring-deposits-account"]],viewQuery:function(n,o){if(1&n&&(t.Gf(B,7),t.Gf($,7),t.Gf(H,7),t.Gf(W,7)),2&n){let a;t.iGM(a=t.CRH())&&(o.recurringDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["recurringDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData","submit"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n "),t.YNc(5,ma,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,ga,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,da,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,Aa,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Ta,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,fa,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-recurring-deposits-account-details-step",10),t.NdJ("recurringDepositsAccountProductTemplate",function(s){return o.setTemplate(s)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,Ua,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-recurring-deposits-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,Za,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-recurring-deposits-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,ha,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-recurring-deposits-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,Da,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-recurring-deposits-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,Ca,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&n&&(t.xp6(15),t.Q6J("stepControl",o.recurringDepositAccountDetailsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountTermsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountSettingsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",o.recurringDepositAccountFormValid),t.xp6(4),t.Q6J("ngIf",o.recurringDepositAccountFormValid))},dependencies:[A.O5,S.BN,b.C0,b.VY,b.Vq,b.z9,B,$,H,it,W,ot,T.X$]}),e})();function qa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const va=function(){return["../../"]};let ya=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateRecurringDepositsAccountForm()}createActivateRecurringDepositsAccountForm(){this.activateRecurringDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",r.kI.required]})}submit(){const n=this.activateRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.activatedOnDate instanceof Date&&(n.activatedOnDate=this.dateUtils.formatDate(this.activateRecurringDepositsAccountForm.value.activatedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"activate",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-activate-recurring-deposits-account"]],decls:39,vars:18,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(19);return t.KtG(c.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,qa,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&n){const a=t.MAs(19);t.xp6(4),t.Q6J("formGroup",o.activateRecurringDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.activateRecurringDepositsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,va)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.activateRecurringDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,u.yH,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();var Q=_(39349);const Ra=function(){return["../../"]};let Ia=(()=>{class e{constructor(n,o,a,s){this.formBuilder=n,this.recurringDepositsService=o,this.route=a,this.router=s,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.createUndoApprovalRecurringDepositsAccountForm()}createUndoApprovalRecurringDepositsAccountForm(){this.undoApprovalRecurringDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){const n={...this.undoApprovalRecurringDepositsAccountForm.value};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"undoapproval",n).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(l.gz),t.Y36(l.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-undo-approval-recurring-deposits-account"]],decls:32,vars:13,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&n&&(t.xp6(4),t.Q6J("formGroup",o.undoApprovalRecurringDepositsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,Ra)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.undoApprovalRecurringDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[u.xw,u.SQ,u.Wh,u.yH,m.lW,f.a8,f.dn,f.hq,g.KE,g.hX,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Sa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Na=function(){return["../../"]};let Oa=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveRecurringDepositsAccountForm()}createApproveRecurringDepositsAccountForm(){this.approveRecurringDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",r.kI.required],note:[""]})}submit(){const n=this.approveRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.approvedOnDate instanceof Date&&(n.approvedOnDate=this.dateUtils.formatDate(this.approveRecurringDepositsAccountForm.value.approvedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"approve",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-approve-recurring-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Sa,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.approveRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.approveRecurringDepositsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Na)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.approveRecurringDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function wa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const La=function(){return["../../"]};let Pa=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectRecurringDepositsAccountForm()}createRejectRecurringDepositsAccountForm(){this.rejectRecurringDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",r.kI.required],note:[""]})}submit(){const n=this.rejectRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.rejectedOnDate instanceof Date&&(n.rejectedOnDate=this.dateUtils.formatDate(this.rejectRecurringDepositsAccountForm.value.rejectedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"reject",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-reject-recurring-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,wa,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.rejectRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.rejectRecurringDepositsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,La)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.rejectRecurringDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Fa(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Ya=function(){return["../../"]};let Qa=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawRecurringDepositsAccountForm()}createWithdrawRecurringDepositsAccountForm(){this.withdrawRecurringDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",r.kI.required],note:[""]})}submit(){const n=this.withdrawRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.withdrawnOnDate instanceof Date&&(n.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawRecurringDepositsAccountForm.value.withdrawnOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"withdrawnByApplicant",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-withdraw-by-client-recurring-deposits-account"]],decls:51,vars:21,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Fa,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.withdrawRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.withdrawRecurringDepositsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Ya)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.withdrawRecurringDepositsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function Ja(e,i){if(1&e&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name+" ("+n.currency.name+")","\n ")}}function ka(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ma(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ja(e,i){if(1&e&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Ea(e,i){if(1&e&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function Ga(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ba(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,Ga,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&e){const n=t.MAs(11),o=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(5),t.Q6J("ngIf",o.recurringDepositsChargeForm.controls.dueDate.hasError("required"))}}function $a(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ha(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(11);return t.KtG(a.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,$a,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&e){const n=t.MAs(11),o=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",n),t.xp6(2),t.Q6J("for",n),t.xp6(5),t.Q6J("ngIf",o.recurringDepositsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function Wa(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Va(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,Ma,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,ja,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,Ea,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,Ba,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,Ha,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,Wa,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",n.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",n.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsChargeForm.contains("feeInterval"))}}const za=function(){return["../../"]};let Xa=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.savingsService=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(h=>{this.savingsChargeOptions=h.recurringDepositsAccountActionData.chargeOptions}),this.recurringDepositAccountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRecurringDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.recurringDepositsChargeForm.controls.chargeId.valueChanges.subscribe(n=>{this.savingsService.getChargeTemplate(n).subscribe(o=>{this.chargeDetails=o;const a=o.chargeTimeType.id;("Withdrawal Fee"===o.chargeTimeType.value||"Saving No Activity Fee"===o.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===o.chargeTimeType.value||"Monthly Fee"===o.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.removeControl("dueDate"):this.recurringDepositsChargeForm.addControl("dueDate",new r.p4("",r.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.addControl("feeOnMonthDay",new r.p4("",r.kI.required)):this.recurringDepositsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===a.value?this.recurringDepositsChargeForm.addControl("feeInterval",new r.p4(o.feeInterval,r.kI.required)):this.recurringDepositsChargeForm.removeControl("feeInterval"),this.recurringDepositsChargeForm.patchValue({amount:o.amount,chargeCalculationType:o.chargeCalculationType.id,chargeTimeType:o.chargeTimeType.id})})})}createRecurringDepositsChargeForm(){this.recurringDepositsChargeForm=this.formBuilder.group({chargeId:["",r.kI.required],amount:["",r.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const n=this.recurringDepositsChargeForm.value;if(n.locale=this.settingsService.language.code,n.feeInterval||(n.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const o="MMMM-dd";n.monthDayFormat=o,n.feeOnMonthDay&&(n.feeOnMonthDay=this.dateUtils.formatDate(this.recurringDepositsChargeForm.value.feeOnMonthDay,o))}else{const o=this.settingsService.dateFormat;n.dateFormat=o,n.dueDate&&(n.dueDate=this.dateUtils.formatDate(this.recurringDepositsChargeForm.value.dueDate,o))}this.savingsService.createSavingsCharge(this.recurringDepositAccountId,"charges",n).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(O.d),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-add-charge-recurring-deposits-account"]],decls:42,vars:16,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,Ja,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,ka,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Va,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&n&&(t.xp6(4),t.Q6J("formGroup",o.recurringDepositsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",o.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",o.recurringDepositsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",o.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,za)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.recurringDepositsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,L.ey,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),e})();function Ka(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const tr=function(){return["../../"]};let er=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.recurringDepositsService=o,this.dateUtils=a,this.route=s,this.router=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createprematureCloseRecurringDepositsAccountForm()}createprematureCloseRecurringDepositsAccountForm(){this.prematureCloseRecurringDepositsAccountForm=this.formBuilder.group({closedOnDate:["",r.kI.required]})}submit(){const n=this.prematureCloseRecurringDepositsAccountForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.closedOnDate instanceof Date&&(n.closedOnDate=this.dateUtils.formatDate(this.prematureCloseRecurringDepositsAccountForm.value.closedOnDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"prematureClose",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(Z),t.Y36(I.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-premature-close-recurring-deposit-account"]],decls:42,vars:18,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Ka,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"mat-card-actions",8),t._uU(29,"\n "),t.TgZ(30,"button",9),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"button",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.prematureCloseRecurringDepositsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,11,"labels.inputs.Closed On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.prematureCloseRecurringDepositsAccountForm.controls.closedOnDate.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(17,tr)),t.xp6(1),t.Oqu(t.lcZ(32,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.prematureCloseRecurringDepositsAccountForm),t.xp6(1),t.Oqu(t.lcZ(36,15,"labels.buttons.Confirm"))}},dependencies:[A.O5,u.xw,u.SQ,u.Wh,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),e})();function nr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ir(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Maturity Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function or(e,i){if(1&e&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.value,"\n ")}}function ar(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Action")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function rr(e,i){if(1&e&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function cr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Payment Type")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function sr(e,i){1&e&&(t.TgZ(0,"button",22),t._uU(1,"\n "),t._UZ(2,"i",23),t._uU(3,"\n "),t.qZA())}function ur(e,i){1&e&&(t.TgZ(0,"button",22),t._uU(1,"\n "),t._UZ(2,"i",24),t._uU(3,"\n "),t.qZA())}function pr(e,i){1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",25),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t.TgZ(11,"mat-form-field"),t._uU(12,"\n "),t.TgZ(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",26),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field"),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",27),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field"),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t._UZ(35,"input",28),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-form-field"),t._uU(39,"\n "),t.TgZ(40,"mat-label"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t._UZ(44,"input",29),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.BQk()),2&e&&(t.xp6(5),t.hij(" ",t.lcZ(6,5,"labels.inputs.Account")," #"),t.xp6(9),t.hij("",t.lcZ(15,7,"labels.inputs.Cheque")," #"),t.xp6(9),t.Oqu(t.lcZ(24,9,"labels.inputs.Routing Code")),t.xp6(9),t.hij("",t.lcZ(33,11,"labels.inputs.Reciept")," #"),t.xp6(9),t.hij("",t.lcZ(42,13,"labels.inputs.Bank")," #"))}const lr=function(){return["../general"]};let _r=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.recurringDepositsService=c,this.settingsService=d,this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(h=>{this.maturityAmount=h.recurringDepositsAccountActionData.maturityAmount,this.onAccountClosureOptions=h.recurringDepositsAccountActionData.onAccountClosureOptions,this.paymentTypes=h.recurringDepositsAccountActionData.paymentTypeOptions,this.title=h.recurringDepositsAccountActionData.maturityAmount?"Recurring Deposit Closure on Maturity":"Recurring Deposit Closure"}),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createcloseRecurringDepositForm()}createcloseRecurringDepositForm(){this.closeRecurringDepositForm=this.formBuilder.group({closedOnDate:[new Date,r.kI.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",r.kI.required],paymentTypeId:["",r.kI.required],accountNumber:"",chequeNumber:"",routingCode:"",receiptNumber:"",bankNumber:"",note:""})}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}submit(){const n=this.closeRecurringDepositForm.value,a=this.settingsService.dateFormat,s=this.settingsService.language.code;n.closedOnDate instanceof Date&&(n.closedOnDate=this.dateUtils.formatDate(this.closeRecurringDepositForm.value.closedOnDate,a));const c={...n,dateFormat:a,locale:s};this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"close",c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-close-recurring-deposits-account"]],decls:109,vars:42,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["fxFlexFill","",1,"mat-h3"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["matInput","","required","","formControlName","maturityAmount"],["formControlName","onAccountClosureId","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","paymentTypeId","required",""],["fxFlexFill",""],["fxFlex","25%"],["fxFlex","75%",1,"expandcollapsebutton",3,"click"],["mat-raised-button","","color","primary",4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["mat-raised-button","","color","primary"],[1,"fa","fa-minus"],[1,"fa","fa-plus"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","chequeNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"h3",3),t._uU(11),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field",4),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(24);return t.KtG(c.open())}),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t._UZ(19,"input",5),t._uU(20,"\n "),t._UZ(21,"mat-datepicker-toggle",6),t._uU(22,"\n "),t._UZ(23,"mat-datepicker",null,7),t._uU(25,"\n "),t.YNc(26,nr,8,9,"mat-error",8),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field"),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t._UZ(35,"input",9),t._uU(36,"\n "),t.YNc(37,ir,8,9,"mat-error",8),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-form-field"),t._uU(41,"\n "),t.TgZ(42,"mat-label"),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"mat-select",10),t._uU(47,"\n "),t.YNc(48,or,2,2,"mat-option",11),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.YNc(51,ar,8,9,"mat-error",8),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.TgZ(54,"mat-form-field"),t._uU(55,"\n "),t.TgZ(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t._uU(59,"\n "),t.TgZ(60,"mat-select",12),t._uU(61,"\n "),t.YNc(62,rr,2,2,"mat-option",11),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.YNc(65,cr,8,9,"mat-error",8),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"div",13),t._uU(69,"\n "),t.TgZ(70,"span",14),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"span",15),t.NdJ("click",function(){return o.toggleDisplay()}),t._uU(75,"\n "),t.YNc(76,sr,4,0,"button",16),t._uU(77,"\n "),t.YNc(78,ur,4,0,"button",16),t._uU(79,"\n "),t.qZA(),t._uU(80,"\n "),t.qZA(),t._uU(81,"\n\n "),t.YNc(82,pr,47,15,"ng-container",8),t._uU(83,"\n\n "),t.TgZ(84,"mat-form-field"),t._uU(85,"\n "),t.TgZ(86,"mat-label"),t._uU(87),t.ALo(88,"translate"),t.qZA(),t._uU(89,"\n "),t._UZ(90,"textarea",17),t._uU(91,"\n "),t.qZA(),t._uU(92,"\n\n "),t.qZA(),t._uU(93,"\n\n "),t.qZA(),t._uU(94,"\n\n "),t.TgZ(95,"mat-card-actions",18),t._uU(96,"\n "),t.TgZ(97,"button",19),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.TgZ(101,"button",20),t._uU(102),t.ALo(103,"translate"),t.qZA(),t._uU(104,"\n "),t.qZA(),t._uU(105,"\n\n "),t.qZA(),t._uU(106,"\n\n "),t.qZA(),t._uU(107,"\n\n"),t.qZA(),t._uU(108,"\n")}if(2&n){const a=t.MAs(24);t.xp6(4),t.Q6J("formGroup",o.closeRecurringDepositForm),t.xp6(7),t.Oqu(o.title),t.xp6(5),t.Oqu(t.lcZ(17,25,"labels.inputs.Closed On")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.closedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(33,27,"labels.inputs.Maturity Amount")),t.xp6(5),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.maturityAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(44,29,"labels.inputs.Action")),t.xp6(5),t.Q6J("ngForOf",o.onAccountClosureOptions),t.xp6(3),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.onAccountClosureId.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(58,31,"labels.inputs.Payment Type Id")),t.xp6(5),t.Q6J("ngForOf",o.paymentTypes),t.xp6(3),t.Q6J("ngIf",o.closeRecurringDepositForm.controls.paymentTypeId.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(72,33,"labels.inputs.Show Payment Details")),t.xp6(5),t.Q6J("ngIf",o.showPaymentDetails),t.xp6(2),t.Q6J("ngIf",!o.showPaymentDetails),t.xp6(4),t.Q6J("ngIf",o.showPaymentDetails),t.xp6(5),t.Oqu(t.lcZ(88,35,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(41,lr)),t.xp6(1),t.Oqu(t.lcZ(99,37,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.closeRecurringDepositForm.valid),t.xp6(1),t.Oqu(t.lcZ(103,39,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,L.ey,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,P.gD,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}"]}),e})();var mr=_(90455);function gr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function dr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ar(e,i){if(1&e&&(t.TgZ(0,"mat-option",22),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function Tr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Payment Type")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function fr(e,i){1&e&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",23),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t.TgZ(11,"mat-form-field"),t._uU(12,"\n "),t.TgZ(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",24),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field"),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",25),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.TgZ(29,"mat-form-field"),t._uU(30,"\n "),t.TgZ(31,"mat-label"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t._UZ(35,"input",26),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"mat-form-field"),t._uU(39,"\n "),t.TgZ(40,"mat-label"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t._UZ(44,"input",27),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.BQk()),2&e&&(t.xp6(5),t.hij(" ",t.lcZ(6,5,"labels.inputs.Account")," #"),t.xp6(9),t.hij("",t.lcZ(15,7,"labels.inputs.Cheque")," #"),t.xp6(9),t.Oqu(t.lcZ(24,9,"labels.inputs.Routing Code")),t.xp6(9),t.hij("",t.lcZ(33,11,"labels.inputs.Reciept")," #"),t.xp6(9),t.hij("",t.lcZ(42,13,"labels.inputs.Bank")," #"))}const Ur=function(){return["../../general"]};let Zr=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.recurringDepositsService=c,this.settingsService=d,this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(y=>{this.transactionAmount=y.recurringDepositsAccountActionData.amount,this.paymentTypes=y.recurringDepositsAccountActionData.paymentTypeOptions,y.recurringDepositsAccountActionData.outstandingChargeAmount&&y.recurringDepositsAccountActionData.outstandingChargeAmount>0&&(this.outstandingChargeAmount=y.recurringDepositsAccountActionData.outstandingChargeAmount,this.transactionAmount=this.transactionAmount+this.outstandingChargeAmount)}),this.action=this.route.snapshot.params.name.toLowerCase(),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createdepositRecurringDepositForm()}createdepositRecurringDepositForm(){this.depositRecurringDepositForm=this.formBuilder.group({transactionDate:[new Date,r.kI.required],transactionAmount:[this.transactionAmount,r.kI.required],paymentTypeId:["",r.kI.required],note:""})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.depositRecurringDepositForm.addControl("accountNumber",new r.p4("")),this.depositRecurringDepositForm.addControl("checkNumber",new r.p4("")),this.depositRecurringDepositForm.addControl("routingCode",new r.p4("")),this.depositRecurringDepositForm.addControl("receiptNumber",new r.p4("")),this.depositRecurringDepositForm.addControl("bankNumber",new r.p4(""))):(this.depositRecurringDepositForm.removeControl("accountNumber"),this.depositRecurringDepositForm.removeControl("checkNumber"),this.depositRecurringDepositForm.removeControl("routingCode"),this.depositRecurringDepositForm.removeControl("receiptNumber"),this.depositRecurringDepositForm.removeControl("bankNumber"))}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}submit(){const n=this.depositRecurringDepositForm.value,o=this.settingsService.dateFormat,a=this.settingsService.language.code;n.transactionDate instanceof Date&&(n.transactionDate=this.dateUtils.formatDate(this.depositRecurringDepositForm.value.transactionDate,o));const c={...n,dateFormat:o,locale:a};delete c.note,this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,this.action,c).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-deposit-recurring-deposits-account"]],inputs:{currency:"currency"},decls:99,vars:36,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],[4,"ngIf"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],["fxFlex","auto"],["type","number","matInput","","required","","formControlName","transactionAmount",1,"right-input"],["formControlName","paymentTypeId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(21);return t.KtG(c.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,gr,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field",8),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"span",9),t._uU(33),t.qZA(),t._uU(34,"\n "),t._UZ(35,"span",10),t._uU(36,"\n "),t._UZ(37,"input",11),t._uU(38,"\n "),t.YNc(39,dr,8,9,"mat-error",7),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"mat-form-field"),t._uU(43,"\n "),t.TgZ(44,"mat-label"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"mat-select",12),t._uU(49,"\n "),t.YNc(50,Ar,2,2,"mat-option",13),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.YNc(53,Tr,8,9,"mat-error",7),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"div",14),t._uU(57,"\n "),t.TgZ(58,"span",15),t.NdJ("click",function(){return o.addPaymentDetails()}),t._uU(59,"\n "),t.TgZ(60,"mat-slide-toggle"),t._uU(61,"\n "),t.TgZ(62,"div",16),t._uU(63,"\n "),t.TgZ(64,"span",17),t._uU(65),t.ALo(66,"translate"),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.YNc(72,fr,47,15,"ng-container",7),t._uU(73,"\n\n "),t.TgZ(74,"mat-form-field"),t._uU(75,"\n "),t.TgZ(76,"mat-label"),t._uU(77),t.ALo(78,"translate"),t.qZA(),t._uU(79,"\n "),t._UZ(80,"textarea",18),t._uU(81,"\n "),t.qZA(),t._uU(82,"\n\n "),t.qZA(),t._uU(83,"\n\n "),t.qZA(),t._uU(84,"\n\n "),t.TgZ(85,"mat-card-actions",19),t._uU(86,"\n "),t.TgZ(87,"button",20),t._uU(88),t.ALo(89,"translate"),t.qZA(),t._uU(90,"\n "),t.TgZ(91,"button",21),t._uU(92),t.ALo(93,"translate"),t.qZA(),t._uU(94,"\n "),t.qZA(),t._uU(95,"\n\n "),t.qZA(),t._uU(96,"\n\n "),t.qZA(),t._uU(97,"\n\n"),t.qZA(),t._uU(98,"\n")}if(2&n){const a=t.MAs(21);t.xp6(4),t.Q6J("formGroup",o.depositRecurringDepositForm),t.xp6(9),t.Oqu(t.lcZ(14,21,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.depositRecurringDepositForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,23,"labels.inputs.Transaction Amount")),t.xp6(4),t.Oqu(o.currency.code),t.xp6(6),t.Q6J("ngIf",o.depositRecurringDepositForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(46,25,"labels.inputs.Payment Type Id")),t.xp6(5),t.Q6J("ngForOf",o.paymentTypes),t.xp6(3),t.Q6J("ngIf",o.depositRecurringDepositForm.controls.paymentTypeId.hasError("required")),t.xp6(9),t.Q6J("className",o.showPaymentDetails?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(66,27,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",o.showPaymentDetails),t.xp6(5),t.Oqu(t.lcZ(78,29,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(35,Ur)),t.xp6(1),t.Oqu(t.lcZ(89,31,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.depositRecurringDepositForm.valid),t.xp6(1),t.Oqu(t.lcZ(93,33,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,L.ey,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,Q.IC,N.Nt,P.gD,mr.Rr,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]}),e})();function hr(e,i){1&e&&t._UZ(0,"mifosx-activate-recurring-deposits-account")}function Dr(e,i){1&e&&t._UZ(0,"mifosx-undo-approval-recurring-deposits-account")}function xr(e,i){1&e&&t._UZ(0,"mifosx-approve-recurring-deposits-account")}function Cr(e,i){1&e&&t._UZ(0,"mifosx-reject-recurring-deposits-account")}function br(e,i){1&e&&t._UZ(0,"mifosx-withdraw-by-client-recurring-deposits-account")}function qr(e,i){1&e&&t._UZ(0,"mifosx-add-charge-recurring-deposits-account")}function vr(e,i){1&e&&t._UZ(0,"mifosx-premature-close-recurring-deposit-account")}function yr(e,i){1&e&&t._UZ(0,"mifosx-close-recurring-deposits-account")}function Rr(e,i){if(1&e&&t._UZ(0,"mifosx-deposit-recurring-deposits-account",2),2&e){const n=t.oxw();t.Q6J("currency",n.currency)}}let Ir=(()=>{class e{constructor(n){this.route=n,this.actions={Activate:!1,"Undo Approval":!1,Approve:!1,Reject:!1,"Withdrawn by client":!1,"Add Charge":!1,"Premature Close":!1,Close:!1,Deposit:!1,Withdrawal:!1},this.route.data.subscribe(a=>{a.recurringDepositsAccountActionData&&(this.currency=a.recurringDepositsAccountActionData.currency)}),this.actions[this.route.snapshot.params.name]=!0}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-recurring-deposits-account-actions"]],decls:18,vars:9,consts:[[4,"ngIf"],[3,"currency",4,"ngIf"],[3,"currency"]],template:function(n,o){1&n&&(t.YNc(0,hr,1,0,"mifosx-activate-recurring-deposits-account",0),t._uU(1,"\n"),t.YNc(2,Dr,1,0,"mifosx-undo-approval-recurring-deposits-account",0),t._uU(3,"\n"),t.YNc(4,xr,1,0,"mifosx-approve-recurring-deposits-account",0),t._uU(5,"\n"),t.YNc(6,Cr,1,0,"mifosx-reject-recurring-deposits-account",0),t._uU(7,"\n"),t.YNc(8,br,1,0,"mifosx-withdraw-by-client-recurring-deposits-account",0),t._uU(9,"\n"),t.YNc(10,qr,1,0,"mifosx-add-charge-recurring-deposits-account",0),t._uU(11,"\n"),t.YNc(12,vr,1,0,"mifosx-premature-close-recurring-deposit-account",0),t._uU(13,"\n"),t.YNc(14,yr,1,0,"mifosx-close-recurring-deposits-account",0),t._uU(15,"\n"),t.YNc(16,Rr,1,1,"mifosx-deposit-recurring-deposits-account",1),t._uU(17,"\n")),2&n&&(t.Q6J("ngIf",o.actions.Activate),t.xp6(2),t.Q6J("ngIf",o.actions["Undo Approval"]),t.xp6(2),t.Q6J("ngIf",o.actions.Approve),t.xp6(2),t.Q6J("ngIf",o.actions.Reject),t.xp6(2),t.Q6J("ngIf",o.actions["Withdrawn by client"]),t.xp6(2),t.Q6J("ngIf",o.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",o.actions["Premature Close"]),t.xp6(2),t.Q6J("ngIf",o.actions.Close),t.xp6(2),t.Q6J("ngIf",o.actions.Deposit||o.actions.Withdrawal))},dependencies:[A.O5,ya,Ia,Oa,Pa,Qa,Xa,er,_r,Zr]}),e})();function Sr(e,i){1&e&&(t.TgZ(0,"button",12),t._uU(1,"\n "),t._UZ(2,"fa-icon",13),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&e&&(t.Q6J("routerLink","edit"),t.xp6(3),t.hij("",t.lcZ(4,2,"labels.buttons.Edit"),"\n "))}function Nr(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Sr,5,4,"button",11),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!("Transfer"==n.transactionData.transactionType.value||"true"==n.transactionData.reversed))}}function Or(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",15),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&e&&(t.xp6(3),t.hij("",t.lcZ(4,1,"labels.buttons.Undo"),"\n "))}function wr(e,i){1&e&&(t.TgZ(0,"div",8),t._uU(1,"\n "),t.YNc(2,Nr,4,1,"span",9),t._uU(3,"\n "),t.YNc(4,Or,5,3,"button",10),t._uU(5,"\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"),t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Lr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Note"),"\n "))}function Pr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.hij("\n ",n.transactionData.note,"\n ")}}function Fr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Payment Type"),"\n "))}function Yr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.paymentType.name,"\n ")}}function Qr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Account No"),".\n "))}function Jr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.accountNumber,"\n ")}}function kr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Cheque Number"),"\n "))}function Mr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.checkNumber,"\n ")}}function jr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Routing Code"),"\n "))}function Er(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.routingCode,"\n ")}}function Gr(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Receipt No"),".\n "))}function Br(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.receiptNumber,"\n ")}}function $r(e,i){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Bank No"),".\n "))}function Hr(e,i){if(1&e&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("\n ",n.transactionData.paymentDetailData.bankNumber,"\n ")}}function Wr(e,i){if(1&e&&(t.ynx(0),t._uU(1,"\n\n "),t.YNc(2,Fr,3,3,"div",5),t._uU(3,"\n\n "),t.YNc(4,Yr,2,1,"div",6),t._uU(5,"\n\n "),t.YNc(6,Qr,3,3,"div",5),t._uU(7,"\n\n "),t.YNc(8,Jr,2,1,"div",6),t._uU(9,"\n\n "),t.YNc(10,kr,3,3,"div",5),t._uU(11,"\n\n "),t.YNc(12,Mr,2,1,"div",6),t._uU(13,"\n\n "),t.YNc(14,jr,3,3,"div",5),t._uU(15,"\n\n "),t.YNc(16,Er,2,1,"div",6),t._uU(17,"\n\n "),t.YNc(18,Gr,3,3,"div",5),t._uU(19,"\n\n "),t.YNc(20,Br,2,1,"div",6),t._uU(21,"\n\n "),t.YNc(22,$r,3,3,"div",5),t._uU(23,"\n\n "),t.YNc(24,Hr,2,1,"div",6),t._uU(25,"\n\n "),t.BQk()),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.paymentType),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.accountNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.checkNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.routingCode),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.receiptNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.bankNumber),t.xp6(2),t.Q6J("ngIf",n.transactionData.paymentDetailData.bankNumber)}}let Vr=(()=>{class e{constructor(n,o,a,s,c,d,h){this.recurringDepositsService=n,this.route=o,this.dateUtils=a,this.router=s,this.dialog=c,this.translateService=d,this.settingsService=h,this.route.data.subscribe(y=>{this.transactionData=y.recurringDepositsAccountTransaction})}undoTransaction(){const n=this.route.parent.snapshot.params.recurringDepositAccountId;this.dialog.open(C,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to undo this transaction ?")}}).afterClosed().subscribe(a=>{if(a.confirm){const s=this.settingsService.language.code,c=this.settingsService.dateFormat,d={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),c),transactionAmount:0,dateFormat:c,locale:s};this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(n,"undo",d,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(Z),t.Y36(l.gz),t.Y36(I.L),t.Y36(l.F0),t.Y36(q.uw),t.Y36(T.sK),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-view-transaction"]],decls:56,vars:26,consts:[["fxLayoutAlign","end","class","container m-b-20","fxLayoutGap","2%",4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxFlex","50%","class","mat-body-strong",4,"ngIf"],["fxFlex","50%",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(n,o){1&n&&(t.YNc(0,wr,6,2,"div",0),t._uU(1,"\n\n"),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card"),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"div",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",4),t._uU(15),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"div",3),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n\n "),t.TgZ(21,"div",4),t._uU(22),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"div",3),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",4),t._uU(29),t.ALo(30,"dateFormat"),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",3),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n\n "),t.TgZ(36,"div",4),t._uU(37),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"div",3),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",4),t._uU(44),t.qZA(),t._uU(45,"\n\n "),t.YNc(46,Lr,3,3,"div",5),t._uU(47,"\n\n "),t.YNc(48,Pr,2,1,"div",6),t._uU(49,"\n\n "),t.YNc(50,Wr,26,12,"ng-container",7),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n"),t.qZA(),t._uU(55,"\n")),2&n&&(t.Q6J("ngIf",!o.transactionData.reversed),t.xp6(11),t.hij("\n ",t.lcZ(12,14,"labels.inputs.Transaction Id"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.id,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(19,16,"labels.inputs.Type"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.transactionType.value,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(26,18,"labels.inputs.Transaction Date"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(30,20,o.transactionData.date),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(34,22,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(41,24,"labels.inputs.Amount"),"\n "),t.xp6(4),t.hij("\n ",o.transactionData.amount,"\n "),t.xp6(2),t.Q6J("ngIf",o.transactionData.note),t.xp6(2),t.Q6J("ngIf",o.transactionData.note),t.xp6(2),t.Q6J("ngIf",o.transactionData.paymentDetailData))},dependencies:[A.O5,S.BN,u.xw,u.SQ,u.Wh,u.yH,m.lW,f.a8,f.dn,E.A,l.rH,T.X$,w.E],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),e})();function zr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Xr(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Kr(e,i){if(1&e&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n.id),t.xp6(1),t.hij("\n ",n.name,"\n ")}}function tc(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function ec(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",20),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function nc(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function ic(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",22),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function oc(e,i){1&e&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",23),t._uU(7,"\n "),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}const ac=function(){return["../"]};let rc=(()=>{class e{constructor(n,o,a,s,c,d){this.formBuilder=n,this.route=o,this.router=a,this.dateUtils=s,this.recurringDepositsService=c,this.settingsService=d,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(h=>{this.transactionTemplateData=h.recurringDepositsAccountTransactionTemplate,this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.recurringDepositAccountId=this.route.parent.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",r.kI.required],transactionAmount:["",r.kI.required],paymentTypeId:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.editTransactionForm.addControl("accountNumber",new r.p4("")),this.editTransactionForm.addControl("checkNumber",new r.p4("")),this.editTransactionForm.addControl("routingCode",new r.p4("")),this.editTransactionForm.addControl("receiptNumber",new r.p4("")),this.editTransactionForm.addControl("bankNumber",new r.p4(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){const n=this.editTransactionForm.value,o=this.settingsService.language.code,a=this.settingsService.dateFormat;n.transactionDate instanceof Date&&(n.transactionDate=this.dateUtils.formatDate(this.editTransactionForm.value.transactionDate,a));const c={...n,dateFormat:a,locale:o};this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(this.recurringDepositAccountId,"modify",c,this.transactionTemplateData.id).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-edit-transaction"]],decls:84,vars:35,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","transactionAmount","required","","matInput",""],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column"],["fxFlexAlign","center"],["type","button","mat-mini-fab","","color","primary",3,"click"],["size","lg",3,"icon"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(n,o){if(1&n){const a=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return o.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content",2),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t.NdJ("click",function(){t.CHM(a);const c=t.MAs(19);return t.KtG(c.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",4),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",5),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,6),t._uU(20,"\n "),t.YNc(21,zr,8,9,"mat-error",7),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"mat-form-field"),t._uU(25,"\n "),t.TgZ(26,"mat-label"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t._UZ(30,"input",8),t._uU(31,"\n "),t.YNc(32,Xr,8,9,"mat-error",7),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.TgZ(35,"mat-form-field"),t._uU(36,"\n "),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.TgZ(41,"mat-select",9),t._uU(42,"\n "),t.YNc(43,Kr,2,2,"mat-option",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"div",11),t._uU(48,"\n "),t.TgZ(49,"mat-label",12),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"button",13),t.NdJ("click",function(){return o.addPaymentDetails()}),t._uU(54,"\n "),t._UZ(55,"fa-icon",14),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.YNc(59,tc,8,3,"mat-form-field",7),t._uU(60,"\n\n "),t.YNc(61,ec,8,3,"mat-form-field",7),t._uU(62,"\n\n "),t.YNc(63,nc,8,3,"mat-form-field",7),t._uU(64,"\n\n "),t.YNc(65,ic,8,3,"mat-form-field",7),t._uU(66,"\n\n "),t.YNc(67,oc,8,3,"mat-form-field",7),t._uU(68,"\n\n "),t.TgZ(69,"mat-card-actions",15),t._uU(70,"\n "),t.TgZ(71,"button",16),t._uU(72),t.ALo(73,"translate"),t.qZA(),t._uU(74,"\n "),t.TgZ(75,"button",17),t._uU(76),t.ALo(77,"translate"),t.qZA(),t._uU(78,"\n "),t.qZA(),t._uU(79,"\n\n "),t.qZA(),t._uU(80,"\n\n "),t.qZA(),t._uU(81,"\n\n "),t.qZA(),t._uU(82,"\n\n"),t.qZA(),t._uU(83,"\n")}if(2&n){const a=t.MAs(19);t.xp6(4),t.Q6J("formGroup",o.editTransactionForm),t.xp6(7),t.Oqu(t.lcZ(12,22,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",o.minDate)("max",o.maxDate)("matDatepicker",a),t.xp6(2),t.Q6J("for",a),t.xp6(5),t.Q6J("ngIf",o.editTransactionForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(28,24,"labels.inputs.Transaction Amount")),t.xp6(5),t.Q6J("ngIf",o.editTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(39,26,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",o.paymentTypeOptions),t.xp6(7),t.Oqu(t.lcZ(51,28,"labels.inputs.Show Payment Details")),t.xp6(5),t.Q6J("icon",o.addPaymentDetailsFlag?"minus-circle":"plus-circle"),t.xp6(4),t.Q6J("ngIf",o.editTransactionForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",o.editTransactionForm.controls.bankNumber),t.xp6(4),t.Q6J("routerLink",t.DdM(34,ac)),t.xp6(1),t.Oqu(t.lcZ(73,30,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!o.editTransactionForm.valid),t.xp6(1),t.Oqu(t.lcZ(77,32,"labels.buttons.Submit"))}},dependencies:[A.sg,A.O5,S.BN,u.xw,u.SQ,u.Wh,u.XD,L.ey,m.lW,f.a8,f.dn,f.hq,U.Mq,U.hl,U.nW,g.TO,g.KE,g.hX,g.R9,N.Nt,P.gD,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.sg,r.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),e})(),cc=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),at=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var rt=_(89),ct=_(96545);let st=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.parent.paramMap.get("clientId");return this.recurringDepositsService.getRecurringDepositsAccountTemplate(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),ut=(()=>{class e{constructor(n,o){this.savingsService=n,this.recurringDepositsService=o}resolve(n){const o=n.paramMap.get("name"),a=n.paramMap.get("recurringDepositAccountId")||n.parent.parent.paramMap.get("recurringDepositAccountId");switch(o){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(a);case"Close":return this.recurringDepositsService.getRecurringDepositAccountActionResource(a,"close");case"Deposit":case"Withdrawal":return this.recurringDepositsService.getRecurringDepositAccountTransactionTemplateResource(a,o.toLocaleLowerCase());default:return}}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(O.d),t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();function sc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function uc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",13),t._uU(2,"\n "))}function pc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function lc(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function _c(e,i){1&e&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function mc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function gc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function dc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.SETTINGS"))}function Ac(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.INTEREST RATE CHART"))}function Tc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function fc(e,i){1&e&&(t._uU(0),t.ALo(1,"translate")),2&e&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function Uc(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"mat-step",17),t._uU(1,"\n\n "),t.YNc(2,fc,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-recurring-deposits-account-preview-step",18),t.NdJ("submit",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&e){const n=t.oxw();t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",n.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",n.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",n.recurringDepositAccountData)}}let Zc=(()=>{class e{constructor(n,o,a,s,c){this.route=n,this.router=o,this.dateUtils=a,this.recurringDepositsService=s,this.settingsService=c,this.route.data.subscribe(d=>{this.recurringDepositsAccountAndTemplate=d.recurringDepositsAccountAndTemplate})}setTemplate(n){this.recurringDepositsAccountProductTemplate=n}ngOnInit(){}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValidAndNotPristine(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid&&(!this.recurringDepositAccountDetailsForm.pristine||!this.recurringDepositAccountTermsForm.pristine||!this.recurringDepositAccountSettingsForm.pristine||!this.recurringDepositAccountChargesStep.pristine)}get recurringDepositAccountData(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}get recurringDepositAccount(){return{...this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails,...this.recurringDepositAccountTermsStep.recurringDepositAccountTerms,...this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings,...this.recurringDepositAccountChargesStep.recurringDepositAccountCharges}}submit(){const n=this.settingsService.language.code,o=this.settingsService.dateFormat,s={...this.recurringDepositAccount,clientId:this.recurringDepositsAccountAndTemplate.clientId,charges:this.recurringDepositAccount.charges.map(c=>({chargeId:c.id,amount:c.amount,dueDate:c.dueDate&&this.dateUtils.formatDate(c.dueDate,o),feeOnMonthDay:c.feeOnMonthDay,feeInterval:c.feeInterval})),isCalendarInherited:!!this.recurringDepositAccount.recurringDepositAccount&&this.recurringDepositAccount.recurringDepositAccount,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,o),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,o),dateFormat:o,monthDayFormat:"dd MMMM",locale:n};this.recurringDepositsService.updateRecurringDepositAccount(this.recurringDepositsAccountAndTemplate.id,s).subscribe(c=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(I.L),t.Y36(Z),t.Y36(v.g))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-edit-recurring-deposit-account"]],viewQuery:function(n,o){if(1&n&&(t.Gf(B,7),t.Gf($,7),t.Gf(H,7),t.Gf(W,7)),2&n){let a;t.iGM(a=t.CRH())&&(o.recurringDepositsAccountDetailsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountTermsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountSettingsStep=a.first),t.iGM(a=t.CRH())&&(o.recurringDepositAccountChargesStep=a.first)}},decls:59,vars:14,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["recurringDepositAccountStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData","submit"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n "),t.YNc(5,sc,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,uc,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,pc,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,lc,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,_c,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,mc,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-recurring-deposits-account-details-step",10),t.NdJ("recurringDepositsAccountProductTemplate",function(s){return o.setTemplate(s)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,gc,2,3,"ng-template",9),t._uU(26,"\n\n "),t.TgZ(27,"mifosx-recurring-deposits-account-terms-step",10),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-step",8),t._uU(32,"\n\n "),t.YNc(33,dc,2,3,"ng-template",9),t._uU(34,"\n\n "),t.TgZ(35,"mifosx-recurring-deposits-account-settings-step",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-step"),t._uU(40,"\n\n "),t.YNc(41,Ac,2,3,"ng-template",9),t._uU(42,"\n\n "),t.TgZ(43,"mifosx-recurring-deposits-account-interest-rate-chart-step",10),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-step"),t._uU(48,"\n\n "),t.YNc(49,Tc,2,3,"ng-template",9),t._uU(50,"\n\n "),t.TgZ(51,"mifosx-recurring-deposits-account-charges-step",11),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n "),t.qZA(),t._uU(54,"\n\n "),t.YNc(55,Uc,7,3,"mat-step",12),t._uU(56,"\n\n "),t.qZA(),t._uU(57,"\n\n"),t.qZA(),t._uU(58,"\n")),2&n&&(t.xp6(15),t.Q6J("stepControl",o.recurringDepositAccountDetailsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountTermsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(4),t.Q6J("stepControl",o.recurringDepositAccountSettingsForm),t.xp6(4),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate),t.xp6(8),t.Q6J("recurringDepositsAccountTemplate",o.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",o.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",o.recurringDepositAccountFormValidAndNotPristine),t.xp6(4),t.Q6J("ngIf",o.recurringDepositAccountFormValidAndNotPristine))},dependencies:[A.O5,S.BN,b.C0,b.VY,b.Vq,b.z9,B,$,H,it,W,ot,T.X$]}),e})(),pt=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountAndTemplate(o)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),lt=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.paramMap.get("recurringDepositAccountId"),a=n.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransaction(o,a)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),_t=(()=>{class e{constructor(n){this.recurringDepositsService=n}resolve(n){const o=n.parent.paramMap.get("recurringDepositAccountId"),a=n.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransactionTemplate(o,a)}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Z))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var hc=_(5510);function Dc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",5),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.s9C("externalId",n.recurringDepositsAccountData.externalId)}}function xc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function Cc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Unassigned")))}function bc(e,i){1&e&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Closed on Date"),""))}function qc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.YNc(2,bc,3,3,"td",4),t._uU(3,"\n "),t.TgZ(4,"td")(5,"span"),t._uU(6),t.ALo(7,"dateFormat"),t.qZA()(),t._uU(8,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.timeline.closedOnDate),t.xp6(4),t.Oqu(t.lcZ(7,2,n.recurringDepositsAccountData.timeline.closedOnDate))}}function vc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Balance Required For Interest Calculation"),""),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.minBalanceForInterestCalculation)}}function yc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Witdhold Tax Group")," "),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.taxGroup.name)}}function Rc(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"h4",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17,"\n "),t.YNc(18,Dc,4,1,"span",4),t._uU(19,"\n "),t.YNc(20,xc,3,3,"span",4),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"tr"),t._uU(25,"\n "),t.TgZ(26,"td"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.YNc(32,Cc,3,3,"span",4),t.qZA(),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n "),t.TgZ(35,"tr"),t._uU(36,"\n "),t.TgZ(37,"td"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.TgZ(41,"td"),t._uU(42),t.ALo(43,"dateFormat"),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"tr"),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.ALo(50,"translate"),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"td")(53,"span"),t._uU(54),t.ALo(55,"dateFormat"),t.qZA()(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.YNc(58,qc,9,4,"tr",4),t._uU(59,"\n "),t.TgZ(60,"tr"),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"tr"),t._uU(64,"\n "),t.TgZ(65,"td")(66,"span"),t._uU(67),t.qZA()(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.YNc(70,vc,10,4,"tr",4),t._uU(71,"\n "),t.YNc(72,yc,10,4,"tr",4),t._uU(73,"\n "),t.qZA(),t._uU(74,"\n "),t.qZA(),t._uU(75,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,16,"labels.inputs.Account Details")),t.xp6(10),t.Oqu(t.lcZ(14,18,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(28,20,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(n.recurringDepositsAccountData.fieldOfficerName),t.xp6(1),t.Q6J("ngIf",!n.recurringDepositsAccountData.fieldOfficerName),t.xp6(6),t.Oqu(t.lcZ(39,22,"labels.inputs.Activation date")),t.xp6(4),t.Oqu(t.lcZ(43,24,n.recurringDepositsAccountData.timeline.activatedOnDate)),t.xp6(7),t.Oqu(t.lcZ(50,26,"labels.inputs.Maturity Date")),t.xp6(5),t.Oqu(t.lcZ(55,28,n.recurringDepositsAccountData.maturityDate)),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.timeline.closedOnDate||n.recurringDepositsAccountData.summary.totalWitddrawals),t.xp6(9),t.AsE("",n.recurringDepositsAccountData.recurringFrequency,"\n \xa0",n.recurringDepositsAccountData.recurringFrequencyType.value,"\n "),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.minBalanceForInterestCalculation),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.witdHoldTax)}}function Ic(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",5),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.s9C("externalId",n.recurringDepositsAccountData.externalId)}}function Sc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function Nc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalDeposits,n.currency.code,"symbol-narrow","1.2-2"))}}function Oc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function wc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalWithdrawals,n.currency.code,"symbol-narrow","1.2-2"))}}function Lc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function Pc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6)(7,"span"),t._uU(8),t.ALo(9,"currency"),t.qZA(),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned")),t.xp6(5),t.Oqu(t.gM2(9,4,n.recurringDepositsAccountData.summary.totalInterestEarned,n.currency.code,"symbol-narrow","1.2-2"))}}function Fc(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"h4",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17,"\n "),t.YNc(18,Ic,4,1,"span",4),t._uU(19,"\n "),t.YNc(20,Sc,3,3,"span",4),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"tr"),t._uU(25,"\n "),t.TgZ(26,"td"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n "),t.TgZ(30,"td",6),t._uU(31,"\n "),t.TgZ(32,"span"),t._uU(33),t.ALo(34,"currency"),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"tr"),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"td",6),t._uU(45,"\n "),t.TgZ(46,"span"),t._uU(47),t.ALo(48,"currency"),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td",6),t._uU(59,"\n "),t.TgZ(60,"span"),t._uU(61),t.ALo(62,"currency"),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n "),t.TgZ(66,"tr"),t._uU(67,"\n "),t.TgZ(68,"td"),t._uU(69),t.ALo(70,"translate"),t.qZA(),t._uU(71,"\n "),t.TgZ(72,"td",6),t.YNc(73,Nc,3,6,"span",4),t._uU(74,"\n "),t.YNc(75,Oc,3,6,"span",4),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n "),t.qZA(),t._uU(78,"\n "),t.TgZ(79,"tr"),t._uU(80,"\n "),t.TgZ(81,"td"),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.TgZ(85,"td",6),t.YNc(86,wc,3,6,"span",4),t._uU(87,"\n "),t.YNc(88,Lc,3,6,"span",4),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n "),t.qZA(),t._uU(91,"\n\n "),t.YNc(92,Pc,12,9,"tr",4),t._uU(93,"\n\n "),t.qZA(),t._uU(94,"\n "),t.qZA(),t._uU(95,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,17,"labels.heading.Performance History")),t.xp6(10),t.Oqu(t.lcZ(14,19,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(28,21,"labels.inputs.Principal Amount")),t.xp6(6),t.Oqu(t.gM2(34,23,n.recurringDepositsAccountData.depositAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(8),t.Oqu(t.lcZ(42,28,"labels.inputs.Maturity Amount")),t.xp6(6),t.Oqu(t.gM2(48,30,n.recurringDepositsAccountData.maturityAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(8),t.Oqu(t.lcZ(56,35,"labels.inputs.Recurring Deposit Amount")),t.xp6(6),t.Oqu(t.gM2(62,37,null==n.recurringDepositsAccountData?null:n.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(8),t.Oqu(t.lcZ(70,42,"labels.inputs.Deposits till Date")),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(7),t.Oqu(t.lcZ(83,44,"labels.inputs.Withdrwals till Date")),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestEarned>=0)}}function Yc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",5),t._uU(3,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(2),t.s9C("externalId",n.recurringDepositsAccountData.externalId)}}function Qc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Not Available")," "))}function Jc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Activated")))}function kc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.YNc(3,Jc,3,3,"span",4),t._uU(4,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("",t.lcZ(2,2,n.recurringDepositsAccountData.timeline.activatedOnDate),"\n "),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.timeline.activatedOnDate)}}function Mc(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Activated")))}function jc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.YNc(3,Mc,3,3,"span",4),t._uU(4,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij("",t.lcZ(2,2,n.recurringDepositsAccountData.expectedFirstDepositOnDate),"\n "),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.expectedFirstDepositOnDate)}}function Ec(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.ALo(9,"dateFormat"),t.qZA()(),t._uU(10,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Date")),t.xp6(5),t.Oqu(t.lcZ(9,4,n.recurringDepositsAccountData.maturityDate))}}function Gc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalDeposits,n.currency.code,"symbol-narrow","1.2-2"))}}function Bc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function $c(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,3,"labels.inputs.Interests Earned")," "),t.xp6(5),t.AsE("",n.recurringDepositsAccountData.currency.displaySymbol,"\xa0",n.recurringDepositsAccountData.summary.totalInterestEarned,"")}}function Hc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6),t._uU(7,"\n "),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"currency"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Total Withdrawls")," "),t.xp6(6),t.Oqu(t.gM2(10,4,n.recurringDepositsAccountData.summary.totalWithdrawals,n.currency.code,"symbol-narrow","1.2-2"))}}function Wc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6),t._uU(7,"\n "),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"number"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Balance Required For Interest Calculation")," "),t.xp6(6),t.Oqu(t.lcZ(10,4,n.recurringDepositsAccountData.minBalanceForInterestCalculation))}}function Vc(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"table"),t._uU(3,"\n "),t.TgZ(4,"tbody"),t._uU(5,"\n "),t.TgZ(6,"tr"),t._uU(7,"\n "),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13,"\n "),t.YNc(14,Yc,4,1,"span",4),t._uU(15,"\n "),t.YNc(16,Qc,3,3,"span",4),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.TgZ(20,"tr"),t._uU(21,"\n "),t.TgZ(22,"td"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t.TgZ(26,"td"),t._uU(27,"\n "),t.YNc(28,kc,5,4,"span",4),t._uU(29,"\n "),t.YNc(30,jc,5,4,"span",4),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"tr"),t._uU(35,"\n "),t.TgZ(36,"td"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41,"\n "),t.TgZ(42,"span"),t._uU(43),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.YNc(47,Ec,11,6,"tr",4),t._uU(48,"\n "),t.TgZ(49,"tr"),t._uU(50,"\n "),t.TgZ(51,"td"),t._uU(52),t.ALo(53,"translate"),t.qZA(),t._uU(54,"\n "),t.TgZ(55,"td",6),t._uU(56,"\n "),t.YNc(57,Gc,3,6,"span",4),t._uU(58,"\n "),t.YNc(59,Bc,3,6,"span",4),t._uU(60,"\n "),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.TgZ(63,"tr"),t._uU(64,"\n "),t.TgZ(65,"td"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t._uU(68,"\n "),t.TgZ(69,"td",6),t._uU(70),t.ALo(71,"currency"),t.qZA(),t._uU(72,"\n "),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"tr"),t._uU(75,"\n "),t.TgZ(76,"td"),t._uU(77),t.ALo(78,"translate"),t.qZA(),t._uU(79,"\n "),t.TgZ(80,"td",6),t._uU(81),t.ALo(82,"currency"),t.qZA(),t._uU(83,"\n "),t.qZA(),t._uU(84,"\n "),t.YNc(85,$c,10,5,"tr",4),t._uU(86,"\n "),t.YNc(87,Hc,13,9,"tr",4),t._uU(88,"\n "),t.YNc(89,Wc,13,6,"tr",4),t._uU(90,"\n "),t.qZA(),t._uU(91,"\n "),t.qZA(),t._uU(92,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,20,"labels.inputs.External Id")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.externalId),t.xp6(7),t.Oqu(t.lcZ(24,22,"labels.inputs.Date of Deposit")),t.xp6(5),t.Q6J("ngIf",!n.recurringDepositsAccountData.expectedFirstDepositOnDate),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.expectedFirstDepositOnDate),t.xp6(7),t.Oqu(t.lcZ(38,24,"labels.inputs.Period")),t.xp6(6),t.AsE("",n.recurringDepositsAccountData.depositPeriod,"\xa0",n.recurringDepositsAccountData.depositPeriodFrequency.value,""),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.maturityDate),t.xp6(5),t.Oqu(t.lcZ(53,26,"labels.inputs.Total Deposits")),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalDeposits),t.xp6(7),t.hij(" ",t.lcZ(67,28,"labels.inputs.Actual Available Balance"),""),t.xp6(4),t.Oqu(t.gM2(71,30,n.recurringDepositsAccountData.summary.accountBalance,n.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.hij(" ",t.lcZ(78,35,"labels.inputs.Recurring Deposit Amount"),""),t.xp6(4),t.hij("\n ",t.gM2(82,37,n.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,n.currency.code,"symbol-narrow","1.2-2"),"\n "),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestEarned),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.minBalanceForInterestCalculation)}}function zc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.depositAmount,n.currency.code,"symbol-narrow","1.2-2"))}}function Xc(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function Kc(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7,"\n "),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"currency"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Maturity Amount")),t.xp6(6),t.Oqu(t.gM2(10,4,n.recurringDepositsAccountData.maturityAmount,n.currency.code,"symbol-narrow","1.2-2"))}}function ts(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalWithdrawals,n.currency.code,"symbol-narrow","1.2-2"))}}function es(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function ns(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Closed on Date")," "),t.xp6(4),t.hij("\n ",t.lcZ(8,4,n.recurringDepositsAccountData.timeline.closedOnDate),"\n ")}}function is(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(3);t.xp6(1),t.Oqu(t.gM2(2,1,n.recurringDepositsAccountData.summary.totalInterestPosted,n.currency.code,"symbol-narrow","1.2-2"))}}function os(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(3);t.xp6(1),t.Oqu(t.gM2(2,1,0,n.currency.code,"symbol-narrow","1.2-2"))}}function as(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",6),t._uU(7,"\n "),t.YNc(8,is,3,6,"span",4),t._uU(9,"\n "),t.YNc(10,os,3,6,"span",4),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,3,"labels.inputs.Interests Posted")," "),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestPosted),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalInterestPosted)}}function rs(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"table"),t._uU(3,"\n "),t.TgZ(4,"tbody"),t._uU(5,"\n "),t.TgZ(6,"tr"),t._uU(7,"\n "),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"td",6),t.YNc(13,zc,3,6,"span",4),t._uU(14,"\n "),t.YNc(15,Xc,3,6,"span",4),t._uU(16,"\n "),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"tr"),t._uU(20,"\n "),t.TgZ(21,"td"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"td"),t._uU(26,"\n "),t.TgZ(27,"span"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.YNc(32,Kc,13,9,"tr",4),t._uU(33,"\n "),t.TgZ(34,"tr"),t._uU(35,"\n "),t.TgZ(36,"td"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"td",6),t._uU(41,"\n "),t.YNc(42,ts,3,6,"span",4),t._uU(43,"\n "),t.YNc(44,es,3,6,"span",4),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n "),t.YNc(48,ns,10,6,"tr",4),t._uU(49,"\n "),t.TgZ(50,"tr"),t._uU(51,"\n "),t.TgZ(52,"td"),t._uU(53),t.ALo(54,"translate"),t.qZA(),t._uU(55,"\n "),t.TgZ(56,"td"),t._uU(57),t.qZA(),t._uU(58,"\n "),t.qZA(),t._uU(59,"\n "),t.YNc(60,as,13,5,"tr",4),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,14,"labels.inputs.Principal Amount")),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.depositAmount),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.depositAmount),t.xp6(7),t.Oqu(t.lcZ(23,16,"labels.inputs.Rate of Interest")),t.xp6(6),t.Oqu(n.recurringDepositsAccountData.nominalAnnualInterestRate),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.maturityDate),t.xp6(5),t.hij("",t.lcZ(38,18,"labels.inputs.Total Withdrawls")," "),t.xp6(5),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",!n.recurringDepositsAccountData.summary.totalWithdrawals),t.xp6(4),t.Q6J("ngIf",n.recurringDepositsAccountData.timeline.closedOnDate),t.xp6(5),t.hij(" ",t.lcZ(54,20,"labels.inputs.Deposits Frequency")," "),t.xp6(4),t.AsE("\n ",n.recurringDepositsAccountData.recurringFrequency,"\xa0",n.recurringDepositsAccountData.recurringFrequencyType.value,"\n "),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.summary.totalInterestEarned)}}function cs(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Pre-closure penal Interest (less)")),t.xp6(5),t.AsE("",n.recurringDepositsAccountData.preClosurePenalInterest," % on\n ",n.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"")}}function ss(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"h4",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",6),t._uU(17),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.TgZ(20,"tr"),t._uU(21,"\n "),t.TgZ(22,"td"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t.TgZ(26,"td")(27,"span"),t._uU(28),t.qZA()(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"tr"),t._uU(32,"\n "),t.TgZ(33,"td"),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.TgZ(37,"td")(38,"span"),t._uU(39),t.qZA()(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td")(49,"span"),t._uU(50),t.qZA()(),t._uU(51,"\n "),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"tr"),t._uU(54,"\n "),t.TgZ(55,"td"),t._uU(56),t.ALo(57,"translate"),t.qZA(),t._uU(58,"\n "),t.TgZ(59,"td")(60,"span"),t._uU(61),t.qZA()(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.YNc(64,cs,10,5,"tr",4),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,12,"labels.heading.Interest Details")),t.xp6(10),t.Oqu(t.lcZ(14,14,"labels.inputs.Interest Rate")),t.xp6(4),t.hij("",n.recurringDepositsAccountData.nominalAnnualInterestRate,"%"),t.xp6(6),t.Oqu(t.lcZ(24,16,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(35,18,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(46,20,"labels.inputs.Interest calculated using")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationType.value),t.xp6(6),t.hij("# ",t.lcZ(57,22,"labels.inputs.Days in Year"),""),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.preClosurePenalApplicable)}}function us(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.inputs.Pre-closure penal Interest (less)")),t.xp6(5),t.AsE("",n.recurringDepositsAccountData.preClosurePenalInterest," % on\n ",n.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"")}}function ps(e,i){if(1&e&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td")(7,"span"),t._uU(8),t.qZA()(),t._uU(9,"\n "),t.qZA()),2&e){const n=t.oxw(2);t.xp6(3),t.hij(" ",t.lcZ(4,2,"labels.inputs.Witdhold Tax Group")," "),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.taxGroup.name)}}function ls(e,i){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"table"),t._uU(3,"\n "),t.TgZ(4,"tbody"),t._uU(5,"\n "),t.TgZ(6,"tr"),t._uU(7,"\n "),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"td")(13,"span"),t._uU(14),t.qZA()(),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"tr"),t._uU(18,"\n "),t.TgZ(19,"td"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.TgZ(23,"td")(24,"span"),t._uU(25),t.qZA()(),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"tr"),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"td")(35,"span"),t._uU(36),t.qZA()(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"tr"),t._uU(40,"\n "),t.TgZ(41,"td"),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"td")(46,"span"),t._uU(47),t.qZA()(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.YNc(50,us,10,5,"tr",4),t._uU(51,"\n "),t.YNc(52,ps,10,4,"tr",4),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA()),2&e){const n=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,10,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(21,12,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(32,14,"labels.inputs.Interest calculated using")),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationType.value),t.xp6(6),t.hij("# ",t.lcZ(43,16,"labels.inputs.Days in Year"),""),t.xp6(5),t.Oqu(n.recurringDepositsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",n.recurringDepositsAccountData.preClosurePenalApplicable),t.xp6(2),t.Q6J("ngIf",n.recurringDepositsAccountData.witdHoldTax)}}const ms=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:ba,resolve:{recurringDepositsAccountTemplate:st}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:Lt,resolve:{recurringDepositsAccountData:at,savingsDatatables:ct.N},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:(()=>{class e{constructor(n,o){this.route=n,this.router=o,this.isprematureAllowed=!1,this.route.parent.data.subscribe(a=>{this.recurringDepositsAccountData=a.recurringDepositsAccountData,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=null!=a.recurringDepositsAccountData.maturityDate,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")})}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(l.gz),t.Y36(l.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["mifosx-general-tab"]],decls:19,vars:6,consts:[["fxLayout","row","fxLayoutGap","2%",1,"recurring-deposits-account-tables"],["fxFlex","49%",4,"ngIf"],["fxFlex","49%"],[1,"table-headers"],[4,"ngIf"],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(n,o){1&n&&(t._uU(0,"\n"),t.TgZ(1,"div",0),t._uU(2,"\n\n "),t.YNc(3,Rc,76,30,"div",1),t._uU(4,"\n\n "),t.YNc(5,Fc,96,46,"div",1),t._uU(6,"\n\n "),t.YNc(7,Vc,93,42,"div",1),t._uU(8,"\n\n "),t.YNc(9,rs,64,22,"div",1),t._uU(10,"\n"),t.qZA(),t._uU(11,"\n\n"),t.TgZ(12,"div",0),t._uU(13,"\n "),t.YNc(14,ss,68,24,"div",1),t._uU(15,"\n\n "),t.YNc(16,ls,56,18,"div",1),t._uU(17,"\n\n"),t.qZA(),t._uU(18,"\n")),2&n&&(t.xp6(3),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",o.recurringDepositsAccountData.status.rejected||o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",o.recurringDepositsAccountData.status.rejected||o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(5),t.Q6J("ngIf",!o.recurringDepositsAccountData.status.rejected&&!o.recurringDepositsAccountData.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",o.recurringDepositsAccountData.status.rejected||o.recurringDepositsAccountData.status.submittedAndPendingApproval))},dependencies:[A.O5,u.xw,u.SQ,u.yH,hc.e,A.JJ,A.H9,T.X$,w.E],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]}),e})(),data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:me,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:Re,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:Pn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:en,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:Yn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:rt.X}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Zc,resolve:{recurringDepositsAccountAndTemplate:pt}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Vr,resolve:{recurringDepositsAccountTransaction:lt}},{path:"edit",component:rc,resolve:{recurringDepositsAccountTransactionTemplate:_t}},{path:"account-transfers",loadChildren:()=>_.e("default-src_app_account-transfers_account-transfers_module_ts").then(_.bind(_,69193)).then(e=>e.AccountTransfersModule)}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:Ir,resolve:{recurringDepositsAccountActionData:ut}}]}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>_.e("default-src_app_account-transfers_account-transfers_module_ts").then(_.bind(_,69193)).then(e=>e.AccountTransfersModule)}]}]}];let gs=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[cc,at,rt.X,ct.N,st,ut,pt,lt,_t],imports:[l.Bz.forChild(ms),l.Bz]}),e})();var ds=_(87734),As=_(35503),Ts=_(78434);let fs=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[ds.m,As.D,Ts.o,gs]}),e})()}}]); \ No newline at end of file